/* ===== HASANDAĞI ULTRA TRAIL - V6 (Cinematic Animations & Editorial) ===== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Editorial Palette: Raw, natural, matte */
  --bg-body: #F5F5F3;
  --bg-card: #FFFFFF;
  --text-dark: #111111;
  --text-light: #666666;
  --border-color: #E0E0E0;
  
  --primary: #152E22;
  --primary-color: var(--primary);
  --accent: #B23A2B;
  
  --race-45k: #8B1E16;
  --race-27k: #1B5E55;
  --race-16k: #194C70;
  --race-5k: #C28B21;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== CINEMATIC KEYFRAMES ===== */

/* Hero text clip-path reveal from below */
@keyframes heroRevealUp {
  from {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* Hero background slow zoom out */
@keyframes heroZoomOut {
  from { transform: scale(1.15); }
  to   { transform: scale(1); }
}

/* Staggered slide down for header items */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button shine sweep */
@keyframes shineEffect {
  0%   { left: -100%; }
  20%  { left: 120%; }
  100% { left: 120%; }
}

/* Floating badge pulse */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Panel content slide up on load */
@keyframes panelContentUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Countdown number tick animation */
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Parallax-like slow drift for watermark */
@keyframes watermarkDrift {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(1deg); }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 1rem;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1300px; /* Slightly tighter for editorial readibility */
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

/* --- Background Watermark --- */
.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 20vw;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
  animation: watermarkDrift 20s ease-in-out infinite alternate;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.4s var(--ease-out-expo),
              background 0.3s ease,
              border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Top Bar Styling */
.top-bar {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, padding 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.header.scrolled .top-bar {
  background: var(--text-dark);
  border-bottom: none;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 36px;
  gap: 24px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.lang-switch, .social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.lang-switch a.active, .social-links a:hover, .lang-switch a:hover {
  color: #fff;
}

.lang-switch .sep {
  opacity: 0.3;
}

.social-links a {
  transition: color 0.3s ease;
}

.header.scrolled .top-bar-inner a {
  color: rgba(255, 255, 255, 0.7);
}
.header.scrolled .top-bar-inner a:hover, .header.scrolled .top-bar-inner a.active {
  color: #fff;
}

/* Smart Header: hide on scroll down */
.header.header-hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Added slight shadow instead of blur for separation */
}

/* We don't shrink padding heavily on scroll, but adjust main header */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  transition: padding 0.3s ease;
}

.header.scrolled .header-main {
  padding: 16px 40px;
}

/* Staggered header item entrance */
.header .logo {
  opacity: 0;
  animation: slideDown 0.6s var(--ease-out-expo) 0.2s forwards;
}

.header .nav-links a:nth-child(1) { opacity: 0; animation: slideDown 0.5s var(--ease-out-expo) 0.35s forwards; }
.header .nav-links a:nth-child(2) { opacity: 0; animation: slideDown 0.5s var(--ease-out-expo) 0.40s forwards; }
.header .nav-links a:nth-child(3) { opacity: 0; animation: slideDown 0.5s var(--ease-out-expo) 0.45s forwards; }
.header .nav-links a:nth-child(4) { opacity: 0; animation: slideDown 0.5s var(--ease-out-expo) 0.50s forwards; }
.header .nav-links a:nth-child(5) { opacity: 0; animation: slideDown 0.5s var(--ease-out-expo) 0.55s forwards; }

.header .btn-primary {
  opacity: 0;
  animation: slideDown 0.5s var(--ease-out-expo) 0.65s forwards;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", "Arial", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-dark);
  letter-spacing: -0.2px;
  text-transform: none;
}

.logo .icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.logo-icon {
  flex-shrink: 0;
  display: block;
}

/* Arka zirve: yarı saydam ana renk */
.logo-icon .mt-back  { fill: var(--primary, #2a7d4f); opacity: 0.45; }
/* Ön zirve: tam ana renk */
.logo-icon .mt-front { fill: var(--primary, #2a7d4f); }

/* Transparan header (hero üstünde): beyaz dağ */
.header.transparent-mode .logo-icon .mt-back,
.header.transparent-mode .logo-icon .mt-front { fill: #fff; }

/* Scrolled header (beyaz bg üstünde): yeşil dağ */
.header.scrolled .logo-icon .mt-back,
.header.scrolled .logo-icon .mt-front { fill: var(--primary, #2a7d4f); }

/* Footer: beyaz dağ */
.footer .logo-icon .mt-back,
.footer .logo-icon .mt-front { fill: #fff; }

.header.transparent-mode .logo,
.header.transparent-mode .nav-links a {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.header.scrolled .logo,
.header.scrolled .nav-links a {
  color: var(--text-dark);
  text-shadow: none;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  color: var(--text-dark);
  transition: transform 0.3s ease;
  z-index: 101;
}

.header.transparent-mode .mobile-menu-btn {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 30px; /* Tighter gap to fit more items */
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  position: relative;
}

/* Animated underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--accent) !important;
}

.nav-links .mobile-register-link {
  display: none;
}

.nav-links .nav-link {
  text-align: center;
  white-space: nowrap;
}

.nav-links .nav-link.active::after,
.nav-mega.open .nav-mega-trigger::after {
  width: 100%;
}

.nav-links .nav-link.active,
.nav-mega.open .nav-mega-trigger {
  color: var(--accent) !important;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-mega-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.nav-mega-panel {
  position: absolute;
  top: calc(100% + 28px);
  left: 50%;
  z-index: 300;
  width: min(760px, calc(100vw - 80px));
  display: grid;
  grid-template-columns: 0.82fr 1.45fr;
  gap: 24px;
  padding: 24px;
  background: rgba(17, 17, 17, 0.985);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nav-mega:hover .nav-mega-panel,
.nav-mega:focus-within .nav-mega-panel,
.nav-mega.open .nav-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-copy {
  border-right: 1px solid rgba(255,255,255,0.12);
  padding-right: 22px;
}

.mega-copy span,
.mega-race span {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.mega-copy span {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.mega-copy strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mega-copy p,
.mega-race p {
  color: rgba(255,255,255,0.68);
  font-size: 0.78rem;
  line-height: 1.55;
}

.mega-copy a {
  display: inline-block;
  margin-top: 18px;
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.42);
  padding-bottom: 5px;
}

.mega-race-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mega-race {
  min-height: 132px;
  padding: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.mega-race::after,
.mega-copy a::after {
  display: none;
}

.mega-race:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.mega-race span {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.mega-race strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

/* Editorial Buttons: Flat, sharp + Shine Effect */
.btn-primary {
  background: var(--text-dark);
  color: #fff !important;
  padding: 12px 32px;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid var(--text-dark);
  cursor: pointer;
  text-shadow: none !important;
  position: relative;
  overflow: hidden;
}

/* Repeating shine sweep on CTA button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shineEffect 4s ease-in-out infinite;
  pointer-events: none;
}

.btn-primary:hover {
  background: #fff;
  color: var(--text-dark) !important;
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  animation: none;
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  border-radius: 2px; /* Sharp */
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: #fff;
}

/* --- Split Hero --- */
.split-hero {
  height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
  background: #111;
}

.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.hero-overlay-text h1 {
  font-family: "Inter", "Arial", "Helvetica Neue", sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  color: #fff;
  text-transform: none;
  letter-spacing: -0.6px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  line-height: 1.08;
  padding-top: 0.12em;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-weight: 900;
  /* Cinematic clip-path reveal from bottom */
  opacity: 0;
  animation: heroRevealUp 1.2s var(--ease-out-expo) 0.6s forwards;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 12px;
  font-weight: 400;
  opacity: 0;
  animation: heroRevealUp 1.2s var(--ease-out-expo) 1s forwards;
}

.hero-overlay-text .date {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  /* Delayed reveal after the title */
  opacity: 0;
  animation: heroRevealUp 0.8s var(--ease-out-expo) 1.4s forwards;
}

.split-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.05); /* Very subtle separator */
  will-change: flex;
}

.split-panel:last-child { border-right: none; }

.split-panel:hover {
  flex: 1.6;
}

.panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  will-change: transform;
  /* filter removed for performance */
  /* Cinematic zoom-out on page load */
  animation: heroZoomOut 2.5s var(--ease-out-expo) forwards;
}

.split-panel:hover .panel-bg {
  transform: scale(1.05);
}

.panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.5) 100%);
  transition: opacity 0.4s ease;
  opacity: 0.85;
}

.split-panel:hover .panel-overlay {
  opacity: 1;
}

.panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  /* Staggered entrance per panel */
  opacity: 0;
  animation: panelContentUp 0.8s var(--ease-out-expo) forwards;
}

/* Stagger each panel's content reveal */
.split-panel:nth-child(2) .panel-content { animation-delay: 1.0s; }
.split-panel:nth-child(3) .panel-content { animation-delay: 1.15s; }
.split-panel:nth-child(4) .panel-content { animation-delay: 1.3s; }
.split-panel:nth-child(5) .panel-content { animation-delay: 1.45s; }

.panel-badge {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: floatBadge 3s ease-in-out infinite;
}

.split-panel:nth-child(3) .panel-badge { animation-delay: 0.5s; }
.split-panel:nth-child(4) .panel-badge { animation-delay: 1.0s; }
.split-panel:nth-child(5) .panel-badge { animation-delay: 1.5s; }

.split-panel:hover .panel-badge {
  transform: translateY(-10px);
  animation-play-state: paused;
}

.race-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.panel-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.panel-stats {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.split-panel:hover .panel-stats {
  opacity: 1;
  transform: translateY(0);
}

/* --- Countdown Bar (Minimalist) --- */
.cd-bar {
  background: #111; /* Anthracite */
  padding: 40px 0;
  color: #fff;
  border-top: 1px solid #333;
}

.cd-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.cd-item {
  text-align: center;
}

.cd-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  transition: transform 0.3s ease;
}

/* Subtle tick when countdown updates */
.cd-num.tick {
  animation: countPulse 0.4s ease;
}

.cd-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-top: 12px;
  color: var(--text-light);
}

/* --- Intro Section --- */
.intro {
  padding: 120px 0;
  background: var(--bg-body);
  text-align: center;
}

.intro .container {
  max-width: 800px; /* Narrower column for editorial reading */
}

.intro-tag {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.7rem;
  margin-bottom: 24px;
  display: block;
}

.intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 40px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro p {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 50px;
  font-weight: 400;
}

/* --- ULUDAĞ STYLE: DETAILED RACE CARDS (Flat/Raw) --- */
.race-details {
  padding: 60px 0 120px;
  background-color: var(--bg-body);
}

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

.section-header-center h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-top: 10px;
  text-transform: uppercase;
  font-weight: 900;
}

.race-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.race-detail-card {
  background: var(--bg-card);
  border-radius: 0px; /* Sharp corners */
  border: 1px solid var(--border-color); /* Subtle border instead of shadow */
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.race-detail-card:hover {
  border-color: var(--text-dark); /* Sharp contrast on hover */
}

.rdc-image {
  position: relative;
  height: 280px;
  border-bottom: 1px solid var(--border-color);
}

.rdc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) grayscale(10%); /* slightly raw look */
}

.rdc-badge {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 100px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none; /* Removed white border for flatter look */
  z-index: 2;
}

.rdc-badge-elev {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.rdc-badge-name {
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.rdc-badge-dist {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1;
}

.rdc-badge-dist small {
  font-size: 0.6rem;
}

.rdc-body {
  padding: 60px 30px 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rdc-body h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.rdc-body h3 small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 8px;
  letter-spacing: 2px;
}

.rdc-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.rdc-schedule {
  font-size: 0.85rem !important;
  color: var(--text-dark) !important;
  background: var(--bg-body); /* Flat gray background */
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 0px; /* Sharp */
  margin-top: auto; 
  margin-bottom: 30px !important;
  font-weight: 500;
}

.rdc-terrain {
  margin-bottom: 30px;
}

.terrain-bar {
  display: flex;
  height: 6px; /* Thinner */
  border-radius: 0px;
  overflow: hidden;
  margin-bottom: 15px;
}

.terrain-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.terrain-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terrain-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 0; /* Square indicators instead of circles */
}

.rdc-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.rdc-actions a {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 0.75rem;
}

.btn-outline-sm {
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  background: var(--text-dark);
  color: #fff;
}

.rdc-itra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.itra-dist {
  background: var(--bg-body);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 2px; /* Sharp */
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.itra-mount {
  font-size: 1.2rem;
  filter: grayscale(100%); /* Desaturate emoji */
}

.itra-badge {
  background: var(--text-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: 2px; /* Sharp */
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 0.8rem;
}

.itra-badge strong {
  color: #fff; /* Removed yellow, kept it minimal */
}


/* --- KAPADOKYA STYLE: CONTENT GRID (Editorial Flat) --- */
.content-grid-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.cg-row-1 {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* About Card */
.cg-about {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cg-about-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(20%);
}

.cg-about-body {
  padding: 40px 30px;
}

.cg-tag {
  background: var(--text-dark);
  color: #fff;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cg-about-body h3 {
  margin: 20px 0 15px;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.cg-about-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Video */
.cg-video {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #000;
}

.cg-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.cg-video-wrapper:hover img {
  opacity: 0.4;
}

.cg-play-btn {
  position: absolute;
  cursor: pointer;
  transition: transform 0.3s;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cg-play-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 5px; /* Visual center for play icon */
  fill: #fff;
}

.cg-video-wrapper:hover .cg-play-btn {
  transform: scale(1.1);
  background: #fff;
}

.cg-video-wrapper:hover .cg-play-btn svg {
  fill: #000;
}

.cg-video-title {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Row 2 */
.cg-row-2 {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
}

/* Info Sidebar */
.cg-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cg-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-body);
  padding: 25px;
  border-radius: 0;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
}

.cg-info-item:hover {
  border-color: var(--text-dark);
}

.cg-info-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0; /* Sharp */
  border: 1px solid var(--border-color);
}

.cg-info-tag {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

.cg-info-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cg-info-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Leaderboard */
.cg-leaderboard {
  background: var(--bg-card);
  border-radius: 0;
  padding: 0; /* Removed padding for flatter integration */
}

.lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--text-dark);
}

.lb-header h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 900;
}

.lb-see-all {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.lb-see-all:hover {
  opacity: 0.6;
}

.lb-tabs {
  display: flex;
  gap: 0; /* Flush tabs */
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.lb-tab, .lb-tab-rec {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin-bottom: -1px; /* Overlap border */
}

.lb-tab.active, .lb-tab-rec.active {
  color: var(--text-dark);
  border-bottom-color: var(--text-dark);
}

.lb-content, .lb-rec-content {
  display: none;
  animation: fadeIn 0.4s;
}

.lb-content.active, .lb-rec-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-content h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-light);
  margin: 40px 0 15px;
  text-transform: uppercase;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lb-table th {
  text-align: left;
  padding: 15px 10px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
}

.lb-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 400;
  color: var(--text-light);
}

.lb-table td:nth-child(3) { /* Runner Name */
  color: var(--text-dark);
  font-weight: 600;
}

.lb-table tr:hover td {
  background: var(--bg-body);
}

.lb-records {
  margin-top: 80px;
}

.lb-records h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* --- Info Cards (Editorial Style) --- */
.info-section {
  padding: 100px 0;
  background: var(--bg-body);
  border-top: 1px solid var(--border-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background: var(--bg-card);
  padding: 50px 40px;
  border-radius: 0;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
}

.info-card:hover {
  border-color: var(--text-dark);
}

.info-card .icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 30px;
  filter: grayscale(100%);
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-card a {
  color: var(--text-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 2px;
}

.info-card a:hover { opacity: 0.6; }

/* --- Masonry Gallery --- */
.gallery-section {
  padding: 100px 0;
  background: #111;
  color: #fff;
}

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

.gallery-section .section-header h2 { 
  color: #fff; 
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 20px; /* Wider gaps for editorial look */
}

.gallery-item {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: #222;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.gallery-item:hover img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* --- Footer --- */
.footer {
  background: #0A0A0A; /* Deepest black */
  color: rgba(255,255,255,0.6);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer .logo { 
  color: #fff; 
  margin-bottom: 25px; 
  font-size: 1.2rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.footer-col ul li { margin-bottom: 15px; font-size: 0.9rem; }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-bottom p { margin:0; white-space:nowrap; }
body.fresh-page .footer .footer-bottom a { display:inline; margin-bottom:0; }

/* ===== SCROLL-REVEAL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out-expo);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered fade-up for grid children */
.race-detail-card.fade-up:nth-child(1) { transition-delay: 0s; }
.race-detail-card.fade-up:nth-child(2) { transition-delay: 0.15s; }
.race-detail-card.fade-up:nth-child(3) { transition-delay: 0.3s; }

.info-card.fade-up:nth-child(1) { transition-delay: 0s; }
.info-card.fade-up:nth-child(2) { transition-delay: 0.1s; }
.info-card.fade-up:nth-child(3) { transition-delay: 0.2s; }

.gallery-item.fade-up:nth-child(1) { transition-delay: 0s; }
.gallery-item.fade-up:nth-child(2) { transition-delay: 0.08s; }
.gallery-item.fade-up:nth-child(3) { transition-delay: 0.16s; }
.gallery-item.fade-up:nth-child(4) { transition-delay: 0.24s; }
.gallery-item.fade-up:nth-child(5) { transition-delay: 0.32s; }

/* Hover lift for interactive cards */
.race-detail-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.race-detail-card:hover {
  border-color: var(--text-dark);
  transform: translateY(-4px);
}

.info-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
  border-color: var(--text-dark);
  transform: translateY(-4px);
}

/* --- Sub-Hero Banner --- */
.sub-hero {
  position: relative;
  height: 45vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.sub-hero .container {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 60px; /* Offset for header */
}

.sub-hero h1 {
  font-family: var(--font-body);
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  text-transform: uppercase;
}

.sub-hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* =========================================================
   FRESH PAGE (Subpages Premium Day Aesthetics)
   ========================================================= */
body.fresh-page {
  background-color: #F9FAF9; /* Soft off-white */
  color: #111111;
}

body.fresh-page .watermark {
  color: rgba(27, 67, 50, 0.03); /* Faint green watermark */
}

body.fresh-page .race-detail-card,
body.fresh-page .info-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 10px 30px rgba(27, 67, 50, 0.04);
  color: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.fresh-page .card-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.fresh-page .card-content {
  padding: 40px;
}

body.fresh-page .race-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

body.fresh-page .race-detail-card:hover,
body.fresh-page .info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(27, 67, 50, 0.08);
}

body.fresh-page .info-card {
  padding: 50px 40px;
  text-align: center;
}

body.fresh-page .info-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #1B4332;
}

body.fresh-page .info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #111;
}

body.fresh-page .info-card p {
  color: #555;
}

body.fresh-page .race-header h3 {
  color: #111;
  margin-bottom: 0;
}

body.fresh-page .race-header h3 .light {
  color: #666;
}

body.fresh-page .itra-badge {
  background: #1B4332; /* Pine Green */
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.fresh-page .stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.fresh-page .stat {
  display: flex;
  flex-direction: column;
}

body.fresh-page .stat .label {
  font-size: 0.65rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

body.fresh-page .stat .value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #1B4332;
}

body.fresh-page .btn-outline {
  color: #1B4332;
  border: 1px solid #1B4332;
  text-align: center;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
}

body.fresh-page .btn-outline:hover {
  background: #1B4332;
  color: #fff;
}

body.fresh-page .sub-hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

body.fresh-page .sub-hero h1,
body.fresh-page .sub-hero p {
  color: #fff !important;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

body.fresh-page .footer {
  background: #111; /* Keep footer dark for contrast */
  color: #fff;
  border-top: none;
}

body.fresh-page .footer a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
}

body.fresh-page .footer p {
  color: rgba(255, 255, 255, 0.6);
}

/* Grids for Subpages */
body.fresh-page .about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

body.fresh-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

body.fresh-page .gallery-item {
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

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

body.fresh-page .gallery-item:hover img {
  transform: scale(1.05);
}

body.fresh-page .race-detail-toggle {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(27,67,50,0.22);
  background: #f7f7f5;
  color: #1B4332;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.fresh-page .race-detail-card.open .race-detail-toggle,
body.fresh-page .race-detail-toggle:hover {
  background: #1B4332;
  border-color: #1B4332;
  color: #fff;
}

body.fresh-page .race-extra {
  display: grid;
  gap: 12px;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-bottom 0.35s ease;
}

body.fresh-page .race-detail-card.open .race-extra {
  max-height: 380px;
  margin-bottom: 18px;
  opacity: 1;
}

body.fresh-page .race-extra div {
  padding: 12px 14px;
  background: rgba(27,67,50,0.045);
  border-left: 3px solid #1B4332;
}

body.fresh-page .race-extra strong,
body.fresh-page .race-extra span {
  display: block;
}

body.fresh-page .race-extra strong {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.fresh-page .race-extra span {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.45;
}

body.fresh-page .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* Responsive */
@media (max-width: 1200px) {
  .race-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .cg-row-1, .cg-row-2 { gap: 30px; }
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panel:hover { flex: 1.2; }
  .cg-row-1, .cg-row-2 { grid-template-columns: 1fr; }
  .cg-video-wrapper { height: 400px; }
  .cg-about { display: flex; flex-direction: row; }
  .cg-about-image { width: 300px; }
  .cg-about-image img { height: 100%; }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .container {
    padding: 0 20px;
  }

  .mobile-menu-btn { display: block; }
  
  .header-main,
  .header.scrolled .header-main {
    padding: 16px 20px;
  }

  .header-main > .btn-primary { display: none; } /* Mobile menu gets its own register link. */
  
  .nav-links { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
    z-index: 100;
  }
  
  .nav-links.active {
    opacity: 1;
    pointer-events: all;
  }
  
  .header.transparent-mode .nav-links a { color: var(--text-dark); text-shadow: none; }
  .nav-links a { font-size: 1.5rem; color: var(--text-dark); }

  .nav-links {
    overflow-y: auto;
    padding: 118px 24px 54px;
    gap: 28px;
  }

  .nav-item {
    width: min(100%, 420px);
    justify-content: center;
    text-align: center;
  }

  .nav-mega-trigger {
    width: 100%;
    text-align: center;
  }

  .nav-mega-panel {
    position: static;
    width: 100%;
    max-height: 0;
    display: block;
    padding: 0;
    margin-top: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text-dark);
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition: max-height 0.35s ease, margin-top 0.35s ease;
  }

  .nav-links.active .nav-mega-panel,
  .nav-mega.open .nav-mega-panel,
  .nav-mega:focus-within .nav-mega-panel {
    max-height: 720px;
    margin-top: 18px;
    pointer-events: auto;
    transform: none;
  }

  .mega-copy {
    display: none;
  }

  .mega-race-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mega-race {
    min-height: auto;
    padding: 12px 14px;
    background: #f7f7f5;
    border-color: rgba(17,17,17,0.08);
    text-align: left;
  }

  .mega-race strong {
    color: var(--text-dark);
  }

  .mega-race p {
    color: var(--text-light);
    font-size: 0.72rem;
  }

  .nav-links .mobile-register-link {
    display: inline-flex;
    margin-top: 10px;
    padding: 12px 28px;
    background: var(--text-dark);
    color: #fff !important;
    border-radius: 2px;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  
  .sub-hero h1 { font-size: 3rem; }
  .sub-hero { height: 40vh; min-height: 350px; }

  .split-hero {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .split-panel {
    min-height: 24vh;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .panel-content {
    padding: 24px 20px;
  }

  .panel-badge {
    font-size: 2.3rem;
  }

  .split-panel:hover { flex: 1; }
  .hero-overlay-text h1 { font-size: 2.1rem; }
  .cd-grid { flex-wrap: wrap; gap: 28px; }
  .cd-item { width: calc(50% - 20px); }
  .cd-num { font-size: 2.4rem; }
  .intro { padding: 72px 0; }
  .intro h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .race-detail-grid { grid-template-columns: 1fr; }
  .rdc-body { padding: 26px 22px; }
  .rdc-actions { flex-direction: column; }
  .lb-content,
  .lb-rec-content {
    overflow-x: auto;
  }
  .lb-table {
    min-width: 620px;
  }
  .cg-about { flex-direction: column; }
  .cg-about-image { width: 100%; }
}

@media (max-width: 480px) {
  .top-bar {
    display: none;
  }

  .logo {
    font-size: 1rem;
  }

  .sub-hero {
    min-height: 300px;
  }

  .sub-hero h1 {
    font-size: 2.35rem;
  }

  .panel-title {
    margin-bottom: 10px;
  }

  .panel-stats {
    opacity: 1;
    transform: none;
  }
}

/* ===== KAYIT FORMU ===== */
.reg-form { display:flex; flex-direction:column; gap:32px; }
.reg-type-tabs { display:flex; gap:0; border:2px solid var(--primary); border-radius:8px; overflow:hidden; }
.reg-tab { flex:1; padding:12px; background:#fff; border:none; cursor:pointer; font-size:15px; font-weight:600; font-family:var(--font-heading); color:var(--primary); transition:var(--transition); }
.reg-tab.active { background:var(--primary); color:#fff; }
.reg-tab:hover:not(.active) { background:#f0f4f2; }
.reg-section { display:flex; flex-direction:column; gap:16px; }
.reg-section-title { font-family:var(--font-heading); font-size:1rem; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:1px; margin:0; border-bottom:2px solid var(--primary); padding-bottom:8px; }
.reg-label { font-weight:600; font-size:14px; color:var(--text-dark); }
.req { color:#c0392b; }
.reg-optional { color:var(--text-light); font-weight:400; font-size:12px; }
.reg-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; }
.reg-card-option { cursor:pointer; }
.reg-card-option input[type="radio"] { display:none; }
.reg-card-body { border:2px solid var(--border-color); border-radius:10px; padding:16px; transition:var(--transition); background:#fff; }
.reg-card-option input:checked + .reg-card-body { border-color:var(--primary); border-width:3px; background:#e8f2ec; box-shadow:0 0 0 4px rgba(21,46,34,.18); }
.reg-card-option:hover .reg-card-body { border-color:#999; }
.reg-card-dist { font-size:1.4rem; font-weight:900; font-family:var(--font-heading); margin-bottom:4px; }
.reg-card-title { font-size:0.85rem; font-weight:600; color:var(--text-dark); }
.reg-card-meta { font-size:0.78rem; color:var(--text-light); margin-top:4px; }
.reg-card-fee {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
}
.reg-card-fee.is-paid { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.reg-card-fee.is-free { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; font-size: .8rem; }
.reg-empty { color:var(--text-light); font-style:italic; }
.reg-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.reg-field { display:flex; flex-direction:column; gap:6px; }
.reg-field label { font-size:13px; font-weight:600; color:var(--text-dark); }
.reg-field input, .reg-field select { padding:10px 14px; border:1.5px solid var(--border-color); border-radius:8px; font-size:14px; font-family:var(--font-body); background:#fff; transition:border-color .2s; }
.reg-field input:focus, .reg-field select:focus { outline:none; border-color:var(--primary); }
.reg-checkbox { display:flex; gap:10px; align-items:flex-start; cursor:pointer; font-size:14px; line-height:1.5; }
.reg-checkbox input { margin-top:3px; accent-color:var(--primary); width:16px; height:16px; flex-shrink:0; }
.reg-submit { width:100%; padding:16px; font-size:1rem; letter-spacing:1px; margin-bottom:48px; }
.reg-errors { background:#fff0ef; border-left:4px solid #c0392b; border-radius:6px; padding:14px 18px; display:flex; flex-direction:column; gap:6px; }
.reg-errors p { margin:0; font-size:14px; color:#922b21; }
.reg-success { text-align:center; padding:60px 24px; max-width:620px; margin:0 auto; }
.reg-success-icon { width:64px; height:64px; border-radius:50%; background:var(--primary); color:#fff; font-size:32px; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; }
.reg-success h2 { font-family:var(--font-heading); font-size:2rem; color:var(--primary-dark,#152e22); margin-bottom:6px; }
.reg-success-sub { color:var(--text-light); font-size:1rem; margin-bottom:28px; }

.reg-success-race { border-radius:16px; overflow:hidden; box-shadow:0 8px 32px rgba(0,0,0,0.10); margin-bottom:28px; }
.reg-success-race img { width:100%; height:220px; object-fit:cover; display:block; }
.reg-success-race-label { background:var(--primary-dark,#152e22); padding:18px 24px; text-align:left; display:flex; align-items:center; gap:16px; }
.reg-success-race-label p { margin:0; color:rgba(255,255,255,0.85); font-size:0.95rem; line-height:1.5; }
.reg-success-race-label p strong { color:#fff; }
.rsc-dist { font-family:var(--font-heading); font-size:2rem; font-weight:900; color:var(--accent,#e8b84b); line-height:1; flex-shrink:0; }

.reg-success-msg { background:#f5f8f6; border-radius:12px; padding:24px 28px; margin-bottom:20px; text-align:left; }
.reg-success-msg p { color:#3a4a42; font-size:0.95rem; line-height:1.75; margin:0 0 10px; }
.reg-success-msg p:last-of-type { margin-bottom:16px; }

.race-date-tag { display:inline-block; font-size:0.82rem; font-weight:600; color:var(--primary); background:rgba(21,46,34,.07); border-radius:20px; padding:4px 12px; margin-bottom:12px; }

@media (max-width:600px) {
  .reg-grid-2 { grid-template-columns:1fr; }
  .reg-card-grid { grid-template-columns:1fr 1fr; }
}

/* ── Footer social icons ─────────────────────────────────────────── */
.footer-social { display:flex; flex-direction:column; gap:10px; margin-top:4px; }
.footer-social a,
body.fresh-page .footer .footer-social a { display:flex; flex-direction:row; align-items:center; gap:10px; color:rgba(255,255,255,.65); text-decoration:none; font-size:0.9rem; line-height:1; margin-bottom:0; transition:color .2s; }
.footer-social a:hover,
body.fresh-page .footer .footer-social a:hover { color:#fff; }
.footer-social a svg { flex-shrink:0; opacity:.8; transition:opacity .2s; }
.footer-social a:hover svg { opacity:1; }

/* ── Floating contact button ─────────────────────────────────────── */
.float-contact {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.float-contact:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.3); }

/* ── Yarış Bilgisi – info cards & accordion ─────────────────────── */
.info-card { cursor:default; }
.info-card--clickable { cursor:pointer; transition:var(--transition); }
.info-card--clickable:hover { transform:translateY(-4px); box-shadow:0 8px 28px rgba(0,0,0,.13); }
.info-card-cta { display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:0.85rem; font-weight:700; color:var(--primary); letter-spacing:.5px; }
.info-arrow { display:inline-block; transition:transform .3s; font-size:1rem; }

.info-accordion { max-height:0; overflow:hidden; transition:max-height .45s cubic-bezier(.4,0,.2,1), opacity .3s; opacity:0; margin-bottom:0; }
.info-accordion.open { max-height:4000px; opacity:1; margin-bottom:32px; }

.info-accordion-inner { background:#fff; border:1.5px solid var(--border-color); border-radius:14px; overflow:hidden; margin-top:8px; }
.info-accordion-header { display:flex; align-items:center; gap:12px; padding:20px 24px 16px; border-bottom:1px solid var(--border-color); }
.info-accordion-header h2 { flex:1; font-family:var(--font-heading); font-size:1.3rem; color:var(--primary); margin:0; }
.info-accordion-icon { font-size:1.4rem; }
.info-accordion-close { background:none; border:none; cursor:pointer; font-size:1.1rem; color:var(--text-light); padding:4px 8px; border-radius:6px; transition:background .2s; line-height:1; }
.info-accordion-close:hover { background:var(--stone); }

.info-accordion-body { padding:24px; }
.info-accordion-body p { margin:0 0 12px; line-height:1.7; color:var(--text-dark); font-size:0.97rem; }
.info-accordion-body br { display:block; margin:4px 0; content:''; }
.info-list { padding-left:20px; margin:0 0 16px; }

/* ============================================================
   AUTH — Giriş / Üye Ol sayfaları
   ============================================================ */

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 32px rgba(21,46,34,.07);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-card-header .auth-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  object-fit: contain;
  border-radius: 999px;
  background: #fff8e8;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.auth-card-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.auth-card-header p { font-size: .9rem; color: var(--text-light); margin: 0; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .auth-grid-2 { grid-template-columns: 1fr; } }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: .84rem; font-weight: 600; color: var(--text-dark); letter-spacing: .02em; }
.auth-optional { font-weight: 400; color: var(--text-light); font-size: .8rem; margin-left: 4px; }

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap > svg:first-child {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
  flex-shrink: 0;
}
.auth-input-wrap input { padding-left: 42px !important; }

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--font-body);
  background: #fafafa;
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21,46,34,.12);
}
.auth-field input:disabled {
  background: #f0f0ee;
  cursor: not-allowed;
  color: var(--text-light);
}

.auth-toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.auth-toggle-pw:hover { color: var(--primary); }

.auth-pw-strength {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  height: 16px;
  transition: color .2s;
}
.auth-pw-strength.weak   { color: #c0392b; }
.auth-pw-strength.fair   { color: #e67e22; }
.auth-pw-strength.good   { color: #2980b9; }
.auth-pw-strength.strong { color: #1a7a3a; }

.auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1.5;
}
.auth-checkbox-label input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); }
.auth-checkbox-label a { color: var(--primary); }

.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 4px;
  border-radius: 10px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-light);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

.auth-alt { text-align: center; font-size: .9rem; color: var(--text-dark); }
.auth-alt a { color: var(--primary); font-weight: 600; }

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  color: #b91c1c;
  font-size: .9rem;
  margin-bottom: 20px;
}
.auth-error ul { margin: 0; padding-left: 4px; }
.auth-error li { list-style: disc; margin-left: 16px; }

.auth-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  color: #166534;
  font-size: .9rem;
  margin-bottom: 20px;
}

/* ============================================================
   HEADER — Giriş/Hesabım butonları
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login-nav {
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-user-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 40px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-user-nav:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); }

.header.scrolled .btn-user-nav {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.header.scrolled .btn-user-nav:hover { background: #0f2318; }

.btn-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .02em;
}

/* ============================================================
   HESABIM — Kullanıcı Dashboard
   ============================================================ */

.account-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(21,46,34,.05);
}
@media (max-width: 600px) {
  .account-hero { flex-wrap: wrap; gap: 14px; }
  .account-logout { margin-left: 0; }
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .02em;
}

.account-hero-info { flex: 1; }
.account-hero-info h2 { font-family: var(--font-heading); font-size: 1.2rem; margin: 0 0 2px; color: var(--primary); }
.account-hero-info p  { font-size: .88rem; color: var(--text-light); margin: 0; }

.account-logout { margin-left: auto; flex-shrink: 0; }

.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 28px;
}
.account-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  letter-spacing: .02em;
}
.account-tab:hover  { color: var(--primary); }
.account-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.account-panel { display: none; }
.account-panel.active { display: block; }

.account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.account-panel-header h3 { font-family: var(--font-heading); font-size: 1.1rem; margin: 0; color: var(--text-dark); }

.account-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.account-empty svg { opacity: .35; }
.account-empty p { margin: 0; }

.account-reg-list { display: flex; flex-direction: column; gap: 12px; }

.account-reg-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  flex-wrap: wrap;
}
.account-reg-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(21,46,34,.08); }

.account-reg-main { flex: 1; min-width: 160px; }
.account-reg-name { font-weight: 700; color: var(--text-dark); font-size: .95rem; }
.account-reg-date { font-size: .8rem; color: var(--text-light); margin-top: 2px; }

.account-reg-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Badge sistemi */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-ok     { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.badge-warn   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-err    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-info   { background: #f0f9ff; color: #1e40af; border: 1px solid #bae6fd; }
.badge-amount { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }

.btn-sm {
  padding: 6px 14px !important;
  font-size: .8rem !important;
  letter-spacing: .04em;
}

/* ============================================================
   ÖDEME — iyzico checkout
   ============================================================ */

.payment-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.payment-summary-info { flex: 1; }
.payment-summary-label { font-size: .78rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.payment-summary-value { font-size: 1rem; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.payment-dist {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}

.payment-summary-total {
  text-align: right;
  flex-shrink: 0;
}
.payment-summary-total span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: .02em;
}
.payment-summary-total small { font-size: .75rem; color: var(--text-light); }

.payment-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  color: #1a7a3a;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 7px 14px;
  margin-bottom: 20px;
}

.payment-iyzico-wrap { }

.payment-failed {
  text-align: center;
  padding: 48px 24px;
}
.payment-failed-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  color: #dc2626;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.payment-failed h2 { font-family: var(--font-heading); color: var(--text-dark); margin: 0 0 12px; }
.payment-failed p  { color: var(--text-light); margin: 0 0 28px; }
.payment-failed-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Alt hero (kısa versiyon) */
.sub-hero--short { min-height: 220px !important; padding: 60px 0 40px !important; }
.info-list li { margin-bottom:8px; line-height:1.6; color:var(--text-dark); font-size:0.97rem; }
