/*
Theme Name: Vets Racing 2026
Author: Antigravity
Description: A lightweight, custom-coded high-performance theme for iRacing League.
Version: 1.0.2
*/

:root {
    /* Color Palette */
    --primary-racing-blue: #00009D;
    --primary-racing-red: #AC0511;
    --primary-racing-grey: #697171;

    --background-dark: #000000; /* Pure black for consistent backgrounds */
    --surface-dark: #1E1E1E; /* Lighter gray only for cards/boxes, NOT backgrounds */
    --text-main: #FFFFFF;

    /* Spacing & Layout */
    --header-height: 80px;
    --container-max-width: 1400px;
}

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

body {
    background-color: #000000; /* Pure black - consistent across all pages */
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: auto; /* Ensure vertical scrolling works - single scrollbar at viewport level */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

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

/* Sticky Header */
.site-header {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-racing-red);
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.header-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-logo .logo-link {
    display: flex;
    align-items: center;
}

.site-tagline {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.main-navigation li {
    display: flex;
    align-items: center;
}

.registration-status-item {
    margin-left: -1.5rem; /* Pull it closer to Registration link */
}

.main-navigation a:hover {
    color: var(--primary-racing-red);
}

/* Registration Status Indicator - Inline after Registration menu item */
.registration-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
    vertical-align: middle;
}

.registration-status-inline .status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.registration-status-inline.status-open {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.registration-status-inline.status-open .status-indicator {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.registration-status-inline.status-open .status-text {
    color: #4CAF50;
}

.registration-status-inline.status-closed {
    background: rgba(172, 5, 17, 0.15);
    border: 1px solid rgba(172, 5, 17, 0.4);
}

.registration-status-inline.status-closed .status-indicator {
    background: var(--primary-racing-red);
    box-shadow: 0 0 6px rgba(172, 5, 17, 0.6);
}

.registration-status-inline.status-closed .status-text {
    color: var(--primary-racing-red);
}

/* Alternative: Status as separate menu item (fallback if inline doesn't work) */
.registration-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.registration-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.registration-status.status-open {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.registration-status.status-open .status-indicator {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.registration-status.status-open .status-text {
    color: #4CAF50;
}

.registration-status.status-closed {
    background: rgba(172, 5, 17, 0.15);
    border: 1px solid rgba(172, 5, 17, 0.4);
}

.registration-status.status-closed .status-indicator {
    background: var(--primary-racing-red);
    box-shadow: 0 0 8px rgba(172, 5, 17, 0.6);
}

.registration-status.status-closed .status-text {
    color: var(--primary-racing-red);
}

/* Ethnocentric Font - Add font files to assets/fonts/ folder */
/* Font will be loaded via functions.php if files exist */


/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    padding-top: 1rem;
    margin: 0;
    margin-bottom: calc(-56.25vw * 0.32); /* Pull up by 32% of container height (56.25vw is 16:9 height) */
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    background-color: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-width: 100vw;
    margin: 0 auto;
    transform: scale(0.68); /* Scale visually to 68% */
    transform-origin: top center;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden; /* Contain the carousel track */
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
    .hero-carousel-container {
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
    }
}


.carousel-track {
    display: flex;
    width: auto;
    height: 100%;
    will-change: transform;
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-image-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    width: 100vw;
    min-width: 100vw;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.carousel-image-container.fade-out {
    opacity: 0;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    object-position: center;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Season Display Section */
.season-display-section {
    background-color: #000;
    padding: 0.5rem 2rem;
    text-align: center;
    margin-top: 0.5rem; /* Small gap from carousel */
    position: relative;
    z-index: 2;
}

.season-container {
    max-width: 1400px;
    margin: 0 auto;
}

.season-title {
    font-family: 'Ethnocentric', 'Ethnocentric Italic', sans-serif;
    font-style: italic;
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 2rem 0; /* Increased bottom margin to add gap before info boxes */
    display: inline-block;
}

.season-word {
    color: #25AAE1;
    -webkit-text-stroke: 3px #000;
    text-stroke: 3px #000;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        0 0 20px rgba(37, 170, 225, 0.5);
}

.season-number {
    color: #fff;
    -webkit-text-stroke: 3px #000;
    text-stroke: 3px #000;
    text-shadow: 
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000;
    margin-left: 1rem;
}

/* Info Graphics Section */
.info-graphics-section {
    background-color: #000;
    padding: 1.5rem 2rem 2rem 2rem; /* Increased top padding to ensure boxes aren't cut off */
    margin-top: 0; /* Reset margin to use padding for spacing */
}

.info-graphics-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-graphic-box {
    width: 100%;
    aspect-ratio: 400 / 100; /* Changed from 350/180 to 400/100 for wider, shorter boxes */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.info-graphic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
    line-height: 1.6;
}

/* Legacy Hero Section (for other pages) */
.hero-section {
    position: relative;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    overflow: visible; /* Ensure no inner scrollbar - let body scroll instead */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--background-dark) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.glass-box {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    max-width: 800px;
    /* Slanted background via pseudo-element to prevent blurry text */
}

.glass-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: skew(-5deg);
    z-index: -1;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-box-content {
    /* No transform needed - keeps text sharp */
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0;
    /* Sharper shadow, less fuzzy */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    /* Force crisp rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
}

/* Fix blurry title on paint submission page - REDUCE FONT SIZE */
.paint-submission-page .hero-title {
    font-size: 3rem !important; /* Reduced from 4rem to fix blur at large sizes */
    transform: none !important; /* Remove transform to prevent blur */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-smooth: always !important;
    will-change: auto !important; /* Prevent GPU acceleration issues */
    backface-visibility: visible !important;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8) !important; /* Lighter shadow, less blur */
    filter: none !important;
}

/* Ensure all text in paint submission is crisp - INCLUDING HEADERS */
.paint-submission-page h1,
.paint-submission-page h2,
.paint-submission-page h3,
.paint-submission-page h4,
.paint-submission-page .hero-title,
.paint-submission-content .fluentform h2,
.paint-submission-content .fluentform h3,
.paint-submission-content .fluentform h4 {
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    filter: none !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-racing-red);
    margin-top: 1rem;
    display: block;
}

/* Multimedia Hub */
.multimedia-hub {
    padding: 4rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.racing-monitor {
    background: var(--surface-dark);
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 157, 0.2);
    /* Subtle blue glow base */
    transition: box-shadow 0.3s ease;
    position: relative;
}

/* Glow Border Effect specifically requested */
.racing-monitor::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 4px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-racing-blue), var(--primary-racing-red));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.racing-monitor:hover {
    box-shadow: 0 0 25px rgba(172, 5, 17, 0.4);
}

.monitor-content {
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    position: relative;
    z-index: 2;
}

.monitor-label {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-racing-grey);
    display: inline-block;
    padding-bottom: 0.25rem;
}

/* Sponsor Marquee */
.sponsor-footer {
    background-color: #000;
    padding: 2rem 0;
    overflow: hidden;
    border-top: 2px solid var(--primary-racing-blue);
}

.marquee-track {
    display: flex;
    width: calc(200px * 10);
    /* Estimate width */
    animation: scroll 20s linear infinite;
    gap: 4rem;
}

.sponsor-logo {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sponsor-footer:hover .marquee-track {
    animation-play-state: paused;
}

.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-150px * 5 - 20rem));
    }

    /* Adjust based on content */
}

/* Footer Bottom */
.site-footer-bottom {
    background-color: #000000; /* Pure black to match page background */
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

/* Extra spacing before footer on results page */
.site-main {
    margin-bottom: 0;
}

/* Add spacing when main contains results */
.site-main:has(.results-section) {
    padding-bottom: 15rem;
    margin-bottom: 5rem;
}

/* Fallback for browsers without :has() support */
.site-main.results-main {
    padding-bottom: 15rem;
    margin-bottom: 5rem;
}

.site-footer {
    margin-top: 0;
    position: relative;
    z-index: 1;
    clear: both;
    background-color: #000000; /* Match page background */
}

/* Fix footer positioning for paint submission - SIMPLE APPROACH */
/* Use WordPress body class that gets added: page-template-page-paint-submission-php */
body.page-template-page-paint-submission-php,
body:has(.paint-submission-main) {
    position: relative;
}

/* Main content area - ensure it expands to full content height */
body.page-template-page-paint-submission-php #primary.site-main,
body.page-template-page-paint-submission-php .site-main.paint-submission-main,
body:has(.paint-submission-main) #primary.site-main,
body:has(.paint-submission-main) .site-main.paint-submission-main {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

/* Section - ensure full content height */
body.page-template-page-paint-submission-php .paint-submission-page,
body:has(.paint-submission-main) .paint-submission-page {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 10rem !important; /* Large padding to push footer down */
}

/* Form container - no height constraints */
body.page-template-page-paint-submission-php .paint-form-container.glass-box,
body:has(.paint-submission-main) .paint-form-container.glass-box {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Hide any sponsor marquee that appears in the wrong place (inside form content) */
.paint-submission-content .sponsor-footer,
.paint-submission-content .marquee-container,
.paint-submission-content .marquee-track,
.paint-submission-page .sponsor-footer:not(.site-footer .sponsor-footer) {
    display: none !important;
}

/* Ensure footer appears at bottom - PAINT SUBMISSION SPECIFIC */
body.page-template-page-paint-submission-php .site-footer,
body:has(.paint-submission-main) .site-footer {
    margin-top: 0 !important;
    position: relative !important; /* Not absolute/fixed */
    clear: both !important;
    display: block !important;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-credits img {
    height: 30px;
    width: auto;
}

/* Inner Page Hero Section (Non-Fixed Height) */
.hero-section-page {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important; /* Remove max-height constraint from base .hero-section */
    overflow: visible !important; /* Ensure no inner scrollbar - let body scroll */
    display: block !important;
    align-items: normal !important;
    justify-content: normal !important;
    background-color: #000000 !important; /* Ensure consistent black background */
}

/* Paint submission page - remove ALL height constraints from .hero-section */
.hero-section.paint-submission-page,
.hero-section.hero-section-page.paint-submission-page,
body.page-template-page-paint-submission-php .hero-section.paint-submission-page,
body:has(.paint-submission-main) .hero-section.paint-submission-page {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important; /* Remove 16:9 aspect ratio constraint */
    overflow: visible !important;
    display: block !important; /* Remove flex from .hero-section */
    align-items: normal !important;
    justify-content: normal !important;
}

/* Rule consolidated above - removed duplicate */

/* Calendar Page Layout */
.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.calendar-column {
    width: 100%;
}

.round-selector-column {
    width: 100%;
}

/* Calendar and round graphic images - aligned at same vertical position */
.calendar-column .calendar-image-wrapper {
    width: 100%;
    padding: 1rem; /* Add padding to prevent clipping */
    margin-top: 0;
    background: transparent;
}

.calendar-column .calendar-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevent cropping - show full image */
    display: block;
}

.round-selector-column .round-graphic-wrapper {
    width: 100%;
    margin-top: 0;
    padding: 1rem; /* Add padding to prevent clipping */
    min-height: 400px; /* Prevent collapse */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.round-selector-column .round-graphic-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevent cropping - show full image */
    display: block;
    max-width: 100%;
}

/* Centered dropdown above the two-column layout */
.calendar-dropdown-wrapper {
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

.calendar-dropdown-wrapper label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
}

.calendar-dropdown-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-racing-blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.calendar-dropdown-wrapper select:hover {
    border-color: var(--primary-racing-red);
    background-color: rgba(255, 255, 255, 0.15);
}

.calendar-dropdown-wrapper select:focus {
    outline: none;
    border-color: var(--primary-racing-red);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.3);
}

.calendar-dropdown-wrapper select option {
    background: #1E1E1E;
    color: #fff;
    padding: 10px;
}

.calendar-dropdown-wrapper select option:hover,
.calendar-dropdown-wrapper select option:focus,
.calendar-dropdown-wrapper select option:checked {
    background: var(--primary-racing-blue);
    color: #fff;
}

.calendar-image-wrapper,
/* Removed duplicate - using more specific selector above */

.round-dropdown-wrapper label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.round-dropdown-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-racing-blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.round-dropdown-wrapper select option {
    background: #1E1E1E;
    color: #fff;
    padding: 10px;
}

.round-dropdown-wrapper select option:hover,
.round-dropdown-wrapper select option:focus {
    background: var(--primary-racing-blue);
    color: #fff;
}

.round-dropdown-wrapper select:hover {
    border-color: var(--primary-racing-red);
    background-color: rgba(255, 255, 255, 0.15);
}

.round-dropdown-wrapper select:focus {
    outline: none;
    border-color: var(--primary-racing-red);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.3);
}

/* Regulations Page Layout */
.regulations-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    overflow: visible; /* Remove max-height constraint - let content flow naturally and body scroll */
}

.regulations-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.regulations-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reg-nav-btn {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.65rem 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg-nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.reg-nav-btn:hover::after {
    left: 100%;
}

.reg-nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 157, 0.2) 0%, rgba(172, 5, 17, 0.15) 100%);
    border-color: var(--primary-racing-blue);
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(0, 0, 157, 0.4);
}

.reg-nav-btn.active {
    background: linear-gradient(135deg, var(--primary-racing-blue) 0%, rgba(0, 0, 157, 0.9) 100%);
    border-color: var(--primary-racing-red);
    border-width: 2px;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 150, 0.6), 
                0 4px 12px rgba(172, 5, 17, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(0);
}

.reg-nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-racing-red) 0%, rgba(172, 5, 17, 0.8) 100%);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.8);
}

.reg-nav-btn .nav-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.2;
    width: 100%;
}

.reg-nav-btn .nav-line-1,
.reg-nav-btn .nav-line-2 {
    display: block;
    width: 100%;
}

.reg-nav-btn .nav-line-1 {
    font-size: 0.7rem;
    opacity: 0.9;
    letter-spacing: 1px;
    line-height: 1.1;
}

.reg-nav-btn .nav-line-2 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1.1;
}

.reg-nav-btn.active .nav-line-1,
.reg-nav-btn.active .nav-line-2 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.regulations-viewer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    min-height: 600px; /* Minimum height for comfortable PDF viewing, but allow it to expand */
    position: relative;
    overflow: visible; /* Remove overflow hidden - let content extend and body scroll */
    display: flex;
    flex-direction: column;
}

.flipbook-container {
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
    transition: opacity 0.3s ease;
    overflow: visible; /* Remove overflow hidden - let iframe extend and body scroll */
}

.flipbook-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.flipbook-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    border-radius: 8px;
}

.flipbook-loading p {
    color: #fff;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.regulations-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 5;
    border-radius: 8px;
}

.placeholder-content {
    text-align: center;
    color: #fff;
    padding: 3rem;
    max-width: 400px;
}

.placeholder-content svg {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--primary-racing-red);
}

.placeholder-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-racing-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.regulations-main {
    padding-bottom: 4rem;
}

/* Results Page Layout */
.results-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

/* Split-screen results row (graphics left, CSV data right) */
.results-split-row {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
}

/* Graphics column - constrain width */
.results-graphics-column {
    max-width: 500px;
    flex-shrink: 0;
}

/* Results data column - take remaining space */
.results-data-column {
    min-width: 0; /* Allows column to shrink if needed */
}

.results-container {
    padding-bottom: 8rem;
}

.results-column {
    display: flex;
    flex-direction: column;
}

.results-column h3 {
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 700;
}

.results-boxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: fit-content;
    margin-bottom: 1rem;
}

/* Driver of the Day box with cycling support */
.result-box-dotd {
    position: relative;
    overflow: hidden;
}

.result-box-dotd .result-image-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.result-box-dotd .result-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Cycle indicator - asterisk in top right corner */
.cycle-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(172, 5, 17, 0.9);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.result-box {
    width: 100%;
    aspect-ratio: 2480 / 1756; /* Match p1-3 image ratio */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-box-blank {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Full Results Button */
.full-results-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-racing-blue);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-racing-blue);
    margin-bottom: 2rem;
}

.full-results-btn:hover {
    background: var(--primary-racing-red);
    border-color: var(--primary-racing-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(172, 5, 17, 0.3);
}

/* ============================================
   STANDINGS PAGE STYLES
   ============================================ */

/* Use body class selector for maximum specificity (WordPress adds this automatically) */
/* Standings Section - Add MORE footer spacing to prevent overlap */
body.page-template-page-standings-php .standings-section,
body:has(.standings-main) .standings-section,
.standings-section {
    padding-bottom: 40rem !important; /* MUCH MORE space before footer to prevent overlap */
    margin-bottom: 5rem !important; /* Extra margin below section */
    min-height: auto !important;
    background-color: #000000 !important;
    display: block !important;
    position: relative !important;
}

/* Main content area - ensure it expands to full content height (like paint submission) */
body.page-template-page-standings-php #primary.site-main,
body:has(.standings-main) #primary.site-main,
body.page-template-page-standings-php .site-main.standings-main,
body:has(.standings-main) .site-main.standings-main {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 10rem !important; /* Extra padding at bottom of main */
    margin-bottom: 5rem !important; /* Extra margin below main */
    overflow: visible !important;
}

/* Add LARGER spacer element to prevent footer overlap */
body.page-template-page-standings-php .standings-section::after,
body:has(.standings-main) .standings-section::after,
.standings-section::after {
    content: '';
    display: block;
    height: 400px !important; /* MUCH LARGER spacer to ensure footer doesn't overlap Split 3 & 4 */
    width: 100%;
    clear: both;
}

/* Ensure footer appears at bottom - STANDINGS PAGE SPECIFIC */
body.page-template-page-standings-php .site-footer,
body:has(.standings-main) .site-footer {
    margin-top: 10rem !important; /* Extra margin above footer to create gap */
    position: relative !important;
    clear: both !important;
    display: block !important;
    z-index: 1 !important;
    top: auto !important;
    bottom: auto !important;
}

/* Prevent footer from overlapping content */
body.page-template-page-standings-php .standings-window,
body:has(.standings-main) .standings-window {
    position: relative !important;
    z-index: 2 !important; /* Ensure windows are above footer */
}

/* ============================================
   REGISTRATION PAGE STYLES
   ============================================ */

/* Registration Section - Add EVEN MORE footer spacing to prevent overlap */
body.page-template-page-registration-php .registration-section,
body:has(.registration-main) .registration-section,
.registration-section {
    padding-bottom: 60rem !important; /* EXTRA LARGE space before footer to prevent overlap */
    margin-bottom: 10rem !important; /* Extra margin below section */
    min-height: auto !important;
    background-color: #000000 !important;
    position: relative !important;
}

/* Main content area - ensure it expands to full content height (like paint submission) */
body.page-template-page-registration-php #primary.site-main,
body:has(.registration-main) #primary.site-main,
body.page-template-page-registration-php .site-main.registration-main,
body:has(.registration-main) .site-main.registration-main {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

/* Add EXTRA LARGE spacer element to prevent footer overlap */
body.page-template-page-registration-php .registration-section::after,
body:has(.registration-main) .registration-section::after,
.registration-section::after {
    content: '';
    display: block !important;
    height: 800px !important; /* EXTRA LARGE spacer to ensure footer doesn't overlap form */
    width: 100% !important;
    clear: both !important;
    margin-top: 5rem !important;
}

/* Ensure footer appears at bottom - REGISTRATION PAGE SPECIFIC */
body.page-template-page-registration-php .site-footer,
body:has(.registration-main) .site-footer {
    margin-top: 25rem !important; /* EXTRA LARGE margin above footer to create gap */
    position: relative !important;
    clear: both !important;
    display: block !important;
    z-index: 1 !important;
    top: auto !important;
    bottom: auto !important;
}

/* Registration Status Text */
.registration-status-text {
    text-align: center;
    margin-bottom: 2rem;
}

.registration-status-text.status-open {
    color: #4CAF50;
}

.registration-status-text.status-closed {
    color: var(--primary-racing-red);
}

/* Registration Buttons */
.registration-action-btn {
    transition: all 0.3s ease;
}

.registration-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 157, 0.4);
}

.registration-action-btn[data-form-type="waiting-list"]:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 157, 0.4);
}

.registration-action-btn[data-form-type="existing-members"]:hover {
    box-shadow: 0 6px 20px rgba(172, 5, 17, 0.4);
}

/* Registration Form Container */
.registration-form-container {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 3rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 20rem !important; /* EXTRA LARGE margin below form container */
    margin-top: 3rem !important;
}

/* When form container is visible, ensure it has EXTRA spacing */
.registration-form-container[style*="display: block"],
.registration-form-container:not([style*="display: none"]) {
    margin-bottom: 25rem !important;
}

/* Also add extra spacing after Fluent Forms within the container */
.registration-form-container .fluentform,
.registration-form-content .fluentform {
    margin-bottom: 10rem !important;
    padding-bottom: 5rem !important;
}

/* Registration Container - Ensure EXTRA padding */
.registration-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-bottom: 30rem !important; /* EXTRA LARGE padding for container */
    margin-bottom: 15rem !important; /* EXTRA LARGE margin to push footer down */
    position: relative !important;
}

.registration-form-content {
    color: #fff;
}

.registration-form-hidden {
    display: none;
}

/* Style Fluent Forms within registration page */
.registration-form-container .fluentform {
    color: #fff;
}

.registration-form-container .fluentform label,
.registration-form-container .fluentform input,
.registration-form-container .fluentform select,
.registration-form-container .fluentform textarea {
    color: #fff;
}

#btn-close-form:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .registration-action-btn {
        width: 100%;
        padding: 16px 32px !important;
    }
    
    .registration-form-container {
        padding: 2rem !important;
    }
    
    .registration-status-text {
        font-size: 1.5rem !important;
    }
}

body.page-template-page-standings-php .standings-section .hero-title,
body:has(.standings-main) .standings-section .hero-title,
.standings-section .hero-title {
    color: #ffffff !important;
}

.standings-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 20rem !important; /* Extra bottom padding for container */
    margin-bottom: 10rem !important; /* Extra margin to push footer down */
    position: relative !important;
}

/* 2x2 Grid Layout - Force with !important to override any conflicting styles */
body.page-template-page-standings-php #standings-layout,
body:has(.standings-main) #standings-layout,
body.page-template-page-standings-php .standings-section .standings-layout,
body:has(.standings-main) .standings-section .standings-layout,
body.page-template-page-standings-php .standings-container .standings-layout,
body:has(.standings-main) .standings-container .standings-layout,
.standings-section .standings-layout,
#standings-layout,
.standings-container .standings-layout {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
    margin-bottom: 10rem !important; /* Much more margin below grid to prevent footer overlap */
    padding-bottom: 5rem !important; /* Extra padding below grid */
    width: 100% !important;
    max-width: none !important;
}

/* Standings Window/Container - Ensure visible containers with maximum specificity and lighter background */
body.page-template-page-standings-php .standings-window,
body:has(.standings-main) .standings-window,
body.page-template-page-standings-php .standings-section .standings-window,
body:has(.standings-main) .standings-section .standings-window,
.standings-section .standings-window,
.standings-window {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 500px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.standings-window-title {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

/* Standings Content Area */
.standings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    min-height: 300px;
}

.standings-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.standings-placeholder-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

.standings-table-placeholder {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.standings-table-placeholder p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem !important;
    padding: 2rem !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Standings iframe styling */
.standings-content .standings-iframe,
.standings-content iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
    max-height: 800px !important;
    border: none !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    flex: 1 !important;
}

/* Ensure iframe container takes full height */
.standings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    min-height: 500px;
    overflow: hidden; /* Prevent iframe overflow */
}

.standings-content table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.standings-content table th,
.standings-content table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-content table th {
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.standings-content table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Standings Button (matching Full Results button style) - Force visibility */
.standings-section .standings-btn-wrapper,
.standings-btn-wrapper {
    text-align: center !important;
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
}

.standings-section .standings-btn,
.standings-btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: var(--primary-racing-blue) !important;
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--primary-racing-blue) !important;
    font-size: 1rem !important;
    letter-spacing: 1px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.standings-btn:hover {
    background: var(--primary-racing-red) !important;
    border-color: var(--primary-racing-red) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(172, 5, 17, 0.3) !important;
}

/* Extra spacing for results columns to prevent footer overlap */
.results-column {
    padding-bottom: 3rem;
}

/* Results section spacing */
.results-section {
    padding-bottom: 15rem !important;
    margin-bottom: 0 !important;
    min-height: auto;
}

/* Results Dropdown (same styling as calendar dropdown) */
.results-dropdown-wrapper {
    max-width: 500px;
    margin: 0 auto 3rem auto;
}

.results-dropdown-wrapper label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
}

.results-dropdown-wrapper select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-racing-blue);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.results-dropdown-wrapper select:hover {
    border-color: var(--primary-racing-red);
    background-color: rgba(255, 255, 255, 0.15);
}

.results-dropdown-wrapper select:focus {
    outline: none;
    border-color: var(--primary-racing-red);
    box-shadow: 0 0 10px rgba(172, 5, 17, 0.3);
}

.results-dropdown-wrapper select option {
    background: #1E1E1E;
    color: #fff;
    padding: 10px;
}

.results-dropdown-wrapper select option:hover,
.results-dropdown-wrapper select option:focus,
.results-dropdown-wrapper select option:checked {
    background: var(--primary-racing-blue);
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header Responsive - Hide tagline on mobile, stack elements */
    .site-header {
        padding: 0 1rem;
        height: auto;
        min-height: var(--header-height);
    }

    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .site-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }

    .site-tagline {
        font-size: 0.7rem;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }

    .main-navigation {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .registration-status {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .glass-box {
        margin: 0 1rem;
        transform: skew(0deg);
    }

    .glass-box-content {
        transform: skew(0deg);
    }

    .hero-section-page {
        padding: 80px 1rem 2rem 1rem !important;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .results-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .standings-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .standings-window {
        min-height: 400px;
    }

    .regulations-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .regulations-sidebar {
        position: relative;
        top: 0;
        padding: 1rem;
    }

    .regulations-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .reg-nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .reg-nav-btn:hover {
        transform: translateX(0);
    }

    .regulations-layout {
        /* Remove max-height constraint on mobile - let content flow naturally */
        overflow: visible;
    }

    .regulations-viewer {
        padding: 0.75rem;
        min-height: 500px; /* Minimum height on mobile, but allow expansion */
        overflow: visible; /* Remove overflow hidden - let body scroll */
    }

    .flipbook-container {
        height: 100%;
        overflow: visible; /* Remove overflow hidden - let body scroll */
    }

    .flipbook-container iframe {
        height: 100%;
    }

    .season-title {
        font-size: 3.5rem;
    }

    .season-word,
    .season-number {
        -webkit-text-stroke: 2px #000;
        text-stroke: 2px #000;
    }

    .info-graphics-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-graphic-box {
        aspect-ratio: 350 / 180;
        max-width: 100%;
    }
}

/* ============================================
   PAINT SUBMISSION PAGE STYLES
   ============================================
   These styles enhance the visual appearance while
   preserving all functionality (IDs, classes, structure)
   ============================================ */

/* Paint Submission Page Container - FIX FOOTER POSITIONING */
.paint-submission-page {
    padding: 80px 2rem 4rem 2rem;
    padding-bottom: 15rem !important; /* Very large padding to push footer down */
    position: relative;
    min-height: auto; /* Let content determine height */
    width: 100%;
    display: block !important; /* Normal flow, not flex */
    overflow: visible !important; /* Ensure content isn't clipped */
}

/* Add spacer after form content to push footer down */
.paint-submission-page::after {
    content: '';
    display: block;
    height: 20rem; /* Large spacer */
    width: 100%;
}

/* Fix glass-box for paint submission - WIDTH RESTORED FOR 2-COLUMN + 1-COLUMN LAYOUT */
.paint-form-container.glass-box {
    max-width: 1200px !important; /* Wider to accommodate 2-column section at top */
    overflow: visible !important; /* Allow content to flow naturally */
    position: relative;
    padding: 3rem 4rem !important; /* Restored padding */
    min-height: auto !important;
    height: auto !important; /* Let content determine height */
    width: 100%;
    box-sizing: border-box;
}

/* REMOVE SKEW TRANSFORM and BACKDROP BLUR for paint submission to fix blurry text and background alignment */
.paint-form-container.glass-box::before {
    transform: none !important; /* NO SKEW - causes blurry text and misaligned background */
    backdrop-filter: none !important; /* REMOVE BLUR - causes text to appear blurry */
    -webkit-backdrop-filter: none !important;
    border-radius: 8px; /* Add rounded corners instead */
    width: 100% !important; /* Full width */
    height: 100% !important; /* Full height */
    left: 0 !important;
    top: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important; /* Solid background without blur */
}

/* Ensure glass-box-content text is sharp */
.paint-form-container .glass-box-content {
    text-align: left !important; /* Form content should be left-aligned, not center */
    position: relative;
    z-index: 2; /* Ensure content is above background */
    transform: none !important; /* No transforms on content */
}

.paint-submission-content {
    text-align: left;
    color: #fff;
    margin-top: 2rem;
    display: block !important; /* Normal flow */
}

/* Fluent Forms Container Styling - RESTORED TO SUPPORT FLUENT FORMS' BUILT-IN COLUMNS */
.paint-submission-content .fluentform,
.paint-submission-content .fluentform form,
.paint-submission-content .fluentform form fieldset {
    width: 100% !important;
    max-width: 100% !important;
}

/* Allow Fluent Forms' own column system to work naturally */
.paint-submission-content .fluentform .ff-el-group {
    box-sizing: border-box !important;
}

/* Let Fluent Forms handle its own column layout - no forced overrides */

/* Fluent Forms Labels - Professional Typography (catch all label variations) */
.paint-submission-content .fluentform label,
.paint-submission-content .fluentform label.ff-el-form-label,
.paint-submission-content .fluentform .ff-el-form-label {
    display: block;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required Field Indicator (various possible selectors) */
.paint-submission-content .fluentform label .ff-el-form-required,
.paint-submission-content .fluentform label .required,
.paint-submission-content .fluentform label .asterisk {
    color: var(--primary-racing-red) !important;
    margin-left: 4px;
}

/* Fluent Forms Input Prefix Groups (for color code field with #) - Multiple selector patterns */
.paint-submission-content .fluentform .ff_input_prefix,
.paint-submission-content .fluentform .ff-el-input-group,
.paint-submission-content .fluentform .input-group,
.paint-submission-content .fluentform [class*="input-group"],
.paint-submission-content .fluentform [class*="prefix"] {
    display: flex !important;
    align-items: stretch !important; /* Stretch to match input height */
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* Prefix label/text styling - TIGHT WIDTH, just enough for the symbol */
.paint-submission-content .fluentform .ff_input_prefix .ff_input_prefix_label,
.paint-submission-content .fluentform .ff-el-input-group .input-group-prepend,
.paint-submission-content .fluentform .input-group .input-group-text,
.paint-submission-content .fluentform [class*="input-group"] [class*="prepend"],
.paint-submission-content .fluentform [class*="prefix"] span,
.paint-submission-content .fluentform [class*="prefix"] label,
.paint-submission-content .fluentform [class*="prefix"]:before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 12px !important; /* Tight padding, just enough for # */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
    border-radius: 4px 0 0 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    width: auto !important; /* Auto width based on content */
    min-width: auto !important; /* No minimum width */
    max-width: fit-content !important; /* Only as wide as needed */
    flex: 0 0 auto !important; /* Don't grow or shrink, just be content size */
    height: 100% !important;
}

/* Input in prefix group */
.paint-submission-content .fluentform .ff_input_prefix input,
.paint-submission-content .fluentform .ff-el-input-group input,
.paint-submission-content .fluentform .input-group input,
.paint-submission-content .fluentform [class*="input-group"] input[type="text"],
.paint-submission-content .fluentform [class*="prefix"] input {
    border-radius: 0 4px 4px 0 !important;
    border-left: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Allow flex shrinking */
}

/* Fluent Forms Text Inputs - Professional Styling (catch all input types) */
.paint-submission-content .fluentform input[type="text"],
.paint-submission-content .fluentform input[type="email"],
.paint-submission-content .fluentform input[type="number"],
.paint-submission-content .fluentform input[type="tel"],
.paint-submission-content .fluentform .ff-el-input,
.paint-submission-content .fluentform .ff-el-form-control {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Arial', sans-serif !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Fix inputs that are part of input groups (remove left border radius if in group) */
.paint-submission-content .fluentform .ff_input_prefix input[type="text"],
.paint-submission-content .fluentform .ff-el-input-group input[type="text"],
.paint-submission-content .fluentform .input-group input[type="text"] {
    border-left: none !important;
    border-radius: 0 4px 4px 0 !important;
}

.paint-submission-content .fluentform input[type="text"]:focus,
.paint-submission-content .fluentform input[type="email"]:focus,
.paint-submission-content .fluentform input[type="number"]:focus,
.paint-submission-content .fluentform input[type="tel"]:focus,
.paint-submission-content .fluentform .ff-el-input:focus,
.paint-submission-content .fluentform .ff-el-form-control:focus {
    outline: none !important;
    border-color: var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

/* Fix focus state for input groups - update prefix border too */
.paint-submission-content .fluentform .ff_input_prefix:focus-within .ff_input_prefix_label,
.paint-submission-content .fluentform .ff-el-input-group:focus-within .input-group-prepend,
.paint-submission-content .fluentform .input-group:focus-within .input-group-text {
    border-color: var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.paint-submission-content .fluentform .ff_input_prefix:focus-within input,
.paint-submission-content .fluentform .ff-el-input-group:focus-within input,
.paint-submission-content .fluentform .input-group:focus-within input {
    border-color: var(--primary-racing-blue) !important;
    border-left: 2px solid var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

.paint-submission-content .fluentform input[type="text"]::placeholder,
.paint-submission-content .fluentform input[type="email"]::placeholder,
.paint-submission-content .fluentform input[type="number"]::placeholder,
.paint-submission-content .fluentform input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fluent Forms Select Dropdowns (catch all variations) */
.paint-submission-content .fluentform select,
.paint-submission-content .fluentform .ff-el-select select {
    width: 100% !important;
    padding: 12px 16px !important;
    padding-right: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Arial', sans-serif !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.paint-submission-content .fluentform select:hover {
    border-color: var(--primary-racing-blue) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.paint-submission-content .fluentform select:focus {
    outline: none !important;
    border-color: var(--primary-racing-blue) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

.paint-submission-content .fluentform select option {
    background: #1E1E1E !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Section Headers - Style any H2/H3/H4 in form as section headers - FIX BLURRY */
.paint-submission-content .fluentform h2,
.paint-submission-content .fluentform h3,
.paint-submission-content .fluentform h4,
.paint-submission-content .fluentform .section-header {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 2.5rem 0 1rem 0 !important;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    /* AGGRESSIVE FIX FOR BLURRY HEADERS - REMOVE ALL BLUR SOURCES */
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    filter: none !important;
    text-shadow: none !important;
    /* Remove any glow effects */
    box-shadow: none !important;
    /* Force crisp rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.paint-submission-content .fluentform h2:first-child,
.paint-submission-content .fluentform h3:first-child {
    margin-top: 1rem !important;
}

/* Section Instructions/Notes */
.paint-submission-content .fluentform p,
.paint-submission-content .fluentform .ff-el-help,
.paint-submission-content .fluentform .instruction-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

/* Section Dividers / Custom HTML Fields */
.paint-submission-content .fluentform hr,
.paint-submission-content .fluentform .ff-el-custom_html hr {
    border: none !important;
    border-top: 2px solid rgba(255, 255, 255, 0.1) !important;
    margin: 2.5rem 0 1.5rem 0 !important;
}

/* Custom Upload Zones - CHANGE COLORS HERE */
#drop-zone-main,
#drop-zone-spec {
    border: 2px dashed var(--primary-racing-blue) !important; /* Blue border instead of white */
    padding: 2rem !important;
    text-align: center !important;
    background: rgba(0, 0, 157, 0.1) !important; /* Blue tinted background */
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    min-height: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 157, 0.2) !important; /* Blue shadow */
}

#drop-zone-main:hover,
#drop-zone-spec:hover {
    border-color: var(--primary-racing-blue) !important;
    background: rgba(0, 0, 157, 0.15) !important; /* Slightly brighter blue on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 157, 0.3) !important;
}

/* Drag Over State */
#drop-zone-main.dragover,
#drop-zone-spec.dragover {
    border-color: var(--primary-racing-blue);
    background: rgba(0, 0, 157, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 0, 157, 0.3);
}

/* Uploading State */
#drop-zone-main.uploading,
#drop-zone-spec.uploading {
    border-color: var(--primary-racing-blue);
    background: rgba(0, 0, 157, 0.15);
}

#drop-zone-main.uploading::before,
#drop-zone-spec.uploading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-racing-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
#drop-zone-main.success,
#drop-zone-spec.success {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

/* Error State */
#drop-zone-main.error,
#drop-zone-spec.error {
    border-color: var(--primary-racing-red);
    background: rgba(172, 5, 17, 0.1);
}

/* Upload Zone Text */
#drop-zone-main p,
#drop-zone-spec p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

/* Browse Button Styling - FIXED TO LOOK BETTER */
#drop-zone-main .btn-browse,
#drop-zone-spec .btn-browse {
    padding: 12px 28px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Arial', sans-serif !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#drop-zone-main .btn-browse:hover,
#drop-zone-spec .btn-browse:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: var(--primary-racing-blue) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 157, 0.3) !important;
}

/* Upload Status Messages */
#drop-zone-main .upload-status,
#drop-zone-spec .upload-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    min-height: 20px;
}

#drop-zone-main.success .upload-status,
#drop-zone-spec.success .upload-status {
    color: #4CAF50;
    font-weight: 600;
}

#drop-zone-main.error .upload-status,
#drop-zone-spec.error .upload-status {
    color: var(--primary-racing-red);
    font-weight: 600;
}

/* Fluent Forms Checkbox Styling (catch all variations) */
.paint-submission-content .fluentform input[type="checkbox"],
.paint-submission-content .fluentform input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    accent-color: var(--primary-racing-blue) !important;
    flex-shrink: 0;
}

.paint-submission-content .fluentform .ff-checkable-label,
.paint-submission-content .fluentform label[for*="checkbox"],
.paint-submission-content .fluentform label[for*="radio"] {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    text-transform: none !important; /* Override uppercase for checkbox labels */
    letter-spacing: normal !important;
    font-weight: 400 !important;
}

/* Fluent Forms Submit Button (catch all button variations) - FIX BLURRY TEXT */
.paint-submission-content .fluentform .ff-btn-submit,
.paint-submission-content .fluentform button[type="submit"],
.paint-submission-content .fluentform .ff_submit_btn,
.paint-submission-content .fluentform input[type="submit"],
.paint-submission-content .fluentform .ff-btn {
    width: 100% !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, var(--primary-racing-red) 0%, #8B0000 100%) !important;
    border: 2px solid var(--primary-racing-red) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif !important;
    margin-top: 2rem !important;
    box-sizing: border-box;
    /* AGGRESSIVE FIX FOR BLURRY SUBMIT BUTTON TEXT */
    transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    text-shadow: none !important;
    /* Remove any glow effects */
    filter: none !important;
    box-shadow: none !important;
    /* Force crisp rendering */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.paint-submission-content .fluentform .ff-btn-submit:hover,
.paint-submission-content .fluentform button[type="submit"]:hover,
.paint-submission-content .fluentform .ff_submit_btn:hover,
.paint-submission-content .fluentform input[type="submit"]:hover {
    background: linear-gradient(135deg, #CC0511 0%, var(--primary-racing-red) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(172, 5, 17, 0.4) !important;
}

.paint-submission-content .fluentform .ff-btn-submit:active,
.paint-submission-content .fluentform button[type="submit"]:active,
.paint-submission-content .fluentform .ff_submit_btn:active,
.paint-submission-content .fluentform input[type="submit"]:active {
    transform: translateY(0);
}

/* Fluent Forms Textarea (catch all variations) */
.paint-submission-content .fluentform textarea,
.paint-submission-content .fluentform .ff-el-textarea textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-family: 'Arial', sans-serif !important;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.paint-submission-content .fluentform textarea:focus,
.paint-submission-content .fluentform .ff-el-textarea textarea:focus {
    outline: none !important;
    border-color: var(--primary-racing-blue) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 10px rgba(0, 0, 170, 0.3) !important;
}

.paint-submission-content .fluentform textarea::placeholder,
.paint-submission-content .fluentform .ff-el-textarea textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Fluent Forms Error Messages */
.paint-submission-content .fluentform .ff-el-is-error .ff-el-form-control {
    border-color: var(--primary-racing-red) !important;
}

.paint-submission-content .fluentform .text-danger,
.paint-submission-content .fluentform .ff-error {
    color: var(--primary-racing-red);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Help Text / Descriptions */
.paint-submission-content .fluentform .ff-el-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive Design for Paint Submission */
@media (max-width: 768px) {
    .paint-form-container {
        padding: 2rem 1.5rem;
        max-width: 100% !important;
    }
    
    .paint-submission-page {
        padding: 80px 1rem 2rem 1rem;
    }
    
    #drop-zone-main,
    #drop-zone-spec {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .paint-submission-content .fluentform input[type="text"],
    .paint-submission-content .fluentform input[type="email"],
    .paint-submission-content .fluentform input[type="number"],
    .paint-submission-content .fluentform select,
    .paint-submission-content .fluentform textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Smaller title on mobile */
    .paint-submission-page .hero-title {
        font-size: 2.5rem !important;
    }
}

/* ============================================
   NEWS PAGE STYLES
   ============================================ */

/* News Feed Item Hover Effect */
.news-article-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7) !important;
}

.news-title a:hover {
    color: var(--primary-racing-blue) !important;
}

/* News Pagination Styling */
.news-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.news-pagination li {
    margin: 0;
}

.news-pagination a,
.news-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-pagination a:hover {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

.news-pagination .current {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .news-article-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .news-title-date {
        order: 1;
    }
    
    .news-excerpt {
        order: 2;
    }
    
    .news-image {
        order: 3;
    }
    
    .news-single-title {
        font-size: 1.8rem !important;
    }
}

/* ============================================
   MEDIA PAGE STYLES
   ============================================ */

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Media Card */
.media-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
}

.media-card:hover .play-overlay {
    background: rgba(255, 0, 0, 1) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Media Pagination (reuse news pagination styles) */
.media-pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.media-pagination li {
    margin: 0;
}

.media-pagination a,
.media-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.media-pagination a:hover {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

.media-pagination .current {
    background: var(--primary-racing-blue);
    border-color: var(--primary-racing-blue);
    color: #fff;
}

/* Media Filters */
.media-filters select {
    cursor: pointer;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.media-filters select option {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
}

.media-filters select:focus {
    outline: 2px solid var(--primary-racing-blue);
    outline-offset: 2px;
    background: rgba(0, 0, 0, 0.8) !important;
}

#clear-filters:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive: Media Page */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .media-filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .media-filters select {
        width: 100% !important;
    }
}