:root {
    --bg-deep: #08090c;
    --bg-card: #12151c;
    --border-color: #222736;
    --accent-red: #ff1801;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: system-ui, sans-serif; 
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 24, 1, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(255, 24, 1, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 24, 1, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    color: var(--text-main); 
    overflow-x: hidden; 
}

/* Header & Modernized Nav Tabs */
header { position: fixed; top: 0; width: 100%; background-color: rgba(8, 9, 12, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 1rem 2rem; }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.4rem; color: var(--text-main); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }
.logo span { color: var(--accent-red); }

.nav-links { display: flex; gap: 1rem; list-style: none; align-items: center; }
.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.08em; 
    padding: 0.6rem 1.25rem; 
    background: linear-gradient(135deg, rgba(18, 21, 28, 0.8), rgba(26, 31, 44, 0.8)); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.nav-links a:hover { 
    color: #fff; 
    border-color: rgba(255, 24, 1, 0.6); 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 24, 1, 0.2);
}
.nav-links a.active-tab { 
    color: #fff; 
    background: linear-gradient(135deg, #ff1801, #b31101); 
    border-color: var(--accent-red); 
    box-shadow: 0 0 25px rgba(255, 24, 1, 0.4);
}

/* Dropdown Menu Styles */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #12151c;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 1100;
    margin-top: 0.5rem;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { width: 100%; }
.dropdown-menu a {
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.85rem;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: rgba(255, 24, 1, 0.1) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile Hamburger & Menu Styles */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: #fff; }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: #08090c; padding: 20px; border-bottom: 1px solid var(--border-color); z-index: 999; max-height: 80vh; overflow-y: auto; }
.mobile-menu a { display: block; padding: 12px; color: #fff; text-align: center; text-decoration: none; font-weight: 800; text-transform: uppercase; border-bottom: 1px solid var(--border-color); }
.mobile-submenu-title { color: var(--accent-red); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 12px 4px 12px; text-align: center; font-weight: 900; }

@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

/* Floating Promo Widget */
.floating-promo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #161a25, #1e1315);
    border: 2px solid rgba(255, 24, 1, 0.6);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    z-index: 1500;
    box-shadow: 0 8px 30px rgba(255, 24, 1, 0.25);
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.promo-img-container {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #000;
}
.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.floating-promo h4 { font-size: 1rem; font-weight: 900; text-transform: uppercase; color: #fff; letter-spacing: 0.02em; display: flex; justify-content: space-between; align-items: center; }
.floating-promo p { color: #d1d5db; font-size: 0.85rem; line-height: 1.4; }
.promo-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.25rem; }
.promo-price { font-weight: 900; color: var(--accent-red); font-size: 1.1rem; }
.close-promo { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; font-weight: bold; }
.close-promo:hover { color: #fff; }

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(rgba(8, 9, 12, 0.7), rgba(8, 9, 12, 0.7)), url('https://lh3.googleusercontent.com/d/1CR-ZOkyxfkn-fpA-bVVNV5v6yidD4INY');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
}
.hero-content { max-width: 900px; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; margin-bottom: 0.5rem; }
.hero h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; color: var(--accent-red); text-shadow: 0 0 30px rgba(255, 24, 1, 0.4); margin-bottom: 2rem; }
.hero p { color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 600px; margin: 0 auto 2.5rem auto; }

/* Main Content Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 6rem 2rem; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }
@media (max-width: 1024px) { .content-grid { grid-template-columns: 1fr; } }

.section-title { font-size: 2.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3rem; display: flex; align-items: center; gap: 1rem; color: #fff; }
.section-title::after { content: ""; flex: 1; height: 2px; background-color: var(--border-color); }

/* Affiliates & Sponsors */
.affiliates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.affiliate-card { background: #141822; border: 2px solid var(--border-color); border-radius: 10px; padding: 2.25rem 2rem; position: relative; overflow: hidden; transition: all 0.25s ease; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.affiliate-card.featured { background: linear-gradient(135deg, #161a25, #1e1315); border-color: rgba(255, 24, 1, 0.6); box-shadow: 0 0 30px rgba(255, 24, 1, 0.12); }
.affiliate-card:hover { transform: translateY(-5px); border-color: var(--accent-red); box-shadow: 0 8px 30px rgba(255, 24, 1, 0.25); }
.sponsor-badge { position: absolute; top: 1rem; right: 1rem; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; padding: 0.3rem 0.6rem; background: var(--accent-red); color: #fff; border-radius: 4px; letter-spacing: 0.05em; box-shadow: 0 2px 10px rgba(255, 24, 1, 0.4); }
.affiliate-card h4 { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.75rem; color: #fff; letter-spacing: 0.02em; }
.affiliate-card p { color: #d1d5db; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.75rem; }
.promo-box { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.6); border: 1px solid #32394d; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1.25rem; font-family: monospace; font-size: 0.95rem; color: #e5e7eb; }
.promo-code { color: #ff3319; font-weight: 900; font-size: 1.1rem; letter-spacing: 0.08em; text-shadow: 0 0 10px rgba(255, 24, 1, 0.3); }
.affiliate-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1rem; background-color: #1f2433; border: 1px solid #374151; border-radius: 6px; color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; }
.affiliate-btn:hover { background-color: var(--accent-red); border-color: var(--accent-red); color: #fff; transform: translateY(-1px); }

/* Racing Showcase */
.real-racing-section { margin-top: 6rem; border-top: 1px solid var(--border-color); padding-top: 5rem; }
.racing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .racing-grid { grid-template-columns: 1fr; } }
.racing-slideshow { width: 100%; aspect-ratio: 16 / 9; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); background-color: #000; }
.racing-slide { width: 100%; height: 100%; background-size: cover; background-position: center; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.racing-slide.active { opacity: 1; }
.racing-videos { display: flex; flex-direction: column; gap: 1.5rem; }
.video-container { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Sidebar - Sticky */
.sidebar { display: flex; flex-direction: column; gap: 2.5rem; position: sticky; top: 100px; }
@media (max-width: 1024px) { .sidebar { position: static; } }

.sidebar-box { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; }
.sidebar-header-flex { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.sidebar-box h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-color); }
.live-badge.is-live { background: rgba(255, 24, 1, 0.15); color: var(--accent-red); border-color: rgba(255, 24, 1, 0.4); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--text-muted); }
.live-badge.is-live .live-dot { background-color: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(0.95); opacity: 0.8; } }

.carousel-wrapper { width: 100%; aspect-ratio: 1 / 1; position: relative; border-radius: 6px; overflow: hidden; cursor: pointer; border: 1px solid var(--border-color); }
.carousel-slide { width: 100%; height: 100%; background-size: cover; background-position: center; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.carousel-slide.active { opacity: 1; }

.stream-cta {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.85rem; padding: 0.7rem 1rem;
    background: linear-gradient(135deg, rgba(255, 24, 1, 0.15), rgba(255, 24, 1, 0.05));
    border: 1px solid rgba(255, 24, 1, 0.5); border-radius: 6px; color: #fff; font-size: 0.85rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em; text-shadow: 0 0 10px rgba(255, 24, 1, 0.4);
    box-shadow: 0 4px 15px rgba(255, 24, 1, 0.15); transition: all 0.2s ease;
}
.carousel-wrapper:hover + .stream-cta, .stream-cta:hover {
    background: linear-gradient(135deg, var(--accent-red), #b31101);
    border-color: var(--accent-red); box-shadow: 0 0 20px rgba(255, 24, 1, 0.4); transform: translateY(-1px);
}

.social-btn { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background-color: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; }
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.social-btn:hover { background-color: rgba(255, 24, 1, 0.1); border-color: var(--accent-red); color: #fff; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background: var(--bg-card); padding: 3rem; border-radius: 8px; text-align: center; border: 1px solid var(--border-color); max-width: 400px; width: 90%; }
.modal-btn { display: block; width: 100%; margin: 1rem 0; padding: 1rem; background: var(--accent-red); color: white; text-decoration: none; font-weight: bold; border-radius: 4px; text-transform: uppercase; }

/* PC & Rig Showcase Layouts */
.page-hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(rgba(8, 9, 12, 0.75), rgba(8, 9, 12, 0.85)), url('https://lh3.googleusercontent.com/d/1fBQ99RfqAvNkg_qnHgrBVLBnbHK-hVbY');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    margin-top: 70px;
}
.page-hero-content { max-width: 900px; z-index: 2; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; margin-bottom: 0.5rem; color: #fff; }
.page-hero h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; color: var(--accent-red); text-shadow: 0 0 30px rgba(255, 24, 1, 0.4); margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 600px; margin: 0 auto; }

.video-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 4rem; border: 2px solid var(--border-color); border-radius: 8px; overflow: hidden; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 2.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; } }

.slideshow-wrapper { width: 100%; aspect-ratio: 16 / 9; position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); background-color: #000; cursor: pointer; }
.slideshow { width: 100%; height: 100%; position: relative; transition: transform 0.3s ease; }
.slideshow-wrapper:hover .slideshow { transform: scale(1.03); }
.slide { width: 100%; height: 100%; background-size: cover; background-position: center; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }

.spec-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 0; }
.spec-list li { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.spec-list li span:first-child { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

.part-link { display: inline-flex; align-items: center; justify-content: center; padding: 0.4rem 0.75rem; background-color: #1f2433; border: 1px solid #374151; border-radius: 6px; color: #fff; text-decoration: none; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; }
.part-link:hover { background-color: var(--accent-red); border-color: var(--accent-red); color: #fff; }

.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); justify-content: center; align-items: center; z-index: 3000; padding: 2rem; cursor: zoom-out; }
.image-modal img { max-width: 90%; max-height: 90vh; border-radius: 8px; border: 2px solid var(--border-color); box-shadow: 0 0 40px rgba(0,0,0,0.8); object-fit: contain; }

/* Pre-Built PCs Page Layouts */
.question-banner { background: linear-gradient(135deg, #161a25, #1e1315); border: 1px solid rgba(255, 24, 1, 0.4); border-radius: 10px; padding: 2.5rem; margin-bottom: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.question-banner div h3 { color: #fff; font-size: 1.25rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.5rem; }
.question-banner div p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.question-banner a { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.75rem; background: var(--accent-red); color: #fff; text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; border-radius: 6px; box-shadow: 0 0 20px rgba(255, 24, 1, 0.4); transition: all 0.2s ease; white-space: nowrap; }
.question-banner a:hover { background: #e01500; transform: translateY(-2px); box-shadow: 0 0 25px rgba(255, 24, 1, 0.6); }

.guide-intro { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 2.5rem; margin-bottom: 4rem; line-height: 1.7; color: var(--text-muted); }
.guide-intro h2 { color: #fff; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.guide-intro p { margin-bottom: 1rem; }

.tier-section { margin-bottom: 4rem; }
.tier-description { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; font-style: italic; }

.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.pc-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.25s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.5); position: relative; }
.pc-card:hover { transform: translateY(-5px); border-color: var(--accent-red); box-shadow: 0 8px 30px rgba(255, 24, 1, 0.2); }
.pc-card.top-pick { border-color: rgba(255, 24, 1, 0.7); background: linear-gradient(135deg, #161a25, #1e1315); box-shadow: 0 0 25px rgba(255, 24, 1, 0.18); }
.pick-badge { position: absolute; top: -12px; right: 20px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; padding: 0.3rem 0.75rem; background: var(--accent-red); color: #fff; border-radius: 4px; letter-spacing: 0.05em; box-shadow: 0 2px 10px rgba(255, 24, 1, 0.4); }

.pc-header-flex { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.pc-card h3 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; color: #fff; line-height: 1.3; }
.pc-price { font-size: 1.25rem; font-weight: 900; color: var(--accent-red); white-space: nowrap; }

.faq-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 2.5rem; margin-top: 4rem; }
.faq-section h2 { color: #fff; font-size: 1.75rem; font-weight: 900; text-transform: uppercase; margin-bottom: 2rem; }
.faq-item { margin-bottom: 1.75rem; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item h3 { color: #fff; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Trophy Room Specific Layouts & Components */
.jump-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, #161a25, #222938); color: #fff; text-decoration: none; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.75rem 1.5rem; border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.25s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.jump-btn:hover { border-color: var(--accent-red); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 24, 1, 0.25); color: var(--accent-red); }

.subsection-title { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; color: var(--accent-red); margin: 2rem 0 1rem 0; display: flex; align-items: center; gap: 0.5rem; }
.championships-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.year-group { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 768px) { .championships-grid { grid-template-columns: 1fr; } }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; width: 100%; }
.cert-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.4); display: flex; flex-direction: column; }
.cert-card:hover { transform: translateY(-4px); border-color: var(--accent-red); box-shadow: 0 6px 25px rgba(255, 24, 1, 0.25); }
.cert-thumb-container { width: 100%; aspect-ratio: 4 / 3; background: #000; overflow: hidden; position: relative; }
.cert-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cert-card:hover .cert-thumb { transform: scale(1.04); }
.cert-info { padding: 1rem 1.15rem; }
.cert-info h4 { font-size: 0.95rem; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 0.25rem; line-height: 1.3; }
.cert-info p { color: var(--text-muted); font-size: 0.8rem; }
.cert-card.placeholder { cursor: default; border-style: dashed; border-color: var(--border-color); background: rgba(18, 21, 28, 0.4); }
.cert-card.placeholder:hover { transform: none; border-color: var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.4); }

.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.event-card { background-size: cover; background-position: center; border: 1px solid var(--border-color); border-radius: 10px; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.25s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.7); position: relative; overflow: hidden; }
.event-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(12, 15, 22, 0.94) 0%, rgba(8, 9, 12, 0.96) 100%); z-index: 1; }
.event-card > * { position: relative; z-index: 2; }
.event-card:hover { transform: translateY(-4px); border-color: var(--accent-red); box-shadow: 0 8px 30px rgba(255, 24, 1, 0.3); }
.event-badge { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; padding: 0.3rem 0.6rem; background: rgba(255, 24, 1, 0.2); border: 1px solid rgba(255, 24, 1, 0.5); color: #ffb1a8; border-radius: 4px; letter-spacing: 0.05em; }
.event-card h3 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.event-date { font-size: 0.85rem; font-weight: 700; color: #ff6b5b; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 0.05em; }
.event-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1rem; margin-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; font-size: 0.85rem; color: var(--text-muted); background: rgba(0,0,0,0.3); border-radius: 6px; padding-left: 0.75rem; padding-right: 0.75rem; }
.event-stats div span { color: #fff; font-weight: 700; }
.event-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.event-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; background: rgba(18, 21, 28, 0.8); border: 1px solid var(--border-color); border-radius: 6px; color: #fff; text-decoration: none; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; transition: all 0.2s ease; backdrop-filter: blur(4px); }
.event-btn:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; }

.table-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 1.25rem 1.5rem; }
.filter-group-container { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 0.75rem; }
.filter-group label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.filter-group select { background: #08090c; color: #fff; border: 1px solid var(--border-color); padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600; outline: none; cursor: pointer; }
.filter-group select:hover { border-color: var(--accent-red); }

.table-wrapper { width: 100%; overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.82rem; }
th { background: #161a25; color: #fff; font-weight: 800; text-transform: uppercase; padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--border-color); letter-spacing: 0.03em; cursor: pointer; user-select: none; transition: background 0.2s; white-space: nowrap; }
th:hover { background: #222938; color: var(--accent-red); }
th span { font-size: 0.7rem; margin-left: 0.25rem; color: var(--text-muted); }
td { padding: 0.85rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-muted); vertical-align: middle; }
tr:nth-child(even) td { background: rgba(255, 255, 255, 0.01); }
tr:hover td { background: rgba(255, 24, 1, 0.05); color: #fff; }
.team-highlight { color: #fff; font-weight: 800; white-space: nowrap; }
.driver-badge { display: inline-block; background: rgba(255, 24, 1, 0.12); border: 1px solid rgba(255, 24, 1, 0.4); color: #ffb1a8; padding: 0.15rem 0.45rem; border-radius: 4px; font-weight: 700; font-size: 0.78rem; margin: 0.1rem; white-space: nowrap; }

footer { border-top: 1px solid var(--border-color); padding: 3rem 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }