/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Ensure mobile dropdown is hidden by default on desktop
   (defined inside media query for mobile, but element may be injected into DOM) */
#mobile-nav-dropdown { display: none; }

/* Top Bar */
.top-bar {
    background: #1e40af;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-links {
    display: flex;
    align-items: center;
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.instagram-link:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.instagram-link svg {
    width: 18px;
    height: 18px;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -10px;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.org-details h1 {
    color: #1e40af;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sanskrit {
    color: #dc2626;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.tagline {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #1e40af;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1e40af;
}

.donate-nav {
    background: #dc2626 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

.donate-nav:hover {
    background: #b91c1c !important;
    transform: translateY(-2px);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e40af;
}

/* Sections */
.about-section,
.donation-section {
    padding: 50px 0;
    text-align: center;
}

.about-section {
    background: white;
}

.donation-section {
    background: #f8fafc;
}

.about-section h2,
.donation-section h2 {
    font-size: 36px;
    color: #1e40af;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-section p,
.donation-section p {
    font-size: 18px;
    color: #666;
    max-width: 100%;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    color: #1e40af;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header .underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #dc2626);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
    max-width: 100%;
    margin: 0 auto;
}

/* About Section Enhanced */
.about-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.lead-text {
    font-size: 20px;
    font-weight: 500;
    color: #1e40af;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-content > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
}

.registration-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #1e40af;
}

.reg-item {
    font-size: 15px;
    color: #475569;
}

.reg-item strong {
    display: block;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 5px;
}

.commitment-box {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.2);
}

.commitment-box h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.commitment-box .quote {
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
}

.commitment-box p {
    color: rgba(255, 255, 255, 0.95);
}

/* Focus Areas Section */
.focus-areas {
    padding: 50px 0;
    background: #f8fafc;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 100%;
}

.focus-card {
    background: white;
    padding: 40px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.focus-card:hover {
    transform: translateY(-8px);
    border-color: #1e40af;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.2);
}

.focus-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.focus-card h3 {
    font-size: 17px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
}

/* Current Programs Section */
.current-programs {
    padding: 50px 0;
    background: white;
}

.programs-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 28px;
    color: #1e40af;
    margin-bottom: 30px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 100%;
}

.program-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #1e40af;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #dc2626;
}

.program-card.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
}

.program-card.upcoming {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #3b82f6;
}

.program-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.program-badge {
    display: inline-block;
    background: #1e40af;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

    /* Mobile header & menu (only active on small screens) */
    /* MOBILE STYLES - v2.0 - Updated Nov 2025 */
    @media (max-width: 900px) {
        .container { padding: 0 12px !important; }

        /* Hide desktop nav on mobile */
        nav.main-nav { display: none !important; }

        /* Compact header on mobile - consolidated rules */
        header.header {
            padding: 8px 0 !important;
            position: static !important;
            top: auto !important;
            z-index: 100;
        }

        .header .header-content { 
            align-items: flex-start !important; 
            justify-content: space-between !important;
            position: relative !important;
        }

        /* Center header content vertically on mobile for better alignment */
        header.header .header-content {
            align-items: center !important;
        }

        /* Logo section - more compact on mobile */
        .header .logo-section {
            flex-direction: row !important;
            align-items: center !important;
            gap: 14px !important;
            text-align: left !important;
            margin-left: 0 !important;
        }

        /* Larger mobile logo for better visual balance */
        .header .logo-section .logo {
            width: 80px !important;
            height: 80px !important;
        }

        /* Increase header text sizes for mobile readability */
        .header .org-details h1 {
            font-size: 20px !important;
            margin-bottom: 4px !important;
            line-height: 1.05 !important;
        }

        .header .org-details .sanskrit {
            font-size: 14px !important;
            margin-bottom: 2px !important;
            font-weight: 600 !important;
        }

        .header .org-details .tagline {
            font-size: 13px !important;
            color: #475569 !important;
        }

        /* Mobile menu button - top right */
        button.mobile-menu-btn {
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-around !important;
            width: 28px !important;
            height: 28px !important;
            background: transparent !important;
            border: none !important;
            cursor: pointer !important;
            padding: 4px !important;
            z-index: 1000 !important;
            position: absolute !important;
            right: 12px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
        }

        button.mobile-menu-btn span {
            width: 100% !important;
            height: 2.5px !important;
            background: #2c5282 !important;
            border-radius: 2px !important;
            transition: all 0.3s ease !important;
            display: block !important;
        }

        button.mobile-menu-btn:hover span {
            background: #1e40af !important;
        }

        /* Mobile dropdown menu (replacement for overlay) */
        /* This dropdown appears immediately under the header on small viewports.
           Desktop markup and styles remain unchanged. */
        #mobile-nav-dropdown {
            display: none;
            position: relative;
            width: 100%;
            background: #ffffff;
            box-shadow: 0 10px 30px rgba(2,6,23,0.08);
            border-top: 1px solid #e6edf7;
            z-index: 150;
        }

        #mobile-nav-dropdown.open { display: block; }

        #mobile-nav-dropdown .mobile-nav-inner { padding: 12px 0; }

        /* Nav list in dropdown */
        #mobile-nav-dropdown ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
        #mobile-nav-dropdown a { color: #111827; font-size: 16px; text-decoration: none; padding: 10px 12px; display: block; border-radius: 6px; }
        #mobile-nav-dropdown a:hover { background: #f1f5f9; color: #1e40af; }

        /* Smaller social links area inside dropdown */
        #mobile-nav-dropdown .social-links { margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }

        /* Remove dependency on overlay close button */
        .mobile-close-btn { display: none; }

        /* Make header more prominent on mobile */
        .header .logo-section {
            gap: 20px !important;
        }

        .header .logo-section .logo {
            width: 120px !important;
            height: 120px !important;
        }

        .header .org-details h1 {
            font-size: 24px !important;
            margin-bottom: 6px !important;
            line-height: 1.02 !important;
        }

        .header .org-details .sanskrit {
            font-size: 16px !important;
        }

        .header .org-details .tagline {
            font-size: 14px !important;
        }

        /* Reduce global page headings on mobile for better balance */
        .hero-content h2 {
            font-size: 28px !important;
            line-height: 1.08 !important;
        }

        .section-header h2 {
            font-size: 22px !important;
        }

        /* General smaller headings */
        h2 {
            font-size: 20px !important;
        }

        h3 {
            font-size: 16px !important;
        }
    }

/* Swipe hint - only visible on mobile */
.swipe-hint {
    display: none;
}

@media (max-width: 900px) {
    .swipe-hint {
        display: block !important;
        background: rgba(30, 64, 175, 0.95);
        color: white !important;
        padding: 12px 20px;
        border-radius: 8px;
        margin-top: 25px !important;
        font-size: 15px !important;
        font-weight: 600;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Styles for the secondary advisors grid - DISABLED to prevent split */
.advisors-grid-more { display: none !important; }

/* caption above the secondary advisors grid - DISABLED */
.advisors-more-caption { display: none !important; }

/* Swipe hint above gratitude message (mobile only) */
.advisors-swipe-hint { display: none; }
@media (max-width: 900px) {
    .advisors-swipe-hint {
        display: block;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: #000000;
        margin-bottom: 20px;
        font-style: italic;
    }
}

/* Make advisor grids swipeable on touch devices (mobile) */
@media (max-width: 900px) {
    /* Mobile: use a compact 3-column grid (3-3-1 for 7 items). Keep desktop unchanged. */
    .advisors-grid,
    .advisors-grid-more {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px !important;
        padding-bottom: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible !important;
        justify-items: center;
    }

    .advisor-card {
        padding: 14px 10px !important;
        text-align: center;
        width: 100%;
    }

    .advisors-grid .advisor-card h4,
    .advisors-grid-more .advisor-card h4 { font-size: 15px; }
    .advisors-grid .advisor-card p,
    .advisors-grid-more .advisor-card p { font-size: 12px; }

    /* Hide carousel controls and hint on mobile since we now use a grid layout */
    .carousel-chevron, .advisors-hint { display: none !important; }
}

/* Ensure desktop (larger screens) use the original grid layout and do not have horizontal swipe/overflow */
@media (min-width: 901px) {
    .advisors-grid,
    .advisors-grid-more {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 30px !important;
        overflow: visible !important;
        -webkit-overflow-scrolling: auto !important;
        scroll-snap-type: none !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .advisor-card {
        flex: initial !important;
        min-width: auto !important;
        scroll-snap-align: none !important;
        margin-bottom: 0 !important;
    }

    /* hide the secondary mobile-only caption/grid on desktop */
    .advisors-grid-more { display: none !important; }
    .advisors-more-caption { display: none !important; }
}

/* Carousel chevrons and hint (mobile only) */
.advisors-carousel-wrapper { position: relative; }
.advisors-hint {
    display: none;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    margin-top: 6px;
}
@media (max-width: 900px) {
    .advisors-hint { display: block; }

    .carousel-chevron {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.45);
        color: white;
        border-radius: 50%;
        z-index: 25000;
        cursor: pointer;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }

    .carousel-chevron.left { left: 8px; }
    .carousel-chevron.right { right: 8px; }

    .carousel-chevron svg { width: 18px; height: 18px; }
}
.program-badge.success {
    background: #10b981;
}

.program-badge.upcoming {
    background: #3b82f6;
}

.program-card h4 {
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
}

.program-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Recognition Section */
.recognition-section {
    padding: 50px 0;
    background: #f8fafc;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 100%;
}

.recognition-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 5px solid #dc2626;
    height: 100%;
}

.recognition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.25);
}

.recognition-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.recognition-card h4 {
    font-size: 20px;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 12px;
}

.recognition-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* Collaborations Section */
.collaborations-section {
    padding: 50px 0;
    background: white;
}

.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 100%;
}

.collab-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.collab-card:hover {
    transform: translateY(-4px);
    border-color: #1e40af;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
}

.collab-card.pipeline {
    opacity: 0.85;
    border-style: dashed;
}

.country-flag {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-name {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.5px;
}

.country-name.domestic {
    text-transform: uppercase;
    font-size: 18px;
    color: #dc2626;
}

.collab-card h4 {
    display: none;
}

.org-name {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 35px;
    line-height: 1.3;
}

.collab-focus {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.3;
}

.pipeline-badge {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* Gratitude/Advisors Section */
.gratitude-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.advisors-grid {
    display: grid;
    /* denser layout: smaller min width so more cards fit per row on wide screens */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin-top: 24px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.advisor-card {
    background: white;
    padding: 18px 14px; /* tighter padding for compact cards */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    transition: all 0.22s ease;
    border-bottom: 4px solid #1e40af;
    height: 100%;
}

.advisor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
    border-bottom-color: #dc2626;
}

.advisor-card h4 {
    font-size: 16px;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 8px;
}

.advisor-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* advisor photo sizing for compact grid */
.advisor-card img, .advisor-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }

    .registration-info {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .commitment-box {
        padding: 25px;
    }

    .commitment-box h3 {
        font-size: 22px;
    }

    .commitment-box .quote {
        font-size: 17px;
    }

    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .recognition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .collaborations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .advisors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-title {
        font-size: 22px;
    }

    .program-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1200px) {
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .recognition-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .collaborations-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .programs-grid,
    .advisors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .about-section,
    .donation-section,
    .focus-areas,
    .current-programs,
    .recognition-section,
    .collaborations-section,
    .gratitude-section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .programs-grid,
    .recognition-grid,
    .collaborations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Advisors grid - horizontal scroll on mobile */
    .advisors-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .advisor-card {
        min-width: 280px;
        max-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .lead-text {
        font-size: 17px;
    }
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 15px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 25px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-tagline {
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #60a5fa;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.contact-info p {
    margin-bottom: 10px;
    color: #d1d5db;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 15px;
    text-align: center;
}

.footer-bottom-content {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .top-content {
        justify-content: center;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .instagram-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.1);
    backdrop-filter: blur(10px);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Programs Section */
.programs-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.program-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.program-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.program-content > p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.program-features {
    list-style: none;
    margin-bottom: 2rem;
}

.program-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.program-features li:before {
    content: '✓';
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1rem;
}

.program-features li:last-child {
    border-bottom: none;
}

.program-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f8fafc;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Impact Section */
.impact-section {
    padding: 6rem 0;
    background: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.impact-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-4px);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: block;
}

.impact-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.impact-item p {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e40af;
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .program-card {
        padding: 2rem;
    }
    
    .program-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .impact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Certificate Form Styles */
.certificate-form-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.certificate-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Certificate Preview Styles */
.certificate-preview-section {
    padding: 6rem 0;
    background: white;
}

.preview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.preview-header h2 {
    font-size: 2.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
    font-weight: 700;
}

.certificate-container {
    max-width: 900px;
    margin: 0 auto;
}

.certificate {
    background: white;
    margin: 0 auto 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    overflow: hidden;
}

.certificate-border {
    padding: 3rem;
    border: 8px solid #1e40af;
    border-radius: 1rem;
    background: linear-gradient(45deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.certificate-border::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 2px solid #fbbf24;
    border-radius: 0.5rem;
    pointer-events: none;
}

.certificate-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.certificate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cert-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cert-title h1 {
    font-size: 2.5rem;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.cert-sanskrit {
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-tagline {
    color: #64748b;
    font-size: 1rem;
    font-style: italic;
}

.certificate-body h2 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #fbbf24;
}

.cert-text p {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.participant-name {
    font-size: 2.5rem;
    color: #dc2626;
    font-weight: 700;
    margin: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid #1e40af;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.event-name {
    font-size: 1.8rem;
    color: #1e40af;
    font-weight: 600;
    margin: 1.5rem 0;
    font-style: italic;
}

.participation-date {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 500;
    margin: 1rem 0;
}

.certificate-footer {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.signatures {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.signature {
    text-align: center;
}

.signature-line {
    width: 150px;
    height: 2px;
    background: #1e293b;
    margin-bottom: 0.5rem;
}

.signature p {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.cert-date-issued {
    text-align: right;
}

.cert-date-issued p {
    font-size: 1rem;
    color: #64748b;
}

.download-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Events Info Section */
.events-info-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    text-align: center;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.event-card h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.event-card ul {
    list-style: none;
    text-align: left;
}

.event-card li {
    padding: 0.5rem 0;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.event-card li:before {
    content: '•';
    color: #1e40af;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.event-card li:last-child {
    border-bottom: none;
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc2626;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #22c55e;
}

/* Loading and Success States */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '...'; }
    40% { content: '..'; }
    60% { content: '.'; }
    80%, 100% { content: ''; }
}

/* Success Message */
.success-message {
    background: #dcfce7;
    border: 1px solid #22c55e;
    color: #15803d;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* Error Message */
.error-message {
    background: #fef2f2;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .certificate-border {
        padding: 2rem;
    }
    
    .certificate-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cert-title h1 {
        font-size: 1.8rem;
    }
    
    .participant-name {
        font-size: 1.8rem;
    }
    
    .event-name {
        font-size: 1.4rem;
    }
    
    .certificate-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .signatures {
        justify-content: center;
        gap: 2rem;
    }
    
    .download-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

/* Upcoming Events Section */
.upcoming-events-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.event-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.event-card.upcoming {
    border-left: 4px solid #22c55e;
}

.event-date {
    background: #1e40af;
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 0.25rem;
}

.event-date .year {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
}

.event-content {
    padding: 2rem;
}

.event-content h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-location,
.event-time {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.event-description {
    color: #64748b;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
}

.event-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* Recent News Section */
.recent-news-section {
    padding: 6rem 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 350px;
}

.news-image {
    position: relative;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.news-card.featured .news-image {
    min-height: 350px;
}

.placeholder-image {
    font-size: 4rem;
    color: #94a3b8;
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 2rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.news-date {
    color: #64748b;
    font-size: 0.9rem;
}

.news-category {
    background: #fbbf24;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.read-more {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group-inline input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-group-inline input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Media Coverage Section */
.media-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.media-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-4px);
}

.media-logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.media-item h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.media-item p {
    color: #64748b;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.5;
}

.media-date {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design for News Page */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .form-group-inline {
        flex-direction: column;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
}

/* Contact Methods Section */
.contact-methods-section {
    padding: 4rem 0;
    background: white;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-method {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    border-color: #1e40af;
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    color: #1e40af;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-method > p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-details a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.method-details a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

.hours {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
}

/* Contact Form Section */
.contact-form-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: #1e40af;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info > p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-form-container {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h3 {
    color: #1e40af;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.character-count {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: right;
    margin-top: 0.5rem;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 1rem !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: #1e40af;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #1e40af;
    border-color: #1e40af;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease;
    border: 2px solid #e2e8f0;
}

.team-member:hover {
    transform: translateY(-4px);
    border-color: #1e40af;
}

.member-photo {
    margin-bottom: 1.5rem;
}

.photo-placeholder {
    width: 100px;
    height: 100px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto;
    border: 4px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.role {
    color: #dc2626;
    font-weight: 500;
    margin-bottom: 1rem !important;
    font-size: 0.95rem;
}

.bio {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-contact a {
    color: #1e40af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.member-contact a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #1e40af;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    background: white;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Contact Form Validation */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Responsive Design for Contact Page */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem 1.25rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Keep header sizes prominent on small phones */
    .header .logo-section {
        gap: 18px !important;
    }

    .header .logo-section .logo {
        width: 100px !important;
        height: 100px !important;
    }

    .header .org-details h1 {
        font-size: 20px !important;
    }

    .header .org-details .sanskrit {
        font-size: 14px !important;
    }

    .header .org-details .tagline {
        font-size: 12px !important;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .certificate-body h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .participant-name {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .cert-title h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .newsletter-text h2 {
        font-size: 1.8rem;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .media-item {
        padding: 1.5rem;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .contact-method {
        padding: 2rem 1.5rem;
    }
    
    .team-member {
        padding: 2rem 1.5rem;
    }
}

/* Full Width Override - Make all content span full screen */
.page-header p,
.section-header p,
.hero-content p,
.about-section p,
.donation-section p,
.about-content {
    max-width: 100% !important;
}

/* ============================================
   EVENT MANAGEMENT SYSTEM STYLES
   ============================================ */

/* Admin Panel */
.admin-panel {
    background: #fff3cd;
    border-bottom: 3px solid #ffc107;
    padding: 30px 0;
    margin-bottom: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #1e40af;
    margin: 0;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Admin Forms */
.admin-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
}

.form-group small {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 5px;
}

/* Event Tabs */
.event-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.tab-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

.tab-btn:hover {
    border-color: #1e40af;
}

/* Admin Event List */
.event-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-event-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8fafc;
}

.admin-event-info {
    flex: 1;
}

.admin-event-info strong {
    display: block;
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 5px;
}

.admin-event-info span {
    color: #64748b;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.admin-event-info p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.admin-event-info small {
    color: #1e40af;
    font-size: 13px;
}

.admin-event-info small a {
    color: #1e40af;
    text-decoration: none;
}

.admin-event-info small a:hover {
    text-decoration: underline;
}

.btn-delete {
    padding: 8px 16px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-family: 'Inter', sans-serif;
}

.btn-delete:hover {
    background: #b91c1c;
}

/* ============================================
   PUBLIC EVENT DISPLAY
   ============================================ */

.events-section {
    padding: 50px 0;
}

.past-events-section {
    background: #f8fafc;
}

.no-events {
    text-align: center;
    color: #64748b;
    font-size: 18px;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Upcoming Events Grid */
.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.upcoming-event-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.upcoming-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #1e40af;
}

.event-icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
}

.event-date {
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    padding: 8px 18px;
    background: #eff6ff;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.upcoming-event-card h3 {
    color: #1e293b;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.upcoming-event-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

.upcoming-event-card .btn {
    margin-top: 10px;
}

/* Past Events */
.past-events-container {
    margin-top: 40px;
}

.past-event-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.past-event-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.past-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.past-event-header h3 {
    color: #1e293b;
    font-size: 26px;
    margin: 0;
    font-weight: 700;
}

.past-event-header .event-date {
    background: #eff6ff;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 13px;
}

/* Event Gallery */
.event-gallery {
    margin: 30px 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    padding: 15px;
}

.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    height: 10px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.gallery-image {
    height: 220px;
    min-width: 320px;
    max-width: 320px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.event-outcome {
    line-height: 1.8;
    color: #475569;
    font-size: 16px;
}

.event-outcome p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .admin-section {
        padding: 20px;
    }

    .upcoming-events-grid {
        grid-template-columns: 1fr;
    }

    .past-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .past-event-card {
        padding: 25px;
    }

    .gallery-image {
        height: 180px;
        min-width: 250px;
        max-width: 250px;
    }

    .event-gallery {
        margin: 20px -25px;
        border-radius: 0;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .upcoming-event-card {
        padding: 25px;
    }

    .event-icon {
        font-size: 42px;
    }

    .gallery-image {
        height: 150px;
        min-width: 200px;
        max-width: 200px;
    }
}

/* Donation page - responsive grid */
@media (max-width: 768px) {
    .donation-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .qr-section img {
        max-width: 350px !important;
    }
}

/* Advisory Panel - Responsive (removed desktop hide rule) */
@media (max-width: 900px) {
    /* Updated to target new class name */
    .advisors-grid-team {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    .advisor-card-team {
        background: #fef3c7 !important;
        padding: 14px 10px !important;
        border: 2px solid #fbbf24 !important;
    }
    
    .advisor-photo-team {
        display: none !important;
    }
    
    .advisor-name-team {
        font-size: 13px !important;
        color: #1e293b !important;
        font-weight: 500 !important;
    }
    
    /* Center the 10th card */
    .advisor-card-team:nth-child(10) {
        grid-column: 2 / 3 !important;
    }
}
