/* =================================================================== */
/* ===== MODERN HOME PAGE STYLES - YUVA 2025 (REVISED) ===== */
/* =================================================================== */

/* ===== Root Variables (Aligned with New Design System) ===== */
:root {
    /* India Theme Color Palette */
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-pale: #FFE5CC;
    --white-primary: #FFFFFF;
    --white-warm: #FAFAF9;
    --white-cream: #F5F5F4;
    --green-primary: #138808;
    --green-light: #22C55E;
    --green-dark: #0F6606;
    --green-pale: #D1FAE5;
    --navy-chakra: #000080;
    --navy-dark: #00005C;

    /* Semantic Colors */
    --color-primary: var(--navy-chakra);
    --color-secondary: var(--green-primary);
    --color-accent: var(--saffron-primary);
    --color-error: #ef4444;
    --color-error-pale: #fef2f2;
    --color-info-pale: #EBF4FF;

    /* Text & Background */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-dark: var(--white-primary);
    --text-on-accent: var(--white-primary);
    --bg-base: var(--white-warm);
    --bg-elevated: var(--white-primary);
    --bg-subtle: var(--white-cream);
    --bg-muted: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--saffron-light) 0%, var(--white-primary) 50%, var(--green-light) 100%);
    --gradient-saffron: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    --gradient-green: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
    --gradient-navy: linear-gradient(135deg, var(--navy-chakra) 0%, var(--navy-dark) 100%);

    /* Shadows & Radii */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== HOME PAGE LAYOUT ===== */
.home-page {
    min-height: 100vh;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
    top: calc(60px + 1rem * 2);
    /* Aligned with new fixed header height */
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ===== HERO SECTION ===== */
.home-hero {
    position: relative;
    min-height: calc(100vh - 92px);
    overflow: hidden;
    background: var(--gradient-hero);

    /* UPDATED: Use Grid for perfect overlay and centering */
    display: grid;
    place-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

/*
 *
 * ===== SECTION REMOVED =====
 * The .hero-particles class was here.
 * It was covering the SVG Chakra.
 * I have removed it so the .hero-chakra-bg can be seen.
 *
 */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* This places both the SVG and the text in the same grid cell */
.hero-chakra-bg,
.home-hero-content {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}


.hero-chakra-bg {
    /* No absolute positioning needed */
    width: 500px;
    /* Increased size for better effect */
    height: 500px;
    z-index: 1;
    /* Sits in the middle layer */
    color: var(--navy-chakra);
    opacity: 0.08;
    stroke: currentColor;
    fill: currentColor;
    animation: spin 60s linear infinite;
    pointer-events: none;
}

.home-hero-content {
    position: relative;
    /* Keep for stacking context */
    z-index: 3;
    /* Ensures text is always on top */
    text-align: center;
    color: var(--text-primary);
    max-width: 1000px;
    padding: 0 20px;
}



.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--saffron-pale);
    border: 1px solid var(--saffron-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--saffron-dark);
    margin-bottom: 32px;
    animation: pulse 2.5s infinite;
}

.hero-badge i {
    color: var(--saffron-dark);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-primary);
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    background: var(--gradient-saffron);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 48px 0;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== HERO IMPACT CARDS ===== */
.home-impact {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.home-impact-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease-in-out;
    min-width: 240px;
}

.home-impact-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.impact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-primary);
    font-size: 20px;
    flex-shrink: 0;
}

.impact-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.home-impact-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.home-impact-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== FEATURES SECTION ===== */
/* ===== FEATURES SECTION (Tricolor Themed) ===== */
.features-section {
    background: var(--bg-subtle);
    /* A slightly off-white bg makes the cards pop */
    padding: 100px 0;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin: 0 0 24px 0;
}

.features-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 48px 32px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--text-on-dark);
    transition: background 0.3s ease;
    /* Smooth transition for the icon color */
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================= */
/* ===== TRICOLOR PATTERN LOGIC (NEW) ===== */
/* ============================================= */

/* Card 1 & 4: Saffron Theme */
.feature-card:nth-child(3n + 1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-saffron);
}

.feature-card:nth-child(3n + 1) .feature-icon {
    background: var(--gradient-saffron);
}

.feature-card:nth-child(3n + 1) h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--saffron-dark);
}

/* Card 2 & 5: Navy (Chakra) Theme */
.feature-card:nth-child(3n + 2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-navy);
}

.feature-card:nth-child(3n + 2) .feature-icon {
    background: var(--gradient-navy);
}

.feature-card:nth-child(3n + 2) h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--navy-chakra);
}

/* Card 3 & 6: Green Theme */
.feature-card:nth-child(3n + 3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-green);
}

.feature-card:nth-child(3n + 3) .feature-icon {
    background: var(--gradient-green);
}

.feature-card:nth-child(3n + 3) h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--green-dark);
}

/* ===== NEW: Gallery Preview Section ===== */
.gallery-preview-section {
    background: var(--bg-base);
    padding: 100px 20px;
}

.gallery-preview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-preview-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-preview-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin: 0 0 12px 0;
}

.gallery-preview-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

.gallery-preview-grid {
    column-count: 4;
    column-gap: 1.5rem;
}

.gallery-preview-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-preview-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-2xl);
}

.gallery-preview-item img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-preview-item::after {
    content: '\f00e';
    /* Font Awesome search-plus icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    /* This is the changed line for the saffron color */
    background: rgba(255, 153, 51, 0.7);
    /* Saffron color from your theme */
    color: var(--white-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.gallery-preview-item:hover::after {
    opacity: 1;
}

.gallery-preview-cta {
    text-align: center;
    margin-top: 60px;
}

.gallery-preview-cta .btn-secondary {
    padding: 14px 32px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}


/* ===== QUICK LINKS SECTION ===== */
/* ===== QUICK LINKS SECTION (Tricolor Themed) ===== */
.quick-links-section {
    /* background: var(--bg-elevated); */
    /* Changed to elevated white for better contrast */
    padding: 100px 0;
}

.quick-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quick-links-header {
    text-align: center;
    margin-bottom: 80px;
}

.quick-links-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin: 0 0 24px 0;
}

.quick-links-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.quick-link-card {
    background: var(--white-warm);
    /* Use a warm white for the card background */
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    display: flex;
    /* Using flexbox for better alignment */
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.quick-link-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--white-primary);
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.quick-link-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    /* Allows paragraph to fill space */
}

/* ================================================= */
/* ===== TRICOLOR PATTERN LOGIC FOR CARDS (NEW) ===== */
/* ================================================= */

/* Card 1, 4, 7: Saffron Theme */
.quick-link-card:nth-child(3n + 1)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-saffron);
}

.quick-link-card:nth-child(3n + 1) .quick-link-icon {
    background: var(--gradient-saffron);
}

.quick-link-card:nth-child(3n + 1) h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--saffron-dark);
}

/* Card 2, 5, 8: Navy (Chakra) Theme */
.quick-link-card:nth-child(3n + 2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-navy);
}

.quick-link-card:nth-child(3n + 2) .quick-link-icon {
    background: var(--gradient-navy);
}

.quick-link-card:nth-child(3n + 2) h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--navy-chakra);
}

/* Card 3, 6, 9: Green Theme */
.quick-link-card:nth-child(3n + 3)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-green);
}

.quick-link-card:nth-child(3n + 3) .quick-link-icon {
    background: var(--gradient-green);
}

.quick-link-card:nth-child(3n + 3) h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--green-dark);
}

/* ===== STATS SECTION (Glassmorphism & Tricolor) ===== */
.stats-section {
    position: relative;
    padding: 100px 20px;
    overflow: hidden;

    /* A soft background to complement the glass cards */
    background-color: #f0f4ff;
    background-image:
        radial-gradient(at 100% 0%, var(--saffron-pale) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--green-pale) 0px, transparent 50%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin: 0 0 12px 0;
}

.stats-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

/* Updated Stat Card with Glassmorphism */
.stat-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 80, 0.1);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 80, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

/* ================================================= */
/* ===== TRICOLOR THEME FOR STAT NUMBERS (NEW) ===== */
/* ================================================= */

/* Stat 1: Saffron */
.stats-grid .stat-card:nth-child(3n + 1) .stat-number {
    color: var(--saffron-dark);
}

/* Stat 2: Navy */
.stats-grid .stat-card:nth-child(3n + 2) .stat-number {
    color: var(--navy-chakra);
}

/* Stat 3: Green */
.stats-grid .stat-card:nth-child(3n + 3) .stat-number {
    color: var(--green-dark);
}

/* Special styling for the 'Last Sync' card if it exists */
#home-last-sync {
    color: var(--text-secondary);
    /* Make the time less prominent */
    font-size: 2rem;
}

/* ===== CTA SECTION ===== */
/* ===== CTA SECTION (Clean Glassmorphism) ===== */
.cta-section {
    position: relative;
    padding: 120px 20px;
    overflow: hidden;

    /* The soft, abstract gradient background */
    background-color: #f0f4ff;
    background-image:
        radial-gradient(at 0% 0%, var(--saffron-pale) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--green-pale) 0px, transparent 50%);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;

    /* The Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    /* A subtle border to define the glass edge */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 80, 0.15);

    padding: 4rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin: 0 0 24px 0;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 48px 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    /* Ensures padding and margins are applied correctly */
    padding: 14px 32px;
    border-radius: var(--radius-full);
    /* This creates the pill shape */
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    /* Sets up a border for the secondary button */
    box-shadow: var(--shadow-md);

    /* The Animation: Makes all changes smooth over 0.2 seconds */
    transition: all 0.2s ease-in-out;
}

/* 2. Primary "Join YUVA" Button
   Vibrant saffron background.
*/
.btn-primary {
    background: var(--saffron-primary);
    color: var(--text-on-accent);
}

/* 3. Primary Button HOVER Animation */
.btn-primary:hover {
    background: var(--saffron-dark);
    box-shadow: var(--shadow-lg);

    /* The button will lift up and grow slightly */
    transform: translateY(-3px) scale(1.05);
}

/* 4. Secondary "Support Us" Button
   A clean outline style.
*/
.btn-secondary {
    background: transparent;
    color: var(--navy-chakra);
    border-color: var(--navy-chakra);
}

/* 5. Secondary Button HOVER Animation */
.btn-secondary:hover {
    background: var(--navy-chakra);
    color: var(--white-primary);
    box-shadow: var(--shadow-lg);

    /* The button will lift up and grow slightly */
    transform: translateY(-3px) scale(1.05);
}


/* ===== ANIMATIONS ===== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 153, 51, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FLASH NOTIFICATION SYSTEM ===== */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.flash-notification {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: var(--transition-bounce);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.flash-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-notification.success {
    border-left: 4px solid var(--green-primary);
    background: var(--green-pale);
}

.flash-notification.error {
    border-left: 4px solid var(--color-error);
    background: var(--color-error-pale);
}

.flash-notification.warning {
    border-left: 4px solid var(--saffron-primary);
    background: var(--saffron-pale);
}

.flash-notification.info {
    border-left: 4px solid var(--navy-chakra);
    background: var(--color-info-pale);
}

.flash-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--white-primary);
}

.flash-notification.success .flash-icon {
    background: var(--green-primary);
}

.flash-notification.error .flash-icon {
    background: var(--color-error);
}

.flash-notification.warning .flash-icon {
    background: var(--saffron-primary);
}

.flash-notification.info .flash-icon {
    background: var(--navy-chakra);
}

.flash-content {
    flex: 1;
}

.flash-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.flash-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.flash-close:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0ms !important;
        scroll-behavior: auto !important;
    }

    .hero-particles,
    .cta-section::before,
    .hero-badge {
        animation: none !important;
    }
}

/* =================================================================== */
/* ===== NEW MODERN SECTION STYLES (ROBUST & INTEGRATED) ===== */
/* =================================================================== */

/* --- SHARED UTILITIES FOR NEW SECTIONS --- */
/* Ensures content within full-width sections is centered and bounded */
.section-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Standardized Section Header for new sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 auto;
    line-height: 1.6;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 60px 0;
    width: 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-muted);
    border-top: 4px solid var(--saffron-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* --- 2. MODERN UPCOMING EVENTS SECTION (FULL WIDTH) --- */
/* Overrides .section-container default padding/margin for full-width background */
.events-section.section-container {
    max-width: none;
    padding: 100px 0;
    margin: 0;
    background-color: #f0f4ff;
    /* Fallback */
    background-image:
        radial-gradient(at 100% 0%, var(--saffron-pale) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--green-pale) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* Constrain inner content */
.events-section .section-header,
.events-grid,
.events-section .loading-spinner,
.events-section .empty-state {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 2;
}

.event-card {
    background: rgba(255, 255, 255, 0.8);
    /* Glass effect base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--white-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 520px;
    width: 100%;
}

.event-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--saffron-light);
}

.event-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--white-primary);
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
    border: 2px solid var(--saffron-primary);
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    color: var(--navy-chakra);
}

.event-date-badge .month {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--saffron-dark);
    margin-top: 4px;
    display: block;
}

.event-details {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), var(--white-primary));
    overflow-y: auto;
    max-height: 280px;
}

.event-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--navy-chakra);
    line-height: 1.3;
}

.event-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.event-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green-pale);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    color: var(--green-dark);
}

.event-info i {
    color: var(--green-primary);
}

.event-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    margin-top: 20px;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 24px;
    display: block;
    color: var(--border-medium);
    opacity: 0.5;
}

/* Tricolor top borders for event cards */
.event-card:nth-child(3n+1) {
    border-top: 6px solid var(--saffron-primary);
}

.event-card:nth-child(3n+2) {
    border-top: 6px solid var(--navy-chakra);
}

.event-card:nth-child(3n+3) {
    border-top: 6px solid var(--green-primary);
}

/* ===== MORE EVENTS BUTTON SECTION ===== */
.events-footer {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.btn-more-events {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-primary);
    background: linear-gradient(135deg, var(--navy-chakra) 0%, var(--navy-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-more-events::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-more-events:hover::before {
    width: 300px;
    height: 300px;
}

.btn-more-events:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px -5px rgba(0, 0, 128, 0.4);
}

.btn-more-events i {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.btn-more-events:hover i {
    transform: translateX(4px);
}


/* --- 5. MODERN EXECUTIVE LEADERSHIP SECTION (COMPACT & CENTERED) --- */

.executives-section.section-container {
    max-width: none;
    padding: 50px 0;
    /* Reduced padding */
    margin: 20px 20px;
    border-radius: var(--radius-2xl);
    background-color: var(--bg-muted);
    position: relative;
}

.executives-grid {
    max-width: 1100px;
    /* Slightly tighter width to keep cards close */
    margin: 0 auto;
    padding: 0 20px;

    /* --- KEY CHANGE: FLEXBOX FOR CENTERING --- */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* This aligns the last row to the center */
    gap: 20px;
    /* Compact gap */

    position: relative;
    z-index: 2;
}

/*Wrapper for the Top 2 Leaders (Conveners) */
.executives-head-wrapper {
    /* Force this wrapper to take full width so it sits on its own row */
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* --- CARD STYLING --- */
.exec-card {
    /* Flex Sizing: Don't grow too wide, shrink if needed, ideal width 240px */
    flex: 0 1 240px;

    background: var(--white-primary);
    padding: 24px 15px;
    /* Compact padding */
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.exec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

/* Specific sizing for the Head/Convener cards (Make them slightly larger) */
.exec-card--head {
    flex-basis: 280px;
    border: 2px solid var(--saffron-primary);
    background: linear-gradient(145deg, var(--white-primary), #fffaf0);
}

.exec-card--head:hover {
    border-color: var(--saffron-dark);
    box-shadow: 0 10px 20px -5px rgba(245, 166, 35, 0.2);
}

/* --- IMAGE STYLING (COMPACT) --- */
.exec-image {
    width: 100px;
    /* Smaller image */
    height: 100px;
    margin: 0 auto 16px;
    position: relative;
    border-radius: 50%;
    border: 3px solid var(--border-light);
    padding: 3px;
    background: var(--white-primary);
    transition: all 0.3s ease;
}

.exec-card:hover .exec-image {
    transform: scale(1.05);
}

.exec-image img,
.exec-image div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* --- TYPOGRAPHY (COMPACT) --- */
.exec-name {
    font-size: 1.2rem;
    /* Smaller font */
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--navy-chakra);
    line-height: 1.3;
}

.exec-role {
    font-size: 0.75rem;
    /* Smaller text */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-muted);
    color: var(--text-secondary);
}

/* --- THEME RULES --- */

/* Theme 1: Saffron */
.exec-card--theme-saffron:hover {
    border-bottom: 4px solid var(--saffron-primary);
}

.exec-card--theme-saffron .exec-image {
    border-color: var(--saffron-pale);
}

.exec-card--theme-saffron:hover .exec-image {
    border-color: var(--saffron-primary);
}

.exec-card--theme-saffron .exec-role {
    background: var(--saffron-pale);
    color: var(--saffron-dark);
}

/* Theme 2: Navy */
.exec-card--theme-navy:hover {
    border-bottom: 4px solid var(--navy-chakra);
}

.exec-card--theme-navy .exec-image {
    border-color: var(--color-info-pale);
}

.exec-card--theme-navy:hover .exec-image {
    border-color: var(--navy-chakra);
}

.exec-card--theme-navy .exec-role {
    background: var(--color-info-pale);
    color: var(--navy-dark);
}

/* Theme 3: Green */
.exec-card--theme-green:hover {
    border-bottom: 4px solid var(--green-primary);
}

.exec-card--theme-green .exec-image {
    border-color: var(--green-pale);
}

.exec-card--theme-green:hover .exec-image {
    border-color: var(--green-primary);
}

.exec-card--theme-green .exec-role {
    background: var(--green-pale);
    color: var(--green-dark);
}

/* ========================================= */
/* ===== MODERN GENERIC MODAL STYLES ===== */
/* ========================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    /* Highest priority */
    background: rgba(15, 23, 42, 0.6);
    /* Navy tinted dark overlay */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white-primary);
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 48px 40px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Springy open effect */
    max-height: 90vh;
    overflow-y: auto;
    /* Scroll if content is too tall */
}

.modal-backdrop.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* --- CLOSE BUTTON --- */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-muted);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background: var(--color-error-pale);
    color: var(--color-error);
    transform: rotate(90deg);
}

/* ========================================= */
/* ===== MODAL INNER CONTENT STYLES ===== */
/* ========================================= */

.modal-exec-profile {
    text-align: center;
}

/* Large Profile Image in Modal */
.modal-exec-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 32px;
    border-radius: 50%;
    padding: 5px;
    background: var(--white-primary);
    /* Replaced conic-gradient with a simple, clean solid border */
    border: 4px solid var(--border-light);
    box-shadow: var(--shadow-lg);
}

.modal-exec-img img,
.modal-exec-img div {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* Removed inner border for cleaner look */
}

.modal-exec-name {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--navy-chakra);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.modal-exec-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--saffron-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 32px 0;
    background: var(--saffron-pale);
    display: inline-block;
    padding: 8px 24px;
    border-radius: var(--radius-full);
}

.modal-exec-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: left;
    /* Better readability for longer text */
    background: var(--bg-subtle);
    padding: 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 24px;
}

.modal-exec-bio p {
    margin: 0;
}

/* Social Links in Modal */
.modal-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.modal-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-social-link:hover {
    background: var(--navy-chakra);
    color: var(--white-primary);
    border-color: var(--navy-chakra);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* --- 7. MODERN PARTNERS CAROUSEL (FULL WIDTH) --- */
/* Override .section-container for full-width background */
.partners-section.section-container {
    max-width: none;
    padding: 100px 0;
    /* Standardized padding */
    margin: 0;
    background-color: #f9fafb;
    /* Clean fallback */
    position: relative;
    overflow: hidden;
    /* Important for the slider */
}

/* Fades on the sides for a clean scrolling effect */
.partners-section::before,
.partners-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.partners-section::before {
    left: 0;
    background: linear-gradient(to right, #f9fafb, transparent);
}

.partners-section::after {
    right: 0;
    background: linear-gradient(to left, #f9fafb, transparent);
}

/* Constrain inner content */
.partners-section .section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.partners-slider {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 32px;
    /* Spacing between cards */
    width: max-content;
    padding: 20px 0;
    /* Add padding so shadows don't get cut off */
}

.track-left {
    animation: scrollLeft 40s linear infinite;
    /* Slowed down animation */
}

/* Hover to pause */
.slider-track:hover {
    animation-play-state: paused;
}

/* Modern "Glass" Partner Card */
.partner-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    /* Glass effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 32px;
    border-radius: var(--radius-xl);
    /* Modern rounded rectangle */
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--white-primary);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--white-primary);
}

.partner-logo i {
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* --- Tricolor Accents for Partners --- */
/* 1: Saffron */
.partner-logo:nth-child(3n+1) i {
    color: var(--saffron-primary);
}

.partner-logo:nth-child(3n+1) span {
    color: var(--saffron-dark);
}

.partner-logo:nth-child(3n+1):hover {
    border-color: var(--saffron-light);
}

/* 2: Navy */
.partner-logo:nth-child(3n+2) i {
    color: var(--navy-chakra);
}

.partner-logo:nth-child(3n+2) span {
    color: var(--navy-dark);
}

.partner-logo:nth-child(3n+2):hover {
    border-color: var(--color-info-pale);
}

/* 3: Green */
.partner-logo:nth-child(3n+3) i {
    color: var(--green-primary);
}

.partner-logo:nth-child(3n+3) span {
    color: var(--green-dark);
}

.partner-logo:nth-child(3n+3):hover {
    border-color: var(--green-pale);
}


@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- 8. MODERN NEWSLETTER (FINAL LIGHT THEME) --- */

/* --- 8. MODERN NEWSLETTER (FINAL CLEAN WHITE) --- */

.newsletter-section {
    padding: 100px 20px;
    background: var(--white-warm);
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px dashed var(--border-light);
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: var(--white-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 56px;
    transition: all 0.3s ease;
}

.newsletter-container:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-5px);
}

.newsletter-content h2 {
    color: var(--navy-chakra);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin: 0 0 40px 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================================= */
/* ===== NEWSLETTER FORM - ROBUST PILL DESIGN FIX ===== */
/* ======================================================= */

/* 1. The Parent "Pill" Container */
.newsletter-form .input-group {
    display: flex;
    /* REMOVE padding and background */
    padding: 0;
    background: transparent;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    overflow: hidden;
    /* This is key to clip the children */
    box-shadow: var(--shadow-md);
}

.newsletter-form .input-group:focus-within {
    border-color: var(--saffron-primary);
    box-shadow: 0 0 0 3px var(--saffron-pale);
}

/* 2. The Input Field (Left Side) */
.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    outline: none;
    /* ADD background and border-radius */
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-weight: 500;
    /* This rounds the left corners */
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    transition: background-color 0.3s ease;
}

/* On focus, make the input white */
.newsletter-form .input-group:focus-within input {
    background: var(--white-primary);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

/* 3. The Button (Right Side) */
.newsletter-form .btn-primary {
    /* Keep the full radius, as it's the right-most item */
    border-radius: var(--radius-full);
    padding: 16px 40px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-saffron);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
    border: none;
    color: var(--white-primary);
    /* Add a left border to separate from input */
    border-left: 1px solid var(--border-light);
    /* Remove the default left rounding */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.newsletter-form .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.5);
}

/* Loading/spinner styles for the button */
.newsletter-form .btn-primary:disabled {
    opacity: 0.8;
    background: var(--saffron-dark);
    cursor: wait;
}

.newsletter-form .btn-primary .fa-spinner {
    animation: spin 1s linear infinite;
}

/* ======================================================= */
/* ===== FIX: BROWSER AUTOFILL STYLES (Final) ===== */
/* ======================================================= */

/* 1. Autofill when NOT focused */
.newsletter-form input:-webkit-autofill,
.newsletter-form input:-webkit-autofill:hover,
.newsletter-form input:-webkit-autofill:active {
    box-shadow: 0 0 0 40px var(--bg-subtle) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
    /* IMPORTANT: Match the input's border-radius */
    border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
}

/* 2. Autofill WHEN focused */
.newsletter-form input:-webkit-autofill:focus {
    box-shadow: 0 0 0 40px var(--white-primary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    /* IMPORTANT: Match the input's border-radius */
    border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
}

/* ======================================================= */
/* ===== 10. EMAIL SUGGESTION STYLES ===== */
/* ======================================================= */

.email-suggestion {
    display: none;
    /* Hidden by default */
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
    /* This margin pushes it below the input field */
    margin: 8px 0 0 20px;
    padding: 0;
    transition: all 0.3s ease;
}

/* This makes the "Did you mean..." part clickable */
.email-suggestion #suggestion-link {
    color: var(--saffron-dark);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* ================================================================ */
/* ===== RESPONSIVE MEDIA QUERIES FOR NEW HOME SECTIONS ===== */
/* ================================================================ */
/* Add these to your home.css file */

/* ===== TABLET - 768px and below ===== */
/* ===== TABLET - 768px and below ===== */
@media (max-width: 768px) {

    /* ===== Events Section ===== */
    .events-section.section-container {
        padding: 60px 0;
    }

    .events-section .section-header,
    .events-grid,
    .events-section .loading-spinner,
    .events-section .empty-state {
        padding-left: 16px;
        padding-right: 16px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-card {
        max-width: 500px;
        margin: 0 auto;
        height: 540px;
    }

    .event-image {
        height: 200px;
    }

    .event-details {
        max-height: 300px;
    }

    .event-date-badge {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
    }

    .event-date-badge .day {
        font-size: 1.35rem;
    }

    .event-date-badge .month {
        font-size: 0.8rem;
    }

    .event-details {
        padding: 28px;
    }

    .event-title {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .event-info {
        gap: 10px;
        font-size: 0.9rem;
    }

    .event-info span {
        padding: 5px 10px;
    }

    .event-description {
        font-size: 0.95rem;
    }

    .empty-state {
        padding: 50px 20px;
        font-size: 1.15rem;
    }

    .empty-state i {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    /* ===== More Events Button - Tablet ===== */
    .events-footer {
        margin: 50px auto 0;
        padding: 0 16px;
    }

    .btn-more-events {
        padding: 14px 40px;
        font-size: 1rem;
        gap: 10px;
    }

    /* ===== Executives Section ===== */
    .executives-section.section-container {
        padding: 60px 16px;
    }

    .executives-grid {
        padding: 0;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        /* Reduced min width */
        gap: 28px;
        justify-items: center;
        /* Centers cards */
    }

    .exec-card {
        padding: 40px 28px;
        max-width: 350px;
        /* Prevents cards from stretching too wide */
        width: 100%;
    }

    .exec-image {
        width: 140px;
        height: 140px;
        margin-bottom: 24px;
    }

    .exec-name {
        font-size: 1.45rem;
        margin-bottom: 10px;
    }

    .exec-role {
        font-size: 0.85rem;
        padding: 7px 14px;
    }

    /* Fix tricolor borders on tablet */
    .exec-card:nth-child(3n+1):hover,
    .exec-card:nth-child(3n+2):hover,
    .exec-card:nth-child(3n+3):hover {
        border-bottom-width: 3px;
        /* Reduced border */
    }

    /* ===== Partners Section (UPDATED) ===== */
    .partners-section.section-container {
        padding: 60px 0;
    }

    .partners-section::before,
    .partners-section::after {
        width: 100px;
    }

    .partners-section .section-header {
        padding: 0 16px;
    }

    .slider-track {
        gap: 20px;
        /* Reduced from 24px */
        padding: 16px 0;
    }

    .partner-logo {
        padding: 16px 20px;
        /* Reduced from 20px 28px */
        font-size: 1rem;
        /* Reduced from 1.1rem */
        gap: 10px;
        /* Reduced from 14px */
    }

    .partner-logo i {
        font-size: 1.4rem;
        /* Reduced from 1.6rem */
    }

    /* ===== Newsletter Section (FIXED for Tablet) ===== */
    .newsletter-section {
        padding: 60px 16px;
    }

    .newsletter-container {
        padding: 44px;
    }

    .newsletter-content h2 {
        font-size: 2.25rem;
        margin-bottom: 14px;
    }

    .newsletter-content p {
        font-size: 1.05rem;
        margin-bottom: 36px;
    }

    /* 1. Reset the parent "pill" container */
    .newsletter-form .input-group {
        flex-direction: column;
        overflow: visible;
        gap: 12px;
        /* Adds space between the input and button */

        /* These are the missing rules that fix it: */
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* 2. Style the input as its own rounded element */
    .newsletter-form input {
        border-radius: var(--radius-full) !important;
        /* Force override */
        padding: 14px 20px;
        font-size: 1rem;
        background: var(--bg-subtle);
        border: 1px solid var(--border-light);
        transition: all 0.3s ease;
        /* ADDED TRANSITION */
    }

    /* 3. THIS IS THE FIX: Add focus style directly to the input */
    .newsletter-form input:focus {
        border-color: var(--saffron-primary);
        box-shadow: 0 0 0 3px var(--saffron-pale);
        background: var(--white-primary);
    }

    /* 4. Style the button as its own rounded element */
    .newsletter-form .btn-primary {
        border-radius: var(--radius-full) !important;
        /* Force override */
        border-left: none;
        padding: 14px 36px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .newsletter-form .input-group:focus-within {
        border-color: transparent;
        box-shadow: none;
    }

    /* 5. Fix autofill for the new rounded input */
    .newsletter-form input:-webkit-autofill,
    .newsletter-form input:-webkit-autofill:hover,
    .newsletter-form input:-webkit-autofill:active,
    .newsletter-form input:-webkit-autofill:focus {
        border-radius: var(--radius-full) !important;
    }

    .email-suggestion {
        margin: 12px 0 0 16px;
        font-size: 0.85rem;
    }

    /* ===== Modal Adjustments ===== */
    .modal-backdrop {
        padding: 16px;
    }

    .modal-content {
        padding: 40px 32px;
        max-height: 85vh;
    }

    .modal-exec-img {
        width: 160px;
        height: 160px;
        margin-bottom: 28px;
    }

    .modal-exec-name {
        font-size: 2rem;
    }

    .modal-exec-role {
        font-size: 1rem;
        padding: 7px 20px;
        margin-bottom: 28px;
    }

    .modal-exec-bio {
        padding: 20px;
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .modal-socials {
        gap: 14px;
        margin-top: 28px;
        padding-top: 20px;
    }

    .modal-social-link {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    /* ===== Section Headers (Global) ===== */
    .section-header {
        margin-bottom: 48px;
    }

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 14px;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    /* ===== Loading Spinner ===== */
    .loading-spinner {
        padding: 50px 0;
    }

    .spinner {
        width: 45px;
        height: 45px;
        border-width: 3px;
    }
}

/* ===== MOBILE - 480px and below ===== */
/* ===== MOBILE - 480px and below ===== */
/* ===== MOBILE - 480px and below ===== */
@media (max-width: 480px) {

    /* ===== Events Section ===== */
    .events-section.section-container {
        padding: 40px 0;
    }

    .events-section .section-header,
    .events-grid,
    .events-section .loading-spinner,
    .events-section .empty-state {
        padding-left: 12px;
        padding-right: 12px;
    }

    .events-grid {
        gap: 20px;
    }

    .event-card {
        max-width: 100%;
        height: 500px;
    }

    .event-image {
        height: 180px;
    }

    .event-details {
        max-height: 280px;
    }

    .event-date-badge {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }

    .event-date-badge .day {
        font-size: 1.2rem;
    }

    .event-date-badge .month {
        font-size: 0.75rem;
        margin-top: 2px;
    }

    .event-details {
        padding: 24px 20px;
    }

    .event-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .event-info {
        gap: 8px;
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .event-info span {
        padding: 4px 8px;
        gap: 6px;
    }

    .event-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .empty-state {
        padding: 40px 16px;
        font-size: 1.05rem;
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 16px;
    }

    /* ===== More Events Button - Mobile ===== */
    .events-footer {
        margin: 40px auto 0;
        padding: 0 12px;
    }

    .btn-more-events {
        padding: 12px 32px;
        font-size: 0.95rem;
        gap: 8px;
    }

    /* ===== Executives Section ===== */
    .executives-section.section-container {
        padding: 40px 12px;
        /* Added horizontal padding */
        background-color: #f9fafb;
        /* Ensure background is visible */
    }

    .executives-grid {
        padding: 0;
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
        justify-items: center;
        /* Centers cards */
    }

    .exec-card {
        padding: 32px 24px;
        max-width: 100%;
        /* Full width on mobile */
        width: 100%;
        box-sizing: border-box;
        /* Prevents overflow */
    }

    .exec-image {
        width: 120px;
        /* Smaller image on mobile */
        height: 120px;
        margin-bottom: 20px;
        border-width: 3px;
        padding: 3px;
    }

    .exec-name {
        font-size: 1.3rem;
        /* Slightly smaller name */
        margin-bottom: 10px;
        line-height: 1.2;
        /* Better line spacing */
    }

    .exec-role {
        font-size: 0.75rem;
        /* Smaller role badge */
        padding: 6px 12px;
        letter-spacing: 0.5px;
        /* Reduced letter spacing */
    }

    /* Fix tricolor borders on mobile - make them subtle */
    .exec-card:nth-child(3n+1):hover {
        border-bottom: 2px solid var(--saffron-primary);
    }

    .exec-card:nth-child(3n+2):hover {
        border-bottom: 2px solid var(--navy-chakra);
    }

    .exec-card:nth-child(3n+3):hover {
        border-bottom: 2px solid var(--green-primary);
    }

    /* ===== Partners Section ===== */
    .partners-section.section-container {
        padding: 40px 0;
    }

    .partners-section::before,
    .partners-section::after {
        width: 60px;
    }

    .partners-section .section-header {
        padding: 0 12px;
    }

    .slider-track {
        gap: 20px;
        padding: 14px 0;
    }

    .track-left {
        animation: scrollLeft 35s linear infinite;
    }

    .partner-logo {
        padding: 18px 24px;
        font-size: 1rem;
        gap: 12px;
        min-width: 160px;
    }

    .partner-logo i {
        font-size: 1.5rem;
    }

    /* ===== Newsletter Section (FIXED for 480px) ===== */
    .newsletter-section {
        padding: 40px 12px;
    }

    .newsletter-container {
        padding: 36px 28px;
    }

    .newsletter-content h2 {
        font-size: 1.85rem;
        margin-bottom: 12px;
    }

    .newsletter-content p {
        font-size: 0.95rem;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    /* 1. Reset the parent "pill" container */
    .newsletter-form .input-group {
        flex-direction: column;
        overflow: visible;
        gap: 12px;
        /* Space between input and button */
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* 2. Style the input as its own rounded element */
    .newsletter-form input {
        border-radius: var(--radius-full) !important;
        padding: 13px 18px;
        font-size: 0.95rem;
        background: var(--bg-subtle);
        border: 1px solid var(--border-light);
        transition: all 0.3s ease;
        /* ADDED TRANSITION */
    }

    /* 3. THIS IS THE FIX: Add focus style directly to the input */
    .newsletter-form input:focus {
        border-color: var(--saffron-primary);
        box-shadow: 0 0 0 3px var(--saffron-pale);
        background: var(--white-primary);
    }

    /* 4. Style the button as its own rounded element */
    .newsletter-form .btn-primary {
        border-radius: var(--radius-full) !important;
        border-left: none;
        padding: 13px 32px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .newsletter-form .input-group:focus-within {
        border-color: transparent;
        box-shadow: none;
    }

    /* 5. Fix autofill for the new rounded input */
    .newsletter-form input:-webkit-autofill,
    .newsletter-form input:-webkit-autofill:hover,
    .newsletter-form input:-webkit-autofill:active,
    .newsletter-form input:-webkit-autofill:focus {
        border-radius: var(--radius-full) !important;
    }

    .email-suggestion {
        margin: 10px 0 0 12px;
        font-size: 0.8rem;
    }

    /* ===== Modal Adjustments ===== */
    .modal-backdrop {
        padding: 12px;
    }

    .modal-content {
        padding: 32px 24px;
        max-height: 82vh;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .modal-exec-img {
        width: 140px;
        height: 140px;
        margin-bottom: 24px;
        border-width: 3px;
        padding: 4px;
    }

    .modal-exec-name {
        font-size: 1.75rem;
        margin-bottom: 6px;
    }

    .modal-exec-role {
        font-size: 0.95rem;
        padding: 6px 18px;
        margin-bottom: 24px;
    }

    .modal-exec-bio {
        padding: 18px;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .modal-socials {
        gap: 12px;
        margin-top: 24px;
        padding-top: 18px;
    }

    .modal-social-link {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    /* ===== Section Headers (Global) ===== */
    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 1.95rem;
        margin-bottom: 12px;
        letter-spacing: -0.01em;
    }

    .section-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* ===== Loading Spinner ===== */
    .loading-spinner {
        padding: 40px 0;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    /* ===== Section Content Wrapper ===== */
    .section-content-wrapper {
        padding: 0 12px;
    }

}

/* ===== EXTRA SMALL MOBILE - 375px and below ===== */
/* ===== EXTRA SMALL MOBILE - 375px and below ===== */
/* ===== EXTRA SMALL MOBILE - 375px and below ===== */
@media (max-width: 375px) {

    /* ===== Events Section ===== */
    .events-section.section-container {
        padding: 36px 0;
    }

    .event-image {
        height: 160px;
    }

    .event-card {
        height: 480px;
    }

    .event-details {
        max-height: 280px;
    }

    .event-date-badge {
        padding: 5px 8px;
    }

    .event-date-badge .day {
        font-size: 1.1rem;
    }

    .event-date-badge .month {
        font-size: 0.7rem;
    }

    .event-details {
        padding: 20px 16px;
    }

    .event-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .event-info {
        font-size: 0.8rem;
    }

    .event-description {
        font-size: 0.85rem;
    }

    .empty-state {
        padding: 36px 12px;
        font-size: 1rem;
    }

    .empty-state i {
        font-size: 2.5rem;
    }

    /* ===== More Events Button - Extra Small ===== */
    .events-footer {
        margin: 36px auto 0;
        padding: 0 10px;
    }

    .btn-more-events {
        padding: 10px 24px;
        font-size: 0.9rem;
        gap: 6px;
    }

    /* ===== Executives Section ===== */
    .executives-section.section-container {
        padding: 36px 10px;
        /* Added horizontal padding */
    }

    .exec-card {
        padding: 28px 20px;
        /* Reduced padding */
        max-width: 100%;
    }

    .exec-image {
        width: 110px;
        /* Even smaller on tiny screens */
        height: 110px;
        margin-bottom: 16px;
    }

    .exec-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .exec-role {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    /* ===== Partners Section ===== */
    .partners-section.section-container {
        padding: 36px 0;
    }

    .partners-section::before,
    .partners-section::after {
        width: 40px;
    }

    .slider-track {
        gap: 16px;
    }

    .partner-logo {
        padding: 16px 20px;
        font-size: 0.95rem;
        gap: 10px;
        min-width: 140px;
    }

    .partner-logo i {
        font-size: 1.4rem;
    }

    /* ===== Newsletter Section (FIXED for 375px) ===== */
    .newsletter-section {
        padding: 36px 10px;
    }

    .newsletter-container {
        padding: 32px 24px;
    }

    .newsletter-content h2 {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }

    .newsletter-content p {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    /* 1. Reset the parent "pill" container */
    .newsletter-form .input-group {
        flex-direction: column;
        overflow: visible;
        gap: 10px;
        /* Tighter gap for small screens */
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* 2. Style the input as its own rounded element */
    .newsletter-form input {
        border-radius: var(--radius-full) !important;
        padding: 12px 16px;
        font-size: 0.9rem;
        background: var(--bg-subtle);
        border: 1px solid var(--border-light);
        transition: all 0.3s ease;
        /* ADDED TRANSITION */
    }

    /* 3. THIS IS THE FIX: Add focus style directly to the input */
    .newsletter-form input:focus {
        border-color: var(--saffron-primary);
        box-shadow: 0 0 0 3px var(--saffron-pale);
        background: var(--white-primary);
    }

    /* 4. Style the button as its own rounded element */
    .newsletter-form .btn-primary {
        border-radius: var(--radius-full) !important;
        border-left: none;
        padding: 12px 28px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .newsletter-form .input-group:focus-within {
        border-color: transparent;
        box-shadow: none;
    }

    /* 5. Fix autofill for the new rounded input */
    .newsletter-form input:-webkit-autofill,
    .newsletter-form input:-webkit-autofill:hover,
    .newsletter-form input:-webkit-autofill:active,
    .newsletter-form input:-webkit-autofill:focus {
        border-radius: var(--radius-full) !important;
    }

    .email-suggestion {
        margin: 8px 0 0 10px;
        font-size: 0.75rem;
    }

    /* ===== Modal Adjustments ===== */
    .modal-content {
        padding: 28px 20px;
    }

    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .modal-exec-img {
        width: 130px;
        height: 130px;
        margin-bottom: 20px;
    }

    .modal-exec-name {
        font-size: 1.6rem;
    }

    .modal-exec-role {
        font-size: 0.9rem;
        padding: 5px 16px;
        margin-bottom: 20px;
    }

    .modal-exec-bio {
        padding: 16px;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .modal-socials {
        gap: 10px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .modal-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* ===== Section Headers (Global) ===== */
    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* ===== Loading Spinner ===== */
    .spinner {
        width: 36px;
        height: 36px;
    }
}

/* ===== LANDSCAPE MODE (Mobile/Tablet) ===== */
@media (max-height: 600px) and (orientation: landscape) {

    /* Reduce vertical spacing in landscape */
    .events-section.section-container,
    .executives-section.section-container,
    .partners-section.section-container,
    .newsletter-section {
        padding: 40px 20px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .event-image {
        height: 150px;
    }

    .event-details {
        padding: 20px;
    }

    .exec-card {
        padding: 32px 24px;
    }

    .exec-image {
        width: 110px;
        height: 110px;
        margin-bottom: 16px;
    }

    .newsletter-container {
        padding: 32px;
    }

    .newsletter-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .newsletter-content p {
        margin-bottom: 24px;
    }

    .modal-content {
        max-height: 85vh;
        padding: 32px 28px;
    }

    .modal-exec-img {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .modal-exec-name {
        font-size: 1.6rem;
    }

    .modal-exec-bio {
        padding: 16px;
        font-size: 0.9rem;
    }
}

/* ===== VERY LARGE SCREENS - 1920px and above ===== */
@media (min-width: 1920px) {

    /* Prevent elements from becoming too large */
    .events-section .section-header,
    .events-grid,
    .executives-grid,
    .partners-section .section-header {
        max-width: 1400px;
    }

    .newsletter-container {
        max-width: 900px;
        padding: 64px;
    }

    .newsletter-content h2 {
        font-size: 2.75rem;
    }

    .newsletter-content p {
        font-size: 1.25rem;
    }

    .newsletter-form .input-group {
        max-width: 700px;
        margin: 0 auto;
    }

    .newsletter-form input {
        font-size: 1.15rem;
        padding: 18px 26px;
    }

    .newsletter-form .btn-primary {
        font-size: 1.15rem;
        padding: 18px 44px;
    }

    .event-card {
        max-width: 450px;
    }

    .exec-card {
        max-width: 380px;
    }

    .modal-content {
        max-width: 650px;
        padding: 56px 48px;
    }

    .modal-exec-img {
        width: 200px;
        height: 200px;
    }

    .modal-exec-name {
        font-size: 2.5rem;
    }

    .modal-exec-bio {
        font-size: 1.15rem;
        padding: 28px;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .event-card {
        min-height: 48px;
    }

    .exec-card {
        min-height: 48px;
    }

    .partner-logo {
        min-height: 48px;
    }

    .newsletter-form input {
        min-height: 48px;
    }

    .newsletter-form .btn-primary {
        min-height: 48px;
    }

    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }

    .modal-social-link {
        min-width: 48px;
        min-height: 48px;
    }

    /* Simplify hover effects for touch */
    .event-card:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .exec-card:hover {
        transform: translateY(-6px);
    }

    .partner-logo:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* Active states are more important than hover on touch */
    .event-card:active {
        transform: scale(0.98);
    }

    .exec-card:active {
        transform: scale(0.98);
    }

    .newsletter-form .btn-primary:active {
        transform: scale(0.97);
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .events-section.section-container,
    .executives-section.section-container,
    .partners-section.section-container,
    .newsletter-section {
        background: white !important;
        background-image: none !important;
    }

    .partners-section::before,
    .partners-section::after {
        display: none;
    }

    .slider-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-backdrop {
        display: none !important;
    }

    .loading-spinner {
        display: none !important;
    }

    .newsletter-form {
        display: none;
    }

    .event-card,
    .exec-card,
    .partner-logo {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    .slider-track {
        animation: none !important;
    }

    .event-card,
    .exec-card,
    .partner-logo,
    .newsletter-container,
    .modal-content {
        transition: none !important;
    }

    .event-image img {
        transition: none !important;
    }

    .modal-backdrop.active .modal-content {
        transition: opacity 0.2s ease !important;
    }
}

/* ================================================================ */
/* ===== HOME PAGE MOBILE RESPONSIVE MEDIA QUERIES - 480px & 768px ===== */
/* ================================================================ */

/* ===== TABLET - 768px and below ===== */
@media (max-width: 768px) {

    /* Header */
    /* .site-header {
        padding: 12px 16px;
    } */

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    /* .logo {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .logo img {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    } */

    .logo h1 {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .page-title {
        font-size: 0.85rem;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 200px;
    }

    /* Main Container */
    .main {
        padding: 0;
        margin: 0;
    }

    /* Home Page */
    .home-page {
        top: calc(60px + 0.5rem*4);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    /* Hero Section */
    .home-hero {
        min-height: calc(70vh - 92px);
        padding: 60px 16px;
    }

    .hero-chakra-bg {
        width: 350px;
        height: 350px;
    }

    .home-hero-content {
        max-width: 90%;
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 24px;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    /* Hero Impact */
    .home-impact {
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
        align-items: center;
    }

    .home-impact-item {
        min-width: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .impact-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .impact-content {
        text-align: left;
    }

    .home-impact-number {
        font-size: 22px;
    }

    .home-impact-label {
        font-size: 13px;
    }

    /* Features Section */
    .features-section {
        padding: 60px 16px;
    }

    .features-header {
        margin-bottom: 48px;
    }

    .features-header h2 {
        font-size: 2.25rem;
        margin-bottom: 16px;
    }

    .features-header p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 36px 24px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .feature-card h3 {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* Gallery Preview Section */
    .gallery-preview-section {
        padding: 60px 16px;
    }

    .gallery-preview-header {
        margin-bottom: 40px;
    }

    .gallery-preview-header h2 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .gallery-preview-header p {
        font-size: 1rem;
    }

    .gallery-preview-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .gallery-preview-item {
        margin-bottom: 1rem;
    }

    .gallery-preview-cta {
        margin-top: 40px;
        text-align: center;
    }

    .gallery-preview-cta .btn-secondary {
        padding: 12px 28px;
        font-size: 1rem;
        display: inline-flex;
        width: auto;
        max-width: 100%;
    }

    /* Quick Links Section */
    .quick-links-section {
        padding: 60px 16px;
    }

    .quick-links-header {
        margin-bottom: 48px;
    }

    .quick-links-header h2 {
        font-size: 2.25rem;
        margin-bottom: 16px;
    }

    .quick-links-header p {
        font-size: 1rem;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quick-link-card {
        padding: 32px 24px;
    }

    .quick-link-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
        margin-bottom: 20px;
    }

    .quick-link-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .quick-link-card p {
        font-size: 0.95rem;
    }

    /* Stats Section */
    .stats-section {
        padding: 60px 16px;
    }

    .stats-header {
        margin-bottom: 40px;
    }

    .stats-header h2 {
        font-size: 2.25rem;
        margin-bottom: 10px;
    }

    .stats-header p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 80px 16px;
    }

    .cta-container {
        padding: 3rem 2rem;
    }

    .cta-content h2 {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .cta-content p {
        font-size: 1.1rem;
        margin-bottom: 36px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        padding: 13px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }

    /* Flash Notifications */
    .flash-container {
        top: 80px;
        right: 10px;
        left: 10px;
        gap: 10px;
    }

    .flash-notification {
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 14px 18px;
    }

    .flash-icon {
        width: 22px;
        height: 22px;
    }

    .flash-title {
        font-size: 13px;
    }

    .flash-message {
        font-size: 12px;
    }
}

/* ===== MOBILE - 480px and below ===== */
@media (max-width: 480px) {

    /* Header */
    /* .site-header {
        padding: 10px 12px;
    } */

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }

    /* .logo {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    .logo img {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    } */

    .logo h1 {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .page-title {
        font-size: 0.7rem;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: right;
        line-height: 1.2;
    }

    /* Main Container */
    .main {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    /* Home Page */
    .home-page {
        top: calc(60px + 0.25rem*6);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* Hero Section */
    .home-hero {
        min-height: calc(65vh - 92px);
        padding: 40px 12px;
    }

    .hero-chakra-bg {
        width: 250px;
        height: 250px;
    }

    .home-hero-content {
        max-width: 100%;
        padding: 0 12px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 5px 10px;
        margin-bottom: 20px;
        gap: 4px;
    }

    .hero-badge i {
        font-size: 10px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
        gap: 6px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    /* Hero Impact */
    .home-impact {
        flex-direction: column;
        gap: 16px;
        margin-top: 28px;
        align-items: center;
        padding: 0 12px;
    }

    .home-impact-item {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 16px;
        gap: 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
    }

    .impact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .impact-content {
        text-align: left;
        flex: 1;
    }

    .home-impact-number {
        font-size: 20px;
        margin-bottom: 2px;
        display: block;
    }

    .home-impact-label {
        font-size: 12px;
        display: block;
    }

    /* Features Section */
    .features-section {
        padding: 40px 12px;
    }

    .features-header {
        margin-bottom: 32px;
    }

    .features-header h2 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .features-header p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Gallery Preview Section */
    .gallery-preview-section {
        padding: 40px 12px;
    }

    .gallery-preview-header {
        margin-bottom: 32px;
    }

    .gallery-preview-header h2 {
        font-size: 1.85rem;
        margin-bottom: 8px;
    }

    .gallery-preview-header p {
        font-size: 0.9rem;
    }

    .gallery-preview-grid {
        column-count: 1;
        column-gap: 0;
    }

    .gallery-preview-item {
        margin-bottom: 1rem;
    }

    .gallery-preview-item::after {
        font-size: 2rem;
    }

    .gallery-preview-cta {
        margin-top: 32px;
        text-align: center;
    }

    .gallery-preview-cta .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: calc(100% - 24px);
        max-width: 320px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Quick Links Section */
    .quick-links-section {
        padding: 40px 12px;
    }

    .quick-links-header {
        margin-bottom: 32px;
    }

    .quick-links-header h2 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .quick-links-header p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-link-card {
        padding: 24px 18px;
    }

    .quick-link-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 16px;
    }

    .quick-link-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .quick-link-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Stats Section */
    .stats-section {
        padding: 40px 12px;
    }

    .stats-header {
        margin-bottom: 32px;
    }

    .stats-header h2 {
        font-size: 1.75rem;
        margin-bottom: 8px;
    }

    .stats-header p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    #home-last-sync {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 50px 12px;
    }

    .cta-container {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-xl);
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        padding: 13px 28px;
        font-size: 0.95rem;
        width: calc(100% - 24px);
        max-width: 320px;
        box-sizing: border-box;
    }

    /* Flash Notifications */
    .flash-container {
        top: 70px;
        right: 8px;
        left: 8px;
        gap: 8px;
        max-width: calc(100vw - 16px);
    }

    .flash-notification {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        padding: 12px 14px;
        gap: 10px;
        box-sizing: border-box;
    }

    .flash-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        flex-shrink: 0;
    }

    .flash-content {
        flex: 1;
        min-width: 0;
    }

    .flash-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .flash-message {
        font-size: 11px;
        line-height: 1.3;
    }

    .flash-close {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}

/* ===== EXTRA SMALL MOBILE - 375px and below ===== */
@media (max-width: 375px) {

    /* Header */
    .logo h1 {
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 0.65rem;
        max-width: 100px;
    }

    /* Hero Section */
    .hero-chakra-bg {
        width: 220px;
        height: 220px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    /* Hero Impact Cards */
    .home-impact-item {
        padding: 14px;
    }

    .impact-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .home-impact-number {
        font-size: 18px;
    }

    .home-impact-label {
        font-size: 11px;
    }

    /* Features Section */
    .features-header h2 {
        font-size: 1.6rem;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    /* Gallery Button */
    .gallery-preview-cta .btn-secondary {
        padding: 11px 20px;
        font-size: 0.9rem;
        width: calc(100% - 24px);
    }

    /* Stats Grid */
    .stat-number {
        font-size: 1.8rem;
    }

    /* CTA Section */
    .cta-container {
        padding: 1.75rem 1.25rem;
    }

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

    .cta-content p {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: calc(100% - 24px);
    }

    /* Flash Notifications */
    .flash-notification {
        padding: 10px 12px;
    }

    .flash-title {
        font-size: 11px;
    }

    .flash-message {
        font-size: 10px;
    }
}