/* Basic Reset & Mobile-First Styles */

:root {
    /* Define CSS Variables for colors, fonts, etc. */
    /* Dark Theme Variables */
    --primary-color: #6c5ce7;         /* Primary action color (e.g., buttons) */
    --primary-dark: #483d8b;          /* Darker shade for hover/active states */
    --primary-light: #a29bfe;         /* Lighter shade for highlights/links */
    --accent-color: #00b894;          /* Secondary accent color */
    --text-color: var(--text-light); /* Default text color - use light for dark mode */
    --text-dark: #333333;             /* Dark text (kept for specific elements if needed) */
    --text-light: #f5f5f5;            /* Light text */
    --bg-light: #2d3436;              /* Main page background */
    --bg-dark: #1e272e;               /* Header/Footer background */
    --card-bg: #2c3e50;               /* Card/Section background */
    --border-color: #4b6584;          /* Border color */

    /* Shadow & Transition Variables from dark theme */
    --shadow-level-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-level-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-level-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    --primary-light-rgb: 162, 155, 254; /* RGB for rgba usage */

    /* Keep Layout/Font Variables from original */
    --container-max-width: 1200px; 
    --base-font-size: 16px;
    --header-height: 60px; 

    /* Deprecated Light Theme Variables (commented out) */
    /* --primary-color: #4CAF50; */ /* Example green */
    /* --secondary-color: #8BC34A; */
    /* --text-color: #333; */
    /* --light-gray: #f4f4f4; */
    /* --dark-gray: #555; */
}

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

html {
    font-size: var(--base-font-size);
    line-height: 1.6;
    scroll-behavior: smooth; /* Optional: Smooth scrolling */
}

body {
    font-family: sans-serif; /* Replace with preferred font later */
    color: var(--text-color);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure footer sticks to bottom */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom space */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Layout Container */
.container {
    width: 90%; /* Fluid width on small screens */
    max-width: var(--container-max-width); /* Max width on large screens */
    margin-left: auto;
    margin-right: auto;
}

/* Main Header */
.main-header {
    background-color: var(--bg-dark);
    padding: 1.5rem 0; /* Increased padding for taller header */
    border-bottom: 1px solid var(--border-color);
    height: auto; /* Allow header to grow based on content */
    color: var(--text-light);
    box-shadow: var(--shadow-level-1);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between left content and timer */
    height: 100%; 
    position: relative; /* Added for positioning context */
}

/* New style for the left group */
.header-left {
    display: flex;
    flex-direction: column; /* Stack logo/tagline and nav vertically */
    align-items: flex-start; /* Align items to the start (left) */
}

.main-header .logo a {
    font-size: 2.5rem; /* Even larger font size */
    font-weight: bold;
    color: var(--primary-light);
    text-decoration: none;
}

/* Style for the new tagline */
.tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    margin: 0.1rem 0 0.8rem 0; /* Increased bottom margin for more space */
    padding-left: 2px; /* Slight indent to align with logo visually */
    opacity: 0.9; /* Slightly less subtle */
}

/* Basic Nav Styling (Hidden by default on mobile, toggle later) */
.main-nav {
    display: none; /* Initially hidden on small screens */
    /* Styles below are for DESKTOP baseline before mobile overrides */
    position: static; /* Default desktop position */
    background-color: transparent;
    padding: 0;
    border: none;
}

/* Default desktop nav list styling */
.main-nav ul {
    display: flex;
    flex-direction: row; /* Horizontal on desktop */
    align-items: center;
    gap: 1rem; /* Restore desktop gap */
}

/* Default desktop link styling */
.main-nav a {
    color: var(--text-light);
    font-weight: bold;
    padding: 0.2rem 0; /* Restore desktop padding */
    display: inline-block; /* Inline on desktop */
    width: auto;
    text-align: left;
    position: relative; 
    transition: var(--transition);
    text-decoration: none;
}

/* This class is only relevant for mobile JS toggle */
.main-nav.nav-active {
    /* No style needed globally */
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: var(--accent-color);
    text-decoration: none;
}

/* Underline effect for navigation */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-light);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after { 
    width: 100%;
}

/* Mobile Menu Toggle (Visible on small screens) */
.mobile-menu-toggle {
    display: none; /* Hidden by default, shown in mobile media query */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    /* Remove positioning from global scope */
}

/* Optional: Style for the active button state (e.g., change icon) */
/* .mobile-menu-toggle.is-active {
    /* Example: change color or show an 'X' 
    color: var(--accent-color);
} */

/* Main Content Area */
.main-content {
    flex-grow: 1; /* Takes up remaining vertical space */
    padding: 2rem 0; /* Add some padding */
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem 0;
    margin-top: auto; /* Pushes footer down */
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.main-footer .container {
    /* Layout footer items if needed */
}

.main-footer p {
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--primary-light);
}

/* --- Media Queries for Larger Screens --- */

/* Example: Tablet and up */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none; /* Hide mobile toggle */
    }

    .main-nav {
        display: block; /* Show desktop nav */
        /* Ensure desktop overrides are reset here if needed, but defaults above should cover it */
        position: static;
        top: auto;
        left: auto;
        right: auto;
        background-color: transparent;
        z-index: auto;
        border-top: none;
        padding: 0;
    }
    
    .main-nav ul {
        flex-direction: row; /* Explicitly horizontal */
        align-items: center;
        gap: 1rem;
    }

    .main-nav a {
        padding: 0.2rem 0;
        display: inline-block;
        width: auto;
        text-align: left;
    }

    /* Ensure .nav-active has no effect on desktop */
    .main-nav.nav-active {
        display: block; /* Keep it visible */
    }

    /* Ensure header-left behaves correctly */
    .header-left {
       /* Flex properties already set should work */
    }

    /* Responsive grid for updates */
    .updates-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }

    /* Featured Content: Switch to Grid */
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        overflow-x: visible; /* Disable horizontal scroll */
    }

    .featured-item {
        flex: auto; /* Reset flex basis */
    }
}

/* Example: Desktop and up */
@media (min-width: 1024px) {
    /* Add desktop-specific styles */
    /* .container { width: 80%; } */

    /* Responsive grid for updates */
    .updates-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
    }

    /* Featured Content: Wider Grid */
    .featured-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
}

/* --- Component Styles --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: var(--transition); /* Use dark theme transition */
    text-transform: uppercase; /* Added from dark theme */
    letter-spacing: 0.5px; /* Added from dark theme */
    box-shadow: var(--shadow-level-1); /* Added from dark theme */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light); /* Changed from white */
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark); /* Use dark theme variable */
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-1px); /* Added from dark theme */
    box-shadow: var(--shadow-level-2); /* Added from dark theme */
}

.btn-secondary {
    background-color: var(--accent-color); /* Changed from --secondary-color */
    color: var(--text-light); /* Changed from white */
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #00897b; /* Slightly darker accent */
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-1px); /* Added from dark theme */
    box-shadow: var(--shadow-level-2); /* Added from dark theme */
}

/* Hero Section */
.hero {
    background-color: var(--card-bg); /* Changed from --light-gray */
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem; 
    border-radius: 8px; /* Added from dark theme */
    box-shadow: var(--shadow-level-1); /* Added from dark theme */
    border: 1px solid var(--border-color); /* Added from dark theme */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light); /* Changed from --primary-color */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light); /* Ensure text is light */
}

/* Latest Updates Section */
.latest-updates {
    margin-bottom: 2rem;
}

.latest-updates h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.updates-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* 1 column on mobile by default */
}

.update-card {
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    overflow: hidden; 
    background-color: var(--card-bg); /* Changed from #fff */
    box-shadow: var(--shadow-level-1);
    transition: var(--transition); /* Added */
}
.update-card:hover {
    transform: translateY(-3px); /* Added */
    box-shadow: var(--shadow-level-3); /* Added */
}

.update-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image nicely */
}

.update-card h3 {
    font-size: 1.3rem;
    padding: 1rem 1rem 0.5rem 1rem;
}

.update-card p {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
    color: var(--text-light); /* Changed from --dark-gray */
}

.update-card .btn {
    display: block; /* Make button full width */
    margin: 1rem;
    margin-top: 0;
}

/* Featured Content Section */
.featured-content {
    margin-bottom: 2rem;
}

.featured-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Mobile: Horizontal scroll / Carousel-like */
.featured-grid {
    display: flex; /* Use flex for horizontal layout */
    overflow-x: auto; /* Enable horizontal scrolling */
    gap: 1.5rem;
    padding-bottom: 1rem; /* Space for scrollbar if visible */
    scroll-snap-type: x mandatory; /* Optional: Snap scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.featured-item {
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--card-bg); /* Changed from #fff */
    box-shadow: var(--shadow-level-1);
    scroll-snap-align: start; 
    transition: var(--transition); /* Added */
}
.featured-item:hover {
    transform: translateY(-3px); /* Added */
    box-shadow: var(--shadow-level-3); /* Added */
}

.featured-item img {
    width: 100%;
    height: 180px; /* Slightly smaller height */
    object-fit: cover;
}

.featured-item h3 {
    font-size: 1.2rem;
    padding: 1rem 1rem 0.5rem 1rem;
}

.featured-item p {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-light); /* Changed from --dark-gray */
}

.featured-item .btn {
    display: block;
    margin: 1rem;
    margin-top: 0;
}

/* Share Buttons */
.share-buttons {
    padding: 0 1rem 0.8rem 1rem; 
    font-size: 0.85rem;
    color: var(--text-light); /* Changed from --dark-gray */
}

.share-buttons span {
    margin-right: 0.5rem;
    font-weight: bold;
}

.share-buttons a {
    margin: 0 0.25rem;
    color: var(--primary-light); /* Changed from --primary-color */
    font-weight: bold;
    text-decoration: none;
    padding: 0.1rem 0.3rem;
    border: 1px solid transparent; 
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
}

.share-buttons a:hover {
    border-color: var(--accent-color); /* Changed from --secondary-color */
    background-color: var(--bg-dark); /* Changed from --light-gray */
    text-decoration: none;
}

/* Timeline Component */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline ul {
    list-style: none;
    padding: 0;
}

/* The vertical line */
.timeline ul::before {
    content: '';
    position: absolute;
    left: 10px; 
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-light); /* Changed from --primary-color */
    margin-left: -2px; 
}

.timeline li {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 40px; /* Space for the line and point */
}

/* The circle points on the line */
.timeline li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px; 
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--bg-light); /* Changed background */
    border: 3px solid var(--primary-light); /* Changed from --primary-color */
    margin-left: -7.5px; 
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-bg); /* Changed from --light-gray */
    padding: 1rem 1.5rem;
    border-radius: 6px;
    position: relative; 
    border: 1px solid var(--border-color); /* Added border */
    box-shadow: var(--shadow-level-1); /* Added */
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-light); /* Changed from --primary-color */
}

/* Responsive adjustments for larger screens (optional: alternating sides) */
@media (min-width: 768px) {
    /* Example: Make line centered if desired, more complex */
    /* .timeline ul::before { left: 50%; } */
    /* .timeline li::before { left: 50%; } */
    /* Add styles for alternating left/right content */
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* 1 column mobile */
    margin-top: 1rem;
}

.highlight-card {
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--card-bg); /* Changed from #fff */
    box-shadow: var(--shadow-level-1);
    text-align: center;
    transition: var(--transition); /* Added */
}
.highlight-card:hover {
    transform: translateY(-3px); /* Added */
    box-shadow: var(--shadow-level-3); /* Added */
}

.highlight-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.highlight-card h3 {
    font-size: 1.2rem;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
}

.highlight-card p {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
    color: var(--text-light); /* Changed from --dark-gray */
}

/* Responsive Highlights Grid */
@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns tablet */
    }
}

@media (min-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns desktop */
    }
}

/* Accordion FAQ */
.accordion {
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    overflow: hidden; 
    margin-top: 1rem;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color); /* Changed from #ddd */
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background-color: var(--card-bg); /* Changed from --light-gray */
    color: var(--text-light); /* Changed from --text-color */
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative; 
    transition: background-color 0.3s ease;
}

.accordion-button:hover,
.accordion-button:focus {
    background-color: var(--bg-dark); /* Changed from #e0e0e0 */
}

/* Indicator (e.g., +/- or arrow) */
.accordion-button::after {
    content: '+'; 
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-light); /* Changed from --primary-color */
}

.accordion-button[aria-expanded="true"]::after {
    content: '−'; /* Open state */
}

.accordion-content {
    padding: 1.5rem;
    background-color: var(--bg-light); /* Changed from #fff */
    border-top: 1px solid var(--border-color); /* Changed from #ddd */
}

.accordion-content p {
    margin: 0;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* 1 column mobile */
    margin-top: 1rem;
}

.profile-card {
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    background-color: var(--card-bg); /* Changed from --light-gray */
    padding: 1.5rem;
    text-align: center;
}

.profile-card img {
    width: 120px; /* Fixed size for profile pic */
    height: 120px;
    border-radius: 50%; /* Circular image */
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color); /* Changed from --secondary-color */
    display: inline-block; /* Center image properly */
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.profile-card .profile-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-light); /* Changed from --primary-color */
    margin-bottom: 0.75rem;
}

.profile-card p {
    font-size: 0.95rem;
    color: var(--text-light); /* Changed from --dark-gray */
    margin-bottom: 0; /* Reset bottom margin for last p */
}

/* Responsive Profile Grid */
@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns tablet */
    }
}

@media (min-width: 1024px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns desktop */
    }
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr); /* 2 columns mobile/tablet */
    margin-top: 1rem;
    text-align: center;
}

.stat-item {
    background-color: var(--accent-color); 
    color: var(--text-light); 
    padding: 1rem 0.5rem; /* Reduced padding */
    border-radius: 4px;
}

.stat-item span {
    display: block;
}

.stat-number {
    font-size: 1.8rem; /* Reduced from 2.5rem */
    font-weight: bold;
    line-height: 1.2;
    color: var(--primary-light); 
}

.stat-label {
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Responsive Stats Grid */
@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
    }
}

/* Schedule Component */
.schedule-filters {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--card-bg); /* Changed from --light-gray */
    border-radius: 4px;
}

.schedule-filters label {
    margin-right: 0.5rem;
    font-weight: bold;
    color: var(--text-light); /* Added */
}

.schedule-filters select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-dark); /* Use darker background */
    color: var(--text-light); /* Ensure text is light */
}

.schedule-container {
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.schedule-table caption {
    font-size: 1.2rem;
    font-weight: bold;
    caption-side: top; /* Position caption above table */
    margin-bottom: 0.5rem;
    text-align: left;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--border-color); /* Changed from #ddd */
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

.schedule-table thead th {
    background-color: var(--bg-dark); /* Changed from --dark-gray */
    color: var(--text-light); /* Changed from white */
    font-weight: bold;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: var(--bg-light); /* Changed from --light-gray */
}

.schedule-table tbody tr:hover {
    background-color: var(--card-bg); /* Changed from #e0e0e0 */
}

/* Slugfest Gallery Grid */
.slugfest-gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr); /* 2 columns mobile */
    margin-top: 1rem;
}

.gallery-thumbnail {
    display: block;
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    overflow: hidden;
    position: relative; /* For potential overlays later */
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: 4 / 3; /* Or 1/1 for square, adjust as needed */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbnail:hover img,
.gallery-thumbnail:focus img {
    transform: scale(1.05);
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus {
     box-shadow: 0 4px 8px rgba(0,0,0,0.2);
     border-color: var(--accent-color); /* Changed from --secondary-color */
}

/* Responsive Gallery Grid */
@media (min-width: 768px) {
    .slugfest-gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns tablet */
    }
}

@media (min-width: 1024px) {
    .slugfest-gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns desktop */
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    inset: 0; /* Cover entire viewport (top: 0; right: 0; bottom: 0; left: 0;) */
    background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent black background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's on top */
    padding: 2rem;
    /* Hidden by default via HTML `hidden` attribute, shown via JS */
}

.lightbox[hidden] {
    display: none; 
}

.lightbox-image {
    display: block;
    max-width: 90%;
    max-height: 80%; /* Leave space for close button and caption */
    object-fit: contain; /* Ensure entire image is visible */
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-caption {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

/* Archive List */
.archive-list {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.archive-item {
    background-color: var(--card-bg); /* Changed from --light-gray */
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.archive-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.archive-item p {
    margin-bottom: 1rem;
    color: var(--text-light); /* Changed from --dark-gray */
}

.archive-item .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination ul {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.pagination li {
    /* No extra margin needed due to link padding */
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.9rem;
    margin-left: -1px; /* Overlap borders */
    line-height: 1.25;
    color: var(--primary-light); /* Changed from --primary-color */
    background-color: var(--card-bg); /* Changed from #fff */
    border: 1px solid var(--border-color); /* Changed from #ddd */
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.page-link:hover {
    z-index: 2;
    color: var(--accent-color); /* Changed from --secondary-color */
    background-color: var(--bg-dark); /* Changed from #e9ecef */
    border-color: var(--border-color); /* Changed from #ddd */
    text-decoration: none;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-light-rgb), 0.25); /* Use dark theme variable */
}

.pagination li:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.pagination li:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-link.active,
.pagination li.active .page-link /* If active class is on li */ {
    z-index: 3;
    color: var(--text-light); /* Changed from #fff */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link.disabled,
.pagination li.disabled .page-link /* If disabled class is on li */ {
    color: #6c757d; /* Keep muted color */
    pointer-events: none;
    background-color: var(--bg-dark); /* Changed from #fff */
    border-color: var(--border-color); /* Changed from #ddd */
}

/* Event Sharing Buttons */
.event-sharing-buttons {
    margin-top: 1rem;
    text-align: center; /* Center buttons */
}

.share-btn {
    margin: 0.5rem; 
    /* Add icons later via ::before or background-image */
}

.share-fb {
    /* Specific styles for FB button if needed */
    /* background-color: #3b5998; */ /* Example FB blue */
}

.share-tw {
     /* Specific styles for Twitter button if needed */
    /* background-color: #1da1f2; */ /* Example Twitter blue */
}

/* Band Profile Grid */
.band-note {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
}

/* Remove the media query forcing 1 column */
/* 
@media (max-width: 768px) {
    .band-grid {
        grid-template-columns: 1fr;
    }
}
*/

/* DELETE THE FOLLOWING CONFLICTING BLOCK */
/* Start Deletion 
.band-profile-grid, 
.bands-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 960px; 
    margin-left: auto; 
    margin-right: auto; 
}

.band-card {
    border: 1px solid var(--border-color); 
    border-radius: 4px;
    overflow: hidden; 
    background-color: var(--card-bg); 
    box-shadow: var(--shadow-level-1);
    display: flex; 
    flex-direction: column;
    transition: var(--transition); 
    text-align: center; 
    width: auto; 
}
.band-card:hover {
    transform: translateY(-5px); 
    box-shadow: var(--shadow-level-3); 
}

.band-card img, 
.band-card .band-image {
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-bottom: 1px solid var(--border-color);
    display: block; 
}

.band-card-content, 
.band-card .band-info { 
    padding: 1rem 1.5rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column; 
}

.band-card h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.band-card .band-genre {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light); 
    margin-bottom: 0.75rem;
}

.band-card p {
    font-size: 0.95rem;
    color: var(--text-light); 
    margin-bottom: 1rem;
    flex-grow: 1; 
}

.band-card .audio-player-placeholder {
    background-color: var(--bg-light); 
    padding: 0.5rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--border-color); 
    margin-bottom: 1rem;
    border-radius: 3px;
}

.band-card .btn {
     margin-top: auto; 
}

.band-social-links { 
    margin-bottom: 1rem; 
    margin-top: 0.5rem; 
}

.band-social-links a { 
    margin: 0 0.5rem; 
    font-size: 0.9em;
    color: var(--primary-light); 
}
.band-social-links a:hover { 
    color: var(--accent-color); 
}

.band-social-links i { 
    margin-right: 0.25rem; 
}
 End Deletion */

/* Audio Player in Band Card */
.band-audio-player {
    width: 100%; /* Make player take full width of container */
    margin-bottom: 1rem;
    /* Native controls styling is browser-dependent, 
       custom controls require more JS/CSS */
}

/* Upcoming Performances List */
.performances-list {
    margin-top: 1rem;
}

.performance-item {
    background-color: var(--card-bg); /* Changed from --light-gray */
    border: 1px solid var(--border-color); /* Changed from #ddd */
    border-radius: 4px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    align-items: center;
    gap: 1rem; /* Space between elements */
}

.performance-date {
    font-weight: bold;
    color: var(--accent-color); /* Changed from --primary-color */
    flex-basis: 100px; /* Give date some base width */
    flex-grow: 0;
}

.performance-band {
    font-weight: bold;
    flex-grow: 1; /* Allow band name to take up space */
    min-width: 150px; /* Prevent band name from getting too squished */
}

.performance-venue {
    font-style: italic;
    color: var(--text-light); /* Changed from --dark-gray */
    flex-grow: 1;
    min-width: 150px;
}

.performance-item .btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    margin-left: auto; /* Push button to the right */
}

/* Modal Styles (General) */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Slightly less dark than lightbox */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100; /* Higher than lightbox if they coexist */
    padding: 1rem; 
    overflow-y: auto; /* Allow scrolling if content overflows */
    /* Hidden by default via HTML `hidden` attribute */
}

.modal[hidden] {
    display: none;
}

.modal-content {
    background-color: var(--bg-light); /* Changed from white */
    padding: 2rem;
    border-radius: 6px;
    max-width: 700px; /* Max width for the modal */
    width: 95%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 90vh; /* Limit height */
    overflow-y: auto; /* Allow content scrolling */
    border: 1px solid var(--border-color); /* Added border */
    color: var(--text-light); /* Ensure text is light */
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-light); /* Changed from --dark-gray */
    font-size: 2rem; 
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
    color: var(--primary-light); /* Changed from black */
}

/* Band Detail Modal Specifics */
.band-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-light); /* Changed from --primary-color */
}

.band-modal-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color); /* Changed from #eee */
    padding-bottom: 0.3rem;
    color: var(--accent-color); /* Added color */
}

.band-modal-image {
    max-width: 250px; /* Limit image size */
    height: auto;
    float: right; /* Float image to the right */
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color); /* Changed from #ddd */
}

#band-modal-members,
#band-modal-performances {
    list-style: disc;
    padding-left: 20px;
}

#band-modal-members li,
#band-modal-performances li {
    margin-bottom: 0.5rem;
}

#band-modal-audio audio {
     width: 100%;
     margin-bottom: 0.8rem;
}

/* Clear float for sections after image */
.band-modal-body h3,
.band-modal-body #band-modal-description,
.band-modal-body #band-modal-members,
.band-modal-body #band-modal-audio,
.band-modal-body #band-modal-performances {
    clear: right; /* Ensure content flows below floated image */
}

/* ========== Slug Bands Section ========== */
.slug-bands {
    margin: 40px 0;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-level-1);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.slug-bands:hover {
    box-shadow: var(--shadow-level-2);
}
.slug-bands h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    text-align: center;
}

/* The grid container itself */
.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Individual band cards */
.band-card {
    background-color: var(--bg-dark);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-level-1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.band-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-level-3);
}

/* Band card image */
.band-card .band-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain; /* Changed from cover to contain */
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

/* Band card heading (h4) */
.band-card h4 {
    margin-bottom: 10px;
    color: var(--primary-light);
    font-size: 1.5rem;
}

/* Band card paragraph (genre) */
.band-card p {
    margin-bottom: 10px;
}

/* Social links styling */
.band-social-links {
    margin-bottom: 1rem;
    margin-top: auto; /* Push to bottom */
}
.band-social-links a {
    margin: 0 0.5rem;
    font-size: 0.9em;
    color: var(--primary-light);
}
.band-social-links a:hover {
    color: var(--accent-color);
}
.band-social-links i {
    margin-right: 0.25rem;
}

/* Note below the grid */
.band-note {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
}

/* Styles for the optional Facebook feed section */
/* Keep these rules related to .band-events and .facebook-feed if they are used elsewhere or planned */
.band-events {
    margin: 40px 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow-level-1);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.band-events:hover {
    box-shadow: var(--shadow-level-2);
}
.band-events h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
}
.facebook-feed {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}
/* END of Replacement Block */

#band-modal-audio audio {
    width: 100%;
     margin-bottom: 0.8rem;
}

/* Clear float for sections after image */
.band-modal-body h3,
.band-modal-body #band-modal-description,
.band-modal-body #band-modal-members,
.band-modal-body #band-modal-audio,
.band-modal-body #band-modal-performances {
    clear: right; /* Ensure content flows below floated image */
}

/* Styling for Upcoming Shows within Band Card */
.band-upcoming-shows {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color); /* Separator line */
    text-align: left; /* Align show details left */
}

.band-upcoming-shows h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.band-performance-item {
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 10px;
    display: flex; /* Use flex to align items */
    justify-content: space-between; /* Space out date/venue and button */
    align-items: center;
    gap: 10px; /* Gap between elements */
}

.band-performance-item .performance-date {
    font-weight: bold;
    color: var(--primary-light); 
    white-space: nowrap; /* Prevent date wrapping */
}

.band-performance-item .performance-venue {
     font-style: italic;
     color: var(--text-light); 
     /* Allow venue to wrap if needed */
}

.band-upcoming-shows .no-shows {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
    text-align: center;
}

/* END of Replacement Block */

#band-modal-audio audio {
    width: 100%; 
     margin-bottom: 0.8rem;
}

/* Clear float for sections after image */
.band-modal-body h3,
.band-modal-body #band-modal-description,
.band-modal-body #band-modal-members,
.band-modal-body #band-modal-audio,
.band-modal-body #band-modal-performances {
    clear: right; /* Ensure content flows below floated image */
}

/* Styles for Upcoming Birthdays on Homepage */
.section-subheader {
    margin-top: 2rem; /* Space above the birthday heading */
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.birthday-list {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Center list container */
    max-width: 500px; /* Limit width */
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    box-shadow: var(--shadow-level-1);
}

.birthday-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.birthday-list li:last-child {
    border-bottom: none;
}

.birthday-date {
    font-weight: bold;
    color: var(--accent-color);
    flex-shrink: 0; /* Prevent date from shrinking */
}

.birthday-name {
    /* Default color is fine */
}

/* Specific styles for the upcoming events list items */
.birthday-list .event-date strong {
    /* Date styling is already handled by .birthday-date potentially, but ensure boldness */
    /* Color is inherited from .birthday-date if span has that class */
}

.birthday-list .event-name {
    color: var(--primary-light); /* Blue color for event title */
    font-weight: normal; /* Ensure it's not bold like the date */
    margin-left: 0.5rem; /* Add some space after the date */
}

.birthday-list .event-description {
    color: var(--text-color); /* White/default text color */
    font-size: 0.9em; 
    margin-left: 0.25rem; /* Space after the dash */
    opacity: 0.9; /* Slightly less prominent than title */
}

/* Styling for the Slugfest Hams Recipient Table */
.recipients-table {
    width: 100%; /* Make table take full width of container */
    max-width: 600px; /* Optional: Set a max-width if needed */
    margin: 1rem auto; /* Center table if max-width is set, add spacing */
    border-collapse: collapse; /* Collapse borders for a cleaner look */
    border: 1px solid var(--border-color, #ddd); /* Outer border */
}

.recipients-table th,
.recipients-table td {
    border: 1px solid var(--border-color, #ddd); /* Border for cells */
    padding: 0.85rem 1rem; /* Slightly increased padding */
    text-align: left; /* Align text to the left */
    vertical-align: top; /* Align content to the top */
}

.recipients-table th {
    background-color: var(--bg-dark); /* Use dark theme header bg */
    font-weight: bold;
    color: var(--text-light); /* Ensure header text is light */
}

/* Make data cells have a distinct background */
.recipients-table td {
    background-color: var(--card-bg); /* Use card background for data cells */
}

/* Optional: Alternate row styling */
/*
.recipients-table tbody tr:nth-child(odd) {
    background-color: var(--table-row-odd-bg, #f8f9fa);
}
*/

/* Ensure the container allows the table width */
.table-container {
    overflow-x: auto; /* Add horizontal scroll if table is too wide */
} 

/* Styling for the Filter Section on Hams Page */
#ham-filters {
    background-color: var(--card-bg); /* Use card background */
    padding: 1.5rem; /* Add padding inside the block */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 2rem; /* Space above the filter block */
    margin-bottom: 1rem; /* Space below the filter block */
    box-shadow: var(--shadow-level-1);
}

#ham-filters h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-light);
}

.ham-filter-controls {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 1.5rem; /* Space between filter groups */
    justify-content: center; /* Center filter groups */
    }

.filter-group {
    display: flex;
    flex-direction: column; /* Stack label and input vertically */
    align-items: flex-start; /* Align items to the left */
    }
    
.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-light); /* Ensure label text is light */
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-dark); /* Use darker background */
    color: var(--text-light);
    min-width: 200px; /* Give inputs a minimum width */
} 

/* Styling for the Hams History Section */
#hams-history-image {
    background-color: var(--card-bg); /* Use card background */
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 2rem; /* Space above */
    margin-bottom: 2rem; /* Space below */
    box-shadow: var(--shadow-level-1);
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack vertically by default (mobile) */
    gap: 1.5rem; /* Space between image and text */
}

.hams-image {
    text-align: center; /* Center image and caption within its container */
    flex-shrink: 0; /* Prevent image container from shrinking too much */
}

.hams-image img {
    max-width: 100%; /* Ensure image fits container */
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem; /* Space below image before caption */
}

.hams-image .caption {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 0; /* Reset default margin */
}

.hams-text {
    flex-grow: 1; /* Allow text block to take remaining space */
}

.hams-text h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-light);
    text-align: center; /* Center heading */
}

.hams-text p {
    margin-bottom: 1rem;
}
.hams-text p:last-child {
    margin-bottom: 0;
}

/* Responsive layout for larger screens */
@media (min-width: 768px) {
    #hams-history-image {
        flex-direction: row; /* Arrange side-by-side */
        align-items: flex-start; /* Align items to the top */
}

    .hams-image {
        flex-basis: 450px; /* INCREASED: Give image container more base width */
        text-align: left;
    }

    .hams-text h3 {
        text-align: left; /* Align text heading left */
}
} 

/* Center the Recipient List Header */
#hams-recipient-list h3 {
    text-align: center;
    color: var(--primary-light);
    margin-bottom: 0.5rem; /* Adjust spacing */
} 

/* Center the paragraph below the recipient list header */
#hams-recipient-list h3 + p {
    text-align: center;
    margin-bottom: 1rem; /* Add some space below it before the table */
    font-size: 0.95rem;
    color: var(--text-light); /* Ensure text is visible */
    opacity: 0.9;
}

/* Header Countdown Timer Styling */
/* Keyframes for animations */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 5px var(--primary-color); }
    50% { transform: scale(1.03); box-shadow: 0 0 15px var(--primary-light); }
    100% { transform: scale(1); box-shadow: 0 0 5px var(--primary-color); }
}

@keyframes colorshift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container */
#header-countdown-container {
    /* position: absolute; /* Positioned by flexbox in header now */
    /* top: 15px; */
    /* right: 15px; */
    display: flex;
    flex-direction: column;
    align-items: center; 
    background-color: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px; 
    box-shadow: var(--shadow-level-1);
    border: 2px solid var(--primary-color);
    /* max-width: 250px; /* Let flexbox handle width */
    text-align: center;
    color: var(--text-light); /* Ensure base text color is light */
}

/* Title ("SLUGFEST 2025!") */
#header-countdown-container .countdown-title {
    display: block; /* Ensure it takes block space */
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--primary-color);
    animation: pulse 2s infinite, colorshift 4s infinite linear; /* Added linear timing for colorshift */
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color), var(--primary-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    z-index: 2; /* Ensure it's above container background */
}

/* Timer text container (the second span) */
#header-countdown-container > span:nth-of-type(2) { /* Targeting the second span directly */
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    display: block; /* Ensure it takes block space */
}

/* Individual number values */
#header-countdown-container .countdown-value {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.05rem;
} 

/* Styling for Slugfest Page Countdown Timer */
.event-countdown {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 1rem; /* Space between boxes */
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--card-bg); /* Match card background */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-level-1);
}

.countdown-box {
    background-color: var(--bg-dark); /* Darker background for each box */
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    text-align: center;
    min-width: 80px; /* Ensure boxes have some width */
    border: 1px solid var(--primary-color);
}

.countdown-box span {
    display: block; /* Stack number and label vertically */
    color: var(--text-light);
}

/* Number styling (e.g., #days, #hours) */
.countdown-box span[id] { 
    font-size: 2.2rem;
    font-weight: bold;
    line-height: 1.1;
    color: var(--primary-light); /* Highlight the number */
}

/* Label styling */
.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
    opacity: 0.9;
} 

/* Styling for the H2 in the Upcoming Event section */
.upcoming-event h2 {
    text-align: center;
    color: var(--accent-color); /* Use accent green */
    font-size: 2.5rem; /* Increased font size */
    margin-bottom: 1.5rem; /* Adjust spacing below heading */
} 

/* Style the event details container and the target date paragraph */
.event-details {
    text-align: center; /* Center align the container */
}

.event-details p strong {
    color: var(--primary-color); /* Make the date text purple */
    font-size: 1.1rem; /* Slightly larger font */
}

/* Add NEW media query for mobile styles */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block; /* Show hamburger */
        margin-top: 0.5rem; /* Add some space above */
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-light);
        width: auto; /* Ensure it doesn't stretch */
        padding: 0; /* Remove default padding if any */
    }

    /* Apply mobile overlay styles to nav */
    .main-nav {
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background-color: var(--bg-dark); /* Match header background */
        z-index: 1000; /* Ensure it's above other content */
        border-top: 1px solid var(--border-color);
        padding: 1rem 0; /* Add some padding */
        display: none; /* Re-hide by default, shown by .nav-active */
    }

    .main-nav ul {
        flex-direction: column; /* Stack vertically */
        align-items: center; /* Center items */
        gap: 0.5rem; /* Adjust gap */
    }

    .main-nav a {
        padding: 0.5rem 1rem; /* Mobile padding */
        display: block; /* Make links take full width */
        width: 100%;
        text-align: center;
    }
    
    /* Rule to show the nav when toggled */
    .main-nav.nav-active {
        display: block;
    }
}