/* ============================================================
   PAPRIKA RIDER — styles.css
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --red:       #ef4444;
  --dark:      #0a0a0a;
  --dark2:     #0f0f0f;
  --dark3:     #111111;
  --dark4:     #080808;
  --mid:       #1a1a1a;
  --border:    #222222;
  --grey:      #888888;
  --grey-light:#aaaaaa;
  --white:     #ffffff;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h:     72px;
  --radius:    8px;
  --transition:0.3s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding: 100px 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--grey-light);
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.7;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 40px;
  color: var(--white);
}
h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* --- Buttons --- */
.btn-primary,
.btn-outline-white,
.btn-outline-red,
.btn-disabled,
.btn-donate-paypal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover { background: #dc2626; border-color: #dc2626; transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline-red:hover { background: var(--red); color: var(--white); }

.btn-disabled {
  background: transparent;
  color: var(--grey);
  border: 2px solid var(--border);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-donate-paypal {
  background: #0070ba;
  color: #ffffff;
  border: 2px solid #0070ba;
}
.btn-donate-paypal:hover { background: #005ea6; border-color: #005ea6; transform: translateY(-2px); }

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn-instagram { background: linear-gradient(135deg,#833ab4,#fd1d1d,#f77737); color: #fff; }
.btn-instagram:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-facebook  { background: #1877f2; color: #fff; }
.btn-facebook:hover  { background: #166fe5; transform: translateY(-2px); }

/* --- Logo text fallback --- */
.logo-text-fallback {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.logo-text-fallback.large { font-size: 2.4rem; }
.logo-text-fallback.white { color: var(--white); }
.logo-red { color: var(--red); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-pulse {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(239,68,68,0.4);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
#navbar.scrolled {
  background: rgba(10,10,10,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 100px; width: auto; }
.nav-logo-img { display: block; filter: invert(1); }
[data-theme="light"] .nav-logo-img { filter: none; }
@media (max-width: 768px) { .nav-logo img { height: 48px; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}
.nav-links li { position: relative; }
.nav-links li + li::before {
  content: '|';
  color: rgba(255,255,255,0.2);
  padding: 0 14px;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.lang-sep { color: rgba(255,255,255,0.25); font-size: 0.85rem; }
.lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  padding: 2px 0;
}
.lang-btn:hover,
.lang-btn.active { color: var(--white); }
.lang-btn.active { border-bottom: 2px solid var(--red); }

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(20deg);
}
.theme-toggle svg { width: 17px; height: 17px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}
.hero-split {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Full-bleed background image */
.hero-right {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-right .img-missing {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1F060B 0%, #3a0d16 50%, #1F060B 100%);
}

/* Subtle color cast across entire image */
.hero-right-tint {
  position: absolute;
  inset: 0;
  background: rgba(31,6,11,0.22);
  pointer-events: none;
  z-index: 1;
}

/* Directional overlay: heavy left (~80%), fading out by 65% */
.hero-right-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(31,6,11,0.92) 0%,
    rgba(31,6,11,0.88) 18%,
    rgba(31,6,11,0.72) 32%,
    rgba(31,6,11,0.45) 50%,
    rgba(31,6,11,0.18) 68%,
    rgba(31,6,11,0.06) 85%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Text content — left 42% */
.hero-left {
  position: relative;
  z-index: 3;
  width: 42%;
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 64px 80px 150px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.35);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(4rem, 7vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}
.hero-headline .line-white { color: var(--white); }
.hero-headline .line-red   { color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--grey-light);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.cd-num {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--red);
  line-height: 1;
  letter-spacing: 0.02em;
}
.cd-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 4px;
}
.cd-sep {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  color: var(--red);
  line-height: 1;
  opacity: 0.5;
  margin-top: 4px;
}
.countdown-mini .cd-num  { font-size: clamp(2rem, 3vw, 2.8rem); }
.countdown-mini .cd-sep  { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* Race live badge */
.race-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.15);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  animation: livePulse 2s ease-in-out infinite;
}
.live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.live-dot.pulse { animation: dotPulse 1.4s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.4; }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}


/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--dark2); }
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: start;
}
.photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--grey);
  letter-spacing: 0.1em;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 16px;
  background: rgba(239,68,68,0.04);
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: rgba(239,68,68,0.08); }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bio-text {
  font-size: 1.02rem;
  color: var(--grey-light);
  line-height: 1.8;
}

/* ============================================================
   RACE
   ============================================================ */
#race { background: var(--dark4); }
.race-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.race-left {
  display: flex;
  flex-direction: column;
}
.facts-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.facts-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
}
.facts-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--grey-light);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.facts-tab-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.facts-tab-btn[aria-selected="true"] {
  background: var(--red);
  color: #fff;
}
[data-theme="light"] .facts-tab-nav {
  background: #f5f5f5;
  border-color: #e0e0e0;
}
[data-theme="light"] .facts-tab-btn { color: #555; }
[data-theme="light"] .facts-tab-btn:hover { background: #e8e8e8; color: #111; }
[data-theme="light"] .facts-tab-btn[aria-selected="true"] { background: var(--red); color: #fff; }
.facts-tab-panel {
  flex: 1;
  animation: ftab-in 0.2s ease;
}
@keyframes ftab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.facts-tab-panel[hidden] { display: none; }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}
.fact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.fact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fact-icon svg { width: 20px; height: 20px; }
.race-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--grey-light);
  max-width: 820px;
  margin: 0 0 48px;
}
.fact-text { display: flex; flex-direction: column; gap: 2px; }
.fact-text strong {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.fact-text span {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
}

/* Accordion */
.route-section { margin-top: 56px; margin-bottom: 40px; }
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  transition: background var(--transition);
}
.accordion-btn:hover { background: rgba(255,255,255,0.04); }
.accordion-btn[aria-expanded="true"] { background: rgba(239,68,68,0.06); }
.acc-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.acc-place { font-weight: 600; flex: 1; }
.acc-desc  { font-size: 0.78rem; color: var(--grey); }
.acc-arrow {
  color: var(--grey);
  transition: transform var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.acc-arrow svg { width: 18px; height: 18px; }
.accordion-btn[aria-expanded="true"] .acc-arrow { transform: rotate(180deg); }
.accordion-panel {
  padding: 0 18px 16px 52px;
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.7;
}
.accordion-panel[hidden] { display: none; }
.acc-panel-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 4px;
}
.acc-panel-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}
.acc-panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-panel-img--talas    { background: linear-gradient(145deg, #2a1a0a 0%, #4a2a10 60%, #1a0f05 100%); }
.acc-panel-img--terekti  { background: linear-gradient(145deg, #0a1525 0%, #1a2d45 60%, #080d14 100%); }
.acc-panel-img--sonkul   { background: linear-gradient(145deg, #042230 0%, #0a3d58 50%, #021820 100%); }
.acc-panel-img--naryn    { background: linear-gradient(145deg, #1a1205 0%, #2e2010 60%, #0f0d06 100%); }
.acc-panel-img--arabel   { background: linear-gradient(145deg, #0d0d1e 0%, #1a1a32 60%, #080810 100%); }
.acc-panel-img--tosor    { background: linear-gradient(145deg, #041020 0%, #0a2040 60%, #020d18 100%); }
.acc-panel-img--kokayrik { background: linear-gradient(145deg, #0a0a0c 0%, #18181e 60%, #080808 100%); }
.acc-panel-img--cholpon  { background: linear-gradient(145deg, #041828 0%, #0a2c48 60%, #041422 100%); }

/* Map */
.map-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d14;
}
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.map-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.map-note-top {
  font-size: 0.72rem;
  color: var(--grey);
}
.kyrgyzstan-map {
  width: 100%;
  height: auto;
  display: block;
  padding: 8px;
}
.map-bg { fill: #12121e; stroke: #2a2a3a; stroke-width: 1.5; }
.route-path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 7 3; stroke-linecap: round; }
.wp-start  { fill: var(--red); stroke: #fff; stroke-width: 2; }
.wp-finish { fill: var(--red); stroke: #fff; stroke-width: 2; }
.wp-mid    { fill: #444; stroke: #fff; stroke-width: 1.5; }
.wp-ref    { fill: #333; stroke: #777; stroke-width: 1; }
.wp-label  { fill: #fff; font-size: 11px; font-family: Inter, sans-serif; }
.wp-label-sm { fill: #aaa; font-size: 9.5px; font-family: Inter, sans-serif; }
.wp-sub    { fill: var(--grey); font-size: 8.5px; font-family: Inter, sans-serif; }
.wp-bold   { font-weight: 700; }
.wp-red    { fill: var(--red); }
.wp-grey   { fill: var(--grey); }
.wp-legend { fill: var(--grey); font-size: 9px; font-family: Inter, sans-serif; }
.lake-fill { fill: #0d2440; stroke: #1a4060; stroke-width: 1; opacity: 0.8; }
.lake-label { fill: #4a90c0; font-size: 9px; font-family: Inter, sans-serif; }
.route-legend-line { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 4 2; }
.map-rwgps-link {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
  transition: opacity var(--transition);
}
.map-rwgps-link:hover { opacity: 0.7; }

.rwgps-embed {
  display: block;
  width: 100%;
  height: 500px;
  border: none;
  background: var(--mid);
}

.map-note-bottom {
  padding: 10px 18px 12px;
  font-size: 0.72rem;
  color: var(--grey);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

/* ============================================================
   SPONSORS
   ============================================================ */
#sponsors { background: var(--dark3); }

.sponsor-featured {
  position: relative;
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  background: rgba(239,68,68,0.04);
}
.featured-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
}
.featured-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.featured-logo img,
.featured-logo .logo-text-fallback { height: 60px; width: auto; }
.featured-logo img { object-fit: contain; max-width: 200px; }
.featured-info { flex: 1; }
.featured-desc {
  font-size: 1.05rem;
  color: var(--grey-light);
  margin-bottom: 16px;
}
.featured-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.featured-links a {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  transition: opacity var(--transition);
}
.featured-links a:hover { opacity: 0.75; }

/* === Yesbalance Premium Sponsor Block === */
.yesbalance-featured {
  padding: 0;
  overflow: hidden;
  border-width: 2px;
}
.yesbalance-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}
.yesbalance-content {
  padding: 44px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.yesbalance-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 20px;
}
.yesbalance-logo-wrap img { height: 48px; width: auto; object-fit: contain; max-width: 220px; }
.yesbalance-logo-wrap .logo-text-fallback.large { font-size: 2rem; font-weight: 700; }
.yesbalance-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}

.yesbalance-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.btn-yesbalance {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 50px;
  transition: all var(--transition);
  width: fit-content;
  text-decoration: none;
}
.btn-yesbalance:hover { background: #cc1f1f; transform: translateY(-2px); }
.yesbalance-photo {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  background: #c0392b;
  overflow: hidden;
}
.yesbalance-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yesbalance-photo--hidden { display: none; }
.yesbalance-photo-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #111;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  padding: 10px 14px;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
/* Light theme adjustments for Yesbalance block */
[data-theme="light"] .yesbalance-featured { border-color: var(--red); }

/* Mobile: stack photo below content */
@media (max-width: 820px) {
  .yesbalance-inner { grid-template-columns: 1fr; }
  .yesbalance-photo { width: 100%; height: 220px; }
  .yesbalance-content { padding: 36px 24px 28px; }
}

/* === Section Header === */
.sponsors-header { text-align: center; margin-bottom: 40px; }
.sponsors-header h2 { margin-bottom: 10px; }
.sponsors-header p {
  color: var(--grey);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}
.red-line {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* === Yesbalance hero image + badge === */
.yesbalance-hero-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #2c0a0a;
  flex-shrink: 0;
}
.yesbalance-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.main-sponsor-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

/* === All Sponsors Grid === */
.all-sponsors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
/* Yesbalance main card spans both columns */
.sponsor-card--main {
  grid-column: 1 / -1;
  overflow: hidden;
}
/* Yesbalance: two-panel layout — content left, image right */
.yb-main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.yb-content-panel {
  background: #fff;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--radius) 0 0 var(--radius);
}
.yb-image-panel {
  position: relative;
  background: linear-gradient(145deg, #1a0505 0%, #2d0a0a 60%, #0d0303 100%);
  overflow: hidden;
}
.yb-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yb-main-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  z-index: 2;
}
.yb-ghost-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
}
.yb-logo {
  width: 300px;
  object-fit: contain;
}
.yb-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999;
}
.yb-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.5;
}
.yb-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
  flex: 1;
}
.sc-main-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sponsor-card-logo--lg {
  max-height: 105px;
  max-width: 375px;
  filter: none !important;
}
/* Mobile: stack panels */
@media (max-width: 700px) {
  .yb-main-layout { grid-template-columns: 1fr; }
  .yb-content-panel { border-radius: var(--radius) var(--radius) 0 0; }
  .yb-image-panel { min-height: 200px; }
}

.sponsor-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.sponsor-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  border-color: rgba(239,68,68,0.3);
}

/* Image wrapper */
.sponsor-card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sponsor-card-img-wrap--tb { background: linear-gradient(135deg, #0d0d0d 0%, #2a2a2a 100%); }
.sponsor-card-img-wrap--dg { background: linear-gradient(135deg, #0a1220 0%, #1c3050 100%); }
.sponsor-card-img-wrap--cs { background: linear-gradient(135deg, #081422 0%, #0c3870 100%); }
.sponsor-card-img-wrap--bp { background: linear-gradient(135deg, #1a0e00 0%, #3d1f00 100%); }

.sponsor-img-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.08);
  position: absolute;
  z-index: 1;
  user-select: none;
  text-align: center;
  padding: 0 16px;
}
.sponsor-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
  z-index: 2;
}
.sponsor-card:hover .sponsor-card-image { filter: grayscale(0%); }

/* Card body */
.sponsor-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: #fff;
}
.sponsor-card-logo {
  max-height: 75px;
  max-width: 225px;
  object-fit: contain;
  filter: grayscale(100%) invert(1);
  transition: filter 0.3s ease;
}
.sponsor-card:hover .sponsor-card-logo { filter: grayscale(0%); }
.sponsor-card-name {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin: 0;
}
.sponsor-card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 4px 0;
  flex: 1;
}
.sponsor-card-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.sponsor-card-link:hover { opacity: 0.75; text-decoration: underline; }
.sponsor-social-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.sponsor-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--grey-light);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sponsor-social-btn:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(239,68,68,0.1);
}
[data-theme="light"] .sponsor-social-btn { color: #555; border-color: #ddd; }
[data-theme="light"] .sponsor-social-btn:hover { color: var(--red); background: rgba(239,68,68,0.06); }

/* Mobile */
@media (max-width: 900px) {
  .yb-main-layout { grid-template-columns: 1fr; }
  .yb-content-panel { border-radius: var(--radius) var(--radius) 0 0; }
  .yb-image-panel { min-height: 200px; border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 600px) {
  .all-sponsors-grid { grid-template-columns: 1fr; }
}

/* Light mode */
[data-theme="light"] .sponsor-card { background: #ffffff; border-color: #e5e5e5; }
[data-theme="light"] .sponsor-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
[data-theme="light"] .yb-desc { color: #555; }


  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.sponsor-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  border-color: rgba(239,68,68,0.3);
}

/* Image wrapper — gradient always visible as fallback */
.sponsor-card-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sponsor-card-img-wrap--tb { background: linear-gradient(135deg, #0d0d0d 0%, #2a2a2a 100%); }
.sponsor-card-img-wrap--dg { background: linear-gradient(135deg, #0a1220 0%, #1c3050 100%); }
.sponsor-card-img-wrap--cs { background: linear-gradient(135deg, #081422 0%, #0c3870 100%); }
.sponsor-card-img-wrap--bp { background: linear-gradient(135deg, #1a0e00 0%, #3d1f00 100%); }

/* Large ghost brand name shown when no image is available */
.sponsor-img-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.08);
  position: absolute;
  z-index: 1;
  user-select: none;
  text-align: center;
  padding: 0 16px;
}
.sponsor-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
  z-index: 2;
}
.sponsor-card:hover .sponsor-card-image { filter: grayscale(0%); }

/* Card body */
.sponsor-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: #fff;
}
.sponsor-card-logo {
  max-height: 75px;
  max-width: 225px;
  object-fit: contain;
  filter: grayscale(100%) invert(1);
  transition: filter 0.3s ease;
}
.sponsor-card:hover .sponsor-card-logo { filter: grayscale(0%); }
.sponsor-card-name {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #999;
  margin: 0;
}
.sponsor-card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 4px 0;
  flex: 1;
}
.sponsor-card-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.sponsor-card-link:hover { opacity: 0.75; text-decoration: underline; }

/* === Become a Sponsor CTA === */
.become-sponsor {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.become-sponsor p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.btn-become-sponsor {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid var(--red);
  color: var(--red);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.btn-become-sponsor:hover {
  background: var(--red);
  color: #fff;
}

/* Light mode: cards use spec's exact white/grey palette */
[data-theme="light"] .sponsor-card { background: #ffffff; border-color: #e5e5e5; }
[data-theme="light"] .sponsor-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
[data-theme="light"] .sponsor-card-desc { color: #555; }
[data-theme="light"] .sponsor-card-name { color: #999; }
[data-theme="light"] .become-sponsor { border-top-color: #eee; }
[data-theme="light"] .become-sponsor p { color: #666; }
[data-theme="light"] .sponsors-header p { color: #888; }

@media (max-width: 900px) {
  .secondary-sponsors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .secondary-sponsors { grid-template-columns: 1fr; }
}

/* Spotlight */
.sponsor-spotlight {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 40px;
  background: var(--dark2);
}
.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.spotlight-header h3 { margin-bottom: 0; }
.spotlight-controls { display: flex; align-items: center; gap: 12px; }
.spotlight-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.spotlight-arrow:hover { border-color: var(--red); color: var(--red); }
.spotlight-dots { display: flex; gap: 8px; }
.spotlight-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition);
  border: none;
}
.spotlight-dot.active { background: var(--red); }
.spotlight-stage { position: relative; min-height: 120px; }
.spotlight-slide {
  display: none;
  align-items: center;
  gap: 40px;
}
.spotlight-slide.active { display: flex; }
.spotlight-slide-logo { flex-shrink: 0; }
.spotlight-slide-logo img {
  height: 64px;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.spotlight-slide-logo .logo-text-fallback { font-size: 1.8rem; }
.spotlight-slide-text { flex: 1; }
.spotlight-slide-text p {
  color: var(--grey-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sponsor-cta { text-align: center; }

/* ============================================================
   BLOG
   ============================================================ */
#blog { background: var(--dark); }
.blog-slider { position: relative; width: 100%; }
.blog-slider-viewport { overflow: hidden; width: 100%; }
.blog-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.blog-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.blog-slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--dark2);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.blog-slider-btn:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.blog-slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.blog-dots { display: flex; gap: 8px; align-items: center; }
.blog-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.blog-dot.active { background: var(--red); width: 24px; border-radius: 4px; }
[data-theme="light"] .blog-slider-btn { background: #fff; color: #111; }
.blog-card {
  flex: 0 0 var(--slider-card-w, 340px);
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark2);
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: rgba(239,68,68,0.3); transform: translateY(-4px); }
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--mid);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--border);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-date {
  font-size: 0.75rem;
  color: var(--grey);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.blog-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.blog-excerpt {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.blog-read-more {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-read-more::after { content: '\2192'; }
.blog-card:hover .blog-read-more { gap: 10px; }
.blog-read-more { cursor: pointer; background: none; border: none; padding: 0; font: inherit; }

/* Blog Article Modal */
.blog-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px 20px;
  overflow-y: auto;
}
.blog-modal-overlay[hidden] { display: none; }
.blog-modal-panel {
  position: relative;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%; max-width: 740px;
  padding: 48px 56px 64px;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.blog-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border);
  color: var(--grey-light); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), color var(--transition);
}
.blog-modal-close:hover { border-color: var(--red); color: var(--red); }
.blog-modal-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.blog-modal-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  background: rgba(239,68,68,0.12); padding: 3px 10px; border-radius: 20px;
}
.blog-modal-time { font-size: 0.8rem; color: var(--grey-light); }
.blog-modal-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 28px; }
.blog-modal-body { font-size: 1rem; line-height: 1.85; color: rgba(255,255,255,0.85); }
.blog-modal-body h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--white); margin: 36px 0 12px; }
.blog-modal-body p { margin-bottom: 18px; }
.blog-modal-body ul { margin: 0 0 18px 1.4em; padding: 0; }
.blog-modal-body ul li { margin-bottom: 6px; }
.blog-modal-body a { color: var(--red); text-decoration: underline; }
.blog-modal-body p em { font-style: italic; color: rgba(255,255,255,0.7); }
.blog-modal-body strong { color: var(--white); font-weight: 700; }
.blog-modal-body .post-sig { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--grey-light); font-style: italic; font-size: 0.9rem; }
.blog-modal-share-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  flex-shrink: 0;
}
.blog-share-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.blog-share-btn:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.06); }
.blog-share-btn--fb { border-color: #1877f2; color: #1877f2; }
.blog-share-btn--fb:hover { background: rgba(24,119,242,0.1); color: #1877f2; border-color: #1877f2; }
[data-theme="light"] .blog-share-btn { color: #333; }
[data-theme="light"] .blog-share-btn--fb { color: #1877f2; }
[data-theme="light"] .blog-modal-panel { background: #fff; }
[data-theme="light"] .blog-modal-body { color: rgba(0,0,0,0.8); }
[data-theme="light"] .blog-modal-body h2 { color: #111; }
[data-theme="light"] .blog-modal-body p em { color: rgba(0,0,0,0.6); }
[data-theme="light"] .blog-modal-body strong { color: #111; }
[data-theme="light"] .blog-modal-title { color: #111; }
@media (max-width: 768px) {
  .blog-modal-panel { padding: 40px 24px 48px; }
  .blog-modal-overlay { padding: 20px 12px; }
}

/* ============================================================
   SUPPORT
   ============================================================ */
#support { background: var(--dark2); }
.support-wall { margin-bottom: 80px; }
.support-form-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.supporter-form {
  margin-bottom: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--grey); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(239,68,68,0.04);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.char-count {
  font-size: 0.8rem;
  color: var(--grey);
}
.form-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 16px;
}
.recaptcha-note {
  font-size: 0.72rem;
  color: var(--grey);
  margin-top: 10px;
  text-align: right;
}
.ticker-pending {
  font-size: 0.75rem;
  color: var(--grey);
  font-style: italic;
  margin-left: 4px;
}
.supporter-list-item.pending { opacity: 0.8; }
.supporter-list-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  height: 380px;
  position: relative;
}
.supporter-list-wrap::before,
.supporter-list-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 48px;
  z-index: 2;
  pointer-events: none;
}
.supporter-list-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--dark2), transparent);
}
.supporter-list-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, var(--dark2), transparent);
}
[data-theme="light"] .supporter-list-wrap::before { background: linear-gradient(to bottom, #fff, transparent); }
[data-theme="light"] .supporter-list-wrap::after  { background: linear-gradient(to top,   #fff, transparent); }
#supporter-ticker {
  animation: supporter-scroll 22s linear infinite;
  will-change: transform;
}
#supporter-ticker:hover { animation-play-state: paused; }
@keyframes supporter-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.supporter-list-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red);
  background: var(--dark2);
  position: sticky;
  top: 0;
  z-index: 3;
  text-transform: uppercase;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.supporter-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.88rem;
  color: var(--grey-light);
  line-height: 1.45;
}
.supporter-list-item:last-child { border-bottom: none; }
.supporter-list-text { flex: 1; }
.ticker-flag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(239,68,68,0.12);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 3px;
  padding: 2px 5px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ticker-name { font-weight: 600; color: var(--white); }
.ticker-sep { color: var(--border); }

/* Donation */
.donation-section {
  border-radius: 16px;
  background: linear-gradient(135deg, #110808 0%, #1a0a0a 50%, #0d0d0d 100%);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.donation-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.donation-inner { position: relative; z-index: 1; }
.donation-inner h2 { margin-bottom: 16px; }
.donation-inner .section-sub { margin: 0 auto 36px; text-align: center; }
.donation-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.btn-donate-donably-wrap {
  display: flex;
  align-items: center;
}

/* ============================================================
   SOCIAL
   ============================================================ */
#social { background: var(--dark4); }
.instagram-section { text-align: center; }
.ig-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.ig-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(131,58,180,0.08) 0%, rgba(253,29,29,0.05) 50%, transparent 70%);
  pointer-events: none;
}
.ig-cta-icon { position: relative; z-index: 1; }
.ig-handle {
  font-family: var(--font-head);
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0;
  position: relative;
  z-index: 1;
}
.ig-cta-desc {
  font-size: 1rem;
  color: var(--grey-light);
  max-width: 480px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
[data-theme="light"] .ig-cta-card { background: #fafafa; border-color: #e5e5e5; }
[data-theme="light"] .ig-handle { color: #111; }
.social-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ============================================================
   LIVE
   ============================================================ */
.live-section {
  background: var(--dark);
  border-top: 1px solid rgba(239,68,68,0.15);
  border-bottom: 1px solid rgba(239,68,68,0.15);
  text-align: center;
}
#live-offline { padding: 20px 0; }
.live-lock-icon { font-size: 3rem; margin-bottom: 20px; opacity: 0.5; }
#live-offline h2 { margin-bottom: 12px; }
#live-offline .section-sub { margin: 0 auto 32px; }
#live-offline .countdown { justify-content: center; margin-bottom: 36px; }
.live-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
}
.live-embed {
  width: 100%;
  height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.live-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-size: 0.88rem; color: var(--grey); }
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--grey);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-end;
}
.footer-social a {
  color: var(--grey);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer-lang { display: flex; align-items: center; gap: 8px; }
.footer-lang span { color: rgba(255,255,255,0.2); font-size: 0.85rem; }
.footer-copy { font-size: 0.9rem; color: var(--grey); }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal a { font-size: 0.9rem; color: var(--grey); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }
.footer-legal span { color: var(--border); }

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid  { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .race-grid   { grid-template-columns: 1fr; }
  .hero-headline { font-size: clamp(3.5rem, 8vw, 6rem); }
  .hero-left   { width: 55%; padding: calc(var(--nav-h) + 40px) 48px 60px 64px; }
  .featured-inner { flex-direction: column; gap: 24px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  /* Nav mobile */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: calc(var(--nav-h) + 16px) 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li::before { display: none; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-right { gap: 8px; }
  .lang-switcher { gap: 4px; }
  .lang-btn { font-size: 0.75rem; }

  /* Hero mobile: starts below fixed nav */
  #hero { margin-top: var(--nav-h); }
  .hero-split { min-height: calc(100vh - var(--nav-h)); }
  .hero-left {
    width: 100%;
    padding: 40px 24px 48px;
    min-height: calc(100vh - var(--nav-h));
  }
  .hero-headline { font-size: clamp(3.2rem, 14vw, 5rem); }
  .cd-num { font-size: 2.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { justify-content: center; }

  /* About */
  .stat-cards { grid-template-columns: 1fr 1fr; }

  /* Race */
  .facts-grid { grid-template-columns: 1fr; }
  .facts-tab-btn { font-size: 0.88rem; padding: 7px 8px; }
  .route-section { margin-top: 36px; }
  .accordion-panel { padding: 0 16px 16px 16px; }
  .acc-panel-inner { grid-template-columns: 1fr; }

  /* Sponsors */
  .sponsors-grid { grid-template-columns: 1fr; gap: 16px; }
  .sponsor-featured { padding: 28px 24px; }
  .spotlight-slide { flex-direction: column; gap: 20px; }
  .yb-content-panel { padding: 24px; }
  .all-sponsors-grid { grid-template-columns: 1fr; }

/* Support */
  .support-form-layout { grid-template-columns: 1fr; }
  .supporter-list-wrap { height: 240px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: flex-start; }
  .donation-section { padding: 40px 20px; }
  .donation-buttons { flex-direction: column; align-items: stretch; }
  .donation-buttons a { justify-content: center; }
  .btn-donate-donably-wrap { justify-content: center; }

  /* Social */
  .ig-grid-placeholder { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Live */
  .live-cta-buttons { flex-direction: column; align-items: stretch; }
  .live-cta-buttons a { justify-content: center; }

  /* Back to top */
  #back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .stat-cards { grid-template-columns: 1fr; }
  .countdown  { gap: 4px; }
  .cd-sep     { display: none; }
  .hero-left  { padding-bottom: 40px; }

  /* Hide km labels in accordion buttons — too tight on small phones */
  .acc-desc { display: none; }

  /* Headings */
  h2 { margin-bottom: 24px; }
  h3 { font-size: 1.5rem; }

  /* Smaller section intro text */
  .section-sub { font-size: 0.95rem; }
  .race-intro  { font-size: 0.95rem; }

  /* Sponsor cards always single col */
  .all-sponsors-grid { grid-template-columns: 1fr; }
  .yb-main-layout { grid-template-columns: 1fr; }
  .yb-content-panel { padding: 20px; }
  .yb-image-panel { min-height: 180px; }

  /* Accordion */
  .accordion-btn { padding: 12px 14px; gap: 8px; }
  .accordion-panel { padding: 0 14px 14px; }
}

/* ============================================================
   THEME TOGGLE — ICON VISIBILITY
   ============================================================ */
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --dark:       #ffffff;
  --dark2:      #f5f5f5;
  --dark3:      #efefef;
  --dark4:      #fafafa;
  --mid:        #e2e2e2;
  --border:     #d0d0d0;
  --grey:       #888888;
  --grey-light: #444444;
  --white:      #111111;
}

/* Navbar */
[data-theme="light"] #navbar {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(0,0,0,0.08);
}
/* Light mode: invert makes it black-on-white, multiply blends white bg away → black logo */
[data-theme="light"] #navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.1);
}
[data-theme="light"] .nav-links a    { color: rgba(0,0,0,0.6); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: #111111; }
[data-theme="light"] .nav-links li + li::before { color: rgba(0,0,0,0.18); }
[data-theme="light"] .lang-sep  { color: rgba(0,0,0,0.2); }
[data-theme="light"] .lang-btn  { color: rgba(0,0,0,0.45); }
[data-theme="light"] .lang-btn:hover,
[data-theme="light"] .lang-btn.active { color: #111111; }
[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.5);
}
[data-theme="light"] .theme-toggle:hover { border-color: var(--red); color: var(--red); }
[data-theme="light"] .hamburger span { background: #111111; }
[data-theme="light"] .nav-links {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--border);
}

/* Preloader */
[data-theme="light"] #preloader { background: #ffffff; }

/* Hero */
[data-theme="light"] .hero-left  { background: transparent; }
[data-theme="light"] .hero-right-fade {
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.88) 18%,
    rgba(255,255,255,0.72) 32%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.18) 68%,
    rgba(255,255,255,0.06) 85%,
    transparent 100%
  );
}
[data-theme="light"] .hero-right-tint { background: rgba(255,255,255,0.12); }
[data-theme="light"] .hero-headline .line-white { color: #111; }
[data-theme="light"] .hero-sub { color: #333; }
[data-theme="light"] .scroll-arrow {
  border-right-color: rgba(0,0,0,0.2);
  border-bottom-color: rgba(0,0,0,0.2);
}
[data-theme="light"] .hero-badge {
  border-color: rgba(239,68,68,0.35);
}

/* Logo fallback text */
[data-theme="light"] .logo-text-fallback { color: #111111; }
[data-theme="light"] .logo-text-fallback.white { color: #ffffff; }

/* Stat cards */
[data-theme="light"] .stat-card { background: rgba(239,68,68,0.03); }

/* Facts grid */
[data-theme="light"] .fact-item { background: #fff; border-color: #e8e8e8; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
[data-theme="light"] .fact-text strong { color: #888; }
[data-theme="light"] .fact-text span   { color: #111; }

/* Accordion */
[data-theme="light"] .accordion { border-color: var(--border); }
[data-theme="light"] .accordion-item + .accordion-item { border-top-color: var(--border); }
[data-theme="light"] .accordion-btn { color: #111111; }
[data-theme="light"] .accordion-btn:hover { background: rgba(0,0,0,0.03); }
[data-theme="light"] .accordion-btn[aria-expanded="true"] { background: rgba(239,68,68,0.05); }
[data-theme="light"] .accordion-panel { color: #444; }

/* Map */
[data-theme="light"] .map-container { background: #eeeef8; border-color: var(--border); }
[data-theme="light"] .map-header     { border-bottom-color: var(--border); }
[data-theme="light"] .map-note-bottom { border-top-color: var(--border); color: #888; }
[data-theme="light"] .map-bg   { fill: #dddde8; stroke: #b0b0c8; }
[data-theme="light"] .wp-label { fill: #111; }
[data-theme="light"] .wp-sub   { fill: #666; }
[data-theme="light"] .wp-ref   { fill: #888; stroke: #aaa; }
[data-theme="light"] .wp-legend { fill: #888; }
[data-theme="light"] .lake-fill  { fill: #a8ccdf; stroke: #6090b0; }
[data-theme="light"] .lake-label { fill: #2060a0; }

/* Sponsor featured */
[data-theme="light"] .sponsor-featured { background: rgba(239,68,68,0.03); }

/* Sponsor cards */
[data-theme="light"] .sponsor-card { background: rgba(0,0,0,0.01); }
/* Light mode: logos dark (no invert), hover shows full color */
[data-theme="light"] .sponsor-card-logo { filter: grayscale(100%); }
[data-theme="light"] .sponsor-card:hover .sponsor-card-logo { filter: grayscale(0%); }
[data-theme="light"] .sponsor-logo-wrap img {
  filter: grayscale(1) brightness(0.4);
}
[data-theme="light"] .sponsor-card:hover .sponsor-logo-wrap img {
  filter: grayscale(0) brightness(1);
}

/* Sponsor spotlight */
[data-theme="light"] .sponsor-spotlight { background: #f0f0f0; border-color: var(--border); }
[data-theme="light"] .spotlight-arrow { border-color: var(--border); color: #111; }
[data-theme="light"] .spotlight-dot   { background: #ccc; }
[data-theme="light"] .spotlight-slide-logo img { filter: none; }
[data-theme="light"] .spotlight-slide-text p   { color: #444; }

/* Blog cards */
[data-theme="light"] .blog-card { background: #ffffff; border-color: var(--border); }
[data-theme="light"] .blog-card-img { background: #e8e8e8; }
[data-theme="light"] .blog-card-img-placeholder { color: #ccc; }
[data-theme="light"] .blog-excerpt { color: #555; }
[data-theme="light"] .blog-date    { color: #999; }

/* Support form */
[data-theme="light"] .form-field input,
[data-theme="light"] .form-field textarea {
  background: rgba(0,0,0,0.03);
  border-color: var(--border);
  color: #111111;
}
[data-theme="light"] .form-field input::placeholder,
[data-theme="light"] .form-field textarea::placeholder { color: #aaa; }
[data-theme="light"] .form-field input:focus,
[data-theme="light"] .form-field textarea:focus {
  border-color: var(--red);
  background: rgba(239,68,68,0.03);
}
[data-theme="light"] #support { background: #fff; }
[data-theme="light"] .supporter-list-wrap { background: rgba(0,0,0,0.02); border-color: #e5e5e5; }
[data-theme="light"] .supporter-list-label { background: #fff; }
[data-theme="light"] .supporter-list-item { border-color: rgba(0,0,0,0.05); color: #555; }
[data-theme="light"] .ticker-name { color: #111; }
[data-theme="light"] .ticker-flag { background: var(--red); color: #fff; border-color: var(--red); }

/* Donation section — neutral background in light mode (no pink) */

[data-theme="light"] .donation-section {
  background: #ffffff;
  border-color: #e8e8e8;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .donation-section::before {
  background: radial-gradient(circle, rgba(239,68,68,0.04) 0%, transparent 70%);
}
[data-theme="light"] .donation-section h2,
[data-theme="light"] .donation-section p { color: #111; }

/* Live section */
[data-theme="light"] .live-embed { border-color: var(--border); }

/* Footer stays dark in light mode */
[data-theme="light"] #footer { background: #111111; }
[data-theme="light"] #footer,
[data-theme="light"] #footer h2,
[data-theme="light"] #footer a,
[data-theme="light"] #footer p,
[data-theme="light"] #footer span { color: inherit; }
[data-theme="light"] #footer .footer-bottom { border-top-color: #333; }
[data-theme="light"] #footer .footer-top    { border-bottom-color: #333; }
[data-theme="light"] #footer .footer-copy,
[data-theme="light"] #footer .footer-tagline,
[data-theme="light"] #footer .footer-nav a,
[data-theme="light"] #footer .footer-social a,
[data-theme="light"] #footer .footer-legal a { color: #888; }
[data-theme="light"] #footer .footer-nav a:hover,
[data-theme="light"] #footer .footer-social a:hover,
[data-theme="light"] #footer .footer-legal a:hover { color: #fff; }
[data-theme="light"] #footer .footer-lang .lang-btn { color: rgba(255,255,255,0.45); }
[data-theme="light"] #footer .footer-lang .lang-btn:hover,
[data-theme="light"] #footer .footer-lang .lang-btn.active { color: #fff; }
[data-theme="light"] #footer .footer-lang span { color: rgba(255,255,255,0.2); }
[data-theme="light"] #footer .footer-legal span { color: #444; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lb-content {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lb-in 0.18s ease;
}
@keyframes lb-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-img {
  max-width: 100%;
  max-height: calc(92vh - 56px);
  object-fit: contain;
  border-radius: 10px;
  display: block;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.lb-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
}
.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.22); }

/* Zoom hint overlay on route images */
.acc-panel-img[data-lb-src] {
  cursor: zoom-in;
  position: relative;
}
.lb-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.lb-zoom-hint svg { width: 16px; height: 16px; }
.acc-panel-img[data-lb-src]:hover .lb-zoom-hint { opacity: 1; }
.acc-panel-img[data-lb-src]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================
   NEWS / EVENTS SECTION
   ============================================================ */
.news-section { padding: 60px 0 40px; }

.news-card {
  background: var(--dark2);
  border: 1px solid var(--mid);
  border-radius: 16px;
  padding: 32px;
  margin: 40px auto 0;
}
[data-theme="light"] .news-card {
  background: #fff;
  border-color: #e0e0e0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.news-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.news-card-date {
  font-size: 14px;
  color: var(--muted);
}

.news-event-name {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--fg);
}
.news-event-desc {
  color: var(--muted);
  margin-bottom: 28px;
}

.news-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}
@media (max-width: 700px) {
  .news-body-grid { grid-template-columns: 1fr; }
}

.news-route-panel {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  border-radius: 10px;
  border: 1px solid var(--mid);
  overflow: hidden;
}
[data-theme="light"] .news-route-panel {
  background: #f5f5f5;
}

.news-route-event-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--mid);
}
.news-route-event-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 8px;
}
.news-route-event-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.news-route-event-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.news-route-event-row svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.news-route-stats {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.news-route-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-route-stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--muted);
}
.news-route-stat-icon--up   { color: #27ae60; }
.news-route-stat-icon--down { color: #e74c3c; }
.news-route-stat-icon--dist { color: var(--muted); }
.news-route-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg);
  flex: 1;
}
.news-route-stat-val small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.news-route-stat-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.news-elevation-wrap {
  padding: 10px 14px 6px;
  border-top: 1px solid var(--mid);
  background: var(--dark2);
}
[data-theme="light"] .news-elevation-wrap { background: #ebebeb; }

.news-elevation-svg {
  width: 100%;
  height: 80px;
  display: block;
  color: var(--fg);
}
.news-elevation-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.news-tracking-preview {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--mid);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-tracking-preview:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.news-tracking-map-bg {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: url('/images/brm300-sibiu-map.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.news-tracking-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  transition: background 0.2s;
}
.news-tracking-preview:hover .news-tracking-overlay {
  background: rgba(0, 0, 0, 0.18);
}
.news-tracking-open-label {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--red);
  padding: 14px 36px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: background 0.2s, transform 0.2s;
}
.news-tracking-preview:hover .news-tracking-open-label {
  background: #c0392b;
  transform: scale(1.04);
}

.news-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-tracking {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-tracking:hover { background: #c0392b; transform: translateY(-2px); }
.btn-fb-event {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--mid);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-fb-event:hover { border-color: var(--fg); transform: translateY(-2px); }

@media (max-width: 600px) {
  .news-tracking-map-bg { min-height: 200px; }
  .news-card { padding: 20px; }
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
  #navbar, #preloader, #back-to-top,
  .hero-ctas, .sponsor-cta, .supporter-form,
  .donation-buttons, .social-buttons, .live-section,
  .supporter-list-wrap, #footer .footer-lang,
  .hero-scroll-hint, .hamburger { display: none !important; }

  body { background: #fff !important; color: #000 !important; }
  h1, h2, h3 { color: #000 !important; }
  .hero-headline .line-red,
  .section-label,
  .stat-num,
  .cd-num { color: #cc0000 !important; }
  .section { padding: 40px 0 !important; }
  #hero { min-height: auto !important; }
  .hero-split { grid-template-columns: 1fr !important; }
  .hero-right { display: none !important; }
  .hero-left { padding: 24px 0 !important; background: #fff !important; }
  .about-grid,
  .race-grid { grid-template-columns: 1fr !important; }
  .sponsors-grid { grid-template-columns: repeat(2, 1fr) !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
  a[href^="#"]::after { content: ""; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
