:root {
    --gold-light: #f5d77f;
    --gold-mid: #c59b27;
    --gold-dark: #7a5c0b;
    --red-main: #404040;
    --red-bright: #510000;
    --dark-bg: #0d0d0d;
    --card-bg: rgba(20, 20, 20, 0.88);
    --gold-shimmer: #fff3a8; /* Extra bright top reflection */


}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif; /* Set clean, readable text as default */
}

/* Restrict heavy 'Arial Black' strictly to headlines, buttons, and logos */
h1, h2, h3, h4, .logo, .btn, .menu-toggle, nav a {
    font-family: 'Arial Black', Impact, sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    padding: 12px;
}

a {
	color:inherit;
	text-decoration:none;
}

/* Update the area behind the cards to charcoal with the dot texture */
.page-frame {
    background-color: #1a1a1a; /* Charcoal background */
    background-image: 
        radial-gradient(#333 15%, transparent 16%),
        radial-gradient(#333 15%, transparent 16%); /* Charcoal dots */
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    border: 0px solid var(--gold-shimmer);
    outline: 0px solid var(--gold-dark);
    border-radius: 12px;
    overflow: hidden;
 
}

.gold-border-rounded {
    border: 2px solid var(--gold-mid);
    border-radius: 8px;
    /* Inner and outer metallic reflections */
    box-shadow: 
        inset 0 1px 2px var(--gold-light),   /* Top highlight reflection */
        inset 0 -1px 2px var(--gold-dark),  /* Bottom shadow reflection */
        0 2px 5px rgba(0, 0, 0, 0.6);        /* Outer drop shadow */
}

/* Base Toggle Button Styling (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--gold-mid);
    color: var(--gold-light);
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 1px 2px #fff3a8;
}

.menu-toggle:hover {
    color: #fff;
    border-color: var(--gold-light);
}



/* Header & Menu Right-Alignment */
header {
    background: linear-gradient(90deg, var(--red-bright) 0%, #000 60%);
    border: 1px solid var(--gold-mid);
	   box-shadow: 
        inset 0 1px 2px var(--gold-light),   /* Top highlight reflection */
        inset 0 -1px 2px var(--gold-dark),  /* Bottom shadow reflection */
        0 2px 5px rgba(0, 0, 0, 0.6);        /* Outer drop shadow */
    border-radius: 8px 0 20px 20px;
    margin: 10px 15px 0 15px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

}

/* Update Logo Container for Graphic */
.logo {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Control Graphic Sizing */
.logo-img {
    height: 125px; /* Adjust height as needed to fit header height */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.7)); /* Subtle shadow to pop off background */
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.03); /* Subtle lift on hover */
}

/* Mobile Sizing Adjustment */
@media (max-width: 768px) {
    .logo-img {
        height: 75px; /* Slightly smaller for mobile screens */
    }
}

/* Nav Container Adjustment */
nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the text links and social icons */
    flex-wrap: wrap;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--gold-light);
}


/* Social Icons Wrapper */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 18px; /* Space between individual social icons */
    border-left: 1px solid var(--gold-dark); /* Subtle gold separator line */
    padding-left: 15px;
}

.nav-socials a {
    color: #fff;
    display: flex;
	font-size:1.5rem;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.nav-socials a:hover {
    color: var(--gold-light);
    transform: translateY(-2px); /* Subtle lift on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-socials {
        border-left: none; /* Remove border when stacked on mobile */
        padding-left: 0;
    }
}

/* Update hero and main canvas background to charcoal mesh */
.hero {
    position: relative;
    min-height: 550px;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.85) 100%),
                url('../images/burnoutpic.jpg') center/cover no-repeat;
    display: flex;
    align-items: flex-start;
    padding: 60px 5% 100px 5%;
    border-bottom: 4px solid var(--gold-mid);
    margin-top: 15px;
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    font-size: 2.2rem;
    font-style: italic;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero p {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: transform 0.1s;
}

.btn:active {
    transform: translateY(2px);
}

.btn-red {
    background: linear-gradient(180deg, #ff1a1a 0%, var(--red-bright) 50%, #800000 100%);
    color: #fff;
    border: 1px solid #ff4d4d;
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 50%, var(--gold-dark) 100%);
    color: #000;
    border: 1px solid #ffe082;
}


/* Add charcoal grid pattern wrapper/background for the area behind cards */
.info-container {
	width:100%;
    max-width: 1200px;
    margin: -30px auto 10px auto;
    padding: 10px;
		box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 10;
    
    /* Charcoal background texture */
    background-color: #1a1a1a;
    background-image: 
        radial-gradient(#333 15%, transparent 16%),
        radial-gradient(#333 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    border: 2px solid var(--dark-bg);
    border-radius: 8px;

}


.card {
    background: var(--card-bg);
    border: 2px solid var(--gold-dark);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.8);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.card-header .bar {
    width: 4px;
    height: 18px;
    background: var(--red-bright);
}

.card-header h3 {
    font-size: 1rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specs List */
.specs-list {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specs-list div {
    display: flex;
    justify-content: flex-start;
		text-align:left;
		gap:12px;
}

.specs-list label {
    font-weight: bold;
    color: #aaa;
	min-width:100px;
}

.specs-list span {
    color: #fff;
    font-weight: bold;

}

/* Sponsor Block */
.sponsor-note {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.sponsor-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: bold;
}

.sponsor-logos small {
    color: #fff;
}

/* News List */
.news-list {
    list-style: none;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 120px;
    overflow-y: auto;
}

.news-item {
    border-left: 2px solid var(--gold-mid);
    padding-left: 8px;
}

.news-item .tag {
    color: var(--gold-light);
    font-weight: bold;
    font-size: 0.75rem;
    display: block;
}

.news-item a {
    color: #eee;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

/* Bottom Running Ticker */
.ticker-bar {
    background: linear-gradient(180deg, #600 0%, #300 100%);
    border-top: 2px solid var(--gold-mid);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}



/* ==========================================
   INNER PAGE TEMPLATE STYLES
   ========================================== */

/* Inner Page Header Banner */
.page-banner {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(81,0,0,0.6) 50%, rgba(0,0,0,0.9) 100%);
    border-bottom: 3px solid var(--gold-mid);
    padding: 40px 5%;
    margin-top: 15px;
    text-align: center;
}

.page-banner h1 {
    font-size: 2rem;
    font-style: italic;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000;
}

.page-banner h1 span {
    color: var(--gold-light);
}

.page-banner p {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 8px;
}

/* Inner Content Container */
.page-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* 2-column layout: main text + sidebar */
    gap: 20px;
    
    background-color: #1a1a1a;
    background-image: 
        radial-gradient(#333 15%, transparent 16%),
        radial-gradient(#333 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    border: 2px solid var(--dark-bg);
    border-radius: 8px;
}

/* Inner Text Formatting */
.inner-body-text {
    font-family: Arial, sans-serif  !important;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
}

.inner-body-text p {
    margin-bottom: 15px;
}

.inner-body-text h2 {
    font-family: 'Arial Black', Impact, sans-serif;
    color: var(--gold-light);
    font-size: 1.2rem;
    margin: 25px 0 10px 0;
    text-transform: uppercase;
}

.inner-body-text blockquote {
    border-left: 3px solid var(--gold-mid);
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 18px;
    margin: 20px 0;
    font-style: italic;
    color: var(--gold-light);
}

/* Sidebar Elements */
.sidebar-list {
    list-style: none;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sidebar-list li {
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.sidebar-list strong {
    color: var(--gold-light);
}

.sidebar-btn {
    display: block;
    text-align: center;
    width: 100%;
}

/* Logo link style fix */
.logo a {
    color: inherit;
    text-decoration: none;
}

/* Specs Page Detail List */
.specs-detail-list {
    list-style: none;
    margin: 10px 0 20px 0;
    padding: 0;
}

.specs-detail-list li {
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
}

.specs-detail-list strong {
    color: var(--gold-light);
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: inline-block;
    min-width: 140px;
}

video {
    width: 100%;
    max-width: 500px; /* Limits the maximum width */
    height: auto;      /* Keeps the original aspect ratio so it doesn't stretch */
    border-radius: 6px;
}


/* ==========================================
   SPONSORS PAGE TEXT GRID STYLES
   ========================================== */

.sponsor-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin: 20px 0 30px 0;
}

.sponsor-card {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--gold-mid);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    box-shadow: 
        inset 0 1px 1px var(--gold-light),
        inset 0 -1px 2px var(--gold-dark),
        0 2px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s, border-color 0.2s;
}

.sponsor-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-light);
}

.sponsor-card h3 {
    font-family: 'Arial Black', Impact, sans-serif;
    color: var(--gold-light);
    font-size: 1.05rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sponsor-card .sponsor-sub {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
}

.sponsor-card a {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.8rem;
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.sponsor-card a:hover {
    color: var(--gold-light);
}

/* ==========================================
   CONTACT PAGE STYLES
   ========================================== */

.race-contact-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'Arial Black', Impact, sans-serif;
    color: var(--gold-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.9rem;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold-mid);
    border-radius: 4px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 6px var(--gold-mid);
}

.form-group select option {
    background-color: #111;
    color: #fff;
}

.form-btn {
    align-self: flex-start;
    cursor: pointer;
    border: none;
    padding: 12px 25px;
}

/* Sidebar Contact Photo Frame */
.contact-sidebar-photo {
    margin: 0 0 15px 0;
}

.contact-sidebar-photo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid var(--gold-mid);
    border-radius: 6px;
    box-shadow: 
        inset 0 1px 1px var(--gold-light),
        inset 0 -1px 2px var(--gold-dark),
        0 4px 8px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   SCHEDULE PAGE STYLES
   ========================================== */

/* Schedule Placeholder Notice Box */
.schedule-notice-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px dashed var(--gold-mid);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    margin: 15px 0 25px 0;
}

.schedule-notice-box i {
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.schedule-notice-box h3 {
    font-family: 'Arial Black', Impact, sans-serif;
    color: var(--gold-light);
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.schedule-notice-box p {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.9rem;
    color: #ccc;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Event List Styling */
.schedule-list {
    list-style: none;
    margin: 15px 0 25px 0;
    padding: 0;
}

.schedule-item {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid #333;
    border-left: 4px solid var(--gold-mid);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.schedule-date {
    font-family: 'Arial Black', Impact, sans-serif;
    color: var(--gold-light);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border: 1px solid var(--gold-dark);
    border-radius: 4px;
    text-transform: uppercase;
}

.schedule-info h4 {
    font-family: 'Arial Black', Impact, sans-serif;
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.schedule-info p {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 0 !important;
}

.schedule-badge {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--gold-light);
    border: 1px solid var(--gold-mid);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Inner Page Mobile Responsiveness */
@media (max-width: 768px) {
    .page-content-container {
        grid-template-columns: 1fr; /* Stacks main body and sidebar into a single column */
    }
}
/* Controlled Inner Photo Styling */
.inner-photo {
    margin: 20px 0;
    text-align: left; /* Aligns photo and caption to the left */
}

.inner-photo img {
    width: 100%;
    max-width: 500px; /* Limits maximum photo size so it doesn't get huge */
    height: auto;
    display: block;
    border-radius: 6px;
    
    /* Gold metallic border frame */
    border: 2px solid var(--gold-mid);
    box-shadow: 
        inset 0 1px 1px #fff3a8,
        inset 0 -1px 2px var(--gold-dark),
        0 4px 10px rgba(0, 0, 0, 0.8);
}

.inner-photo figcaption {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 6px;
    font-style: italic;
    max-width: 350px; /* Matches the image width */
}
/* Float photo to the right on desktop screens */
@media (min-width: 769px) {
    .inner-photo.float-right {
        float: right;
        width: 45%;
        margin: 0 0 15px 20px;
    }

    .inner-photo.float-left {
        float: left;
        width: 45%;
        margin: 0 20px 15px 0;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding: 4px;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin: 5px 5px 0 5px;
    }
    
    nav {
        margin-left: 0;
        width: 100%;
        flex-direction: column; /* Stacks menu toggle, links, and socials vertically */
        align-items: stretch;
    }

    /* Show the hamburger toggle button on mobile */
    .menu-toggle {
        display: block !important;
        align-self: flex-start;
    }

    /* Hide standard nav links by default on mobile */
    nav ul {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background-color: #111;
        border: 2px solid var(--gold-mid);
        border-radius: 6px;
        padding: 15px;
        margin-top: 10px;
        gap: 15px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    }

    /* Reveal menu when JS toggles the .active class */
    nav ul.active {
        display: flex !important;
    }

    .hero {
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .info-container {
        width: 95%;
        margin: 15px auto;
        padding: 8px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        width: 100%;
        box-sizing: border-box;
    }
}