/*
Theme Name: VWclub.bg
Description: Тема за сайта на Клуба на привържениците на Фолксваген в България. Копие на дизайна на новия vwclub.bg: светла и тъмна тема, събития, новини, галерия, партньори и форма за контакт.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: vwclub
*/

/* ---------- Tokens (same values as the new vwclub.bg) ---------- */
:root,
[data-theme=light] {
	--bg-primary: #f2f2f2;
	--bg-secondary: #fff;
	--bg-card: #e8e8e8;
	--bg-input: #eaeaea;
	--text-primary: #1a1a1a;
	--text-secondary: #666;
	--accent: #b71c1c;
	--accent-hover: #9a1515;
	--accent-glow: #b71c1c26;
	--border: #ccc;
	--radius: 10px;
	--nav-bg: #ffffffd9;
	color-scheme: light;
}
[data-theme=dark] {
	--bg-primary: #0d0d0d;
	--bg-secondary: #1a1a1a;
	--bg-card: #1e1e1e;
	--bg-input: #2a2a2a;
	--text-primary: #f0f0f0;
	--text-secondary: #999;
	--accent: #b71c1c;
	--accent-hover: #d32f2f;
	--accent-glow: #b71c1c40;
	--border: #333;
	--nav-bg: #0d0d0dd9;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; scroll-behavior: smooth; }
body {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px; line-height: 1.6;
	background: var(--bg-primary); color: var(--text-primary);
	-webkit-font-smoothing: antialiased;
	transition: background .3s, color .3s;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--text-primary); }
ul, ol { list-style: none; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 2000; background: var(--bg-secondary); padding: 8px 16px; top: 8px; left: 8px; }
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; margin-top: 64px; }

@keyframes vwFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes vwFadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fade-in { animation: vwFadeIn .4s ease-out; }
.fade-up { animation: vwFadeInUp .5s ease-out both; }
@media (prefers-reduced-motion: reduce) { .fade-in, .fade-up { animation: none; } }

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	background: var(--nav-bg);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.navbar { max-width: 1200px; height: 64px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; position: relative; z-index: 2; }
.site-logo img { width: 210px; height: 28px; object-fit: contain; }
.nav-links { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; gap: 24px; }
.nav-links > li { position: relative; }
.nav-links a, .drop-btn {
	color: var(--text-secondary); white-space: nowrap; font-size: 14px; font-weight: 500;
	transition: color .2s; position: relative; background: none; border: 0; padding: 0;
}
.nav-links > li > a::after { content: ""; background: var(--accent); width: 0; height: 2px; transition: width .3s; position: absolute; bottom: -4px; left: 0; }
.nav-links > li > a:hover::after, .nav-links > li.is-active > a::after { width: 100%; }
.nav-links a:hover, .nav-links li.is-active > a, .drop-btn:hover, .nav-links li.is-active > .drop-btn { color: var(--accent); }
.nav-links li.is-ext > a::after { content: " \2197"; position: static; background: none; width: auto; height: auto; font-size: 12px; }
.drop-btn { display: flex; align-items: center; gap: 4px; }
.drop-btn .arrow { font-size: 10px; }
.drop-menu {
	display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%);
	background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
	min-width: 180px; padding: 8px 0; z-index: 100; box-shadow: 0 8px 32px #0000004d;
	animation: vwFadeIn .15s ease-out;
}
.has-drop.open > .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 20px; font-size: 14px; transition: all .15s; }
.drop-menu a:hover, .drop-menu li.is-active a { background: var(--bg-card); color: var(--accent); }
.socials { display: flex; align-items: center; gap: 10px; margin-right: 12px; flex-shrink: 0; position: relative; z-index: 2; }
.social-icon { color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; line-height: 0; transition: color .2s; }
.social-icon:hover { color: var(--accent); }
.social-icon svg { width: 20px; height: 20px; }
.theme-btn {
	background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 6px 10px; font-size: 18px; line-height: 1; flex-shrink: 0; position: relative; z-index: 2; color: inherit;
}
.theme-btn .when-dark, [data-theme=dark] .theme-btn .when-light { display: none; }
[data-theme=dark] .theme-btn .when-dark { display: inline; }
.hamburger { display: none; background: none; border: 0; color: var(--text-primary); min-width: 44px; min-height: 44px; padding: 8px; font-size: 24px; line-height: 1; }
.drawer-socials, .drawer-li { display: none; }

@media (max-width: 1199px) {
	.site-logo { flex: 1; order: 1; }
	.hamburger { display: flex; align-items: center; justify-content: center; order: 2; }
	.theme-btn { order: 3; margin-left: 8px; }
	.socials { display: none; }
	.nav-links {
		display: none; flex-direction: column; align-items: stretch; gap: 4px;
		position: absolute; top: 64px; left: 0; right: 0; padding: 16px 24px;
		background: var(--bg-secondary); border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px #0003;
		max-height: calc(100vh - 64px); overflow-y: auto;
	}
	.nav-links.open { display: flex; }
	.nav-links a, .drop-btn { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 0; font-size: 16px; }
	.nav-links > li:not(.is-ext) > a::after { display: none; }
	.drop-menu { position: static; transform: none; box-shadow: none; background: none; border: 0; padding: 0 0 0 16px; animation: none; }
	.drop-menu a { padding: 8px 0; }
	.drop-menu a:hover { background: none; }
	.drawer-li { display: block; }
	.drawer-socials { display: flex; justify-content: center; align-items: center; gap: 18px; width: 100%; margin-top: 8px; padding: 12px 0 4px; border-top: 1px solid var(--border); }
	.drawer-socials .social-icon { min-width: 44px; min-height: 44px; }
}
@media (max-width: 480px) {
	.navbar { padding: 0 16px; }
	.site-logo img { width: 170px; height: 23px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); margin-top: auto; padding: 40px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { color: var(--text-secondary); margin-top: 8px; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-nav { display: flex; flex-flow: wrap; justify-content: center; gap: 8px 20px; }
.footer-nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-socials { display: flex; align-items: center; gap: 14px; align-self: flex-end; }
@media (max-width: 1199px) {
	.footer-inner { flex-direction: column; text-align: center; }
	.footer-brand img { margin: 0 auto; }
	.footer-socials { align-self: center; }
}

/* ---------- Hero banners ---------- */
.page-hero {
	position: relative; text-align: center; padding: 100px 24px 64px;
	background: linear-gradient(135deg, #1a0000 0%, var(--bg-primary) 100%) 50% / cover no-repeat;
	background-position: 50%; background-size: cover;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: #0009; z-index: 0; }
.page-hero h1 { position: relative; z-index: 1; color: #fff; text-shadow: 0 2px 16px #00000080; margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.page-hero h1 .accent { color: var(--accent); }
.page-hero p { position: relative; z-index: 1; color: #ffffffd9; text-shadow: 0 1px 8px #0006; font-size: 1.1rem; }
.page-hero .learn-more { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-outline, .btn-learn {
	display: inline-block; border-radius: var(--radius); padding: 14px 32px; font-size: 15px; font-weight: 700;
	transition: all .3s; text-align: center; border: 0;
}
.btn-primary, .btn-learn { background: var(--accent); color: #fff !important; }
.btn-primary:hover, .btn-learn:hover { background: var(--accent-hover); box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-2px); }
.btn-secondary { background: #ffffff40; border: 1px solid #ffffffb3; color: #fff !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-secondary:hover { background: #ffffff59; border-color: #fff; transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); background: none; padding: 10px 28px; font-size: 14px; font-weight: 600; transition: all .2s; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-learn { margin-top: 28px; }

/* ---------- Sections & cards ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 24px; }
.section-title { text-align: left; margin-bottom: 32px; font-size: 1.75rem; font-weight: 700; }
.content-wide { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; transition: all .3s; color: var(--text-primary) !important;
}
.card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 12px 32px #0000004d; }
.card-img { width: 100%; height: 180px; object-fit: cover; }
.card-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%); }
.event-card { text-align: center; }
.event-card .card-body { padding: 12px 16px; }
.event-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.event-card .year { color: var(--accent); font-weight: 700; }
.event-card .date { color: var(--text-secondary); font-size: 12px; display: block; }
.event-icon { display: block; font-size: 2.5rem; padding: 40px 0 16px; }
.events-page .event-card .card-img { height: 200px; }
.events-page .event-card .card-body { padding: 8px 16px 10px; }
.events-page .event-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.post-card .card-body { padding: 16px; }
.post-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 6px; }
.post-card p { color: var(--text-secondary); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .card-date { display: block; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
.blog-grid .post-card .card-img, .blog-grid .post-card .card-placeholder { height: 200px; }
.blog-grid .post-card .card-body { padding: 20px; }
.blog-grid .post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-grid .post-card p { font-size: 14px; -webkit-line-clamp: 3; }
.blog-grid .post-card .card-date { font-size: 12px; margin-bottom: 8px; }
.center-cta { text-align: center; margin-top: 32px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; }
.pagination a, .pagination span { border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); padding: 8px 20px; transition: all .2s; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .disabled { opacity: .4; }
.empty { text-align: center; color: var(--text-secondary); padding: 60px; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
	.section { padding: 32px 16px; }
	.section-title { margin-bottom: 20px; }
	.content-wide { padding: 24px 16px; }
	.events-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) { .section { padding: 40px 20px; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Home ---------- */
.home-hero {
	position: relative; text-align: center; min-height: 70vh; display: flex; justify-content: center; align-items: center;
	background: #111 50% / cover no-repeat; overflow: hidden;
}
.home-hero::before { content: ""; position: absolute; inset: 0; background: #000000a6; z-index: 0; }
.home-hero-content { position: relative; z-index: 1; padding: 40px 24px; }
.home-hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; text-shadow: 0 2px 20px #0009; margin-bottom: 16px; overflow-wrap: break-word; }
.home-hero h1 span { color: var(--accent); }
.home-hero p { color: #ffffffd9; text-shadow: 0 1px 10px #00000080; max-width: 500px; margin: 0 auto 32px; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 768px) {
	.home-hero { min-height: 50vh; }
	.home-hero h1 { font-size: clamp(1.75rem, 7vw, 2.75rem); letter-spacing: -.5px; }
	.home-hero p { font-size: .95rem; }
}

.benefits { display: flex; flex-direction: column; gap: 32px; position: relative; }
.benefit-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.benefit-row { display: flex; align-items: center; gap: 40px; }
.benefit-row.reverse { flex-direction: row-reverse; }
.benefit-image {
	position: relative; flex-shrink: 0; width: 320px; height: 220px; display: flex; align-items: center; justify-content: center;
	border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); overflow: visible;
}
.benefit-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 1; }
.benefit-num {
	position: absolute; top: 50%; left: -40px; transform: translateY(-50%); z-index: 2; pointer-events: none;
	color: var(--accent); font-size: 9rem; font-weight: 900; line-height: 1; text-shadow: 0 0 40px #c0392b4d;
}
.benefit-emoji { font-size: 4rem; position: relative; z-index: 1; }
.benefit-content { flex: 1; }
.benefit-title { color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; font-size: 1.4rem; font-style: italic; font-weight: 800; }
.benefit-content p { color: var(--text-secondary); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 8px; font-size: 14px; line-height: 1.7; }
.benefit-content .benefit-sub { opacity: .7; margin-top: 8px; }
@media (max-width: 768px) {
	.benefits { gap: 28px; max-width: 80%; margin: 0 auto; }
	.benefit-row, .benefit-row.reverse { flex-direction: column; text-align: center; }
	.benefit-image { width: 100%; height: 180px; }
	.benefit-arrows { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) { .benefits { gap: 36px; max-width: 85%; margin: 0 auto; } }

.cta-section { max-width: 1200px; margin: 0 auto; padding: 24px 24px 32px; }
.cta-box { display: flex; align-items: center; gap: 24px; padding: 36px 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.cta-text { flex: 1; }
.cta-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.cta-text p { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; }
.cta-box .btn-primary { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 768px) {
	.cta-section { padding: 24px 16px; }
	.cta-box { flex-direction: column; text-align: center; padding: 24px 20px; }
}

.partner-strip { max-width: 1200px; margin: 0 auto; padding: 24px 24px 40px; }
.partner-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #0000, #000 10% 90%, #0000); mask-image: linear-gradient(90deg, #0000, #000 10% 90%, #0000); }
.partner-inner { display: flex; gap: 48px; width: max-content; animation: vwMarquee 30s linear infinite; }
.partner-inner:hover { animation-play-state: paused; }
@keyframes vwMarquee { from { transform: translate(0); } to { transform: translate(-25%); } }
@media (prefers-reduced-motion: reduce) { .partner-inner { animation: none; } }
.partner-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 60px; padding: 0 8px; }
.partner-item img { width: auto; max-width: 140px; height: 50px; object-fit: contain; }
.partner-item .partner-name { color: var(--text-secondary); white-space: nowrap; font-size: 14px; font-weight: 600; }

/* Light and dark partner logos */
.logo-dark { display: none !important; }
[data-theme=dark] .has-dark-logo .logo-light { display: none !important; }
[data-theme=dark] .has-dark-logo .logo-dark { display: block !important; }

/* ---------- Rich text (pages, posts, event sections) ---------- */
.prose { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.prose h2 { color: var(--accent); margin: 36px 0 14px; font-size: 1.3rem; font-weight: 700; }
.prose h3 { color: var(--accent); margin: 28px 0 12px; font-size: 1.1rem; font-weight: 700; }
.prose h4 { color: var(--accent); margin: 24px 0 10px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--accent); transition: color .2s; }
.prose a:hover { color: var(--accent-hover); }
.prose img { border-radius: var(--radius); max-width: 100%; margin: 16px 0; height: auto; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 28px; }
.prose li { margin-bottom: 10px; }
.prose ul li { list-style: disc outside; }
.prose ol li { list-style: decimal outside; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 16px 0; padding-left: 16px; font-style: italic; }
.prose figure { margin: 24px 0; }
.prose iframe { max-width: 100%; }
.page-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.page-content .prose li { font-size: 15px; }

/* ---------- Single post ---------- */
.post-hero { width: 100%; height: 400px; overflow: hidden; position: relative; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero .card-placeholder { height: 100%; }
.post-article { max-width: 800px; margin: 0 auto; padding: 32px 24px 80px; }
.post-back { display: inline-block; color: var(--accent); margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.post-back:hover { text-decoration: underline; }
.post-date { display: block; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.post-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.post-author { display: block; color: var(--accent); margin-bottom: 32px; font-size: 14px; font-weight: 600; }
.post-article .prose h2, .post-article .prose h3, .post-article .prose h4 { margin-top: 32px; margin-bottom: 12px; }
.post-article .prose img { margin: 24px 0; }
.post-article .prose strong, .post-article .prose a { color: var(--accent); }
@media (max-width: 768px) { .post-hero { height: 260px; } }

/* ---------- Events ---------- */
.history-title { border-top: 1px solid var(--border); margin: 64px 0 24px; padding-top: 32px; font-size: 1.5rem; font-weight: 700; }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.history-card {
	display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
	border-radius: var(--radius); transition: all .3s; color: var(--text-primary) !important;
}
.history-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 20px #0003; }
.history-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.history-icon { font-size: 1.5rem; flex-shrink: 0; }
.history-card h4 { font-size: 1rem; font-weight: 600; }
.history-card .year { color: var(--accent); font-weight: 700; }
.history-card .date { color: var(--text-secondary); font-size: 13px; }
@media (min-width: 769px) and (max-width: 1024px) { .history-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .history-grid { grid-template-columns: 1fr; } }

.event-detail .page-hero p { font-weight: 600; }
.event-content { max-width: 900px; margin: 0 auto; padding: 32px 24px; }
.event-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.event-tab {
	flex: 1; padding: 10px 8px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border);
	color: var(--text-secondary); white-space: nowrap; text-align: center; font-size: 12px; font-weight: 600; transition: all .3s;
}
.event-tab:hover { border-color: var(--accent); color: var(--accent); }
.event-tab[aria-selected=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.event-panel { min-height: 200px; }
.event-panel[hidden] { display: none; }
.event-panel h2.panel-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.image-grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.image-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); transition: transform .3s; }
.image-grid img:hover { transform: scale(1.03); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.partner-mini {
	display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; text-align: center;
	background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all .3s; color: var(--text-primary) !important;
}
.partner-mini:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px #0003; }
.partner-mini .logo-wrap { height: 80px; display: flex; align-items: center; justify-content: center; }
.partner-mini img { max-width: 140px; max-height: 70px; object-fit: contain; }
.partner-mini span { font-size: .95rem; font-weight: 600; }
.panel-empty { text-align: center; color: var(--text-secondary); padding: 48px; }
@media (max-width: 768px) {
	.image-grid { grid-template-columns: repeat(2, 1fr); }
	.event-tabs { gap: 6px; }
	.event-tab { white-space: normal; padding: 8px 12px; font-size: 11px; }
	.event-content { padding: 24px 16px; }
}

/* ---------- Gallery ---------- */
.gallery-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; transition: all .3s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all .3s; display: block; }
.gallery-item[hidden] { display: none; }
.gallery-item:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 24px #0000004d; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.load-more { text-align: center; margin-top: 32px; }
.load-more-btn { border: 1px solid var(--accent); color: var(--accent); border-radius: var(--radius); background: none; padding: 12px 36px; font-size: 15px; font-weight: 600; transition: all .2s; }
.load-more-btn:hover { background: var(--accent); color: #fff; }
.load-more-btn[hidden] { display: none; }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: #000000eb; display: flex; align-items: center; justify-content: center; animation: vwFadeIn .2s ease-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lb-close { position: absolute; top: 20px; right: 24px; z-index: 10; background: none; border: 0; color: #fff; padding: 8px; font-size: 32px; line-height: 1; }
.lb-close:hover { opacity: .7; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: #ffffff1a; border: 0; color: #fff; padding: 8px 16px; font-size: 48px; line-height: 1; border-radius: var(--radius); transition: background .2s; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: #fff3; }

/* ---------- Partners page ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-card { display: block; text-align: center; padding: 32px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all .3s; color: var(--text-primary) !important; }
.partner-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 12px 32px #0000004d; }
.partner-card .logo-wrap { height: 120px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.partner-card img { max-width: 160px; max-height: 100px; object-fit: contain; transition: all .3s; }
.partner-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.partner-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
@media (max-width: 1024px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .partners-grid { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.contact-content .prose { margin-bottom: 48px; }
.contact-content .prose h2 { margin: 28px 0 12px; }
.contact-content .prose p { margin-bottom: 12px; }
.form-section { scroll-margin-top: 88px; border-top: 1px solid var(--border); padding-top: 48px; }
.form-title { color: var(--accent); margin-bottom: 24px; font-size: 1.5rem; font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.field input, .field textarea { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); border-radius: 8px; padding: 12px 16px; font-family: inherit; font-size: 14px; transition: border-color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.char-count { color: #666; font-size: 12px; font-weight: 400; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { align-self: flex-start; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 14px 40px; font-size: 15px; font-weight: 700; transition: all .3s; }
.submit-btn:hover { opacity: .9; transform: translateY(-2px); }
.alert { border-radius: 8px; margin-bottom: 8px; padding: 14px 20px; font-size: 14px; font-weight: 600; }
.alert-success { color: #27ae60; background: #27ae6026; border: 1px solid #27ae604d; }
.alert-error { color: #e74c3c; background: #e74c3c26; border: 1px solid #e74c3c4d; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 24px; }
.not-found h1 { font-size: 5rem; color: var(--accent); font-weight: 900; }
.not-found p { color: var(--text-secondary); margin: 8px 0 32px; }
