* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
      font-family: "Tomorrow", sans-serif;
      font-weight: 400;
      font-style: normal;
      margin: 0;
      background-color: #f5f5f5;
      color: #111;
    }

    /* Headings use Racing Sans One */
    h1, h2, h3, h4 {
      font-family: "Racing Sans One", sans-serif;
      font-weight: 400;
      font-style: normal;
      margin: 0 0 10px 0;
    }

    /* Paragraphs can use Inter optionally */
    p, span, li, button {
      font-family: "Tomorrow", sans-serif;
      font-weight: 400;
      font-style: normal;
    }

    /* Navigation example */
    .nav-brand h2 {
      font-family: "Racing Sans One", sans-serif;
    }

/* Optional: make Inter default for all body text */
body {
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container h1 {
    background: linear-gradient(90deg, #dedee1, #ff9e7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container h2 {
    background: linear-gradient(90deg, #d62828, #820804);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    background: #ffffff00;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* subtle inner glow to lift content */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    /* border-radius: 36px; */
    color: white;
    padding: .4rem 0;
    position: fixed;
    top: -1px;
    height: fit-content;
    width: 100%;
    z-index: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand h2 {
    background: linear-gradient(90deg, #f70000, #f70000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;color: #ff6b35;
}

/* Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #ff0000, #ff9900);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 15px rgba(235, 6, 2, 0.7), 0 0 30px rgba(255, 153, 0, 0.5);
}

.nav-link:hover {
    color: #ef0000;
    transform: translateY(-2px);
    letter-spacing: 1px;
    font-weight: bold;
}

.nav-link:active {
    color: #ff6b35;
    transform: translateY(-2px);
    letter-spacing: 1px;
    font-weight: bold;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.4s;
}

/* Hamburger animation */
.hamburger.active .top {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .middle {
    opacity: 0;
}
.hamburger.active .bottom {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile dropdown menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #e6e6e6;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-menu.active {
        max-height: 500px;
        position: absolute;
        top: 100%;
        right: 12px;
        left: auto;
        width: fit-content;
        min-width: 320px;
        max-width: calc(100% - 24px);
        margin: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.55));
        background-color: rgba(0,0,0,0.6);
        -webkit-backdrop-filter: blur(10px) saturate(130%);
        backdrop-filter: blur(10px) saturate(130%);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 14px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(107,107,255,0.06);
        z-index: 1000;
        overflow: visible;
        padding: 0.75rem 0;
        transform-origin: top right;
        
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 1.1rem;
        width: 100%;
    }
    

}


/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

.page {
    display: none;
    padding: 2rem 0;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero-section {

    position: fixed;
    left: 4%;
    top: 50%;
    width: clamp(300px, 38vw, 520px);
    z-index: 900; /* keep below the navbar (1000) but above page content */

    /* glassmorphism*/
    /* background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.55), inset 0 1px 0 rgba(255,255,255,0.02); */

    /* spacing and text */
    color: #ffffff;
    padding: 1.75rem;
    text-align: left; /* content aligned to the left inside the card */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* small lift on hover to emphasize card */
.hero-section:hover {
    /* transform: translateY(-52%); */
    /* box-shadow: 0 18px 45px rgba(2,6,23,0.65); */
}

/* Heading and copy tuned for glass card */
.hero-content h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.05;
    background: linear-gradient(45deg, #d62828, #780e0a);

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.92);
}

/* CTA button adapted to glass card */
.cta-button {
    background: linear-gradient(45deg, #d62828, #780e0a);
    color: white;
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255,107,53,0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 12px 30px rgba(255,107,53,0.24); */
}

/* Responsive adjustments */

/* Keep hero fixed at middle-left on all screen sizes (responsive width) */
.hero-section {
    position: fixed;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(300px, 38vw, 520px);
    z-index: 700; /* above page content; adjust if you want it below the navbar */
    padding: 1.75rem;
}

/* Large screens — slightly narrower card and move a bit inward */
@media (max-width: 1200px) {
    .hero-section {
        left: 3.5%;
        width: clamp(280px, 36vw, 480px);
        padding: 1.6rem;
    }
    .hero-content h1 { font-size: 2rem; }
}

/* Tablet / small laptop */
@media (max-width: 1024px) {
    .hero-section {
        left: 3%;
        width: clamp(300px, 40vw, 460px);
        padding: 1.4rem;
    }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-content p { font-size: 0.98rem; }
}

/* Mobile: keep fixed mid-left but ensure it doesn't overflow the viewport */
@media (max-width: 768px) {
    .hero-section {
        left: 12px;
        width: min(340px, calc(100% - 24px));
        padding: 1rem;
        border-radius: 12px;
        /* still vertically centered */
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-content h1 { font-size: 1.6rem; line-height: 1.08; }
    .hero-content p  { font-size: 0.95rem; margin-bottom: 1rem; }
    .cta-button {
        display: block;
        width: 100%;
        padding: 0.85rem;
        text-align: center;
    }
}

/* Small phones: smaller left offset and compact sizing */
@media (max-width: 480px) {
    .hero-section {
        left: 8px;
        width: min(300px, calc(100% - 16px));
        padding: 0.75rem 0.9rem;
        border-radius: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .hero-content h1 { font-size: 1.35rem; }
    .hero-content p  { font-size: 0.9rem; margin-bottom: 0.75rem; }
    .cta-button { font-size: 0.95rem; padding: 0.7rem; border-radius: 8px; }
}

/* Honor reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-section, .cta-button {
        transition: none;
    }
    .hero-section:hover, .cta-button:hover { transform: translateY(-50%); box-shadow: none; }
}



/* Cards */
.trump-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.trump-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #ff0800;
    transition: transform 0.3s;
}

.trump-card:hover {
    transform: translateY(-5px);
}

.trump-card .rank {
    font-size: 2rem;
    font-weight: bold;
    color: #cd0000;
    margin-bottom: 0.5rem;
}

.trump-card .name {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.trump-card .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #ffffff;
}

/* Controls */
.controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.sort-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.sort-btn:hover {
    background: #5a6fd8;
}

/* Search */
.search-container {
    margin-bottom: 2rem;
    
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.148);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid #ddd;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
}

/* Qualifiers */
.qualifiers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.qualifier-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: white;
}

.qualifier-card h3 {
    color: #f70000;
    margin-bottom: 1rem;
}

.qualifier-info {
    display: grid;
    gap: 0.5rem;
}

.qualifier-info span {
    display: flex;
    justify-content: space-between;
}

.qualifier-info .label {
    font-weight: bold;
    color: hsl(0, 100%, 100%);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    max-width: 460px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card-content {
    padding: 1.5rem;
    color: white;
}

.video-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.video-card .driver {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.video-card .date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.watch-btn {
    background: linear-gradient(45deg, rgba(255, 53, 53, 0.8), rgba(210, 25, 25, 0.329));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.watch-btn:hover {
    background: #f70000;
}

/* Broadcasting Card */
.broadcast-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #b91010;
}

.broadcast-card.offline {
    border-left-color: #dc3545;
}

.broadcast-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
}

.status-indicator.offline {
    background: #dc3545;
}

/* Tabs */
.tabs {
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}



.tab-button.active {
    color: #ffffff;
    /* border-bottom-color: #c9c5c4; */
}

.tab-content {
    display: none;

}

.tab-content.active {
    display: block;
}

/* Timeline */
.timeline-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.timeline-time {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-event {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Races */
.races-section {
    margin-top: 3rem;
}

.races-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.race-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.race-card h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
}


/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto; /* Pushes footer to the bottom */
    width: 100%;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* sticky footer that doesn't cover content */
.footer {
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 46px;
    /* glassmorphism footer */
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* subtle inner glow to lift content */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    /* border-radius: 10px; */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

/* ensure page content doesn't sit under the fixed footer */
body {
    padding-bottom: var(--footer-height);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-link:active {
    color: #ff6b35;
    transform: translateY(-2px);
    letter-spacing: 1px;
    font-weight: bold;
    }   
    
    .nav-menu li {
        margin: 0rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .trump-cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .trump-card .stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .video-grid,
    .qualifiers-container,
    .races-container {
        grid-template-columns: 1fr;
    }
}

.about-tournament {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.about-tournament h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #d62828, #780e0a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.about-tournament .description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #eed2d2;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    grid-auto-flow: dense;
}

.card {
   background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 30px rgba(12,12,20,0.06);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    /* fallback for browsers that don't support backdrop-filter */
    

    /* center the card itself and center its content */
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* subtle hover lift */
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px 5px rgba(246, 3, 3, 0.7);
    border: 1px solid #ea0606;
}


/* 
.card.active {
    box-shadow: 0 0 25px 5px rgba(107, 107, 255, 0.7);
    border: 1px solid #6b6bff;
} */

.card h2 {
    margin-bottom: 15px;
    color: #ffffff;
}

.card p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #ffffff;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.blue-dot, .orange-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.blue-dot {
    background: #ff0000;
}

.orange-dot {
    background: #ffffff;
}

.prizes {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    gap: 20px;
}

.prizes div {
    text-align: center;
    color: #080505;
}

.prizes div span {
    font-size: 2rem;
}

.link {
    color: #6b6bff;
    cursor: pointer;
    text-decoration: underline;
}

/* Responsive Adjustments for About Page */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.trump-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create a 2-column grid */
    gap: 1.5rem;
    align-items: start;
}

/* Make the 1st card span the full width (1st row) */
.trump-cards-container > .trump-card:nth-child(1) {
    grid-column: 1 / -1; /* Span all columns */
}
.trump-cards-container > .trump-card:nth-child(n+4) {

    grid-column: repeat(auto-fit, minmax(320px, 1fr));

}




/* Fallback: stack all cards on small screens */
@media (max-width: 768px) {
    .trump-cards-container {
        grid-template-columns: 1fr;
    }

    /* Reset forced spans for stacking */
    .trump-cards-container > .trump-card:nth-child(1),
    .trump-cards-container > .trump-card:nth-child(2),
    .trump-cards-container > .trump-card:nth-child(3) {
        grid-column: auto;
    }
}


.trump-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


.trump-card .image {
    position: absolute;
    inset: 0; /* fill the card */
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    z-index: 0; /* keep image behind the content */
    pointer-events: none; /* let clicks go through to content */
}

/* remove the previous right-margin on non-image children so they don't get extra padding */
.trump-card > *:not(.image) {
    position: relative;
    z-index: 1; /* content above the PNG background */
}

/* ensure the PNG is not cropped and scales to fit the card */
.trump-card .image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* do not crop, keep entire image visible */
    object-position: center right; /* adjust alignment as needed */
    border-radius: 10px; /* match card rounding */
    display: block;
    pointer-events: none;
}

/* Glass-morphism for trumpet card stats so they remain readable on top of the photo */
.trump-card {
    position: relative; /* ensure pseudo & children stack correctly */
    isolation: isolate;
}

/* Dim/soften the background image so content pops */
.trump-card .image {
    z-index: -1; /* place image beneath the overlay and content */
    filter: saturate(0.9) brightness(0.85) contrast(0.95);
    transition: filter 0.25s ease, transform 0.25s ease;
}

/* subtle dark overlay between image and content to increase contrast */
.trump-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.12));
    pointer-events: none;
    z-index: 0; /* sits above the image (-1) and below content (1) */
}

/* Glass-morphism panels for each stat */
.trump-card .stats {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-start;
    z-index: 1; /* content above overlay */
}
.trump-card:nth-child(1) {
    border-left: 4px solid #D4AF37;
    max-width: 100%;
}

.trump-card:nth-child(2) {
    border-left: 4px solid #C0C0C0;
    max-width: 100%;
}
.trump-card:nth-child(3) {
    border-left: 4px solid #cd7f32;
    max-width: 100%;
}

/* Individual stat glass panel */
.trump-card .stat {
    background: rgba(255, 255, 255, 0.06); /* translucent base */
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    width: fit-content;
    text-align: center;
    color: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* subtle hover lift for emphasis */
.trump-card .stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.34);
}

/* values and labels tuned for contrast on glass */
.trump-card .stat-value {
    color: #fffefe;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45);
    font-size: 1.15rem;
    display: block;
}
.trump-card .stat:nth-child(2) {
        display: none;
    }

.trump-card .stat-label {
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: white;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
    padding: 0 2.2rem;
    font-weight: bold;
}

/* small screens: stack stats and reduce blur for performance */
@media (max-width: 480px) {
    .trump-card .stats {
        grid-auto-flow: row;
        gap: 0.6rem;
    }
    .trump-card .stat {
        min-width: auto;
        padding: 0.6rem 0.8rem;
        border-radius: 10px;
    }
    .trump-card .stat-value { font-size: 1.05rem; }
    .trump-card::before { background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15)); }
    .trump-card .stat { -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }

    /* hide the last stat on very small screens to avoid overflow */
    .trump-card .stat:nth-child(3) {
        display: none;
    }
}

.races-section h2 {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

.page {
    scroll-margin-top: 25px; /* set to your navbar height */
}


@media (max-width: 620px) {
    .blue-dot, .orange-dot {
        display: none;
    }

    .card ul {
        list-style: disc;
        padding-left: 20px; /* Increased padding to make space for markers */
        }

        .card ul li::marker {
        font-size: 1.2em;
        }

        .card ul li:nth-child(odd)::marker {
        color: rgb(255, 0, 0);
        }

        .card ul li:nth-child(even)::marker {
        color: rgb(255, 255, 255);
    }

    .card li {
        display: list-item;
        text-align: left;
        align-items: flex-start;
    }

  
}

/* hide the races section */
.races-section {
    display: none !important;
}

/* glassmorphism style for error boxes with white text and red left border */
.error {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    color: #ffffff;
    border-left: 4px solid #ff3b3b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.02);
}

/* ensure links inside error inherit the white color */
.error a { color: inherit; text-decoration: underline; }


.groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    grid-auto-flow: dense;
}

/* Individual Group Card */

/* Center the last group card in the grid */
.groups-container > .card:last-child {
    grid-column: 1 / -1;       /* span all columns so it can be centered */
    justify-self: center;      /* center the card within the spanned area */
    width: min(520px, 90%);    /* constrain width so it doesn't stretch full width */
    max-width: 720px;
}

/* On narrow screens (single-column layout) restore normal flow */
@media (max-width: 768px) {
    .groups-container > .card:last-child {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }
}


/* Card Heading */
.groups-container .card h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Card List */
.groups-container ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* List Items */
.groups-container li {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 12px;
    width: 100%;
    font-weight: bold;
    display: flex;
    justify-content: space-between; /* name left, points right */
    align-items: center;
    color: #ffffff;
}

/* Points Styling */
.groups-container .points {
    font-size: 0.85rem;
    font-weight: bold;
    color: #ccc;
    min-width: 63px;
    background: rgba(255, 255, 255, 0.104);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 0.15rem 0.5rem; 
}

/* Rank Styles */
.rank-green {
    background: rgba(0, 255, 0, 0.15);
    border: 2px solid #00ff00;
    backdrop-filter: blur(15px);
}

.rank-yellow {
    background: rgba(255, 255, 0, 0.15);
    border: 2px solid #ffff00;
    backdrop-filter: blur(15px);
}

.rank-solid {
    background: #22222253;
    border: 2px solid #555;
}

.rank-green:hover, .rank-green:focus,
.rank-yellow:hover, .rank-yellow:focus,
.rank-solid:hover, .rank-solid:focus {
    box-shadow: 0 14px 40px rgba(2,6,23,0.55);
    transform: translateY(-2px);
}

#groups-title {
    margin-bottom: 25px;
    color: #ffffff;
}





