/* ===================================================
   CRESTONE JAZZ TRIO — Master Stylesheet
   =================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --navy:       #0B1F3A;
    --navy-90:    rgba(11, 31, 58, 0.9);
    --midnight:   #132C4F;
    --midnight-90: rgba(19, 44, 79, 0.9);
    --gold:       #D4C21F;
    --gold-hover: #E5D321;
    --slate:      #2F4A6B;
    --text-dark:  #0B1F3A;
    --text-light: #F5F5F2;
    --text-muted: #B8BDC6;
    --text-body:  #B8BDC6;
    --bg-light:   #F5F5F2;
    --bg-dark:    #0B1F3A;
    --white:      #ffffff;
    --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --transition: 0.3s ease;
    
    /* Responsive Spacing */
    --section-padding: clamp(80px, 12vw, 120px) 10%;
    --mobile-padding: 60px 5%;
}

/* Fluid Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--navy);
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-light);
    background: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrollbars/bars */
}

/* Global grain texture */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

body > main {
    flex: 1;
    background: var(--navy);
}

section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: var(--mobile-padding);
    }
}

img {
    max-width: 100%;
    height: auto;
}

.bg-light h2 {
    color: var(--navy);
}

/* Section Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.section-header.left {
    text-align: left;
}

.accent-line {
    border: 0;
    height: 2px;
    background: var(--gold);
    width: 60px;
    margin: 20px auto;
}

.section-header.left .accent-line {
    margin-left: 0;
}

.text-accent {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 10px;
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
header {
    background: transparent;
    color: var(--white);
    padding: 20px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding var(--transition), background var(--transition);
}

header.large {
    padding: 10px 20px;
    background: var(--navy-90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
}

nav .logo-small {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.5s, opacity 0.5s, transform 0.5s, width 0.5s;
}

nav .logo-small img {
    width: 100px;
    height: auto;
    margin-right: 15px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition);
}

/* Animated underline on hover */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

nav ul li a:hover::after,
nav ul li a.current::after {
    width: 100%;
}

nav ul li a.current {
    color: var(--gold);
}

nav ul li a:hover {
    color: var(--gold-hover);
}

/* ---------- Mobile Dropdown ---------- */
nav .dropdown {
    display: none;
    position: fixed;
    right: 20px;
    padding-right: 15px;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--slate);
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

nav .dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background var(--transition);
}

nav .dropdown-content a:hover {
    background-color: var(--navy);
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav .dropbtn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition);
}

nav .dropbtn:hover {
    color: var(--gold);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
    background: url('/images/Crestone Band HERO.webp') no-repeat right center/cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: var(--white);
    position: relative;
    padding: clamp(100px, 15vh, 160px) 10% 80px;
    margin-top: 0;
}

/* Dark gradient overlay removed per feedback */
.hero::before {
    content: none;
}

.hero-content {
    max-width: 650px;
    opacity: 0;
    animation: fadeUpIn 1s ease-out forwards;
    z-index: 2;
}

@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: min(450px, 90%);
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.feature {
    flex: 1;
}

.feature-icon {
    color: var(--gold);
    margin-bottom: 10px;
}

.feature-icon svg {
    display: block;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}



/* ===================================================
   MAIN CONTENT & LAYOUT UTILITIES
   =================================================== */
main {
    margin-top: 0;
}

/* Background Utilities */
.bg-navy {
    background-color: var(--navy);
    color: var(--text-light);
}

.bg-midnight {
    background-color: var(--midnight);
    color: var(--text-light);
}

.bg-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Swoops and Curves (Section curves UP into previous section) */
.swoop-up-light, .swoop-up-midnight, .swoop-up-navy {
    position: relative;
    padding-top: 120px !important;
}

.swoop-up-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23F5F5F2' d='M0,58 C480,2 960,2 1440,58 L1440,60 L0,60 Z'/%3E%3Cpath fill='none' stroke='%23D4C21F' stroke-width='3' d='M0,58 C480,2 960,2 1440,58'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
    transform: translateY(-99%);
    z-index: 2;
}

.swoop-up-midnight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23132C4F' d='M0,58 C480,2 960,2 1440,58 L1440,60 L0,60 Z'/%3E%3Cpath fill='none' stroke='%23D4C21F' stroke-width='3' d='M0,58 C480,2 960,2 1440,58'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
    transform: translateY(-99%);
    z-index: 2;
}

.swoop-up-navy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%230B1F3A' d='M0,58 C480,2 960,2 1440,58 L1440,60 L0,60 Z'/%3E%3Cpath fill='none' stroke='%23D4C21F' stroke-width='3' d='M0,58 C480,2 960,2 1440,58'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
    transform: translateY(-99%);
    z-index: 2;
}

.bg-light h2, .bg-light h3 {
    color: var(--navy);
}

.bg-navy h2, .bg-midnight h2, 
.bg-navy h3, .bg-midnight h3 {
    color: var(--white);
}

/* Text Utilities is already defined above, removing duplicate */

/* ===================================================
   ABOUT SECTION (Homepage)
   =================================================== */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: left;
    flex-wrap: wrap;
    flex-wrap: wrap;
}

.about img {
    border-radius: 50%;
    max-width: 250px;
    margin-right: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: transform 0.4s ease;
}

.about img:hover {
    transform: scale(1.03);
}

.about-content {
    flex: 1;
    max-width: 600px;
}

.about-content h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 10px;
}

.about-content p {
    margin-top: 10px;
    color: var(--text-dark);
    line-height: 1.7;
}

.bg-light p, .bg-light ul, .bg-light li {
    color: var(--text-dark) !important;
}

/* ---------- CTA Link Styles ---------- */
.btn-primary, .btn-secondary,
.read-more, .see-more, .contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 0;
    margin-top: 20px;
    transition: all var(--transition);
    cursor: pointer;
}

/* Primary Button (Gold bg, Navy text) */
.btn-primary,
.read-more, .see-more, .contact-button {
    background: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
}

.btn-primary:hover,
.read-more:hover, .see-more:hover, .contact-button:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 194, 31, 0.3);
}

/* Secondary Button (Gold outline, transparent bg) */
.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 194, 31, 0.3);
}

.read-more .arrow,
.see-more .arrow,
.contact-button .arrow,
.btn-primary .arrow,
.btn-secondary .arrow {
    transition: transform var(--transition);
}

.read-more:hover .arrow,
.see-more:hover .arrow,
.contact-button:hover .arrow,
.btn-primary:hover .arrow,
.btn-secondary:hover .arrow {
    transform: translateX(4px);
}

.see-more-container,
.contact-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ===================================================
   EVENTS SECTION (Homepage)
   =================================================== */
.events {
    padding: 80px 20px;
    text-align: center;
    text-align: center;
}

.events h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 20px;
}

.events ul {
    padding: 0;
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.events ul li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    text-align: left;
    line-height: 1.6;
}

/* ===================================================
   GALLERY PREVIEW (Homepage)
   =================================================== */
.gallery-preview {
    padding: 80px 20px;
    text-align: center;
    text-align: center;
}

.gallery-preview h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ---------- Carousel ---------- */
.carousel-container {
    position: relative;
    max-width: 600px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    font-size: 20px;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition);
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* ===================================================
   CONTACT SECTION (Homepage)
   =================================================== */
.contact {
    text-align: center;
    padding: 80px 20px;
    padding: 80px 20px;
}

.contact h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact p {
    margin-top: 10px;
    color: var(--text-body);
}

/* ===================================================
   FADE-IN SCROLL ANIMATION
   =================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
    background: var(--navy);
    color: var(--white);
    text-align: center;
    padding: 40px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    margin-top: 20px;
}

.footer-logo img {
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 30px;
}

.footer-nav li {
    margin: 0;
}

.footer-nav li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-nav li a:hover,
.footer-nav li a.current {
    color: var(--gold);
}

/* ---------- Social Media Icons (Footer) ---------- */
.social-media-container {
    margin-bottom: 20px;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}

.social-media a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.social-media a svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    fill: #ffffff !important;
    display: block;
    transition: fill var(--transition);
}

.social-media a:hover svg {
    fill: var(--gold) !important;
}

/* Legacy support for img icons */
.social-media img {
    width: 22px;
    height: 22px;
    transition: transform var(--transition);
    filter: brightness(0) invert(1);
}

.social-media a:hover img {
    transform: scale(1.1);
}

/* ===================================================
   MOBILE RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
    .hero {
        align-items: center;
        text-align: center;
        padding: 120px 5% 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
    }

    .hero-features {
        justify-content: center;
    }

    nav ul {
        display: none;
    }

    nav .dropdown {
        display: block;
    }

    .hero h1 {
        font-size: 2em;
    }

    .about {
        padding: 50px 20px;
        flex-direction: column;
        text-align: center;
    }

    .about img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }

    .events, .gallery-preview, .contact {
        padding: 50px 20px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        margin-top: 10px;
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* Old about page styles removed for modern revamp */

/* ===================================================
   EVENTS PAGE (Premium Schedule)
   =================================================== */

.events-page-hero {
    background: var(--navy);
    padding: clamp(140px, 15vh, 200px) 10% 80px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.events-main {
    background: var(--navy);
    padding: 80px 10% 120px;
}

.events-grid {
    max-width: 900px;
    margin: 0 auto;
}

.events-year-group {
    margin-bottom: 60px;
}

.events-year-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.event-card-full {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 28px 30px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 4px solid var(--gold);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: default;
}

.event-card-full:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

/* Mobile Overrides for Events */
@media (max-width: 768px) {
    .events-page-hero {
        padding: 120px 8% 60px;
    }
    
    .event-card-full {
        flex-direction: row; /* Keep row layout for dates, maybe stack info? */
        padding: 20px;
        gap: 20px;
    }
}

/* Unified Subpage Hero */
.unified-hero {
    position: relative;
    min-height: 70vh;
    padding: 180px 10% 120px;
    background: linear-gradient(rgba(5, 12, 24, 0.6), rgba(5, 12, 24, 0.9)), url('/images/Blue%20Mountains.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.unified-hero .hero-content {
    max-width: 800px;
    z-index: 5;
}

.unified-hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1;
    margin: 15px 0 25px;
}

.unified-hero .hero-curve {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 6;
}

.unified-hero .hero-curve svg {
    width: 100%;
    height: 100%;
    fill: var(--navy); /* Matches the section below it */
}

@media (max-width: 768px) {
    .unified-hero {
        min-height: 60vh;
        padding-top: 140px;
        text-align: center;
    }
    .unified-hero .accent-line {
        margin: 25px auto !important;
    }
    .unified-hero p {
        margin: 0 auto;
    }
}

/* Band Origin Section */
.about-origin-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-origin-image-container {
    position: relative;
    padding-bottom: 20px;
    padding-right: 20px;
}

.about-origin-image-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(212, 194, 31, 0.25);
}

.about-origin-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gold);
    padding: 14px 18px;
    z-index: 2;
    box-shadow: -5px -5px 15px rgba(0,0,0,0.1);
}

/* Member Rows */
.about-member-row {
    display: grid;
    grid-template-columns: clamp(80px, 15vw, 120px) 1fr;
    gap: clamp(20px, 5vw, 50px);
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 60px;
}

.about-member-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.about-member-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: rgba(212, 194, 31, 0.15);
    line-height: 1;
    padding-top: 10px;
    font-weight: 700;
}

/* Mobile Overrides for About Page */
@media (max-width: 900px) {
    .about-page-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .about-page-hero-image {
        height: 45vh;
        order: -1;
    }

    .about-page-hero-image::before {
        background: linear-gradient(to top, var(--navy) 0%, transparent 40%);
    }

    .about-origin-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-member-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .about-member-number {
        font-size: 3rem;
        opacity: 0.3;
    }
}

/* About Preview */
.home-about {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-about-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, var(--navy) 0%, transparent 30%), url('/images/homeAbout.webp') center/cover;
}

.home-about-card {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: clamp(30px, 5vw, 60px);
    max-width: 600px;
    box-shadow: 20px 20px 0px rgba(212, 194, 31, 0.2);
}

.home-about-card h2 {
    color: var(--navy);
}

@media (max-width: 900px) {
    .home-about { padding: 60px 5%; justify-content: center; }
    .home-about-img { width: 100%; background: linear-gradient(to top, var(--navy) 0%, transparent 50%), url('/images/homeAbout.webp') center/cover; opacity: 0.8; }
    .home-about-card { padding: 40px; box-shadow: 10px 10px 0px rgba(212, 194, 31, 0.2); }
}

/* Events Preview */
.home-events {
    padding: var(--section-padding);
}

.event-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .event-card { flex-direction: column; text-align: center; gap: 20px; padding: 20px; }
    .event-card > div { flex-direction: column; gap: 15px; }
    .event-card .btn-secondary { width: 100%; margin-top: 5px; }
}

/* Gallery Preview */
.home-gallery {
    padding: var(--section-padding);
}

.bento-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}
.bento-gallery-item {
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.bento-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.bento-gallery-item:hover img {
    transform: scale(1.08);
}
/* Asymmetric Layout */
.bento-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.bento-gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }

@media (max-width: 768px) {
    .bento-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-gallery-item:nth-child(1),
    .bento-gallery-item:nth-child(2),
    .bento-gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
}

/* Contact CTA */
.home-contact {
    padding: var(--section-padding);
    text-align: center;
}
/* ===================================================
   EVENTS PAGE
   =================================================== */
.events-page main {
    /* no legacy overrides */
}

.events-section {
    max-width: 800px;
    margin: 0 auto;
}

.events-section h1 {
    font-family: var(--font-heading);
    color: var(--navy);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.event {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    background-color: var(--bg-light);
    transition: box-shadow var(--transition), transform var(--transition);
}

.event:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.event h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 8px;
}

.event p {
    margin: 5px 0;
    color: var(--text-body);
}

.event a {
    display: inline-block;
    margin-top: 10px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.event a:hover {
    color: var(--navy);
}

/* Empty events state */
.events-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-body);
}

.events-empty p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-page main {
    /* Legacy overrides removed */
}

/* Legacy Contact Styles Removed */

/* Legacy Contact Media Query Removed */

/* ===================================================
   GALLERY PAGE
}

/* ===================================================
   SUB-PAGE HEADER (Events, Gallery, Contact)
   =================================================== */
header.events-page,
header.gallery-page,
header.contact-page,
header.about-page {
    padding: 10px 20px;
    background: var(--navy-90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
}

/* Sub-page logo always visible */
.logo-small.always-visible {
    visibility: visible !important;
    opacity: 1 !important;
}