/* ============================================
   Marathon Website — Main Styles
   Premium, modern design with athletic theme
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Preloader ---- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1f3c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-inner .runner-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 24px;
}

/* Default bounce for font-awesome icon (no custom icon) */
.preloader-inner .runner-icon > i {
    animation: runBounce 0.8s ease infinite;
}

.preloader-inner .runner-icon .preloader-custom-icon {
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Preloader animation effects */
.preloader-effect-bounce { animation: runBounce 0.8s ease infinite; }
.preloader-effect-spin { animation: runSpin 1.2s linear infinite; }
.preloader-effect-pulse { animation: runPulse 1.5s ease infinite; }
.preloader-effect-shake { animation: runShake 0.6s ease infinite; }
.preloader-effect-fade { animation: runFade 2s ease infinite; }

@keyframes runBounce {
    0%, 100% { transform: translateY(0) scaleX(1); }
    25% { transform: translateY(-15px) scaleX(1.05); }
    50% { transform: translateY(0) scaleX(0.95); }
    75% { transform: translateY(-8px) scaleX(1.02); }
}
@keyframes runSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes runPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.6; }
}
@keyframes runShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px) rotate(-4deg); }
    30% { transform: translateX(7px) rotate(3deg); }
    45% { transform: translateX(-5px) rotate(-2deg); }
    60% { transform: translateX(4px) rotate(1deg); }
    75% { transform: translateX(-2px); }
}
@keyframes runFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    animation: preloaderFill 1.5s ease forwards;
}

@keyframes preloaderFill {
    to { width: 100%; }
}

/* ---- Header ---- */
/* ============================================
   Site Header — Desktop Professional Dark
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #1D3557;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    /* Thin accent line at top */
    box-shadow: inset 0 3px 0 0 var(--primary);
}

.site-header.scrolled {
    background: #122440;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 3px 0 0 var(--primary), 0 6px 32px rgba(0,0,0,0.35);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 90px;
    transition: height 0.3s ease;
}

.site-header.scrolled .header-container {
    height: 74px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-logo img {
    height: 75px;
    width: auto;
    transition: height 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.site-header.scrolled .site-logo img {
    height: 60px;
}

.site-logo-name {
    font-family: 'Bebas Neue', var(--font-heading), sans-serif;
    font-size: 1.65rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    transition: font-size 0.3s ease;
    white-space: nowrap;
}

.site-header.scrolled .site-logo-name {
    font-size: 1.4rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

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

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.82);
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-item > a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-item.active > a {
    color: #fff;
    background: rgba(230,57,70,0.25);
}

/* Bottom accent line on active */
.nav-item.active > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-item > a i {
    font-size: 0.62rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.nav-item:hover > a i {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 3px solid var(--primary);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: #334155;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-menu li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.dropdown-menu li a:hover {
    background: rgba(230, 57, 70, 0.06);
    color: var(--primary);
    padding-left: 12px;
}

.dropdown-menu li a:hover::before {
    opacity: 1;
}

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

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 3px solid var(--primary);
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.87rem;
    color: #334155;
    transition: all 0.2s ease;
    font-weight: 500;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
    background: rgba(230, 57, 70, 0.07);
    color: var(--primary);
}

/* Register Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #c12d38);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #152a47);
    color: #fff;
    box-shadow: 0 4px 15px rgba(29, 53, 87, 0.3);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e8933a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-register {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 100%;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 100vw);
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-header .site-logo img {
    height: 36px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
}

.mobile-nav-list {
    flex: 1;
    padding: 16px;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.mobile-nav-list li a:hover {
    background: rgba(230, 57, 70, 0.06);
    color: var(--primary);
}

.mobile-nav-list li a i {
    width: 20px;
    color: var(--primary);
    text-align: center;
}

.mobile-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

/* Yeni: header altı dil seçici çubuğu */
.mobile-nav-lang-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f7f8fc;
    border-bottom: 1px solid #eee;
    font-size: 0.88rem;
}

.mobile-nav-lang-bar i {
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mobile-nav-lang-bar a {
    font-weight: 600;
    color: #666;
    transition: color 0.2s ease;
    text-decoration: none;
}

.mobile-nav-lang-bar a.active {
    color: var(--primary);
}

.mobile-nav-lang-bar a:hover {
    color: var(--primary);
}

.mobile-lang-divider {
    color: #ccc;
    font-weight: 300;
}

/* Eski footer lang (artık kullanılmıyor, boş bırak) */
.mobile-lang {
    display: none;
}

/* ---- Hero Slider ---- */
.hero-section {
    position: relative;
    height: 800px;
    min-height: 500px;
    overflow: hidden;
    margin-top: 90px;
}

/* === Spectacular Entrance — first load === */

/* Phase 0: Hidden before entrance starts */
.hero-section.hero-waiting {
    opacity: 0;
    visibility: hidden;
}

/* Phase 1: Cinematic reveal from center dot to full screen */
.hero-section.hero-entrance {
    visibility: visible;
    animation: heroRevealScale 1.8s linear forwards;
}

@keyframes heroRevealScale {
    0% {
        opacity: 1;
        clip-path: circle(0% at 50% 50%);
    }
    100% {
        opacity: 1;
        clip-path: circle(75% at 50% 50%);
    }
}

/* Light sweep overlay */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.06) 35%,
        rgba(255,255,255,0.18) 45%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.18) 55%,
        rgba(255,255,255,0.06) 65%,
        transparent 80%
    );
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.hero-section.hero-entrance::after {
    animation: heroSweep 1.8s 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroSweep {
    0%   { left: -80%; opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* Golden flash border on entrance */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border: 0px solid rgba(244, 162, 97, 0);
    opacity: 0;
}

.hero-section.hero-entrance::before {
    animation: heroFlashBorder 2s 0.5s ease forwards;
}

@keyframes heroFlashBorder {
    0%   { border-width: 6px; border-color: rgba(244,162,97,0.8); opacity: 1; }
    40%  { border-width: 3px; border-color: rgba(244,162,97,0.4); opacity: 1; }
    100% { border-width: 0px; border-color: rgba(244,162,97,0); opacity: 0; }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 8s ease;
}

/* Normal slide: subtle slow zoom */
.hero-slide.active .hero-slide-bg {
    transform: scale(1.05);
}

/* First load: slow zoom during circle reveal */
.hero-entrance .hero-slide-bg {
    transform: scale(1.15) !important;
    transition: none !important;
}

.hero-entrance .hero-slide.active .hero-slide-bg {
    animation: heroBgZoom 8s linear forwards !important;
}

@keyframes heroBgZoom {
    0%   { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}

.hero-slide-overlay {
    display: none;
}

.hero-slide-content {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    padding: 0 60px;
    z-index: 2;
    max-width: 800px;
}

.hero-slide-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
    font-family: 'Anton', 'Oswald', var(--font-heading), sans-serif;
}

.hero-slide.active .hero-slide-content h1 {
    opacity: 1;
    transform: translateY(0);
}

/* Entrance-specific: dramatic stagger for first load */
.hero-entrance .hero-slide.active .hero-slide-content h1 {
    transition-delay: 1.2s;
    transition-duration: 1.4s;
}

.hero-slide-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.hero-slide.active .hero-slide-content p {
    opacity: 1;
    transform: translateY(0);
}

.hero-entrance .hero-slide.active .hero-slide-content p {
    transition-delay: 1.6s;
    transition-duration: 1.2s;
}

.hero-slide-btns {
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
}

.hero-slide.active .hero-slide-btns {
    opacity: 1;
    transform: translateY(0);
}

.hero-entrance .hero-slide.active .hero-slide-btns {
    transition-delay: 2s;
    transition-duration: 1.2s;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.hero-dot.active {
    background: var(--primary);
    width: 36px;
    border-radius: 6px;
}

/* Entrance fade for dots & arrows */
.hero-entrance .hero-dots,
.hero-entrance .hero-arrow {
    opacity: 0;
    animation: heroNavFadeIn 0.8s 2.5s ease forwards;
}

@keyframes heroNavFadeIn {
    to { opacity: 1; }
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }

/* Hero Running SVG */
.hero-runner-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    pointer-events: none;
}

/* ---- Section Common ---- */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}

.section-header p {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 24px auto 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1f3c 100%);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark p {
    color: rgba(255,255,255,0.75);
}

.section-gray {
    background: #f7f8fc;
}

/* ---- Countdown Section ---- */
.countdown-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1f3c 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.countdown-section .section-header h2 {
    color: #fff;
}

.countdown-section .section-header h2::after {
    background: var(--accent);
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 120px;
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

.countdown-separator {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    line-height: 1;
    padding-top: 8px;
}

/* ---- Race Cards ---- */
.race-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.race-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.race-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.race-card-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.race-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-card-image .race-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.race-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.race-card-body {
    padding: 28px;
}

.race-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.race-card-body p {
    color: #777;
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.race-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.race-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
}

.race-card-meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.race-card-actions {
    display: flex;
    gap: 10px;
}

.race-card-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.85rem;
}

/* ---- Video Section ---- */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.video-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(230, 57, 70, 0.4);
    z-index: 5;
    border: none;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    animation: videoPulse 2s ease infinite;
    z-index: -1;
}

@keyframes videoPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---- Branded Video Player ---- */
.video-player-wrap {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #0d1f3c;
}

.video-player-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0d1f3c center/cover no-repeat;
    transition: transform 0.5s ease;
}

.video-player-wrap:hover .video-player-thumb {
    transform: scale(1.02);
}

/* Gradyan overlay */
.video-player-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13,31,60,0.35) 0%,
        rgba(13,31,60,0.15) 40%,
        rgba(13,31,60,0.6) 100%
    );
}

/* Üst rozet */
.video-player-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(230,57,70,0.9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    z-index: 4;
}

/* Merkez oynat butonu */
.video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.video-player-wrap:hover .video-play-center {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Ripple animasyonu */
.play-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(230,57,70,0.25);
    animation: ripplePulse 2s ease-out infinite;
}

.play-ripple::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: rgba(230,57,70,0.12);
    animation: ripplePulse 2s ease-out infinite 0.4s;
}

@keyframes ripplePulse {
    0%   { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Oynat ikonu dairesi */
.play-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #c12d38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 32px rgba(230,57,70,0.55);
    transition: box-shadow 0.3s ease;
}

.video-player-wrap:hover .play-icon {
    box-shadow: 0 12px 48px rgba(230,57,70,0.75);
}

.play-icon i { margin-left: 4px; }

/* Alt bilgi çubuğu */
.video-player-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(transparent, rgba(13,31,60,0.85));
    z-index: 4;
}

.video-player-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-player-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.video-player-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.video-player-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ---- Sponsors Section ---- */
.sponsors-section {
    background: #f7f8fc;
}

.sponsor-tier {
    margin-bottom: 50px;
}

.sponsor-tier:last-child {
    margin-bottom: 0;
}

.sponsor-tier-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 20px;
}

.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    align-items: center;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary, #1D3557);
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    width: 160px;
    height: 110px;
    flex-shrink: 0;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: var(--secondary-dark, #152a47);
}

.sponsor-item img {
    height: 80px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sponsor-item:hover img {
    filter: none;
    opacity: 1;
}

.sponsor-name {
    display: none;
}

/* Tüm tier'lar standart boyutta */
.sponsor-tier[data-tier="platinum"] .sponsor-item img,
.sponsor-tier[data-tier="gold"] .sponsor-item img,
.sponsor-tier[data-tier="silver"] .sponsor-item img,
.sponsor-tier[data-tier="bronze"] .sponsor-item img { height: 80px; max-width: 130px; }

/* ---- Route Map ---- */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
}

#route-map,
.route-map {
    width: 100%;
    height: 500px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.map-legend-color {
    width: 24px;
    height: 4px;
    border-radius: 4px;
}

/* ---- Archive ---- */
.archive-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.archive-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 3px;
}

.archive-item {
    position: relative;
    display: flex;
    margin-bottom: 60px;
}

.archive-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 55%;
}

.archive-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 55%;
}

.archive-item-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 2;
}

.archive-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    width: 100%;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.archive-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    position: relative;
    overflow: hidden;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-year {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.archive-card-body {
    padding: 24px;
}

.archive-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.archive-card-stats {
    display: flex;
    gap: 16px;
    margin: 14px 0;
}

.archive-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
}

.archive-stat i {
    color: var(--primary);
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-album-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.gallery-album-image {
    height: 260px;
    overflow: hidden;
}

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

.gallery-album-card:hover .gallery-album-image img {
    transform: scale(1.08);
}

.gallery-album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.gallery-album-overlay h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.gallery-album-overlay span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ---- Contact Section ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    transition: all 0.3s ease;
    background: #fafbfd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #c12d38);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    color: #777;
    font-size: 0.9rem;
}

.contact-info-text a:hover {
    color: var(--primary);
}

/* Security Question */
.security-question-group {
    margin-top: 4px;
}

.security-question-group > label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.security-question-group > label i {
    color: var(--primary);
}

.security-question-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e0e4ea;
    transition: border-color 0.3s ease;
}

.security-question-wrap:focus-within {
    border-color: var(--primary);
}

.security-question-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary), #152a47);
    color: #fff;
    padding: 12px 20px;
    flex-shrink: 0;
    min-width: 140px;
    white-space: nowrap;
}

.security-question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.security-question-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    font-family: var(--font-heading);
}

.security-answer-input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
    color: var(--secondary);
}

.security-answer-input:focus {
    box-shadow: none !important;
    outline: none;
}

.contact-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.contact-map-wrap iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    overflow: hidden;
}

.footer-wave {
    margin-bottom: -2px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer-content {
    background: var(--footer-bg);
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 42px;
}

.footer-logo .logo-text {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.social-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact-list li {
    margin-bottom: 14px;
}

.footer-contact-list a,
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: #fff;
}

.footer-contact-list i {
    color: var(--primary);
    margin-top: 4px;
    width: 16px;
    flex-shrink: 0;
}

.footer-countdown {
    margin-bottom: 20px;
}

.footer-register-btn {
    margin-top: 10px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Footer Runners */
.footer-runners {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    pointer-events: none;
    overflow: hidden;
    height: 40px;
}

.runner {
    position: absolute;
    bottom: 0;
    color: rgba(255,255,255,0.04);
    font-size: 2rem;
    animation: runAcross 20s linear infinite;
}

.runner-1 { animation-delay: 0s; font-size: 2.5rem; }
.runner-2 { animation-delay: -7s; font-size: 1.8rem; }
.runner-3 { animation-delay: -14s; font-size: 2.2rem; }

@keyframes runAcross {
    from { left: -60px; }
    to { left: calc(100% + 60px); }
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

/* ---- Page Title / Breadcrumb ---- */
.page-title-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #0d1f3c 100%);
    padding: 140px 0 50px;
    margin-top: 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="40" r="1.5" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.04)"/></svg>');
}

.page-title-section h1 {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 14px;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    position: relative;
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
    color: var(--accent);
    font-weight: 600;
}

/* ---- Page Content ---- */
.page-content {
    padding: 60px 0;
}

.page-content .content-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
}

.page-content img {
    border-radius: 12px;
    margin: 20px 0;
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Pulse Animation for CTA */
.pulse-btn {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(230, 57, 70, 0.5), 0 0 0 8px rgba(230, 57, 70, 0.1); }
    100% { box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3); }
}

/* Alert Messages */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ---- Stats Section ---- */
.stats-section {
    background: #fff;
    padding: 80px 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: #f7f8fc;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    background: #fff;
}

.stat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #c12d38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

/* ---- Story Section ---- */
.story-section {
    background: #fff;
    padding: 80px 0;
}

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

.story-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-image:hover img {
    transform: scale(1.03);
}

.story-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), #0d1f3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 5rem;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #c12d38);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.story-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.story-content p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.story-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.story-btn:hover {
    gap: 14px;
}

.story-btn i {
    transition: transform 0.3s ease;
}

.story-btn:hover i {
    transform: translateX(4px);
}

/* ---- Route Switcher ---- */
.route-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.route-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 2px solid #ddd;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.route-switch-btn:hover {
    border-color: var(--btn-color, var(--primary));
    color: var(--btn-color, var(--primary));
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.route-switch-btn.active {
    background: var(--btn-color, var(--primary));
    border-color: var(--btn-color, var(--primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.route-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.route-switch-btn.active .route-color-dot {
    background: #fff !important;
}

/* ---- Route Image Display ---- */
.route-images-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.route-image-panel {
    display: none;
}

.route-image-panel.active {
    display: block;
}

.route-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    background: #f0f0f0;
    line-height: 0;
}

.route-map-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.route-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f5f5f5;
    border-radius: 16px;
    color: #bbb;
    gap: 12px;
    border: 2px dashed #ddd;
}
.route-no-image i { font-size: 3rem; }
.route-no-image p { font-size: 1rem; margin: 0; }

.route-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    align-items: center;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.92rem;
}

.route-info-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.route-info-label {
    font-weight: 500;
    color: #888;
}

.route-info-val {
    font-weight: 700;
    color: var(--heading);
}

.route-info-desc {
    flex-basis: 100%;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ---- Video Placeholder ---- */
.video-placeholder {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 2px dashed rgba(255,255,255,0.15);
    padding: 80px 40px;
    text-align: center;
}

.video-placeholder-inner h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.video-placeholder-inner p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
}

.video-placeholder-icon {
    font-size: 3rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

/* ---- Particles ---- */
.video-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(244, 162, 97, 0.3);
    animation: particleFloat 8s ease-in-out infinite;
}

.p1 { top: 10%; left: 10%; animation-delay: 0s; }
.p2 { top: 20%; right: 15%; animation-delay: 1.5s; width: 8px; height: 8px; background: rgba(230, 57, 70, 0.2); }
.p3 { bottom: 30%; left: 20%; animation-delay: 3s; width: 4px; height: 4px; }
.p4 { bottom: 20%; right: 25%; animation-delay: 4.5s; background: rgba(255,255,255,0.15); }
.p5 { top: 50%; left: 50%; animation-delay: 6s; width: 10px; height: 10px; background: rgba(244, 162, 97, 0.15); }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -20px) scale(1.3); opacity: 1; }
    50% { transform: translate(-20px, -40px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(15px, -10px) scale(1.1); opacity: 0.8; }
}

/* ---- Hero Floating Elements ---- */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.hero-float-icon {
    position: absolute;
}

/* ============================================================
   TICKER BAND  — Two diagonal scrolling ribbons
   ============================================================ */
.ticker-outer {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    height: 90px;
    z-index: 5;
    background: var(--secondary, #1D3557);
    pointer-events: none;
    user-select: none;
    margin-top: -50px;
}

/* Fallback for older browsers */
@supports not (overflow-x: clip) {
    .ticker-outer {
        overflow: hidden;
        height: 130px;
        margin-top: 0;
    }
}

.ticker-band {
    position: absolute;
    left: -8%;
    width: 116%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 13px 0;
    white-space: nowrap;
}

.ticker-band-yellow {
    background: var(--primary, #E63946);
    color: #fff;
    top: 30px;
    transform: rotate(-3.5deg);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ticker-band-white {
    background: var(--accent, #F4A261);
    color: #fff;
    top: 22px;
    transform: rotate(3.5deg);
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: tickerLeft linear infinite;
    will-change: transform;
}

.ticker-reverse {
    animation-name: tickerRight;
}

@keyframes tickerLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes tickerRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ticker-item {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: inherit;
    padding: 0 28px;
}

.ticker-band-yellow .ticker-item,
.ticker-band-white .ticker-item {
    color: inherit;
}

.ticker-dot {
    color: currentColor;
    opacity: 0.4;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.ticker-band-white .ticker-dot {
    color: currentColor;
    opacity: 0.4;
}

/* Pause on hover (desktop only) */
@media (hover: hover) {
    .ticker-outer:hover .ticker-track {
        animation-play-state: paused;
    }
}

/* ============================================================
   COUNTDOWN v2 — Theme-aware style
   ============================================================ */
.countdown-section-v2 {
    background: var(--secondary, #1D3557);
    padding: 0 0 64px;
    position: relative;
    overflow: hidden;
}

.countdown-section-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* Top info bar */
.cd2-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
    padding: 22px 24px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 52px;
}

.cd2-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0 20px;
}

.cd2-info-item i {
    color: var(--accent, #F4A261);
    font-size: 0.9rem;
}

.cd2-info-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Countdown grid */
.cd2-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px 40px;
    flex-wrap: wrap;
    padding: 0 24px;
}

.cd2-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.cd2-value {
    font-family: 'Bebas Neue', 'Oswald', var(--font-heading), sans-serif;
    font-size: clamp(80px, 12vw, 140px);
    font-weight: 400;
    line-height: 0.95;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent, #F4A261);
    text-stroke: 2px var(--accent, #F4A261);
    letter-spacing: 0.05em;
    position: relative;
}

/* Separator ":" between countdown items */
.cd2-sep {
    font-family: 'Bebas Neue', var(--font-heading), sans-serif;
    font-size: clamp(60px, 9vw, 110px);
    font-weight: 400;
    line-height: 0.95;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent, #F4A261);
    text-stroke: 2px var(--accent, #F4A261);
    opacity: 0.55;
    align-self: flex-start;
    padding-top: 0.05em;
    user-select: none;
}

/* Subtle inner glow on value */
.cd2-value::after {
    content: attr(data-val);
    position: absolute;
    inset: 0;
    color: rgba(244,162,97,0.06);
    -webkit-text-stroke: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    pointer-events: none;
}

.cd2-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
}

/* Flip animation for digit changes */
.cd2-value.flip {
    animation: cd2Flip 0.25s ease;
}

@keyframes cd2Flip {
    0%   { transform: translateY(-8px) scaleY(0.8); opacity: 0.3; }
    100% { transform: translateY(0) scaleY(1);      opacity: 1;   }
}

/* ============================================================
   ROUTE MODERN — Left list + Right carousel
   ============================================================ */
.route-modern-section {
    background: var(--secondary, #1D3557);
    overflow: hidden;
}

.route-modern-inner {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 560px;
}

/* ---- LEFT panel ---- */
.route-modern-left {
    background: var(--secondary, #1D3557);
    padding: 52px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.route-modern-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.08);
}

.route-modern-header h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.route-modern-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.route-modern-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.route-modern-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
}

.route-modern-btn:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.route-modern-btn:hover {
    padding-left: 8px;
}

.rmb-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    min-width: 30px;
    transition: color 0.25s;
}

.rmb-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1;
    transition: color 0.25s;
}

.rmb-arrow {
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    transition: all 0.25s;
    transform: rotate(0deg);
}

.route-modern-btn.active .rmb-num,
.route-modern-btn:hover .rmb-num { color: var(--accent, #F4A261); }

.route-modern-btn.active .rmb-name,
.route-modern-btn:hover .rmb-name { color: #fff; }

.route-modern-btn.active .rmb-arrow,
.route-modern-btn:hover .rmb-arrow { color: var(--accent, #F4A261); transform: rotate(45deg); }

/* Detail info box */
.route-modern-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    min-height: 60px;
}

.rmd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.rmd-item i {
    color: var(--accent, #F4A261);
    width: 14px;
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* Prev/Next arrows */
.route-modern-arrows {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.rma-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rma-btn:hover {
    background: var(--accent, #F4A261);
    border-color: var(--accent, #F4A261);
    color: #1a1a1a;
}

/* ---- RIGHT panel ---- */
.route-modern-right {
    position: relative;
    overflow: hidden;
    background: var(--secondary, #1D3557);
}

.route-detail-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    background: var(--accent, #F4A261);
    color: #1a1a1a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.route-detail-btn:hover {
    background: #fff;
}

/* Carousel */
.route-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.route-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
    transform: translateX(40px);
}

.route-carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.route-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.route-carousel-noimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 480px;
    color: rgba(255,255,255,0.2);
    gap: 14px;
}

.route-carousel-noimg i { font-size: 3.5rem; }
.route-carousel-noimg span { font-size: 1rem; font-weight: 600; }

/* Dot indicators */
.route-carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.rcd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.rcd-dot.active {
    background: var(--accent, #F4A261);
    width: 22px;
    border-radius: 4px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .hero-section.hero-entrance,
    .hero-section.hero-entrance::after,
    .hero-section.hero-entrance::before,
    .hero-entrance .hero-slide-bg,
    .hero-entrance .hero-slide.active .hero-slide-bg {
        animation: none !important;
    }
    .hero-section.hero-entrance {
        clip-path: none;
        transform: none;
        filter: none;
        opacity: 1;
        visibility: visible;
    }
    .hero-section.hero-waiting {
        opacity: 1;
        visibility: visible;
    }
}

