/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --saffron: #FF9933;
    --maroon: #800000;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --cream: #FFFDF5;
    --dark-maroon: #4A0000;
    --text-dark: #2D2D2D;
    --text-light: #F5F5F5;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

/* Background Pattern Watermark */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/logo.jpg');
    /* Using logo as a subtle watermark */
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

@media (max-width: 991px) {
    section {
        scroll-margin-top: 80px;
    }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: #fbfbfa;
    /* Solid light off-white */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.active .container {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

header .nav-container {
    padding: 0.8rem 2rem;
}

header.active .nav-container {
    padding: 0.4rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--maroon);
}

.logo img {
    height: 50px;
    /* Slightly smaller default height for solid header */
    width: auto;
    border-radius: 50%;
    transition: var(--transition);
}

header.active .logo img {
    height: 45px;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--maroon);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem 0.6rem;
    justify-content: flex-end;
    background: #F5f5f0;
    padding: 0.4rem 0.6rem;
    border-radius: 50px;
    max-width: 100%;
}

.nav-links.nav-main {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.2rem 0.5rem;
}

@media (min-width: 902px) and (max-width: 1000px) {
    .logo-text {
        font-size: 0.85rem;
        max-width: 150px;
        white-space: normal;
        line-height: 1.2;
    }
    .logo {
        gap: 8px;
    }
    .nav-container {
        gap: 15px;
    }
}

@media (max-width: 901px) {
    .nav-links.nav-main {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        background: transparent;
        padding: 0;
        grid-template-columns: none;
    }
    section {
        scroll-margin-top: 80px;
    }
}

.nav-links li {
    display: flex;
    min-width: 0;
}

.nav-links a {
    width: 100%;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.5rem;
    border-radius: 50px;
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile Hamburger Menu - New Replicated Admin Style */
.mobile-header {
    display: none;
    background: #fbfbfa;
    color: var(--maroon);
    padding: 0.8rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mobile-back-btn {
    display: none !important;
}

.mobile-back-btn:hover {
    color: var(--gold);
}

/* Sub-header Navigation (Option B) */
.sub-header-nav {
    display: none;
    background: var(--cream);
    padding: 10px 1.5rem;
    border-bottom: 1px solid rgba(128, 0, 0, 0.1);
    margin-top: 60px; /* Offset for fixed header */
}

@media (max-width: 768px) {
    .sub-header-nav {
        display: block;
    }
}

.back-link {
    color: var(--maroon);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--gold);
    transform: translateX(-3px);
}


.mobile-logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.mobile-logo-group img {
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.mobile-logo-group span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

#mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--maroon);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

#mobile-menu-toggle:hover {
    color: var(--gold);
}

/* Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -285px; /* Hidden by default */
    width: 280px;
    height: 100vh;
    background: var(--cream);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    transform: translateX(285px);
}

.sidebar-header {
    padding: 1.5rem;
    background: rgba(128,0,0,0.05); /* Very light maroon tint */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(128,0,0,0.1);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.sidebar-header img {
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.sidebar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--maroon);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--maroon);
    opacity: 0.7;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close-btn:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.sidebar-nav {
    list-style: none;
    padding: 1.5rem 0;
    flex-grow: 1;
}

.sidebar-nav li {
    padding: 0 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.8rem 1rem;
    color: var(--maroon);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 0.2rem;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gold);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(128,0,0,0.08); /* Sophisticated hover effect */
    color: var(--maroon);
}

.sidebar-divider {
    height: 1px;
    background: rgba(128,0,0,0.1);
    margin: 1.5rem 1rem !important;
}

.sidebar-lang-btn {
    width: 100% !important;
    background: var(--white) !important;
    color: var(--maroon) !important;
    border: none !important;
    padding: 1rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    transition: var(--transition) !important;
}

.sidebar-lang-btn:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 901px) {
    #header {
        display: none; /* Hide standard header on mobile */
    }

    .mobile-header {
        display: flex;
    }

    .hero {
        padding-top: 80px; /* Adjusted for mobile header */
    }

    /* Override any conflicting nav styles from previous implementation */
    .nav-container nav {
        display: none !important;
    }
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--maroon);
    color: var(--white);
    border: 2px solid var(--maroon);
}

.btn-primary:hover {
    background: transparent;
    color: var(--maroon);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--maroon);
    border-color: var(--gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/herobanner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    /* Account for fixed solid header height */
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Leaf Particles */
.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--gold);
    opacity: 0.3;
    pointer-events: none;
    border-radius: 50% 0 50% 0;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Footer */
footer {
    background: var(--dark-maroon);
    color: var(--text-light);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 100px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.sanskrit-line {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    color: var(--gold);
    margin: 2rem 0;
    font-size: 1.4rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.event-disclaimer {
    font-style: italic;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 2.5rem;
    margin-top: -1.5rem;
    font-weight: 500;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--saffron);
    margin-bottom: 1rem;
}

.about-img {
    display: flex;
    justify-content: center;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 0 2px var(--gold), var(--shadow);
    border: 5px solid var(--white);
}

/* Vision & Mission */
.vision-mission {
    background: var(--cream);
}

.icon-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.icon-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.icon-card i {
    font-size: 3rem;
    color: var(--saffron);
    margin-bottom: 1.5rem;
}

.icon-card h3 {
    margin-bottom: 1rem;
    color: var(--maroon);
}

.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Activities */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
    text-align: center;
}

.activity-card:hover {
    border-color: var(--gold);
    background: var(--cream);
    transform: scale(1.02);
}

.activity-card i {
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

/* Events Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.3;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 3px solid var(--saffron);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Membership */
.membership-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.membership-benefits ul {
    list-style: none;
    margin-top: 2rem;
}

.membership-benefits li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.membership-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--saffron);
    font-weight: bold;
}

.membership-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--maroon);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Gallery - Masonry */
/* Gallery Layout & Sidebar */
.gallery-layout {
    margin-top: 2rem;
}

#gallery-year-filters .filter-btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(128, 0, 0, 0.1);
    background: rgba(128, 0, 0, 0.05);
    color: var(--maroon);
    margin-bottom: 5px;
}

#gallery-year-filters .filter-btn.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: translateX(5px);
}

.event-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(128, 0, 0, 0.05);
}

.event-tabs .filter-btn {
    background: white;
    border: 1.5px solid var(--maroon);
    color: var(--maroon);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.event-tabs .filter-btn.active {
    background: var(--maroon);
    border-color: var(--maroon);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
    transform: translateY(-2px);
}

.event-tabs .filter-btn:hover:not(.active) {
    background: rgba(128, 0, 0, 0.05);
    transform: translateY(-1px);
}


.gallery-item {
    aspect-ratio: 4 / 3;
    height: auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (max-width: 992px) {
    .gallery-layout {
        display: flex !important;
        flex-direction: column !important;
    }
    .gallery-sidebar {
        position: static !important;
        width: 100% !important;
        margin-bottom: 1rem;
    }
    #gallery-year-filters {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        padding: 5px 0 15px 0;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    #gallery-year-filters .filter-btn {
        width: auto !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
        padding: 10px 20px;
    }
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
}

.contact-info i {
    color: var(--maroon);
    margin-right: 1rem;
    width: 20px;
}

.map-container {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    @media (max-width: 600px) {
        .logo-text {
            font-size: 0.8rem;
        }
    }

    .nav-links {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 280px;
        max-width: 90%;
        margin: 0 !important;
    }

    .about-grid,
    .membership-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 21px !important;
        right: auto !important;
    }



    .policy-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }



    .policy-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Announcement Marquee */
.marquee-container {
    background: var(--saffron);
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 999;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Language Toggle */
.lang-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--maroon);
    color: var(--maroon);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 1.5rem;
    transition: var(--transition);
    font-weight: 600;
}

@media (max-width: 991px) {
    .lang-toggle {
        width: auto !important;
        max-width: 90%;
        margin: 0 auto;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.lang-toggle:hover {
    background: var(--maroon);
    color: var(--white);
}


/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Vaidya Gallery Section */
.vaidya-scroller-section {
    background: var(--cream);
    overflow: hidden;
}

.scroller-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--maroon) transparent;
}

.scroller-container::-webkit-scrollbar {
    height: 6px;
}

.scroller-container::-webkit-scrollbar-track {
    background: transparent;
}

.scroller-container::-webkit-scrollbar-thumb {
    background-color: var(--maroon);
    border-radius: 20px;
}

.scroller-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 0 1rem;
}

/* Card Style */
.vaidya-card {
    position: relative;
    width: 280px;
    height: 480px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: default;
    overflow: hidden;
    justify-content: flex-start;
}

.vaidya-sno {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--maroon);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border: 1px solid var(--gold);
}


.vaidya-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 3px solid var(--maroon);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.vaidya-card h4 {
    color: var(--maroon);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.vaidya-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.vaidya-contact-info {
    margin-top: auto;
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.2rem;
    text-align: left;
}

.vaidya-contact-info p {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    color: #444;
}

.vaidya-contact-info i {
    color: var(--maroon);
    width: 14px;
    text-align: center;
    margin-top: 3px;
}

.vaidya-card:hover {
    transform: scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vaidya-card {
        width: 220px;
        height: 420px;
        padding: 2.2rem 1rem 1.5rem;
    }

    .vaidya-sno {
        top: 8px;
        left: 8px;
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .vaidya-card img {
        width: 100px;
        height: 100px;
    }
}

/* Committee Section */
.committee-section {
    padding: 100px 0;
    background: var(--white);
}

/* Filter container and buttons consolidated at the end of file */


.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.committee-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--cream);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.committee-card:hover .member-photo {
    border-color: var(--gold);
    transform: scale(1.05);
}

.member-name {
    color: var(--maroon);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-designation {
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.member-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.member-contact {
    font-size: 0.8rem;
    color: var(--maroon);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .committee-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }
}

/* Policy Pages Styles */
.policy-content {
    padding: 120px 2rem 80px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 2.3;
    /* Increased for premium readability */
    flex: 1;
}

.policy-content h1 {
    color: var(--maroon);
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.policy-content h2 {
    color: var(--maroon);
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.policy-content p {
    margin-bottom: 2.5rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .policy-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .policy-content {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}

/* Document Grid Styling */
.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.document-item {
    text-align: center;
}

.document-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.document-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.doc-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}

.document-card:hover .doc-img {
    transform: scale(1.05);
}

.doc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.document-card:hover .doc-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--gold);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-label {
    font-weight: 700;
    color: var(--maroon);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .document-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Payment Details */
.payment-details-wrapper {
    max-width: 900px;
    margin: 5rem auto 0;
    text-align: center;
}

.payment-title {
    font-size: 2rem;
    color: var(--maroon);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.payment-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: stretch;
}

.bank-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Subtle watermark for bank card */
.bank-card::before {
    content: '\f19c'; /* Bank icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 8rem;
    opacity: 0.03;
    color: var(--maroon);
}

.bank-row {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 0.8rem;
}

.bank-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.bank-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.bank-value {
    font-size: 1.1rem;
    color: var(--maroon);
    font-weight: 500;
}

.bank-value.highlight {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.upi-card {
    background: var(--cream);
    padding: 1rem;
    border-radius: 15px;
    border: 1px dashed var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    align-self: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.upi-instruction {
    font-weight: 600;
    color: var(--maroon);
    font-size: 1.1rem;
}

.upi-qr-wrapper {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upi-qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-details-wrapper {
        margin-top: 3rem;
        padding: 0 1rem;
    }
}

/* Filter Styles */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 3.5rem;
    margin-top: 1.5rem;
}

.committee-filter-btn, 
.award-filter-btn {
    background: var(--white);
    color: var(--maroon);
    border: 1.5px solid rgba(128, 0, 0, 0.15);
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.committee-filter-btn:hover,
.award-filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
}

.committee-filter-btn.active,
.award-filter-btn.active {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
    box-shadow: 0 8px 20px rgba(128, 0, 0, 0.2);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .filter-container {
        gap: 8px;
    }
    .committee-filter-btn, 
    .award-filter-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* Awards Section */
.awards-section {
    background: var(--cream);
    padding: 100px 0;
    overflow: hidden;
}

/* Responsive Grid Layouts (Awards & Gallery - Index Page Specific) */
#awards-grid,
#main-gallery-grid,
#special-gallery-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* Mobile: 1 column (320px, 375px, 425px) */
    gap: 30px;
    max-width: 1400px;
    margin: 2.5rem auto 0;
}

@media (min-width: 768px) {
    #awards-grid,
    #main-gallery-grid,
    #special-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Tablet: 2 columns from 768px */
    }
}

@media (min-width: 1024px) {
    #awards-grid,
    #main-gallery-grid,
    #special-gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* Desktop: 3 columns from 1024px */
    }
}

.award-card {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(128, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #ffffff, #fffdf8);
    display: flex;
    flex-direction: column;
}

.award-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gold);
}

.award-image-container {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.award-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.award-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.award-name {
    color: var(--maroon);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.award-recipient {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.award-year {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(128, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--maroon);
    font-weight: 700;
    align-self: center;
}

.award-category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--maroon);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vaidya Search Styles */
.search-container {
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid rgba(128, 0, 0, 0.1);
    border-radius: 50px;
    padding: 5px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.search-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--maroon);
    font-size: 1.2rem;
    margin-right: 15px;
    opacity: 0.7;
}

#vaidya-search {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
}

#vaidya-search::placeholder {
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    .search-container {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    #vaidya-search {
        font-size: 0.9rem;
        padding: 10px 0;
    }
}

/* Gallery Button Enhancement */
.gallery-btn {
    background: linear-gradient(135deg, var(--maroon), #a00000);
    color: var(--white) !important;
    padding: 1rem 3rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gallery-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), #b38f00);
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.gallery-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(128, 0, 0, 0.25);
    color: var(--white) !important;
}

.gallery-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.gallery-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Our Publications Section */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.publication-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(128, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15);
    border-color: var(--gold);
}

.pub-cover {
    height: 350px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}

.pub-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.publication-card:hover .pub-cover img {
    transform: scale(1.05);
}

.pub-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pub-info h3 {
    color: var(--maroon);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.pub-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* End of Styles */

@media (max-width: 768px) {
    .publications-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}