        @font-face {
            font-family: 'IFC Insane Rodeo';
            src: url('fonts/IFC INSANE RODEO.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }
        
        :root {
            --primary: #1E90FF;    /* Electric Sky Blue */
            --secondary: #001F3F;  /* Deep Navy */
            --accent: #F4C430;     /* Festive Gold */
            --bg-light: #F8F9FA;   /* Soft Gray */
            --white: #FFFFFF;      /* Clean White */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Montserrat', sans-serif;
        }

        body {
            color: var(--secondary);
            background-color: var(--white);
            line-height: 1.6;
            overflow-x: clip;
            padding-top: 85px; /* Offset for fixed header */
        }

        h1, h2, h3 {
            margin-bottom: 15px;
        }

        a {
            text-decoration: none;
            color: var(--secondary);
            transition: color 0.3s;
        }

        a:hover {
            color: var(--primary);
        }

        /* --- Decorative Border Pattern Ribbon --- */
        .folkloric-pattern-ribbon {
            height: 40px;
            width: 100%;
            background-image: url('images/border.png');
            opacity: 0.75;
            background-repeat: repeat-x;
            background-size: auto 40px;
            background-position: center;
        }

        /* --- Buttons --- */
        .btn {
            display: inline-block;
            background-color: var(--accent);
            color: var(--secondary);
            padding: 12px 24px;
            border-radius: 5px;
            font-weight: 600;
            text-transform: uppercase;
            margin-top: 10px;
            transition: background 0.3s, transform 0.2s;
        }

        .btn:hover {
            background-color: #daa520;
            color: var(--secondary);
            transform: translateY(-2px);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--white);
            color: var(--white);
        }

        .btn-outline:hover {
            background-color: var(--white);
            color: var(--secondary);
        }

        /* --- Header & Navigation (Auto-Hide on Scroll) --- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            /* REMOVED top, bottom, and left padding. Kept 5% on the right for the nav menu */
            padding: 0 5% 0 0; 
            height: 85px; /* Locked to match body offset */
            background-color: var(--white);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1001; 
            transition: transform 0.3s ease-in-out;
        }

        header.nav-hidden {
            transform: translateY(-100%);
        }

        .logo-container img {
            height: 65px; 
            width: auto;
            display: block;
        }

        nav {
            display: flex;
            align-items: center;
            gap: 25px;
            font-weight: 600;
        }

        /* Hamburger Menu Button */
        .hamburger {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 1002; /* Sit above the mobile nav drawer */
            position: relative;
        }

        .hamburger .bar {
            display: block;
            width: 28px;
            height: 3px;
            margin: 6px auto;
            background-color: var(--secondary);
            transition: all 0.3s ease-in-out;
            border-radius: 3px;
        }

        /* Mobile Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(4px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* --- Hero Section (Bleed Right) --- */
        .hero {
            position: relative;
            background-image: 
                /* Shifted lighting focal point to the right edge (100%) */
                radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.6) 0%, rgba(30, 144, 255, 0) 50%, rgba(0, 31, 63, 0.85) 100%),
                /* Shifted starburst origin to the right edge (100%) */
                repeating-conic-gradient(from 0deg at 100% 50%, rgba(255, 255, 255, 0.18) 0deg 9deg, transparent 9deg 18deg),
                linear-gradient(135deg, var(--primary), #004b96);
            color: var(--white);
            text-align: center;
            padding: 50px 20px; 
            overflow: hidden;
        }

        .hero::before {
            content: "";
            position: absolute;
            top: 0;
            right: -50px; /* Anchors firmly to the right side and bleeds off */
            left: auto;   /* Clears out any left positioning */
            width: 750px;
            height: 100%;
            transform: translateY(0);
            background-image: url('images/couple.svg'); 
            background-repeat: no-repeat;
            background-position: right center; /* Aligns the image itself to the right side of its container */
            background-size: contain;
            opacity: 0.3; 
            pointer-events: none;
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2; 
        }

        .hero h1 {
            font-family: 'IFC Insane Rodeo', 'Montserrat', serif;
            font-weight: normal;
            font-size: 8rem;
            max-width: 900px;
            margin: 0 auto 15px; 
            text-shadow: 0 2px 5px rgba(0,0,0,0.4);
            letter-spacing: 6px;
            word-spacing: 4px;
            line-height: .9; 
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            font-weight: 300;
        }

        .hero .btn-container {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        /* --- General Layout Sections --- */
        .section {
            padding: 40px 10%;
        }

        .section-title {
            font-family: 'IFC Insane Rodeo', 'Montserrat', serif;
            font-weight: normal;
            text-align: center;
            font-size: 3.5rem;
            color: var(--secondary);
            margin-bottom: -3px;
            letter-spacing: 3px; 
            word-spacing: -1px;
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: var(--primary);
            margin-bottom: 50px;
            font-weight: 600;
        }

        /* --- About Section & Carousel --- */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1.5fr 1fr;
            gap: 40px;
            align-items: start;
        }

        .about-img {
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .carousel-container {
            position: relative;
            width: 100%;
            aspect-ratio: 4 / 5; /* Locks dimensions to prevent layout shift */
            margin: auto;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            overflow: hidden;
            background-color: var(--secondary);
        }

        .carousel-slide {
            display: none;
            width: 100%;
            height: 100%;
        }

        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Crops image neatly into the locked frame without distorting */
            display: block;
            border-radius: 10px;
        }

        .fade {
            animation-name: fade;
            animation-duration: 1.5s;
        }

        @keyframes fade {
            from {opacity: .4}
            to {opacity: 1}
        }

        .prev, .next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            width: auto;
            padding: 16px;
            margin-top: -22px;
            color: white;
            font-weight: bold;
            font-size: 18px;
            transition: 0.3s ease;
            border-radius: 0 3px 3px 0;
            user-select: none;
            background-color: rgba(0,0,0,0.4);
        }

        .next {
            right: 0;
            border-radius: 3px 0 0 3px;
        }

        .prev:hover, .next:hover {
            background-color: rgba(0,0,0,0.8);
        }

        .about-text p {
            margin-bottom: 20px;
        }

        /* --- Member Resources --- */
        .resources-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            align-items: start;
        }

        .resource-card {
            text-align: center;
        }

        .resource-card a {
            display: block;
            text-decoration: none;
        }

        .resource-img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
            transition: transform 0.3s ease;
        }

        .resource-card a:hover .resource-img {
            transform: scale(1.02);
        }

        .zoom-text {
            margin-top: 12px;
            font-size: 0.9rem;
            color: var(--primary);
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .resource-card a:hover .zoom-text {
            color: var(--secondary);
        }

        /* --- Practice Info Section --- */
        .schedule {
            background-color: var(--bg-light);
        }

        .schedule-card {
            background-color: var(--white);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .schedule-details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-top: 30px;
            text-align: left;
        }

        .schedule-details div {
            padding: 20px;
            border-left: 4px solid var(--primary);
            background-color: var(--bg-light);
        }

        .schedule-details h4 {
            color: var(--secondary);
            margin-bottom: 5px;
        }

        .schedule-footer {
            margin-top: 30px;
            font-style: italic;
            color: var(--primary);
        }

        /* --- Contact Section --- */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 40px;
            background-color: var(--secondary);
            color: var(--white);
            padding: 30px 10%; /* Reduced from 60px */
            border-radius: 10px;
            margin: 0 5% 40px; /* Reduced bottom margin from 80px */
        }

        .contact-info a {
            color: var(--accent);
        }

        .contact-info ul {
            list-style: none;
            margin-top: 20px;
        }

        .contact-info li {
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .social-links {
            margin-top: 20px;
        }
        
        .social-links a {
            display: inline-block;
            margin-right: 15px;
            color: var(--white);
            background-color: var(--primary);
            padding: 10px 20px;
            border-radius: 5px;
            font-weight: 600;
        }

        /* --- Footer --- */
        footer {
            text-align: center;
            background-color: var(--bg-light);
            padding: 30px;
            font-size: 0.9rem;
        }
        
        /* --- Contact Form Styles --- */
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
            text-align: left;
        }

        .form-group label {
            font-weight: 600;
            margin-bottom: 5px;
            display: block;
        }

        .form-group input, 
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-family: 'Montserrat', sans-serif;
        }

        .form-response {
            margin-top: 10px;
            font-weight: 600;
            display: none;
        }
        
        .form-response.success { color: #2e7d32; display: block; }
        .form-response.error { color: #d32f2f; display: block; }
        /* --- ENDContact Form Styles --- */
        
        /* --- Mobile Responsiveness --- */
        @media (max-width: 992px) {
            .about-grid {
                grid-template-columns: 1fr 1fr;
            }
            .about-portrait {
                display: none; 
            }
        }

        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }
            /* Hamburger Icon Animation */
            .hamburger.active .bar:nth-child(1) {
                transform: translateY(9px) rotate(45deg);
            }
            .hamburger.active .bar:nth-child(2) {
                opacity: 0;
            }
            .hamburger.active .bar:nth-child(3) {
                transform: translateY(-9px) rotate(-45deg);
            }

            /* Off-Canvas Navigation Drawer */
            nav {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 0;
                right: 0;
                height: 100vh;
                width: 250px;
                background-color: var(--white);
                box-shadow: -5px 0 15px rgba(0,0,0,0.1);
                padding: 100px 25px 25px; /* Extra top padding to clear the header */
                gap: 20px;
                text-align: right;
                transform: translateX(100%); /* Start hidden off-screen */
                transition: transform 0.3s ease-in-out;
                z-index: 1000;
            }
            
            nav.active {
                transform: translateX(0); /* Slide in */
            }

            .about-grid, .schedule-details, .contact-grid, .resources-grid {
                grid-template-columns: 1fr;
            }
            .about-portrait {
                display: block; 
            }
            
            /* Responsive Hero Font */
            .hero h1 {
                font-size: 14vw; 
                line-height: 1; 
                letter-spacing: 3px; 
            }
            .hero::before {
                display: none;
            }
            .header-couple-icon {
                height: 95px; /* Scaled for mobile */
                top: 15px; /* Push down to show heads */
                left: 5px; /* Slide into view on the left */
                transform: none; /* CRITICAL: Clears any lingering positioning bugs */
            }
            
            .brand-text {
                font-size: 2rem; 
                margin-left: 85px; /* Space text relative to the new mobile SVG size */
            }
        } /* End of media query */
        
        /* --- Intersection Observer Animation States --- */
        .fade-in-section {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
            will-change: opacity, visibility;
            }

        .fade-in-section.is-visible {
            opacity: 1;
            transform: none;
            }
        
        /* --- Modern Header Brand Lockup (Edge-to-Edge) --- */
        .logo-brand {
            position: relative; 
            display: flex;
            align-items: center;
            /* Increased right padding from 80px to 150px to stretch the sunburst further right */
            padding: 0 150px 0 0; 
            height: 100%;
            overflow: hidden; 
            
            /* Fading Starburst Background */
            background-image: 
                /* Mask pushed to 60% so the sunburst stays visible longer before fading to white */
                linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 1) 100%),
                repeating-conic-gradient(from 1deg at 0% 50%, rgba(30, 144, 255, 0.52) 0deg 12deg, transparent 12deg 24deg),
                linear-gradient(90deg, rgba(235, 245, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
            transition: background 0.3s ease;
        }

        .logo-brand:hover {
            transform: scale(1.02);
        }

        .header-couple-icon {
            position: absolute; 
            top: -22px; /* Pushed down to reveal the hats and heads */
            left: -10px; /* Pulled to the right so they aren't chopped off as much */
            height: 150px; 
            width: auto;
            /* Removed the 'transform' rule completely to avoid inheritance issues */
            filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
            pointer-events: none; 
        }

        .brand-text {
            font-family: 'IFC Insane Rodeo', 'Montserrat', serif;
            font-size: 2.6rem;
            color: var(--secondary);
            font-weight: normal;
            letter-spacing: 3px;
            line-height: 1;
            padding-top: 5px;
            z-index: 2; 
            /* Increased to 110px to make room since we shifted the SVG to the right */
            margin-left: 140px; 
        }
        /* --- Gallery Grid --- */
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            padding: 20px 20px 0;
            max-width: 1200px;
            margin: 0 auto;
        }

        .gallery-item {
            width: 100%;
            height: 200px; /* Forces all thumbnails to be uniform squares/rectangles */
            object-fit: cover; /* Crops the thumbnail nicely without stretching the photo */
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .gallery-item:hover {
            transform: scale(1.03);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        /* --- Lightbox Overlay --- */
        .lightbox {
            display: none; 
            position: fixed;
            z-index: 9999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            align-items: center;
            justify-content: center;
        }

        .lightbox.active {
            display: flex; /* Triggered by JS */
        }

        .lightbox-content {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 4px;
            box-shadow: 0 0 20px rgba(0,0,0,0.5);
            animation: fadeIn 0.3s;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }
        
        /* --- Gallery Button Container --- */
        .load-more-container {
            text-align: center;
            margin-top: 30px;
            width: 100%;
        }
        
        /* --- Gallery Pagination Controls --- */
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
            width: 100%;
        }

        #page-indicator {
            font-weight: 600;
            color: var(--primary); /* Uses your existing brand color */
        }

        button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* --- Lightbox Navigation UI --- */
        .lightbox-prev,
        .lightbox-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border: none;
            font-size: 2rem;
            padding: 15px 20px;
            cursor: pointer;
            border-radius: 5px;
            transition: background 0.3s ease;
            z-index: 10000;
        }

        .lightbox-prev:hover,
        .lightbox-next:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .lightbox-prev {
            left: 20px;
        }

        .lightbox-next {
            right: 20px;
        }
        
        .lightbox-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 1.1rem;
            letter-spacing: 1px;
            background: rgba(0, 0, 0, 0.5);
            padding: 5px 15px;
            border-radius: 20px;
        }

        /* Hide buttons on very small screens to rely on tap/swipe (optional) */
        @media (max-width: 600px) {
            .lightbox-prev, .lightbox-next {
                padding: 10px 15px;
                font-size: 1.5rem;
            }
        }
        
        /* --- Strictly Enforce Visible Disabled State --- */
        .pagination-container button:disabled {
            display: inline-block !important;
            opacity: 0.5 !important;
            cursor: not-allowed !important;
            pointer-events: none !important; 
            
            /* Force visible colors to prevent white-on-white vanishing */
            color: #666666 !important; 
            border: 2px solid #666666 !important; 
            background-color: transparent !important;
        }
        
        /* --- Active Pagination Buttons (Fix for White Background) --- */
        .pagination-container .btn:not(:disabled) {
            color: #333333; /* Dark text so it is visible on white */
            border: 2px solid #333333; /* Dark border */
            background-color: transparent; 
        }

        /* Hover effect for active pagination buttons */
        .pagination-container .btn:not(:disabled):hover {
            background-color: #333333;
            color: #ffffff; /* Flips to white text on a dark background */
        }
        
        /* --- Prevent Background Scrolling --- */
        body.no-scroll {
            overflow: hidden;
        }
        
        /* News & Events Feed Styles */
        .events-section {
            padding: 40px 20px; /* Reduced from 60px */
           background-color: #fcfcfc;
        }
        
        .events-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .feed-card {
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
            overflow: hidden;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        
        .feed-card:hover {
            transform: translateY(-5px);
        }
        
        /* Container for the feed card image */
        .feed-card-img-wrapper {
            position: relative;
            width: 100%;
            height: 200px;
            border-bottom: 3px solid #2e7d32; /* Studio accent color */
            overflow: hidden; 
        }

        /* The Blurred Background Layer (Only active when "contain-mode" is present) */
        .feed-card-img-wrapper.contain-mode::before {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-image: var(--bg-img);
            background-size: cover; 
            background-position: center;
            filter: blur(10px);
            transform: scale(1.1); 
            z-index: 1;
        }

        /* The Main Image */
        .feed-image {
            position: relative;
            z-index: 2; 
            width: 100%;
            height: 100%;
            object-fit: cover; /* Default cropped view */
        }

        /* Switches to full vertical view when toggled */
        .feed-image.contain-mode {
            object-fit: contain; 
        }
        
        .feed-content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        
        .feed-title {
            margin: 0 0 10px 0;
            font-size: 1.25rem;
            color: #333;
        }
        
        .feed-date {
            font-size: 0.9rem;
            color: #2e7d32;
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .feed-desc {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.5;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 4; /* Truncates after 4 lines */
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* Changes the cursor so users know they can click it */
        .feed-card.is-expandable {
            cursor: pointer;
        }

        /* The dynamic text indicator */
        .read-more-text {
            color: #2e7d32; /* Studio accent color */
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 10px;
            display: none; 
        }

        .feed-card.is-expandable .read-more-text {
            display: inline-block;
        }

        .feed-card.is-expandable .read-more-text::after {
            content: " \2192"; /* Right arrow */
        }

        /* --- Event Lightbox Modal --- */
        .event-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .event-modal-overlay.active {
            display: flex;
        }

        .event-modal-content {
            background: #fff;
            width: 100%;
            max-width: 700px;
            max-height: 90vh;
            border-radius: 8px;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .event-modal-close {
            position: absolute;
            top: 15px; right: 20px;
            font-size: 30px; font-weight: bold;
            color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
            cursor: pointer; z-index: 10; line-height: 1;
        }

        .event-modal-close.dark {
            color: #333; text-shadow: none;
        }

        .modal-img-container .feed-card-img-wrapper {
            height: 350px; /* Makes the image larger for the reading view */
            border-bottom: none;
            border-radius: 8px 8px 0 0;
        }

        .event-modal-body {
            padding: 30px;
        }

        .event-modal-body h3 { font-size: 1.8rem; margin: 0 0 5px 0; color: #333; }
        .event-modal-body .date { font-size: 1rem; color: #2e7d32; font-weight: 600; margin-bottom: 20px; }
        .event-modal-body .desc { font-size: 1rem; color: #444; line-height: 1.6; white-space: pre-wrap; margin: 0; }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .no-events {
            grid-column: 1 / -1;
            text-align: center;
            color: #777;
            font-style: italic;
            padding: 20px;
        }
        
        .events-grid {
            display: grid;
            /* Changed auto-fit to auto-fill below */
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
            gap: 30px;
            margin-top: 30px;
        }
        
        /* --- Event Filter Buttons --- */
        .filter-container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
        }

        .filter-btn {
            background-color: transparent;
            color: var(--secondary);
            border: 2px solid var(--secondary);
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            opacity: 0.8;
        }

        /* --- Color-Coded Event Tags & Badges --- */
        .card-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }
        
        .card-tag {
            font-size: 0.7rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Category Theme Colors */
        .theme-performance  { background-color: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
        .theme-practice     { background-color: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
        .theme-fundraiser   { background-color: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }
        .theme-announcement { background-color: #f3e5f5; color: #6a1b9a; border: 1px solid #e1bee7; }
        .theme-default      { background-color: #eeeeee; color: #424242; border: 1px solid #e0e0e0; }

        /* Filter Button Theming (Matches the badges dynamically via data attributes) */
        .filter-btn[data-tag="Performance"] { color: #c62828; border-color: #c62828; }
        .filter-btn[data-tag="Performance"].active { background-color: #c62828; color: #fff; }
        
        .filter-btn[data-tag="Practice"] { color: #1565c0; border-color: #1565c0; }
        .filter-btn[data-tag="Practice"].active { background-color: #1565c0; color: #fff; }
        
        .filter-btn[data-tag="Fundraiser"] { color: #f57f17; border-color: #f57f17; }
        .filter-btn[data-tag="Fundraiser"].active { background-color: #f57f17; color: #fff; }
        
        .filter-btn[data-tag="Announcement"] { color: #6a1b9a; border-color: #6a1b9a; }
        .filter-btn[data-tag="Announcement"].active { background-color: #6a1b9a; color: #fff; }
        
        /* Ensure the "All" button stays neutral but distinct */
        .filter-btn[data-tag="All"] { color: var(--secondary); border-color: var(--secondary); }
        .filter-btn[data-tag="All"].active { background-color: var(--secondary); color: #fff; }
        /* END News & Events Feed Styles */
        
        /* --- Scroll to Top Button --- */
        #scrollToTopBtn {
            position: fixed;
            bottom: 30px;  /* Anchors to the bottom */
            right: 30px;   /* Anchors to the right */
            z-index: 998; 
            background-color: var(--accent); 
            color: var(--secondary);
            border: none;
            border-radius: 50%;
            width: 50px; /* Slightly larger for easier thumb-tapping */
            height: 50px;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            
            /* Initial Hidden State for Animation */
            opacity: 0;
            visibility: hidden;
            /* Changed to +20px so it animates UP from the bottom */
            transform: scale(0.5) translateY(20px); 
            transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, background-color 0.3s;
        }
        
        /* Active State Rendered via JavaScript */
        #scrollToTopBtn.show {
            opacity: 1;
            visibility: visible;
            transform: scale(1) translateY(0);
        }
        
        #scrollToTopBtn:hover {
            background-color: #daa520; 
            transform: scale(1.1) translateY(0); 
        }
        
        /* Adjust position slightly for smaller mobile screens */
        @media (max-width: 600px) {
            #scrollToTopBtn {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 22px;
            }
        }
        /* --- END Scroll to Top Button --- */
        
        /* Hide the floating reCAPTCHA badge */
        .grecaptcha-badge { 
            visibility: hidden !important; 
        }
        /* END Hide the floating reCAPTCHA badge */
        
        /* --- View Toggle Switch --- */
        .view-toggle {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .view-toggle-btn {
            background-color: #fff;
            color: var(--secondary);
            border: 2px solid var(--secondary);
            padding: 8px 24px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .view-toggle-btn.active {
            background-color: var(--secondary);
            color: #fff;
        }

        /* --- Interactive Calendar View --- */
        .calendar-wrapper {
            display: none; /* Hidden by default, toggled via JS */
            width: 100%;
            max-width: 1000px;
            margin: 0 auto 40px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
            overflow: hidden;
            border: 1px solid #eee;
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--secondary);
            color: #fff;
            padding: 15px 20px;
        }

        .calendar-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .cal-nav-btn {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.8rem;
            cursor: pointer;
            line-height: 1;
            padding: 0 10px;
            transition: opacity 0.3s;
        }
        
        .cal-nav-btn:hover { opacity: 0.7; }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 1px;
            background: #ddd; /* Creates strict borders between days */
        }

        .calendar-day-name {
            background: #f8f9fa;
            text-align: center;
            padding: 12px 0;
            font-weight: 700;
            color: #555;
            font-size: 0.9rem;
        }

        .calendar-day {
            background: #fff;
            min-height: 120px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 0; /* CRITICAL: Forces the column to respect the 1fr grid limit */
        }

        .calendar-day.empty {
            background: #fdfdfd;
        }

        .calendar-day .day-num {
            font-weight: 700;
            color: #777;
            align-self: flex-end;
            margin-bottom: 5px;
        }

        .calendar-day.today .day-num {
            background: var(--primary);
            color: #fff;
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        /* Calendar dots inherit theme colors, but we force a thicker left border */
        .cal-event-indicator {
            font-size: 0.75rem;
            padding: 4px 6px;
            border-radius: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            border-left-width: 4px !important; 
            border-left-style: solid !important;
            font-weight: 600;
            transition: transform 0.2s;
            display: block;
            width: 100%;
            box-sizing: border-box; /* Ensures padding doesn't push it out of bounds */
        }

        .cal-event-indicator:hover {
            transform: scale(1.02);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        /* Mobile adjustment for calendar */
        @media (max-width: 768px) {
            .calendar-day { min-height: 80px; padding: 5px; }
            .calendar-day-name { font-size: 0.7rem; padding: 8px 0; }
            .cal-event-indicator { font-size: 0.65rem; padding: 2px 4px; }
            .view-toggle { flex-direction: column; padding: 0 20px; }
        }
        
        /* --- Dancer Spotlight Section --- */
        .dancer-card-wrapper {
            max-width: 900px;
            margin: 30px auto 0;
        }
        
        .dancer-card {
            background: #ffffff;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1.3fr;
            gap: 0;
            border: 1px solid #e0e0e0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .dancer-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }
        
        .dancer-card.is-expandable {
            cursor: pointer;
        }
        
        .dancer-img-wrapper {
            position: relative;
            width: 100%;
            min-height: 280px;
            background: var(--bg-light);
            overflow: hidden;
        }
        
        .dancer-img-wrapper.contain-mode::before {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-image: var(--bg-img);
            background-size: cover;
            background-position: center;
            filter: blur(10px);
            transform: scale(1.1);
            z-index: 1;
        }
        
        .dancer-image {
            position: relative;
            z-index: 2;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .dancer-image.contain-mode {
            object-fit: contain;
        }
        
        .dancer-content {
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .dancer-badge {
            display: inline-block;
            align-self: flex-start;
            background-color: var(--accent);
            color: var(--secondary);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }
        
        .dancer-name {
            font-size: 1.8rem;
            color: var(--secondary);
            margin: 0 0 5px 0;
        }
        
        .dancer-subtitle {
            font-size: 0.95rem;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 15px;
        }
        
        .dancer-desc {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.6;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .dancer-card.is-expandable .read-more-text {
            display: inline-block;
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 15px;
        }
        
        .dancer-card.is-expandable .read-more-text::after {
            content: " \2192";
        }
        
        /* Mobile responsive layout */
        @media (max-width: 768px) {
            .dancer-card {
                grid-template-columns: 1fr;
            }
            .dancer-img-wrapper {
                height: 250px;
            }
            .dancer-content {
                padding: 20px;
            }
        }

        /* Instagram Post Button */
        .dancer-insta-btn {
            display: inline-block;
            align-self: flex-start;
            margin-top: 15px;
            background-color: var(--primary);
            color: #ffffff !important;
            padding: 8px 16px;
            border-radius: 5px;
            font-size: 0.85rem;
            font-weight: 600;
            transition: background-color 0.3s ease;
            text-decoration: none;
        }
        
        .dancer-insta-btn:hover {
            background-color: var(--secondary);
            color: #ffffff !important;
        }