:root {
    --primary-orange: #e67e22;
    --dark-grey: #333;
    --nav-bg: #222; /* Slightly darker for the top bar */
    --white: #ffffff;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f7f5f0;
}

/* --- Top Dark Nav Bar --- */
.top-nav {
    background-color: var(--nav-bg);
    color: white;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 15px 20px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--white);
    background: #444;
}

/* Current Page Highlight */
.nav-links li a.active-link {
    background-color: var(--primary-orange);
    color: white;
}

.main-header {

    padding: 5px 5%;
    background: #efece4;
}

.logo-group {
    display: flex;
    align-items: center; /* Centers the text vertically against the logo */
    gap: 20px; /* The space between the logo and the text */
}

.main-logo-img {
    height: 140px; /* Matches the "deep" logo height */
    width: auto;
}

.header-info-stack {
    border-left: 2px solid var(--primary-orange);
    margin-left: 50px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    font-size: 0.95rem;
    color: var(--dark-grey);
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevents text from wrapping */
}

.info-row strong {
    color: var(--primary-orange);
}

/* Mobile Tweak: Stack them or hide the extra info */
@media (max-width: 600px) {
    /* Stack the logo and the info text vertically */
    .logo-group {
        flex-direction: column;
        align-items: center; /* Centers the logo image itself */
        width: 100%;
        gap: 15px;
    }

    /* Show the stack and adjust spacing */
    .header-info-stack {
        display: flex; /* Shows the stack on mobile */
        align-self: flex-start; /* Aligns the stack to the left of the header */
        margin-left: 10%; /* Adjust this % to position the "start point" */
        padding-left: 0; /* Removes padding since the bar is gone */
        border-left: none;
        width: auto;
        max-width: 100%; /* Prevents the text from hitting the right edge */
    }

    /* Allow the header container to grow for the new content */
    .header-center {
        flex-direction: column;
        align-items: center; /* Keeps the Logo and Registration Hub centered */
        gap: 20px;
        width: 100%;
    }

    .main-logo-img {
        height: 100px; /* Shrink logo slightly for mobile */
        margin: 0 auto; /* Forces horizontal centering */
    }
    .info-row {
        font-size: 0.85rem; /* Readable but compact for small screens */
        white-space: normal; /* Allows text to wrap on narrow devices */
        text-align: left; /* Explicitly left-aligned */
    }
    .registration-hub {
        align-items: flex-start; /* Ensures the "Registration" label and buttons stay left */
    }
}

/* --- Registration Hub --- */
.registration-hub {
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the label and the button stack as a unit */
    gap: 8px;
}

.reg-label {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--dark-grey);
    text-align: center; /* Ensures the text itself is centered */
    width: 100%; /* Spans the width to ensure centering relative to buttons */
}

.reg-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Ensures buttons of different widths (if any) stay centered */
}

.btn {
    text-decoration: none;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 160px;
    font-size: 0.9rem;
}

/* Junior Button - Distinct Color */
.btn-junior {
    background-color: var(--dark-grey);
    color: white;
    border: 2px solid var(--dark-grey);
}

.btn-junior:hover {
    background-color: transparent;
    color: var(--dark-grey);
}

/* Adult Button - Primary Theme Color */
.btn-adult {
    background-color: var(--primary-orange);
    color: white;
    border: 2px solid var(--primary-orange);
}

.btn-adult:hover {
    background-color: transparent;
    color: var(--primary-orange);
}

/* Mobile Tweak */
@media (max-width: 600px) {
.reg-buttons {
    flex-direction: row; /* Side-by-side on mobile to save vertical space */
    gap: 5px;
}

.btn {
    padding: 8px 12px;
    min-width: auto;
    font-size: 0.75rem;
}
}

/* --- Rest of Layout --- */
.countdown-banner {
    background: #efece4;
    color: var(--dark-grey);
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

#timer {
    color: var(--primary-orange);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;

}
.header-center {
    display: flex;
    justify-content: space-between; /* Pushes logo-group to left and button to right */
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

.hero img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    background: #faf9f6;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.map-container, .sidebar {
    background: #faf9f6;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

.full-page-container {
    background: #faf9f6;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
/* --- Mobile Styling --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

    .hamburger span {
        width: 25px;
        height: 2px;
        background: white;
    }

@media (max-width: 850px) {
    .nav-container {
        justify-content: flex-end;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        flex-direction: column;
    }

        .nav-links.mobile-active {
            display: flex;
        }

    .content-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Hero Slideshow --- */
.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: auto;
    height: 800px; /* Adjust based on your preferred height */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mySlides {
    display: none; /* Hidden by default */
    height: 100%;
}

    .mySlides img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures images fill the area without stretching */
        vertical-align: middle;
    }

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Ensure the hero container doesn't collapse on mobile */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
}

/* --- Sponsors Section --- */
.sponsors-section {
    background-color: var(--nav-bg);
    text-align: center;
    border-top: 1px solid #ddd;
    color: #bbb;
    padding: 30px;
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;

}

.sponsor-item {
    transition: transform 0.3s ease, filter 0.3s ease;

}

.sponsor-item img {
    max-width: 180px;
    height: auto;
    display: block;
}

/* Standout style for a headline sponsor */
.sponsor-item.gold img {
    max-width: 240px;
}

.sponsor-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sponsor-grid {
        gap: 20px;
    }

    .sponsor-item img {
        max-width: 140px;
    }

    .sponsor-item.gold img {
        max-width: 180px;
    }
}

a[href^="mailto:"] {
    color: inherit; /* Inherits the color of the surrounding text */
    text-decoration: none; /* Removes the underline */
}

/* Optional: Add a hover state so users know it's still clickable */
a[href^="mailto:"]:hover {
    text-decoration: underline;
    color: #555; /* Or any color of your choice */
}

/* Container for the cards */
.photo-gallery-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual Card Styling */
.gallery-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1 1 300px; /* Responsive: stacks on mobile, side-by-side on desktop */
    transition: transform 0.3s ease;
}

    .gallery-card:hover {
        transform: translateY(-5px);
    }

/* Card Image Area */
.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #ccc; /* Fallback color */
}

/* Text Content Area */
.card-content {
    padding: 20px;
}

    .card-content h3 {
        margin-top: 0;
        color: #333;
        font-size: 1.4rem;
    }

    .card-content p {
        color: #666;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

/* The Button - Matching your site's orange */
.gallery-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F28E2C; /* Your Brand Orange */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

    .gallery-btn:hover {
        background-color: #d17a25; /* Slightly darker orange on hover */
    }
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.result-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
    padding: 10px
}

    .result-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

.result-year {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    margin-top: 15px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-btn {
    display: block;
    padding: 8px 12px;
    background-color: transparent;
    background-color: #f39232;
    color: white;
    
    border: 1px solid #f39232;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

    .result-btn:hover {
        color: #f39232;
        background-color: white;
    }