/**
 * Kormoranok Main CSS
 * Component styles for the Fonyódi Kormoránok theme
 * 
 * @package Kormoranok
 * @version 2.9.0
 */

/* ============================================================
   HEADER STYLES
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(14, 18, 64, 0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(197, 164, 78, 0.3));
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.65;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a,
.main-nav .menu-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.main-nav a::after,
.main-nav .menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav .menu-item a:hover {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  width: 20px;
}

.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--gold-bright);
}

/* WordPress menu list reset */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav .menu-item {
  position: relative;
}

/* Dropdown / submenu */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(14, 18, 64, 0.97);
  backdrop-filter: blur(24px);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  flex-direction: column;
  gap: 0;
}

.main-nav .menu-item:hover > .sub-menu {
  display: flex;
}

.main-nav .sub-menu .menu-item a {
  padding: 10px 20px;
  font-size: 0.84rem;
  border-radius: 0;
  white-space: nowrap;
}

.main-nav .sub-menu .menu-item a::after {
  display: none;
}

.main-nav .sub-menu .menu-item a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Nav CTA button */
.nav-cta,
.main-nav .menu-item.nav-cta > a {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright)) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(197, 164, 78, 0.3);
}

.nav-cta::after,
.main-nav .menu-item.nav-cta > a::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(197, 164, 78, 0.45);
}

/* Dark mode toggle */
.dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
}

.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(14, 18, 64, 0.97);
  backdrop-filter: blur(30px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.mobile-overlay.open {
  display: flex;
}

.mobile-overlay a,
.mobile-overlay .menu-item a {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  transition: var(--transition);
  text-decoration: none;
}

.mobile-overlay a:hover,
.mobile-overlay .menu-item a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-overlay .sub-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
}

.mobile-overlay .sub-menu a {
  font-size: 1.1rem;
  opacity: 0.75;
}

/* ============================================================
   LAYOUT & SECTIONS
   ============================================================ */
.site-content {
  min-height: 60vh;
}

.site-main {
  padding-top: 80px;
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  background: rgba(197, 164, 78, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  box-shadow: 0 4px 20px rgba(197, 164, 78, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(197, 164, 78, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--ocean);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 58, 110, 0.3);
}

.btn-secondary:hover {
  background: var(--ocean-light);
  transform: translateY(-2px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 30%, var(--ocean) 60%, var(--sky) 100%);
  overflow: hidden;
  padding: 120px 32px 80px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
  background: rgba(197, 164, 78, 0.12);
  border: 1px solid rgba(197, 164, 78, 0.25);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat { text-align: center; }

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

/* Hero SVG Waves */
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 2;
}

.hero-waves path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.hw1 { stroke: rgba(255, 255, 255, 0.15); animation: waveFloat 8s ease-in-out infinite; }
.hw2 { stroke: rgba(255, 255, 255, 0.08); animation: waveFloat 10s ease-in-out infinite reverse; }
.hw3 { stroke: rgba(197, 164, 78, 0.12); animation: waveFloat 12s ease-in-out infinite; }

@keyframes waveFloat {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-20px); }
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* Compass decoration */
.compass-float {
  position: absolute;
  right: 8%;
  top: 15%;
  width: 140px;
  height: 140px;
  opacity: 0.12;
  animation: compassSpin 40s linear infinite;
  z-index: 1;
}

@keyframes compassSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero rope decoration */
.hero-rope {
  position: absolute;
  left: 5%;
  top: 10%;
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, rgba(197, 164, 78, 0.25), transparent);
  z-index: 1;
}

.hero-rope::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(197, 164, 78, 0.25);
  border-radius: 50%;
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-widget {
  position: absolute;
  top: 100px;
  left: 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  color: var(--white);
  z-index: 10;
  min-width: 180px;
  transition: var(--transition);
}

.weather-widget:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Mobile weather widget positioning */
@media (max-width: 768px) {
  /*
   * Mobil időjárás widget újratervezés
   * ─────────────────────────────────
   * Ahelyett, hogy absolute pozícióban belecsúszik a hero-badge-be,
   * a widgetet a hero-content tetejébe toljuk és a hero-content-nek
   * adunk elég helyet felül. Így iOS-on sem csúszik rá semmire.
   */

  /* A hero-content első gyermeke (hero-badge) elé biztosítunk helyet */
  .hero-content {
    padding-top: 80px; /* helyet ad a bal felső sarokban ülő widgetnek */
  }

  .hero #weatherWidget.weather-widget,
  .hero .weather-widget#weatherWidget {
    top: calc(var(--header-height, 70px) + var(--safe-top, 0px) + 8px) !important;
    left: 12px !important;
    right: auto !important;
    transform: none !important;
    padding: 7px 11px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 200px !important;   /* szélesebb: fér a széllökés sor */
    border-radius: 14px !important;
    z-index: 5 !important;         /* a hero-content (z-index:10) alatt, header (1000) alatt */
    pointer-events: auto;
  }

  .hero #weatherWidget .weather-header {
    gap: 7px;
    margin-bottom: 4px;
    align-items: center;
  }

  .hero #weatherWidget .weather-icon { font-size: 1rem; }
  .hero #weatherWidget .weather-temp { font-size: 1.1rem; line-height: 1; }

  /* Leírás és helyszín rejtve mobilon */
  .hero #weatherWidget .weather-desc,
  .hero #weatherWidget .weather-location {
    display: none !important;
  }

  /* Széladatok (irány + sebesség) láthatók, kompaktan */
  .hero #weatherWidget .weather-details {
    display: flex !important;
    flex-direction: column;
    gap: 3px;
    font-size: 0.7rem;
    margin-bottom: 3px;
  }

  .hero #weatherWidget .weather-wind-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
  }

  .hero #weatherWidget .weather-wind-dir {
    font-size: 0.72rem;
  }

  .hero #weatherWidget .weather-beaufort {
    font-size: 0.62rem;
    padding: 1px 4px;
  }

  /* Páratartalom rejtése mobilon — csak szélre koncentrálunk */
  .hero #weatherWidget .weather-details > span:last-child {
    display: none;
  }

  /* Széllökés sor: mobilon is látható, ha van adat */
  .hero #weatherWidget .weather-gusts {
    display: block !important; /* override-oljuk a JS show/hide logikát mobilon is */
    font-size: 0.67rem;
    opacity: 0.75;
    margin-bottom: 0;
  }

  /* Ha a JS elrejti mert nincs lökés, a display:none megmarad — ez helyes */
  #weatherGustsRow[style*="display: none"],
  #weatherGustsRow[style*="display:none"] {
    display: none !important;
  }
}

/* Extra kis képernyők (iPhone SE: 375px, régi iPhonok) */
@media (max-width: 390px) {
  .hero-content {
    padding-top: 90px;
  }

  .hero #weatherWidget.weather-widget,
  .hero .weather-widget#weatherWidget {
    max-width: 170px !important;
    padding: 6px 9px !important;
  }

  .hero #weatherWidget .weather-temp { font-size: 1rem; }
}



/* Desktop hero widget: compact but showing wind row */
.hero #weatherWidget {
  padding: 14px 18px;
}
.hero #weatherWidget .weather-header {
  gap: 8px;
  margin-bottom: 4px;
}
.hero #weatherWidget .weather-icon { font-size: 1.15rem; }
.hero #weatherWidget .weather-temp { font-size: 1.3rem; }
.hero #weatherWidget .weather-desc { font-size: 0.75rem; opacity: 0.8; }
.hero #weatherWidget .weather-details { font-size: 0.74rem; }
.hero #weatherWidget .weather-gusts { font-size: 0.7rem; opacity: 0.7; }
.hero #weatherWidget .weather-location {
  margin-top: 4px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.hero #weatherWidget:hover {
  transform: translateY(-2px);
}

.weather-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.weather-icon { font-size: 1.6rem; }

.weather-temp {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.weather-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.weather-wind-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.weather-wind-arrow {
  font-size: 1rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.weather-wind-dir {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.weather-beaufort {
  background: rgba(197, 164, 78, 0.25);
  border: 1px solid rgba(197, 164, 78, 0.45);
  color: var(--gold, #c5a44e);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.weather-gusts {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.weather-location {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   COUNTDOWN BANNER
   ============================================================ */
.countdown-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-top: 1px solid rgba(197, 164, 78, 0.15);
  border-bottom: 1px solid rgba(197, 164, 78, 0.15);
}

.countdown-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.countdown-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.countdown-info p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.countdown-timer {
  display: flex;
  gap: 12px;
}

.countdown-box {
  text-align: center;
  min-width: 64px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 12px 8px;
}

.countdown-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

/* ============================================================
   NEWS / BLOG CARDS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--navy, #0e1240);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 18, 64, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 6px;
}

.news-card-body {
  padding: 22px 24px 26px;
}

.news-card-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.news-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-card-title a:hover {
  color: var(--ocean-light);
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ocean);
  text-decoration: none;
  transition: var(--transition);
}

.news-card-link:hover {
  color: var(--ocean-light);
  gap: 10px;
}

/* ============================================================
   ABOUT / LEADERSHIP
   ============================================================ */
.about-section { background: var(--card-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.leadership-table {
  width: 100%;
  background: rgba(26, 31, 94, 0.03);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}

.leadership-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.leadership-row:last-child { border-bottom: none; }

.leadership-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 120px;
}

.leadership-name {
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.leadership-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { background: var(--bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 18, 64, 0.6), transparent);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 11, 42, 0.95);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-content { font-size: 8rem; margin-bottom: 20px; }

.lightbox-caption {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   MEMBERSHIP
   ============================================================ */
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.membership-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.membership-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-lg);
}

.membership-card.featured::before {
  content: 'Ajánlott';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 100px;
}

.membership-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.membership-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ocean);
  margin-bottom: 4px;
}

.membership-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.membership-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.membership-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.membership-features li:last-child { border-bottom: none; }

/* ============================================================
   SPONSORS BAR
   ============================================================ */
.sponsors-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.sponsors-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.sponsors-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sponsors-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sponsor-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: var(--transition);
  cursor: default;
}

.sponsor-logo:hover { opacity: 0.8; color: var(--navy); }

.sponsor-logo img {
  max-height: 48px;
  width: auto;
  filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
}

.sponsor-logo:hover img { filter: grayscale(0) opacity(1); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.7);
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand { max-width: 320px; }

.footer-brand .logo-img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(197, 164, 78, 0.15);
  border-color: rgba(197, 164, 78, 0.3);
  transform: translateY(-2px);
}

.footer-col h5,
.footer-widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-col a,
.footer-widget a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: var(--transition);
  text-decoration: none;
}

.footer-col a:hover,
.footer-widget a:hover {
  color: var(--gold-bright);
  padding-left: 4px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover { color: var(--gold-bright); }



/* ===== v2.5.3: Footer accordion (mobile) ===== */
.footer-acc-toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  text-align:left;
}

.footer-acc-toggle .footer-acc-title{
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-acc-toggle .footer-acc-chevron{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
}

.footer-acc.is-open .footer-acc-chevron{
  transform: rotate(180deg);
  background: rgba(197,164,78,0.15);
  border-color: rgba(197,164,78,0.3);
}

@media (max-width: 768px){
  .footer-main{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 44px 20px 28px;
  }

  .footer-col{
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .footer-col h5{ display:none; } /* replaced by button */

  .footer-acc-panel{
    overflow:hidden;
    max-height: none;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .footer-acc:not(.is-open) .footer-acc-panel{
    max-height: 0;
    opacity: 0;
  }

  .footer-acc.is-open .footer-acc-panel{
    opacity: 1;
  }

  .footer-acc-panel-inner{
    padding-top: 10px;
  }

  .footer-col a,
  .footer-widget a{
    padding: 9px 0;
    font-size: 0.95rem;
  }

  .footer-bottom{
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 16px 20px;
  }
}


/* ============================================================
   ENTRY CONTENT TYPOGRAPHY
   ============================================================ */
.entry-content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content p { margin-bottom: 1.2em; }

.entry-content a {
  color: var(--ocean);
  text-decoration: underline;
  text-decoration-color: rgba(26, 58, 110, 0.25);
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.entry-content a:hover {
  color: var(--ocean-light);
  text-decoration-color: var(--ocean-light);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.entry-content li { margin-bottom: 0.4em; }

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(197, 164, 78, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.entry-content img { border-radius: var(--radius); }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content th {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-content pre,
.entry-content code {
  font-family: 'JetBrains Mono', monospace;
}

.entry-content code {
  background: rgba(26, 31, 94, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
}

.entry-content pre {
  background: var(--navy-deep);
  color: var(--sky-pale);
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Entry header & meta */
.entry-header { margin-bottom: 32px; }

.entry-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.entry-meta a { color: var(--ocean); text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }

.entry-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-footer a { color: var(--ocean); text-decoration: none; }

/* Post navigation */
.post-navigation {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next { flex: 1; }
.post-navigation .nav-next { text-align: right; }

.nav-subtitle {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.nav-title {
  font-weight: 600;
  color: var(--ocean);
  transition: var(--transition-fast);
}

.post-navigation a:hover .nav-title { color: var(--ocean-light); }

/* Post thumbnail */
.post-thumbnail {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-thumbnail img { width: 100%; height: auto; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 164, 78, 0.4);
}

.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   404 / SEARCH / NO RESULTS
   ============================================================ */
.error-404 .page-header,
.not-found .page-header { text-align: center; margin-bottom: 32px; }

.error-404 .page-content,
.not-found .page-content { text-align: center; max-width: 600px; margin: 0 auto; }

.error-404 .page-content p { color: var(--text-light); margin-bottom: 24px; }

.search-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}

.search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--card-bg);
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.search-form .search-submit {
  padding: 12px 24px;
  background: var(--ocean);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.search-form .search-submit:hover { background: var(--ocean-light); }

.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.posts-navigation a {
  color: var(--ocean);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.posts-navigation a:hover { color: var(--ocean-light); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 100;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  background: var(--ocean);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.cookie-banner p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.6; }

.cookie-actions { display: flex; gap: 12px; }

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.cookie-accept {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 164, 78, 0.3);
}

.cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cookie-decline:hover {background: var(--bg); }

/* ============================================================
   DARK MODE — EXTENDED
   ============================================================ */
body.dark .section-title, body.dark .entry-title{color: var(--dm-text); }

body.dark .entry-content{color: var(--dm-text); }

body.dark .entry-content h1, body.dark .entry-content h2, body.dark .entry-content h3, body.dark .entry-content h4, body.dark .entry-content h5, body.dark .entry-content h6{color: var(--dm-text); }

body.dark .entry-content a{color: var(--sky); }

body.dark .entry-content blockquote{background: rgba(197, 164, 78, 0.08);
  color: rgba(224, 224, 240, 0.7);
}

body.dark .entry-content th{background: var(--dm-card); }
body.dark .entry-content td{border-color: var(--dm-border); }

body.dark .entry-content code{background: rgba(255, 255, 255, 0.08);
  color: var(--sky-pale);
}

body.dark .entry-meta, body.dark .entry-footer, body.dark .news-card-date, body.dark .news-card-excerpt, body.dark .section-subtitle{color: rgba(224, 224, 240, 0.5); }

body.dark .news-card{background: var(--dm-card);
  border-color: var(--dm-border);
}

body.dark .news-card-title, body.dark .news-card-title a{color: var(--dm-text); }

body.dark .news-card-link{color: var(--sky); }

body.dark .membership-card{background: var(--dm-card);
  border-color: var(--dm-border);
}

body.dark .membership-card h3{color: var(--dm-text); }
body.dark .membership-price{color: var(--sky); }

body.dark .membership-features li{color: rgba(224, 224, 240, 0.6);
  border-color: var(--dm-border);
}

body.dark .about-section{background: var(--dm-card); }
body.dark .about-text h3{color: var(--dm-text); }
body.dark .about-text p{color: rgba(224, 224, 240, 0.6); }
body.dark .leadership-table{background: rgba(255, 255, 255, 0.04); }
body.dark .leadership-row{border-color: var(--dm-border); }
body.dark .leadership-name{color: var(--dm-text); }

body.dark .sponsors-bar{background: var(--dm-card);
  border-color: var(--dm-border);
}

body.dark .sponsor-logo{color: rgba(224, 224, 240, 0.5); }
body.dark .gallery-section{background: var(--dm-bg); }

body.dark .cookie-banner{background: var(--dm-card);
  border: 1px solid var(--dm-border);
}

body.dark .cookie-banner h4{color: var(--dm-text); }
body.dark .cookie-banner p{color: rgba(224, 224, 240, 0.6); }
body.dark .cookie-decline{color: rgba(224, 224, 240, 0.5); border-color: var(--dm-border); }

body.dark .form-group input, body.dark .form-group textarea, body.dark .form-group select{background: var(--dm-card);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

body.dark .form-group label{color: var(--dm-text); }

body.dark .search-form .search-field{background: var(--dm-card);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

body.dark .entry-footer, body.dark .post-navigation{border-color: var(--dm-border); }

body.dark .nav-title{color: var(--sky); }
body.dark .comment-body{background: var(--dm-card); }
body.dark .post-navigation .nav-subtitle{color: rgba(224, 224, 240, 0.4); }
body.dark .section-tag{background: rgba(197, 164, 78, 0.15); }
body.dark .posts-navigation{ border-color: var(--dm-border); }

/* ============================================================
   SEARCH TOGGLE BUTTON
   ============================================================ */
.search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 4px;
  flex-shrink: 0;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   LIVE SEARCH OVERLAY
   ============================================================ */
.live-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(8, 11, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.live-search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.live-search-container {
  width: 100%;
  max-width: 620px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: translateY(-20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-search-overlay.open .live-search-container {
  transform: translateY(0) scale(1);
}

.live-search-header {
  display: flex;
  align-items: center;
  padding: 4px 4px 4px 0;
  border-bottom: 1px solid var(--border);
}

.live-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}

.live-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
}

.live-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1.05rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
}

.live-search-input::placeholder {
  color: var(--text-muted);
}

.live-search-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.live-search-close {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: var(--transition);
  flex-shrink: 0;
  margin-right: 8px;
}

.live-search-close:hover {
  background: var(--bg);
  color: var(--text);
}

.live-search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.live-search-hint,
.live-search-empty,
.live-search-loading {
  padding: 32px 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.live-search-loading .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--ocean);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  color: var(--text);
}

.live-search-item:hover {
  background: var(--bg);
}

.live-search-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.live-search-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.live-search-item-body {
  flex: 1;
  min-width: 0;
}

.live-search-item-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.live-search-type {
  font-weight: 600;
  color: var(--ocean);
}

.live-search-item-excerpt {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-search-all {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ocean);
  text-decoration: none;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  transition: var(--transition);
}

.live-search-all:hover {
  background: var(--bg);
  color: var(--ocean-light);
}

.live-search-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumbs a {
  color: var(--ocean);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--ocean-light);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--border);
  font-weight: 600;
}

.breadcrumb-current {
  color: var(--text-light);
  font-weight: 500;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   COMMENTS STYLES
   ============================================================ */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-item {
  margin-bottom: 20px;
}

.comment-body {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-author-info {
  display: flex;
  flex-direction: column;
}

.comment-author,
.comment-author a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  text-decoration: none;
}

.comment-author a:hover {
  color: var(--ocean);
}

.comment-date,
.comment-date a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.comment-date a:hover {
  color: var(--ocean);
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-awaiting {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
}

.comment-actions {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
}

.comment-actions a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.comment-actions a:hover {
  color: var(--ocean-light);
}

.comment-list .children {
  list-style: none;
  padding-left: 32px;
  margin: 0;
}

.no-comments {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 24px;
}

/* WordPress comment form */
.comment-respond {
  margin-top: 32px;
}

.comment-reply-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.comment-reply-title small {
  font-size: 0.8rem;
  margin-left: 12px;
}

.comment-reply-title small a {
  color: var(--ocean);
  text-decoration: none;
}

.comment-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.comment-form p {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   CONTACT LAYOUT (Two-column)
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-card-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.contact-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--ocean);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.contact-card a:hover {
  color: var(--ocean-light);
}

.contact-form-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.category-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.filter-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--ocean);
  color: var(--ocean);
  background: rgba(26, 58, 110, 0.04);
}

.filter-btn.active {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

/* ============================================================
   RACE CARDS & META
   ============================================================ */
.race-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.race-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.race-meta-icon {
  font-size: 1.1rem;
}

.race-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 100px;
}

.race-status--upcoming {
  background: rgba(46, 160, 67, 0.1);
  color: #2ea043;
}

.race-status--completed {
  background: rgba(130, 130, 150, 0.1);
  color: var(--text-muted);
}

.races-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.race-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: var(--transition);
}

.race-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.race-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 8px 12px;
  background: var(--ocean);
  border-radius: 8px;
  color: var(--white);
  flex-shrink: 0;
}

.race-card-month {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.race-card-day {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.race-card-dow {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.7;
  margin-bottom: 2px;
  white-space: nowrap;
}

.race-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.race-ical-btn {
  padding: 6px 10px !important;
  font-size: 1rem !important;
  line-height: 1;
  border-radius: 8px !important;
}

.race-card-body {
  flex: 1;
  min-width: 0;
}

.race-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.race-card-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.race-card-title a:hover {
  color: var(--ocean);
}

.race-card-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Search results post type badge */
.search-post-type {
  display: inline-block;
  background: rgba(26, 58, 110, 0.08);
  color: var(--ocean);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Guestbook specific */
.guestbook-comments .comments-area {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* ============================================================
   LIGHTBOX — IMAGE SUPPORT
   ============================================================ */
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   INLINE WIDGET VARIANTS (Shortcodes)
   ============================================================ */
.weather-widget--inline {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  margin: 16px 0;
  background: linear-gradient(135deg, var(--navy-deep), var(--ocean));
}

/* Beaufort scale tooltip */
.weather-beaufort {
  position: relative;
  cursor: help;
}
.weather-beaufort[title]:hover::after {
  content: attr(data-bf-desc);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 400;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.countdown-banner--inline {border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 16px 0;
}

/* ============================================================
   DARK MODE — NEW COMPONENTS
   ============================================================ */
body.dark .live-search-container{background: var(--dm-card);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--dm-border);
}

body.dark .live-search-header{border-color: var(--dm-border); }
body.dark .live-search-input{color: var(--dm-text); }
body.dark .live-search-kbd{background: var(--dm-bg); border-color: var(--dm-border); }
body.dark .live-search-close:hover{background: var(--dm-bg); color: var(--dm-text); }
body.dark .live-search-item:hover{background: var(--dm-bg); }
body.dark .live-search-item-title{color: var(--dm-text); }
body.dark .live-search-thumb{background: var(--dm-bg); }
body.dark .live-search-all{border-color: var(--dm-border); }
body.dark .live-search-all:hover{background: var(--dm-bg); }
body.dark .live-search-footer{border-color: var(--dm-border); }

body.dark .breadcrumbs{color: rgba(224, 224, 240, 0.4); }
body.dark .breadcrumb-sep{color: var(--dm-border); }
body.dark .breadcrumb-current{color: rgba(224, 224, 240, 0.6); }

body.dark .comments-title{color: var(--dm-text); }
body.dark .comment-body{background: var(--dm-card); border-color: var(--dm-border); }
body.dark .comment-author, body.dark .comment-author a{color: var(--dm-text); }
body.dark .comment-content{color: var(--dm-text); }
body.dark .comment-reply-title{color: var(--dm-text); }
body.dark .comment-form input, body.dark .comment-form textarea{background: var(--dm-card); border-color: var(--dm-border); color: var(--dm-text);
}
body.dark .comment-form label{color: var(--dm-text); }
body.dark .comments-area{border-color: var(--dm-border); }

body.dark .contact-card{background: var(--dm-card); border-color: var(--dm-border); }
body.dark .contact-form-wrap h3{color: var(--dm-text); }

body.dark .filter-btn{background: var(--dm-card); border-color: var(--dm-border); color: rgba(224, 224, 240, 0.6); }
body.dark .filter-btn:hover{border-color: var(--sky); color: var(--sky); }
body.dark .filter-btn.active{background: var(--ocean); color: var(--white); border-color: var(--ocean); }

body.dark .race-meta-bar{background: var(--dm-card); border-color: var(--dm-border); }
body.dark .race-card{background: var(--dm-card); border-color: var(--dm-border); }
body.dark .race-card-title, body.dark .race-card-title a{color: var(--dm-text); }
body.dark .race-card-location{color: rgba(224, 224, 240, 0.5); }
body.dark .race-card-dow { opacity: 0.55; }
body.dark .weather-beaufort { border-color: rgba(197, 164, 78, 0.6); }

body.dark .search-post-type{ background: rgba(135, 206, 235, 0.1); color: var(--sky); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .countdown-inner { flex-direction: column; text-align: center; }
  .hero-stats { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }

  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .comment-list .children { padding-left: 16px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 10px 20px; }
  .logo-img { width: 42px; height: 42px; }
  .logo-text { font-size: 0.95rem; }
  .logo-text small { font-size: 0.6rem; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.5rem; }

  .weather-widget--inline {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto 24px;
    max-width: 240px;
  }

  .compass-float, .hero-rope { display: none; }
  .section { padding: 48px 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .countdown-timer { gap: 8px; }
  .countdown-box { min-width: 52px; padding: 10px 6px; }
  .countdown-num { font-size: 1.3rem; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 20px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; }

  .post-navigation .nav-links { flex-direction: column; gap: 16px; }
  .post-navigation .nav-next { text-align: left; }
  .membership-grid { grid-template-columns: 1fr; }
  .entry-title { font-size: 1.5rem; }

  .live-search-overlay { padding-top: 5vh; }
  .live-search-container { margin: 0 16px; border-radius: var(--radius-lg); }
  .live-search-results { max-height: 50vh; }

  .race-meta-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .race-card { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .sponsors-logos { gap: 24px; }
  .countdown-inner { padding: 20px; }

  .live-search-container { margin: 0 8px; }
  .comment-list .children { padding-left: 8px; }
  .category-filter { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }
}


/* ===== v2.5.0: Contact form UX + honeypot ===== */
.hp-field{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.form-message{margin-top:14px;font-size:14px;line-height:1.4;}
.form-message.success{color:#16a34a;}
.form-message.error{color:#ef4444;}


/* ===== v2.5.0: Archive tabs + page hero ===== */
.page-hero{padding-top:120px;padding-bottom:30px;}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.tab{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,0.18);color:rgba(255,255,255,0.92);text-decoration:none;backdrop-filter:blur(10px);}
.tab.active{background:rgba(197,164,78,0.18);border-color:rgba(197,164,78,0.55);}
.pagination-wrap{margin-top:28px;}
.pagination-wrap .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,0.12);margin-right:8px;text-decoration:none;}
.pagination-wrap .page-numbers.current{background:rgba(255,255,255,0.12);}


/* ===== v2.5.0: Lightbox prev/next ===== */
.lightbox-prev,.lightbox-next{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,0.18);background:rgba(0,0,0,0.25);color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.lightbox-prev{left:18px;}
.lightbox-next{right:18px;}
@media (max-width:640px){.lightbox-prev,.lightbox-next{display:none;}}


/* ============================================================
   v2.6.0: BUG FIXES — Missing CSS classes
   ============================================================ */

/* --- Container (used in archive-race.php) --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Button small variant --- */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 1rem;
  font-style: italic;
}

/* --- Section actions (CTA row below section) --- */
.section-actions {
  text-align: center;
  margin-top: 28px;
}

/* --- Form group --- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card-bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

/* --- Form note --- */
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- Contact card value --- */
.contact-card-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* --- Race card excerpt --- */
.race-card-excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* --- About section image + badge --- */
.about-image {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 110, 0.15), rgba(197, 164, 78, 0.1));
  pointer-events: none;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2;
}

.about-badge-icon {
  font-size: 1.8rem;
}

.about-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.about-badge-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--ocean);
}

.about-badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-copy {
  line-height: 1.8;
  color: var(--text-light);
}

.about-copy p {margin-bottom: 1em;
}

/* --- Dark mode: additional components --- */
body.dark .contact-card-value{color: var(--dm-text); }
body.dark .about-copy{color: rgba(224, 224, 240, 0.65); }
body.dark .about-badge{background: var(--dm-card); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); }
body.dark .about-badge-text span{color: rgba(224, 224, 240, 0.5); }
body.dark .empty-state{color: rgba(224, 224, 240, 0.4); }
body.dark .form-note{color: rgba(224, 224, 240, 0.4); }
body.dark .race-card-excerpt{ color: rgba(224, 224, 240, 0.5); }

/* ============================================================
   v2.6.0: MOBILE OPTIMIZATION
   ============================================================ */

/* --- Safe Area (iPhone notch / dynamic island) --- */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

.site-header { padding-top: var(--safe-top); }
.mobile-overlay { padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); }
.cookie-banner { padding-bottom: calc(16px + var(--safe-bottom)); }
.back-to-top { bottom: calc(32px + var(--safe-bottom)); }
.site-footer .footer-bottom { padding-bottom: calc(16px + var(--safe-bottom)); }

/* --- Minimum 44px touch targets --- */
.hamburger,
.dark-toggle,
.search-toggle,
.back-to-top,
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.cookie-btn,
.filter-btn {
  min-width: 44px;
  min-height: 44px;
}

.mobile-overlay a,
.mobile-overlay .menu-item a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* --- Hover only for pointer devices (prevents sticky hover on touch) --- */
@media (hover: hover) and (pointer: fine) {
  .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .membership-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .race-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .gallery-item:hover img { transform: scale(1.08); }
  .gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
  .btn-primary:hover { transform: translateY(-2px); }
  .btn-outline:hover { background: rgba(255,255,255,0.08); }
  .back-to-top:hover { transform: translateY(-4px); }
  .weather-widget:hover { transform: translateY(-2px); }
}

@media (hover: none) {
  .news-card, .membership-card, .race-card, .contact-card,
  .btn-primary, .btn-outline, .back-to-top, .weather-widget {
    transform: none !important;
  }
  .gallery-item img { transition: none; }
}

/* --- Mobile sub-menu toggle --- */
.mobile-overlay .sub-menu-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.mobile-overlay .sub-menu-toggle.open {
  background: rgba(197,164,78,0.15);
  transform: translateY(-50%) rotate(180deg);
}

.mobile-overlay .menu-item-has-children > a {
  padding-right: 56px;
}

.mobile-overlay .sub-menu {
  display: none !important;
}

.mobile-overlay .sub-menu.open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 8px;
}

.mobile-overlay .sub-menu.open a {
  font-size: 1.05rem !important;
  opacity: 0.7;
  padding: 10px 32px !important;
}

/* --- Mobile-specific improvements --- */
@media (max-width: 768px) {
  .header-inner {
    padding-top: calc(10px + var(--safe-top));
    gap: 6px;
  }
  
  .logo {
    flex: 1;
    min-width: 0;
  }
  
  .logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-toggle,
  .dark-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .dark-toggle { font-size: 0.9rem; }

  .hero {
    padding-top: calc(90px + var(--safe-top));
  }

  /* padding-top-ot NEM írjuk felül (a weather widget fix beállítja a 80px-t) */
  .hero-content { padding-left: 8px; padding-right: 8px; }
  
  .hero-actions {
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  .countdown-info h3 { font-size: 0.95rem; }
  .countdown-info p { font-size: 0.8rem; }
  
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .section-subtitle { font-size: 0.9rem; }
  
  /* iOS input zoom prevention */
  .form-group input,
  .form-group textarea,
  .form-group select,
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea,
  .live-search-input {
    font-size: 16px;
  }

  .cookie-banner {
    max-width: none;
    left: 12px;
    right: 12px;
    bottom: calc(12px + var(--safe-bottom));
    border-radius: var(--radius-lg);
  }

  .cookie-banner h4 { font-size: 0.95rem; }
  .cookie-banner p { font-size: 0.8rem; }
  .cookie-actions { flex-direction: column; gap: 8px; }
  .cookie-btn { width: 100%; text-align: center; }

  .breadcrumbs {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }
  .breadcrumb-current { max-width: 180px; }

  .gallery-grid { gap: 8px; }
  .gallery-item { border-radius: 8px; }

  .back-to-top {
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .leadership-row {
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
  }
  
  .about-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 16px;
    justify-content: center;
  }

  .membership-card { padding: 24px 20px; }

  .live-search-kbd { display: none; }
  .live-search-footer { display: none; }

  .container { padding: 0 16px; }
  
  .race-card .btn-sm {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 8px;
  }
}

/* --- Extra small screens --- */
@media (max-width: 380px) {
  .header-inner {
    padding: 8px 12px;
    padding-top: calc(8px + var(--safe-top));
  }
  
  .logo-text { font-size: 0.85rem; }
  .logo-text small { display: none; }
  .hero h1 { font-size: 1.6rem; }
  .hero-desc { font-size: 0.88rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .countdown-box { min-width: 44px; padding: 8px 4px; }
  .countdown-num { font-size: 1.1rem; }
  .section { padding: 36px 16px; }
  .section-title { font-size: 1.4rem; }
  .container { padding: 0 12px; }
}

/* --- Reduced motion preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-particles, .compass-float { display: none; }
}

/* --- Print styles --- */
@media print {
  .site-header, .hero-particles, .compass-float, .hero-rope,
  .hero-waves, .weather-widget, .countdown-banner, .cookie-banner,
  .back-to-top, .hamburger, .dark-toggle, .search-toggle,
  .lightbox, .live-search-overlay, .mobile-overlay,
  .footer-social, .sponsors-bar,
  .share-buttons, .ical-link, .race-actions,
  .race-ical-btn, .post-navigation,
  .site-footer { display: none !important; }

  .hero { min-height: auto; background: none !important; padding: 20px; }
  .hero h1, .hero-desc { color: #000 !important; }
  body { color: #000; background: #fff; font-size: 11pt; }

  /* Race single: clean printable layout */
  .race-single .entry-title { font-size: 20pt; margin-bottom: 6pt; }
  .race-meta-bar {
    display: flex !important;
    gap: 16pt;
    border: 1pt solid #ccc;
    padding: 8pt 12pt;
    border-radius: 4pt;
    margin-bottom: 12pt;
    font-size: 10pt;
  }
  .race-status { border: 1pt solid #999; padding: 2pt 6pt; border-radius: 4pt; font-size: 9pt; }
  .entry-content { font-size: 11pt; line-height: 1.6; }

  /* Race grid: list view for print */
  .races-grid { display: block !important; }
  .race-card {
    border: 1pt solid #ccc;
    margin-bottom: 8pt;
    padding: 8pt 12pt !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .race-card-date { background: none !important; color: #000 !important; border: 1pt solid #999; }

  /* General */
  a { color: #000 !important; text-decoration: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
  .btn, .race-card-actions a { display: none !important; }

  @page { margin: 1.5cm; }
}


/* ============================================================
   v2.6.0: 404 Hero Page
   ============================================================ */
.error-404-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
  position: relative;
  overflow: hidden;
}

.error-404-hero::before {
  content: '⛵';
  position: absolute;
  font-size: 12rem;
  opacity: 0.04;
  bottom: -20px;
  right: -20px;
  transform: rotate(-15deg);
  pointer-events: none;
}

.error-404-content {
  max-width: 600px;
}

.error-404-code {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-bottom: 8px;
}

.error-404-hero h1 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 12px;
}

.error-404-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.error-404-search {
  max-width: 400px;
  margin: 0 auto 24px;
}

.error-404-search .search-form {
  display: flex;
  gap: 8px;
}

.error-404-search .search-field {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  backdrop-filter: blur(8px);
}

.error-404-search .search-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.error-404-search .search-submit {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.error-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .error-404-actions { flex-direction: column; align-items: center; }
  .error-404-actions .btn { width: 100%; max-width: 280px; text-align: center; }
  .error-404-search .search-form { flex-direction: column; }
}

/* ============================================================
   v2.6.0: Gallery Archive Grid
   ============================================================ */
.gallery-grid--archive {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 968px) {
  .gallery-grid--archive { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .gallery-grid--archive { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v2.6.0: Form submit wrap
   ============================================================ */
.form-submit-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .form-submit-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .form-submit-wrap .btn { width: 100%; text-align: center; }
}

/* ============================================================
   v2.6.0: Races grid improvements
   ============================================================ */
.race-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.race-card-date {
  min-width: 56px;
  text-align: center;
  padding: 8px 12px;
  background: var(--ocean);
  border-radius: 10px;
  flex-shrink: 0;
}

.race-card-month {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

.race-card-day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.race-card-body {
  flex: 1;
  min-width: 0;
}

.race-card-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.race-card-title a {
  color: var(--text);
  text-decoration: none;
}

.race-card-title a:hover {
  color: var(--ocean);
}

.race-card-location {font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .race-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
  }
  .race-card-date {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: baseline;
  }
}

/* ============================================================
   v2.6.0: Search form
   ============================================================ */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
}

.search-field {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-field:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(26, 58, 110, 0.1);
}

.search-submit {display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--ocean);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  min-width: 44px;
  min-height: 44px;
}

body.dark .search-field{background: var(--dm-card);
  border-color: var(--dm-border);
  color: var(--dm-text);
}

body.dark .search-submit{
  background: var(--sky);
}

@media (max-width: 480px) {
  .search-form { max-width: none; }
}

/* ============================================================
   v2.9.1: Missing section wrapper classes
   ============================================================ */
.news-section { }
.races-section { }
.membership-section { }
.contact-section { }

/* Alternate background for even sections on front page */
.front-page-section:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

body.dark .front-page-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

/* ============================================================
   v2.9.1: Contact info column (page-contact.php)
   ============================================================ */
.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-info .entry-content {
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact-info .entry-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   v2.9.1: Sponsor widget (footer sponsors bar)
   ============================================================ */
.sponsor-widget {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sponsor-widget img {
  max-height: 48px;
  width: auto;
  filter: grayscale(0.3);
  opacity: 0.85;
  transition: var(--transition);
}

.sponsor-widget img:hover {
  filter: grayscale(0);
  opacity: 1;
}

body.dark .sponsor-widget img {
  filter: grayscale(0.3) brightness(1.2);
}

/* ============================================================
   v2.9.1: Gallery item focus-visible for a11y
   ============================================================ */
.gallery-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ============================================================
   v2.9.1: Skip link + focus-visible global
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  clip: auto !important;
  clip-path: none !important;
  width: auto;
  height: auto;
}

/* ============================================================
   v2.9.1: Better btn-outline dark mode
   ============================================================ */
body.dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--dm-text);
}

body.dark .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   v2.9.1: Lightbox touch swipe support (CSS)
   ============================================================ */
.lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   v2.9.1: Form validation state styling
   ============================================================ */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #2ecc71;
}

.form-message {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ============================================================
   v2.9.1: Selection styling
   ============================================================ */
::selection {
  background: var(--gold);
  color: var(--navy);
}

body.dark ::selection {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ============================================================
   v2.9.1: Smooth scroll (HTML level, respects reduced-motion)
   ============================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* ============================================================
   v2.9.7: Visszajelzések alapján - nagyobb frissítés
   ============================================================ */

/* ── Hírek kártya: kép nélküli változat ── */
.news-card--no-img .news-card-img--placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.news-card-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
}

.news-card-placeholder-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.news-card-placeholder-cat {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.news-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Hírek grid: 6 és 9 esetén kisebb kártyák */
.news-grid--3 {
  /* örökli a .news-grid stílusát (3 col default) */
}

.news-grid--6,
.news-grid--9 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (max-width: 768px) {
  .news-grid--6,
  .news-grid--9 {
    grid-template-columns: 1fr;
  }
}

/* ── Dokumentumok szekció ── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.doc-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.doc-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.doc-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.doc-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.doc-card-soon {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.membership-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  max-width: 640px;
  margin: 0 auto;
}

body.dark .doc-card:hover {
  border-color: var(--gold-bright);
}

/* ── Verseny kártya: rendező szervezet ── */
.race-card-organizer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.race-card-organizer-label {
  font-weight: 700;
  color: var(--text-light);
  margin-right: 6px;
}

.race-meta-label {
  font-weight: 700;
}

/* ── Kapcsolat: adószám (Kapcsolat oldal űrlap mellett) ── */
.contact-tax-number {
  margin-top: -10px;
  margin-bottom: 18px;
}

.contact-tax-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-tax-value {
  display: block;
  font-family: monospace;
  letter-spacing: 0.08em;
}

body.dark .contact-tax-label {
  color: rgba(224, 224, 240, 0.5);
}

/* ── SZJA 1% banner ── */
.szja-banner .countdown-inner {
  justify-content: space-between;
}

.szja-icon {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold-bright);
  opacity: 0.85;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.szja-tax {
  background: rgba(197,164,78,0.15);
  border: 1px solid rgba(197,164,78,0.35);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

/* ── Bejegyzés meta (single) ── */
.entry-meta--single {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.entry-meta--single a {
  color: var(--gold);
}

.entry-meta-sep {
  opacity: 0.4;
}

/* ── Kép nélküli bejegyzés dekoráció ── */
.entry-no-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 80%);
  border-radius: var(--radius);
  padding: 40px 24px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.6);
}

.entry-no-thumbnail-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.entry-no-thumbnail-cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* ── Footer: egyszerűsített (brand + bottom bar) ── */
.footer-main {
  grid-template-columns: 1fr; /* csak a brand oszlop marad */
  max-width: 680px;
}

.footer-main .footer-brand {
  max-width: none; /* széles layout-ban is teljes szél */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-main .footer-brand .footer-social {
  justify-content: center;
}

/* ============================================================
   FontAwesome icon integration
   ============================================================ */
.contact-card-icon i,
.doc-card-icon i,
.about-badge-icon i,
.race-meta-icon i {
  display: inline-block;
}

.contact-card-icon i {
  font-size: 1.6rem;
  color: var(--gold);
}

.doc-card-icon i {
  font-size: 2rem;
  color: var(--gold);
}

.about-badge-icon i {
  font-size: 1.4rem;
  color: var(--gold);
}

.race-meta-icon i {
  color: var(--gold);
  margin-right: 4px;
}

.race-card-location i,
.race-card-organizer-label i {
  color: var(--gold);
  margin-right: 3px;
  font-size: 0.85em;
}

.weather-widget i {
  margin-right: 2px;
}

.weather-icon i {
  font-size: 1.3rem;
  color: var(--gold-bright);
}

.hero-badge i {
  margin-right: 4px;
}

.countdown-info h3 i {
  margin-right: 6px;
  color: var(--gold-bright);
}

.membership-note i {
  margin-right: 4px;
  color: var(--gold);
}

.entry-meta--single i {
  margin-right: 3px;
  color: var(--gold);
  font-size: 0.9em;
}

.footer-social a i {
  font-size: 1.1rem;
}

.dark-toggle i {
  font-size: 0.95rem;
}

.back-to-top i {
  font-size: 1rem;
}

.cookie-banner h4 i {
  margin-right: 4px;
  color: var(--gold);
}

.news-card-placeholder-icon i {
  font-size: 2rem;
}

.entry-no-thumbnail-icon i {
  font-size: 3rem;
}

.live-search-thumb--empty i {
  font-size: 1.2rem;
  color: var(--text-muted);
}

body.dark .live-search-thumb--empty i {
  color: rgba(224, 224, 240, 0.4);
}

