:root {
    
    --ted-red: #E62B1F;
    --dark-bg: #0A0A0A;
    --black: #000000; /* Black color identity [cite: 19] */
    --white: #ffffff;
    --text-light: #FFFFFF;
    --text-faded: #AAAAAA;
    --hero-padding-y: 120px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif; 
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}
/* Fix for "Speakers 2025" heading and text appearing side-by-side */
.year-section .scontainer {
display: block !important; /* THIS IS THE CRITICAL MISSING LINE */
    text-align: center;
    width: 100%; 
    max-width: 1300px; /* Use your established max width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Container */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures logo and nav are far apart */
    padding: 0 20px;
}

.header {
    background-color: var(--dark-bg); 
    position: sticky; 
    top: 0; 
    /* FIX 1: Ensure the header is always on top of everything */
    z-index: 2000; 
    
    /* Background treatment to simulate the dark, blurred backdrop */
    background-color: #0A0A0A; 
    
    /* Layered Background: Gradients (for color hints) + Image (for texture) */
    background-image: 
        /* 1. Gradient 1 (Red hint - Increased opacity for visibility) */
        radial-gradient(at 15% 15%, rgba(230, 43, 31, 0.3) 0%, transparent 40%),
        /* 2. Gradient 2 (Blue hint - Increased opacity for visibility) */
        radial-gradient(at 85% 85%, rgba(0, 70, 100, 0.3) 0%, transparent 40%),
        /* 3. Repeating Pattern Image */
        url('../images/ted\ talk\(1\).jpg'); /* <<< CHECK THIS FILE NAME >>> */
    
    /* Control how the layers are sized and repeated */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Gradients don't repeat, pattern does */
    
    /* Blend the layers */
    background-blend-mode: overlay;
    padding: 15px 0;
}
/* No compensating padding is needed for position: sticky */
.header .container {
    justify-content: space-between;
}
.logo {
    font-size: 40px;
    font-weight: 700;
    color: var(--ted-red);
}

.x{
   color: white;
}
.navbar ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}
.navbar a { 
    text-decoration: none; 
    color: var(--text-faded); 
    font-size: 20px; 
    font-weight: 600; 
    transition: color 0.3s; 
}
.navbar a:hover { color: var(--text-light); }
.navbar a.active { color: var(--ted-red);}

/* Desktop Login Button */
.login-btn { 
    text-decoration: none; 
    color: var(--ted-red); 
    font-size: 20px; /* Matched to other links */
    font-weight: 600;
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* Mobile Toggle Icon (Hidden on Desktop) */
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer;
    z-index: 2001;
}

.menu-toggle i {
    color: var(--ted-red); 
    font-size: 30px;
}



/* ================== Responsive Adjustments ================== */

@media (max-width: 992px) {


    .desktop-nav { display: none; } 
    
    /* Show the toggle button */
    .menu-toggle { display: block; }
    
    /* 1. Mobile Menu Container (Initial State) */
    .navbar {
        position: absolute; 
        top: 100%; /* Position right below the header */
        left: 0;
        width: 100%;
        
        /* Max-height transition setup */ 
        max-height: 0;
        overflow: hidden; 
        transition: max-height 0.5s ease-in-out; 
        
        background-color: var(--dark-bg); 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
        /* FIX 2: Z-index just below the header, but above content */
        z-index: 1999; 
    }


/* 2. Mobile Menu (Active State) */
    .navbar.active-nav {
        /* Fix for menu cutoff */
        max-height: 600px; 
        overflow-y: auto;
    }

    /* 3. Vertical Stack for Links */
    .navbar ul {
        display: flex;
        flex-direction: column; 
        padding: 20px 0;
        gap: 0; 
    }

    .navbar ul li {
        text-align: center;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #1a1a1a; 
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
    .navbar a {
        font-size: 20px; /* Large, tappable size */
        padding: 0; /* Padding is on the <li> element now */
        display: block; 
    }
    /* 4. Login Item Styling */
    .mobile-login-item {
        /* FIX 3: Force display if it was hidden elsewhere */
        display: block !important; 
        margin-top: 10px; 
        padding: 15px 0 20px 0; 
        border-top: 1px solid #1a1a1a; /* Divider above login */
        border-bottom: none; 
    }
    .navbar a.login-btn {
        display: flex; 
        justify-content: center; 
        align-items: center;
        color: var(--ted-red) !important; 
        font-weight: 700;
        font-size: 20px;
    }
    .logo {
    font-size: 30px;
    font-weight: 700;
    color: var(--ted-red);
}
}

/* ################################################################################################################# */

    /* Red Glow Animation for Hero Title */
    @keyframes red-glow {
        0% { text-shadow: 0 0 5px rgba(230, 43, 30, 0.4); }
        50% { text-shadow: 0 0 15px rgba(230, 43, 30, 0.8), 0 0 25px rgba(230, 43, 30, 0.4); }
        100% { text-shadow: 0 0 5px rgba(230, 43, 30, 0.4); }
    }

    /* Fade-In and Slide-Up for Captions */
    @keyframes slide-fade-in {
        0% { opacity: 0; transform: translateY(10px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    .main{
            background-image: 
            /* 1. Gradient 1 (Red hint - Increased opacity for visibility) */
            radial-gradient(at 15% 15%, rgba(230, 43, 31, 0.3) 0%, transparent 40%),
            /* 2. Gradient 2 (Blue hint - Increased opacity for visibility) */
            radial-gradient(at 85% 85%, rgba(0, 70, 100, 0.3) 0%, transparent 40%),
            /* 3. Repeating Pattern Image */
            url('/images/event\ background.png'); /* <<< CHECK THIS FILE NAME >>> */
            background-color: #0A0A0A; 
        /* background-size: cover; */
        background-position: center;
        background-repeat: no-repeat; /* Gradients don't repeat, pattern does */
        /* background-blend-mode: overlay; */


    }

    /* --- 2. HERO / INTRODUCTION BANNER --- */
    .hero-banner {
            background-image: 
            /* 1. Gradient 1 (Red hint - Increased opacity for visibility) */
            radial-gradient(at 15% 15%, rgba(230, 43, 31, 0.3) 0%, transparent 40%),
            /* 2. Gradient 2 (Blue hint - Increased opacity for visibility) */
            radial-gradient(at 85% 85%, rgba(0, 70, 100, 0.3) 0%, transparent 40%),
            /* 3. Repeating Pattern Image */
            url('/images/ted\ talk\(1\).jpg'); /* <<< CHECK THIS FILE NAME >>> */
            background-color: #0A0A0A; 
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat; /* Gradients don't repeat, pattern does */
        /* Blend the layers */
        background-blend-mode: overlay;
        padding-bottom: 80px; /* Use a generous bottom padding */
        color: var(--white);
        padding: 100px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-title {
        /* font-family: var(--font-heading); */
        font-size: 3.5rem; /* Large and commanding */
        font-weight: 900;

        margin-bottom: 10px;
        display: inline-block; /* Allows the red line to follow the text width */
        position: relative;
        padding-bottom: 15px; /* Space for the underline */
        animation: red-glow 3s infinite alternate; 
        transition: all 0.3s ease-out; /* Smooth transition for text shadow */
    }

    /* Red Underline Style */
    .hero-title::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: 60%; /* Shorter line for a refined look */
        height: 4px;
        background-color: var(--tedx-red);
    }

    .hero-subtitle {
        font-family: var(--font-body);
        font-size: 1.25rem;
        font-weight: 300;
        color: #ccc; /* Light gray for contrast */
        margin-top: 15px;
        opacity: 0;
        animation: slide-fade-in 1s ease-out 0.5s forwards; /* 0.5s delay after title */
    }
    /* --- 5. RESPONSIVENESS (Mobile Adjustments) --- */
    @media (max-width: 768px) {
        .hero-banner {
            padding: 80px 15px;
        }
        
        .hero-title {
            font-size: 2.5rem;
        }
        
        .hero-subtitle {
            font-size: 1rem;
        }}


        
    @media (max-width: 480px) {
        .hero-title {
            font-size: 2rem;
        }
        
        .hero-title::after {
            width: 80%;
        }
    }

        /* --- Global Styles & Variables --- */
        :root {
            --tedx-red: #E62B1E; /* Primary TEDx Red */
            --tedx-black: #000000;
            --tedx-white: #FFFFFF;
            --tedx-light-gray: #F5F5F5;
        }







        /* ----------------------------------------------------- */
        /* --- 1. Year Section – 2025 Styling (Source 7) --- */
        /* ----------------------------------------------------- */

    /* --- 1. Year Section – 2025 Styling --- */
    /* ----------------------------------------------------- */

    .year-section {
background:black;
    /* Change default text color to dark (if not already handled by child elements) */
    color: var(--tedx-black); 
    
    /* Keep padding for separation */
    padding: 80px 0 100px 0; 
    text-align: center;
    }

    .section-heading {
        /* Force Block, Force White Color */
        display: block; 
color: var(--tedx-white);
        font-size: 2.5em;
        font-weight: 700;
        margin-bottom: 10px;
        padding-bottom: 5px; /* Add padding for the underline below */
        position: relative; /* Needed for the absolute underline */
        display: inline-block; /* Allows the red underline to wrap the text width */
    }

    /* New: Red Underline for the Heading */
    .section-heading::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0; 
        height: 4px;
        background-color: var(--tedx-red);
    }

    /* Thin red divider line (NOT USED IF HEADING HAS UNDERLINE) */
    /* I have commented out the separate .red-divider since the heading now has a red underline */
    /* .red-divider { ... } */


    .intro-text {
        /* Ensure text is below the heading and white */
        display: block; 
        color: #CCCCCC;
        max-width: 800px;
        margin: 30px auto 0 auto; /* Added top margin to push it down */
        font-size: 1.1em;
        line-height: 1.5;
    }
    /* ----------------------------------------------------------------- */
    /* --- 2. Detailed Speaker List Styling (Split-Screen, Alternating) --- */
    /* ----------------------------------------------------------------- */

    /* --- Speaker Grid Layout (3x4 Responsive Grid) --- */
#speaker-grid-section {
    /* Ensures the section matches the light gray background set for "Speakers 2025" */
    /* Background treatment to simulate the dark, blurred backdrop */
    background-color: #0A0A0A; 
    
    /* Layered Background: Gradients (for color hints) + Image (for texture) */
    background-image: 
        /* 1. Gradient 1 (Red hint - Increased opacity for visibility) */
        radial-gradient(at 15% 15%, rgba(230, 43, 31, 0.3) 0%, transparent 40%),
        /* 2. Gradient 2 (Blue hint - Increased opacity for visibility) */
        radial-gradient(at 85% 85%, rgba(0, 70, 100, 0.3) 0%, transparent 40%),
        /* 3. Repeating Pattern Image */
        url('../images/speaker\ bg.jpg'); /* <<< CHECK THIS FILE NAME >>> */
    
    /* Control how the layers are sized and repeated */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Gradients don't repeat, pattern does */
    
    /* Blend the layers */
    /* background-blend-mode: overlay; */
    padding: 20px 0 80px 0; /* Vertical padding for separation */
}

#speaker-grid-layout {
    /* Use standard container properties */
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    
    /* 3-column layout on desktop [cite: 9] */
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

/* Individual Speaker Card Styling [cite: 15] */
.speaker-card {
    background-color: var(--tedx-red); /* White card background [cite: 15] */
    padding: 30px 20px;
    border-radius: 10px; /* Rounded corners (8–12px) [cite: 19] */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Light shadow [cite: 15] */
    text-align: center;
    
/* 1. START STATE: Hidden and shrunk */
    opacity: 0; 
    transform: scale(0.9);
    
    /* 2. TRANSITION: Ready to smoothly animate when class is added */
    transition: 
        opacity 0.6s ease-out, 
        transform 0.6s ease-out, 
        box-shadow 0.5s ease-in-out;
}
/* Keyframes for the Pulse on Reveal animation */
@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.speaker-card:hover {
    transform: translateY(-5px); /* Slight lift */
}

/* --- Photo Styling (Circular or Square) [cite: 11] --- */
/* --- Photo Styling --- */
.speaker-photo-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Keep shadow for photo contrast */
    border: 3px solid var(--tedx-white); /* White border around photos */
}

.speaker-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position:top;
    display: block;
}

/* Circular Photo Option [cite: 11] */
/* .speaker-photo.circular {
    border-radius: 50%;
} */

/* --- Typography Styling [cite: 11] --- */
.speaker-name {
    font-family: 'Montserrat', sans-serif; /* Use client's requested font [cite: 19] */
    font-size: 1.5em;
    font-weight: 700; /* Bold black text [cite: 11] */
    color: var(--tedx-white);
    margin: 0 0 5px 0;
}

/* Accent Line (Small red underline/dot) [cite: 11] */
.accent-line {
    width: 40px;
    height: 3px;
    background-color: var(--tedx-white);
    margin: 0 auto 15px auto;
}

.speaker-title {
    font-size: 1em;
    font-weight: 400;
color: rgba(255, 255, 255, 0.8); /* Lighter gray/white for title */
    margin: 0 0 15px 0;
}

/* Red Title Option [cite: 11] */
.speaker-title.red-title {
    color: var(--tedx-white);
    font-weight: 600;
}

.speaker-bio {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--tedx-white);
    height: 4.5em; /* Ensures 2-3 line consistency [cite: 11] */
    overflow: hidden;
}

/* --- Responsive Design (@media queries) [cite: 9, 19] --- */
@media (max-width: 992px) {
    #speaker-grid-layout {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet [cite: 9, 19] */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    #speaker-grid-layout {
        grid-template-columns: 1fr; /* 1 column on mobile [cite: 9, 19] */
        padding: 10px;
    }
    .speaker-photo-container {
        width: 190px;
        height: 190px;
    }
}
/* Add these rules to your CSS for sequential animation */
.speaker-card:nth-child(1) { animation-delay: 0s; }
.speaker-card:nth-child(2) { animation-delay: 0.2s; }
.speaker-card:nth-child(3) { animation-delay: 0.4s; }
.speaker-card:nth-child(4) { animation-delay: 0.6s; }
.speaker-card:nth-child(5) { animation-delay: 0.8s; }
.speaker-card:nth-child(6) { animation-delay: 1.0s; }
.speaker-card:nth-child(7) { animation-delay: 1.2s; }
.speaker-card:nth-child(8) { animation-delay: 1.4s; }
.speaker-card:nth-child(9) { animation-delay: 1.6s; }
.speaker-card:nth-child(10) { animation-delay: 1.8s; }
.speaker-card:nth-child(11) { animation-delay: 2.0s; }
.speaker-card:nth-child(12) { animation-delay: 2.2s; }

/* --- State Triggered by JavaScript (Visible) --- */
.speaker-card.is-visible {
    opacity: 1;
    transform: scale(1);
    
    /* Re-add the continuous glowPulse if you still want it after reveal */
    animation: glowPulse 2s infinite alternate ease-in-out;
}
/* Keyframes for the Subtle Glow Pulse (kept for the continuous effect) */
@keyframes glowPulse {
    from {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); 
    }
    to {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); 
    }
}
    /* ----------------------------------------------------- */
    /* --- 3. Closing Note Styling (Source 17) --- */
    /* ----------------------------------------------------- */

/* --- 3. Closing Note Styling (Updated for Dark Theme) --- */
/* --- 4. REFLECTION / CLOSING LINE --- */
.reflection-section {
    /* Changed background to Black to match the Event Highlight section */
    background-color: var(--black); 
    padding-top: 40px; 
    padding-bottom: 100px; /* Increased vertical padding for prominence */
    text-align: center;
}
/* --- 4. REFLECTION / CLOSING LINE (MODIFIED FOR SCROLL-TRIGGER) --- */
.reflection-quote {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 40px; 
    font-style: italic;

    
    font-size: 2rem; 
    font-weight: 700; 
    line-height: 1.6;
    
    color: var(--white); 
    border: 1px solid var(--tedx-red); 
    box-shadow: 0 0 20px rgba(230, 43, 30, 0.5); 
    
    /* 1. INITIAL (HIDDEN) STATE: Starts invisible and slightly scaled down */
    opacity: 0;
    transform: scale(0.95);
    
    /* 2. TRANSITION: Defines how the change to the 'is-visible' state occurs */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* 3. FINAL (VISIBLE) STATE: This class is added by JavaScript when scrolled to */
.reflection-quote.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* New Keyframe for Quote Reveal */
@keyframes quote-reveal {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .reflection-section {
        padding: 60px 15px;
    }
    .reflection-quote {
        font-size: 1.5rem;
        padding: 20px;
    }
    .caption {
    font-size: 0.5rem; /* Increased size for better readability */
   

}
}



    /* ----------------------------------------------------- */
    /* --- 4. Responsive Design (@media queries) --- */
    /* ----------------------------------------------------- */

    @media (max-width: 992px) {
        
        /* Stack speaker blocks vertically on smaller screens */
        .speaker-block {
            flex-direction: column; 
            min-height: auto;
        }


    }
/* ################################################################################################################# */
/* ================== Footer Section Styles ================== */
/* ================== General Variables (Ensure consistency with your site) ================== */

:root {
    --footer-bg: #000;
    --text-light: #fff;
    --text-faded: #ccc;
    --tedx-red: #E62B1F;
    --social-icon-bg: #333;
}

.main-footer {
    background-color: var(--footer-bg);
    color: var(--text-faded);
    padding: 60px 0 20px 0; /* Padding top, bottom */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px; /* Separates main footer from sub-footer */
    border-bottom: 1px solid #1a1a1a;
    text-align: left;
}

/* --- Column Proportions Fix (Desktop Alignment) --- */
.footer-col {
    min-width: 0; 
    /* Ensures the text within the column flows correctly */
    text-align: left; 
}

/* Column 1: Logo & Branding (Takes the majority of the available space) */
.branding-col {
    /* FIX: Takes double the space compared to the smallest column */
    flex: 2; 
    max-width: 400px; /* Optional: Sets an upper limit for large screens */
}

/* Column 2: Useful Links (Content-sized) */
.links-col {
    /* FIX: Fixed width based on content size */
    flex: 0 0 160px; 
}

/* Column 3: Contact Info (Content-sized) */
.contact-col {
    /* FIX: Fixed width based on content size (slightly wider due to email) */
    flex: 0 0 280px; 
}

/* --- Branding Column Styles --- */
.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}
.tedx-red { color: var(--tedx-red); }
.tagline {
    font-size: 12px;
    color: #ffffff;
    margin-top: 5px;
}

/* --- Links & Contact Headings --- */
.footer-heading {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* --- Links Column --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-faded);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--tedx-red); }
.footer-links i {
    font-size: 10px;
    margin-right: 10px;
    color: #555;
}

/* --- Contact Column --- */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Organizer Label Styling (The red button) */
.organizer {
    background-color: var(--tedx-red);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--text-faded);
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.contact-item a {
    color: var(--text-faded);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--tedx-red);
}

/* Social Links */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: var(--social-icon-bg);
    color: var(--text-faded);
    border-radius: 5px;
    font-size: 16px;
    margin-right: 10px;
    transition: background-color 0.2s, color 0.2s;
}

.social-links a:hover {
    background-color: var(--tedx-red);
    color: var(--text-light);
}


/* ================== Sub-Footer (Copyright) ================== */

.sub-footer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.sub-footer-links a {
    color: var(--text-faded);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.2s;
}

.sub-footer-links a:hover {
    color: var(--tedx-red);
}

.copyright .tedx-red {
    font-weight: 600;
}

/* ================== Responsive Adjustments (Mobile/Tablet) ================== */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center; 
    }

    .footer-col {
        min-width: 100%;
        flex: none; /* Override desktop flex proportions */
        max-width: 100%;
        text-align: center; 
    }
    
    .footer-col.branding-col {
        padding-bottom: 20px;
        border-bottom: 1px solid #1a1a1a;
    }
    
    /* FIX: Center the content block of links/contact info */
    .links-col,
    .contact-col {
        text-align: center; /* Ensures the headings are centered */
    }

    /* FIX: Ensure lists and contact items are properly contained/centered */
    .footer-links {
        /* This centers the entire <ul> block */
        margin: 0 auto; 
        max-width: 250px; 
        text-align: left; /* Aligns the link text left within the centered block */
    }

    /* Center the organizer button */
    .organizer {
        margin: 0 auto 20px auto; 
        display: block; /* Ensures margin: auto works */
        width: fit-content;
    }
    
    /* Center text/icon items that were 'display: flex' on desktop */
    .contact-item {
        /* Use margin auto on the contact item container */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
        width: fit-content; /* Only take the space needed */
        display: flex;
        justify-content: flex-start;
    }

    /* Social links center the block */
    .social-links {
        text-align: center;
        margin-top: 20px;
    }

    .sub-footer {
        flex-direction: column;
        text-align: center;
    }

    .sub-footer-links {
        order: 2; /* Move links below copyright on mobile */
        margin-top: 15px;
    }

    .sub-footer-links a {
        display: block;
        margin: 5px 0;
    }
}

/* --- 1. BASE FADE IN UP CLASS (Add this to any element you want to animate) --- */
.fade-in-up {
    /* Initial state: Invisible and moved down */
    opacity: 0;
    transform: translateY(40px);
    
    /* Animation speed and type */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    
    /* You can add a delay here if you want elements to animate sequentially */
    /* transition-delay: 0.1s; */
}

/* --- 2. VISIBLE STATE CLASS (Added by JavaScript) --- */
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0); /* Move up to final position */
}
