:root {
    /* Design Tokens */
    --bg-primary: #070708;
    --bg-secondary: #0e0e11;
    --bg-tertiary: #16161c;
    
    --accent-gold: #d4af37;
    --accent-gold-hover: #e5c453;
    --accent-gold-muted: rgba(212, 175, 55, 0.15);
    --accent-gold-glow: rgba(212, 175, 55, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #a3a6ad;
    --text-muted: #82858f;
    
    --border-light: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(212, 175, 55, 0.2);
    --border-gold-hover: rgba(212, 175, 55, 0.5);
    
    --glass-bg: rgba(14, 14, 17, 0.75);
    --glass-blur: blur(12px);
    
    --transition-speed: 0.3s;
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 45%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Utility Classes & Animations */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gold-text {
    color: var(--accent-gold);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f3dfa2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b89528 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: var(--accent-gold-muted);
    transform: translateY(-2px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background: var(--accent-gold-muted);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
}

.badge-crossplay {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    transition: all var(--transition-speed) ease;
}

.card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.08);
}

/* ---------------------------------
   HEADER & NAVIGATION
--------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(7, 7, 8, 0.95);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
}

header.scrolled .nav-container {
    padding: 0.6rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-headings);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border-light);
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions {
        display: none; /* Hide action CTA on mobile menu bar */
    }

    .nav-menu .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin-top: 1rem;
    }
}

@media (min-width: 992px) {
    .nav-menu .nav-actions-mobile {
        display: none;
    }
}

/* ---------------------------------
   HERO SECTION
--------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    overflow: hidden;
}

/* Hero grid background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 70%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo-container img {
    max-height: 180px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.15));
}

.hero h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

.hero-p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Countdown Widget */
.countdown-widget {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(14, 14, 17, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    box-shadow: var(--glow-gold);
    animation: fadeInUp 1.2s ease-out 0.8s both;
}

.countdown-title {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

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

.countdown-number {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .countdown-grid {
        gap: 0.75rem;
    }
    .countdown-number {
        font-size: 1.5rem;
    }
}

/* ---------------------------------
   ABOUT SECTION
--------------------------------- */
.about {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-info h3 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.about-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.feature-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ---------------------------------
   SCHEDULE PREVIEW SECTION
--------------------------------- */
.schedule {
    padding: 7rem 0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.event-card.next {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
}

.event-card.next::after {
    content: 'UP NEXT';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    letter-spacing: 0.1em;
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.event-round {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.event-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-completed {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.status-next {
    background: var(--accent-gold-muted);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
}

.status-scheduled {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.event-title {
    font-size: 1.35rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Tonight's Grid Sub-layout */
.session-races-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .session-races-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .session-races-grid {
        grid-template-columns: 1fr;
    }
}

.session-race-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all var(--transition-speed) ease;
}

.session-race-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-2px);
    background-color: var(--bg-tertiary);
}

.race-index {
    font-family: var(--font-headings);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.race-track {
    font-size: 1.05rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--text-primary);
}

.race-format {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Compact Session Races List Layout */
.session-races-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.session-race-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
}

.session-race-row:hover {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.04);
}

.session-race-row .race-index {
    font-family: var(--font-headings);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    background: var(--accent-gold-muted);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    width: 24px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-race-row .race-track {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.session-race-row .race-format {
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-align: right;
    line-height: 1.2;
}

.event-card.featured {
    grid-column: span 3;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.12);
}

@media (max-width: 991px) {
    .event-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .event-card.featured {
        grid-column: span 1;
    }
}

/* ---------------------------------
   STANDINGS SECTION
--------------------------------- */
.standings {
    padding: 7rem 0;
    position: relative;
}

/* Podium Showcase */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 4rem;
    margin-top: 1rem;
}

.podium-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.podium-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold-hover);
}

.podium-card.first {
    height: 400px;
    border-color: var(--accent-gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-secondary) 100%);
    order: 2;
}

.podium-card.second {
    height: 360px;
    border-color: rgba(255, 255, 255, 0.1);
    order: 1;
}

.podium-card.third {
    height: 330px;
    border-color: rgba(212, 175, 55, 0.1);
    order: 3;
}

.podium-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.podium-card.first .podium-badge {
    background: linear-gradient(135deg, #ffd700 0%, var(--accent-gold) 100%);
    color: #000;
}

.podium-card.second .podium-badge {
    background: linear-gradient(135deg, #e0e0e0 0%, #a0a0a0 100%);
    color: #000;
}

.podium-card.third .podium-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #8c501c 100%);
    color: #000;
}

.podium-avatar {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.podium-driver {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.podium-team {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.podium-stats {
    margin-top: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.podium-stat-val {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.podium-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .podium-card {
        width: 100%;
        max-width: 350px;
    }
    .podium-card.first {
        height: auto;
        order: 1;
    }
    .podium-card.second {
        height: auto;
        order: 2;
    }
    .podium-card.third {
        height: auto;
        order: 3;
    }
}

/* Tabs Styling */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition-speed) ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--accent-gold);
    border-color: var(--border-gold);
    background: var(--accent-gold-muted);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.08);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

/* Standings Table Styling */
.standings-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-secondary);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    min-width: 900px;
}

.standings-table th, 
.standings-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.standings-table th {
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.01);
    border-bottom: 2px solid var(--border-light);
}

.standings-table tbody tr {
    transition: background-color var(--transition-speed) ease;
}

.standings-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.standings-table tbody tr:last-child td {
    border-bottom: none;
}

.pos-badge {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.85rem;
}

.pos-1 { background-color: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.3); }
.pos-2 { background-color: rgba(192, 192, 192, 0.15); color: #e0e0e0; border: 1px solid rgba(192, 192, 192, 0.3); }
.pos-3 { background-color: rgba(205, 127, 50, 0.15); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.3); }
.pos-other { color: var(--text-secondary); }

.driver-cell {
    font-weight: 700;
    color: var(--text-primary);
}

.team-badge-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Team Indicators */
.team-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.standings-table tbody td:first-child {
    position: relative;
}

.standings-table tbody tr.sauber-row td:first-child { border-left: 4px solid #52e252; }
.standings-table tbody tr.haas-row td:first-child { border-left: 4px solid #ffffff; }
.standings-table tbody tr.mercedes-row td:first-child { border-left: 4px solid #00a19c; }
.standings-table tbody tr.williams-row td:first-child { border-left: 4px solid #005aff; }
.standings-table tbody tr.mclaren-row td:first-child { border-left: 4px solid #ff8700; }
.standings-table tbody tr.redbull-row td:first-child { border-left: 4px solid #1e41ff; }
.standings-table tbody tr.ferrari-row td:first-child { border-left: 4px solid #ef1a2d; }

.dot-sauber { background-color: #52e252; box-shadow: 0 0 8px rgba(82, 226, 82, 0.6); }
.dot-haas { background-color: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.dot-mercedes { background-color: #00a19c; box-shadow: 0 0 8px rgba(0, 161, 156, 0.6); }
.dot-williams { background-color: #005aff; box-shadow: 0 0 8px rgba(0, 90, 255, 0.6); }
.dot-mclaren { background-color: #ff8700; box-shadow: 0 0 8px rgba(255, 135, 0, 0.6); }
.dot-redbull { background-color: #1e41ff; box-shadow: 0 0 8px rgba(30, 65, 255, 0.6); }
.dot-ferrari { background-color: #ef1a2d; box-shadow: 0 0 8px rgba(239, 26, 45, 0.6); }

.points-val {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 1.05rem;
}

.pts-race-val {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-primary);
}

/* ---------------------------------
   REGULATIONS SECTION
--------------------------------- */
.regulations {
    padding: 7rem 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition-speed) ease;
}

.accordion-item:hover {
    border-color: var(--border-gold);
}

.accordion-item.active {
    border-color: var(--accent-gold);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
    background: none;
    width: 100%;
    border: none;
    color: var(--text-primary);
    text-align: left;
}

.accordion-title {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-title i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.accordion-icon {
    color: var(--text-secondary);
    transition: transform var(--transition-speed) ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), padding var(--transition-speed) ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
    padding: 0 1.5rem 1.5rem;
    border-top-color: var(--border-light);
}

.accordion-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.accordion-content li {
    position: relative;
    padding-left: 1.25rem;
}

.accordion-content li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ---------------------------------
   JOIN THE GRID SECTION
--------------------------------- */
.join {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    position: relative;
}

.join-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 991px) {
    .join-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.join-info h3 {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.join-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.join-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    transition: border-color var(--transition-speed) ease;
}

.join-card:hover {
    border-color: var(--border-gold);
}

.join-card-icon {
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-card-text h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.join-card-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Join Form Styling */
.form-wrapper {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all var(--transition-speed) ease;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Checkbox / Radio styling custom options */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.platform-option {
    position: relative;
}

.platform-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.platform-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    background: var(--bg-secondary);
}

.platform-option input:checked + .platform-label {
    border-color: var(--accent-gold);
    background: var(--accent-gold-muted);
    color: var(--accent-gold);
}

.platform-label:hover {
    border-color: var(--border-gold-hover);
}

.platform-label i {
    font-size: 1.25rem;
}

.form-success-message {
    display: none;
    text-align: center;
    padding: 1rem 0;
    animation: fadeIn 0.5s ease;
}

.form-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold-muted);
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 15px rgba(212,175,55, 0.2);
}

.form-success-message h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.form-success-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Registration Closed Styling */
.registration-closed-card {
    text-align: center;
    padding: 1rem 0;
}

.closed-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 26, 45, 0.1);
    color: #ef1a2d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(239, 26, 45, 0.3);
    box-shadow: 0 0 15px rgba(239, 26, 45, 0.15);
}

.registration-closed-card h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    font-family: var(--font-headings);
}

.registration-closed-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.registration-closed-card .closed-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.2rem;
}

.badge-closed {
    background: rgba(239, 26, 45, 0.1);
    color: #ef1a2d;
    border: 1px solid rgba(239, 26, 45, 0.25);
}

/* ---------------------------------
   FOOTER
--------------------------------- */
footer {
    background-color: var(--bg-primary);
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .footer-brand-logo {
        justify-content: center;
    }
}

.footer-brand-logo img {
    height: 50px;
    width: auto;
}

.footer-brand-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-headings);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    color: var(--accent-gold);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .footer-links ul {
        align-items: center;
    }
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

@media (max-width: 768px) {
    .footer-link:hover {
        padding-left: 0;
    }
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
    }
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-speed) ease;
}

.social-icon:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
    background: var(--accent-gold-muted);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

@media (max-width: 768px) {
    .footer-copyright {
        align-items: center;
    }
}

.footer-host {
    display: flex;
    align-items: center;
}

.mdr-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.mdr-logo-only {
    height: 35px;
    width: auto;
    opacity: 0.55;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.mdr-logo-link:hover .mdr-logo-only {
    opacity: 1;
    transform: scale(1.08) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.back-to-top:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

/* ---------------------------------
   KEYFRAME ANIMATIONS
--------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ---------------------------------
   LATEST NEWS / SPOTLIGHT SECTION
--------------------------------- */
.news-section {
    padding: 7rem 0;
    background-color: var(--bg-primary);
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.news-card-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.news-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.news-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -10px rgba(212, 175, 55, 0.08), 0 10px 30px -15px rgba(0, 0, 0, 0.6);
}

.news-card-image {
    position: relative;
    flex: 0 0 40%;
    min-height: 320px;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.2) 0%, rgba(7, 7, 8, 0.8) 100%);
    overflow: hidden;
}

.driver-spotlight-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.news-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #b89528 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.news-card-badge i, .news-card-badge svg {
    width: 14px;
    height: 14px;
}

.news-card-content {
    flex: 0 0 60%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.news-date i, .news-date svg {
    width: 14px;
    height: 14px;
}

.news-title {
    font-size: 1.8rem;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 30%, #a3a6ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.news-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-text strong {
    color: var(--text-primary);
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.driver-team-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.news-status-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }
    
    .news-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: 280px;
        min-height: 280px;
    }
    
    .news-card-content {
        flex: 0 0 auto;
        width: 100%;
        padding: 2rem;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
}
