/* VARIABLES & RESET */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    /*--neon-green: #ccff00;*/
    --neon-green: #926d9e;
    --neon-green: #926d9e;
    /* Activism/Eco Vibe */
    /*--marathon-gold: #d4af37;*/
    --marathon-gold: #d4af37;
    /* Gold Coast Vibe */
    --smog-grey: #2a2a2a;

    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* UTILITIES */
.highlight {
    color: var(--neon-green);
}

.gold-text {
    color: var(--marathon-gold);
}

.outline-text {
    -webkit-text-stroke: 1px var(--white);
    color: transparent;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--smog-grey);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    height: 64px;
    /* Increased height slightly */
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    height: 100%;
    align-items: center;
}

.logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    /* Ensure it fits */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--marathon-gold);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1002;
    padding: 10px 0;
    border: 1px solid var(--smog-grey);
    border-top: 3px solid var(--neon-green);
    list-style: none;
    /* Ensure no bullets */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    /* Reset padding */
    margin: 0;
    /* Reset margin */
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(204, 255, 0, 0.1);
    color: var(--neon-green);
    padding-left: 25px;
    /* Subtle slide */
}

/* Ensure mobile menu handles dropdown correctly */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding-left: 20px;
        display: none;
        /* Hidden by default on mobile */
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Add an indicator for mobile dropdown */
    .dropdown>a::after {
        content: '+';
        margin-left: 10px;
        color: var(--neon-green);
    }

    .dropdown.active>a::after {
        content: '-';
    }
}

.btn-nav {
    background: var(--white);
    color: var(--black);
    padding: 0.5rem 1rem;
    font-weight: 700 !important;
}

.btn-nav:hover {
    background: var(--neon-green);
}

.hamburger {
    display: none;
}

/* HERO SECTION */
.hero {
    min-height: 45vh;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    border-bottom: 1px solid var(--white);
}

.hero-content {
    flex: 1;
    min-width: 350px;
    padding: 5% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    flex: 1;
    min-width: 350px;
    position: relative;
    /* Removed min-height: inherit to allow content-based sizing on mobile */
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: grayscale(100%) contrast(120%);*/
    display: block;
}

.img-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(45deg, rgba(204, 255, 0, 0.2), rgba(212, 175, 55, 0.2));*/
}

.headline {
    font-family: var(--font-display);
    /*font-size: clamp(3rem, 5vw, 6rem);*/
    font-size: clamp(2rem, 2vw, 2rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.divider-bar {
    background: var(--neon-green);
    color: var(--black);
    display: inline-block;
    padding: 0.2rem 1rem;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.5rem;
    transform: skew(-10deg);
    margin: 1rem 0;
    width: fit-content;
}

.sub-headline {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--marathon-gold);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 2rem;
    border-left: 2px solid var(--white);
    padding-left: 1rem;
}

.btn-hero {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
    transition: 0.3s;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--black);
}

/* TICKER */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--neon-green);
    color: var(--black);
    padding: 0.5rem 0;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.ticker__item {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

#countdown {
    color: var(--black);
    /* Make text black for contrast on neon green */
    font-weight: 700;
    min-width: 250px;
    display: inline-block;
    text-align: center;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* RACES SECTION */
.races-section {
    padding: 5rem 5%;
    border-bottom: 1px solid var(--smog-grey);
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    border: 1px solid var(--smog-grey);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, border-color 0.3s;
    background: linear-gradient(180deg, #121245 10%, #da4144 70%);
    border-radius: 1rem;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
}

.badge {
    background: var(--smog-grey);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--marathon-gold);
}

.strike {
    text-decoration: line-through;
    /*color: #666;*/
    color: #121040;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.btn-card {
    text-align: center;
    padding: 1rem;
    background: var(--smog-grey);
    font-weight: 700;
    text-transform: uppercase;
}

.card:hover .btn-card {
    background: var(--marathon-gold);
    color: var(--black);
}

/* DUAL SECTION (Eco vs Gold) */
.dual-section {
    display: flex;
    flex-wrap: wrap;
}

.half {
    flex: 1;
    min-width: 350px;
    padding: 5rem;
}

.green-zone {
    background: var(--black);
    color: var(--neon-green);
    border-right: 1px solid var(--smog-grey);
}

.gold-zone {
    background: var(--white);
    color: var(--black);
}

.dual-section h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.dual-section ul {
    list-style: none;
    margin-top: 2rem;
}

.dual-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.dual-section li::before {
    content: "→";
    position: absolute;
    left: 0;
}

/* FOOTER */
.main-footer {
    background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
    color: #e0e0e0;
    padding: 5rem 0 0 0;
    font-family: var(--font-body);
    position: relative;
    border-top: 4px solid var(--neon-green);
    overflow: hidden;
}

/* Add a subtle texture or overlay if needed, keeping it clean for now */

.widgets-section {
    padding-bottom: 4rem;
}

.auto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout for Footer Grid - ensuring responsive columns */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    /* Offset padding */
}

.footer-column {
    padding: 0 15px;
    margin-bottom: 2rem;
    flex: 1 1 300px;
    /* Responsive flex basis */
}

/* Widget Styling */
.footer-widget {
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--neon-green);
    border-radius: 2px;
}

/* About Widget */
.about-widget .logo {
    margin-bottom: 1.5rem;
}

.about-widget .logo img {
    width: 150px;
    height: auto;
    filter: brightness(1.2);
    /* Make logo pop slightly */
}

.about-text {
    line-height: 1.7;
    color: #ccc;
    font-size: 0.95rem;
}

/* Links & Contact Lists */
.contact-info-list,
.user-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li,
.user-links li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #ccc;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.contact-info-list li i {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-top: 3px;
    /* Align with text top */
    min-width: 20px;
}

.contact-info-list a,
.user-links a {
    color: #ccc;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-info-list a:hover,
.user-links a:hover {
    color: var(--marathon-gold);
    padding-left: 5px;
    /* Subtle movement */
}

.email-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Address specific tweak */
.address span {
    display: block;
}

/* Footer Support Widget specific */
.support-widget .user-links li {
    padding-left: 0;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    border-top: 1px solid #222;
    text-align: center;
}

.copyright-text {
    color: #888;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.copyright-text a {
    color: var(--neon-green);
    font-weight: 600;
    margin: 0 5px;
    transition: color 0.3s;
}

.copyright-text a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive specific to footer and Header */
@media (max-width: 768px) {

    /* Restored General Tweaks */
    /*.headline {
        font-size: 3rem;
    }*/

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .hero-bg-img {
        height: auto;
        min-height: 250px;
    }

    .dual-section {
        flex-direction: column;
    }

    .half {
        padding: 3rem 1.5rem;
    }

    /* Mobile Navigation */
    .hamburger {
        display: block;
        /* Visible on mobile */
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--white);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        display: flex;
        /* Ensure flex is active when sliding in */
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Footer Tweaks */
    .main-footer {
        padding-top: 3rem;
        text-align: center;
    }

    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-info-list li,
    .user-links li {
        justify-content: center;
    }

    .logo {
        justify-content: center;
    }
}

/* INNER PAGES STYLING */

/* Page Title Section */
.page-title {
    background: #1a1a1a;
    padding: 80px 0;
    text-align: center;
    /*border-bottom: 1px solid var(--smog-grey);*/
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(204, 255, 0, 0.05), rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.page-title .title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.page-title .title-outer {
        position: absolute;
        bottom: 0;
        width: 100%;
        text-align: center;
        left: 0;
        padding-bottom: 10px;
    }

.page-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccc;
    text-transform: uppercase;
    font-weight: 600;
}

.page-breadcrumb li a {
    color: var(--neon-green);
    transition: color 0.3s;
}

.page-breadcrumb li a:hover {
    color: var(--white);
}

.page-breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: #444;
}

/* Custom Layout for Races Section: 3 top, 2 bottom, centered */
@media (min-width: 992px) {
    #races .grid-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    #races .grid-container .card {
        flex: 0 0 calc(33.333% - 2rem); /* Ensures 3 cards fit perfectly with 2rem gap */
        width: calc(33.333% - 2rem);
    }
}

.page-breadcrumb li:last-child::after {
    display: none;
}

.page-breadcrumb li:last-child {
    color: #eee;
}

/* Page Section Generic */
.page-section {
    padding: 60px 0;
    background-color: var(--black);
    min-height: 400px;
}

/* Typography for Content */
.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 1.05rem;
}

.text-content h3,
.text-content h4 {
    font-family: var(--font-display);
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.text-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
    /* Custom bullets */
}

.text-content ul li {
    margin-bottom: 0.8rem;
    color: #ccc;
    position: relative;
    padding-left: 25px;
    font-size: 1.05rem;
}

.text-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--neon-green);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

/* FAQ Accordion */
details.faq-item {
    background: #111;
    border: 1px solid #222;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s;
}

details.faq-item:hover {
    border-color: #333;
}

details.faq-item[open] {
    border-color: var(--neon-green);
}

summary.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 40px;
    color: var(--white);
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-green);
    font-size: 1.5rem;
    font-weight: 200;
    transition: transform 0.3s;
}

details[open] summary.faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #bbb;
    line-height: 1.6;
    border-top: 1px solid #222;
    margin-top: 5px;
    padding-top: 15px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
    background: #111;
    display: block;
    /* Ensure anchor behaves like block */
    border: 1px solid #222;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 3rem;
    border: 1px solid #333;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Helper Classes for Index Page */
.section-no-border {
    padding-bottom: 0;
    border-bottom: none;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.partner-card {
    align-items: center;
    text-align: center;
}

.partner-title {
    margin-bottom: 1rem;
}

.partner-logo-lg {
    width: 200px;
    max-width: 100%;
    filter: drop-shadow(1px 0 0 gray)
    drop-shadow(-1px 0 0 gray)
    drop-shadow(0 1px 0 white)
    drop-shadow(0 -1px 0 gray);
}

.partner-logo-sm {
    height: 80px;
    width: auto;
    filter: drop-shadow(1px 0 0 gray)
    drop-shadow(-1px 0 0 gray)
    drop-shadow(0 1px 0 white)
    drop-shadow(0 -1px 0 gray);
    /* Ensure aspect ratio is preserved */
}

/* CTA Section Styles (copied/adapted from newdel footer) */
.cta-section {
    text-align: center;
    padding: 5rem 1rem;
    /*background: var(--black);*/
    background: linear-gradient(180deg, #da4144 15%, #121245 75%);;
    border-top: 10px solid var(--neon-green);
    border-bottom: 1px solid var(--smog-grey);
}

.cta-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
    color: var(--white);
}

.btn-cta {
    display: inline-block;
    background: var(--neon-green);
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem 4rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    transition: background 0.3s;
}

.btn-cta:hover {
    background: var(--white);
}

.cta-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-logos-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.cta-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.cta-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-sponsor-title {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* On smaller screens, stack them or keep them side-by-side but smaller */
@media (max-width: 768px) {
    .cta-logos-container {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .cta-logo {
        width: 150px;
    }
}

.accommodation_map {
    float:right;
    border-radius: 1rem;
    max-width: fit-content;
    margin-top: 2.5rem;
    width: 100%;
}