/* ==========================================================================
   Swami Vivekanand Multi-Purpose Educational Institution stylesheet
   ========================================================================== */
/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; /* Background Color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity .5s ease;
}

.loader-logo {
    width: auto;
    height: 500px;
    animation: zoom 1.5s infinite alternate;
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: .8;
    }
    to {
        transform: scale(1.05);
        opacity: 1;
    }
}
/* 1. Global Reset & Variables */
:root {
    --primary: #001c38;
    --primary-container: #0d3156;
    --on-primary-container: #7c9ac4;
    --secondary: #F08119;
    --secondary-container: #fd8b25;
    --on-secondary-container: #633000;
    --background: #f9f9ff;
    --on-background: #111c2c;
    --surface: #ffffff;
    --surface-variant: #d8e3fa;
    --outline: #73777f;
    --outline-variant: #c3c6cf;
    --error: #ba1a1a;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0px 4px 20px rgba(13, 49, 86, 0.08);
    --shadow-hover: 0px 8px 30px rgba(13, 49, 86, 0.12);
    
    --radius-sm: 0.25rem;
    --radius-default: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: #4A5568;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

/* Utilities */
.text-primary-navy { color: var(--primary) !important; }
.bg-primary-navy { background-color: var(--primary) !important; }
.bg-primary-container { background-color: var(--primary-container) !important; }
.text-saffron { color: var(--secondary) !important; }
.bg-saffron { background-color: var(--secondary) !important; }
.bg-saffron-light { background-color: #ffdcc5 !important; }
.border-saffron { border-color: var(--secondary) !important; }

/* 2. Buttons */
.btn-saffron {
    background-color: var(--secondary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: none;
}
.btn-saffron:hover {
    background-color: #d06f13;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(240, 129, 25, 0.3);
}

.btn-navy {
    background-color: var(--primary-container);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: none;
}
.btn-navy:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline-navy {
    background-color: transparent;
    color: var(--primary-container);
    border: 2px solid var(--primary-container);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.btn-outline-navy:hover {
    background-color: var(--primary-container);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-pill {
    border-radius: 50px !important;
}

/* 3. Header & Navigation */
.topbar {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.4rem 0;
}
.topbar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}
.topbar a:hover {
    color: var(--secondary);
}
.topbar-icons a {
    margin-left: 10px;
    font-size: 1rem;
}

.navbar {
    background-color: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 0;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.navbar.navbar-transparent {
    background-color: transparent;
    box-shadow: none;
}
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 48px;
    margin-right: 12px;
}
.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--primary) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10px;
    background-color: var(--secondary);
    transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 20px);
}

/* Hero Section */
.hero-slider-section {
    position: relative;
    background-color: var(--primary);
    overflow: hidden;
}
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 28, 56, 0.7);
    z-index: 1;
}
.hero-carousel-item {
    min-height: 650px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}
.estd-badge {
    background-color: var(--secondary);
    color: #ffffff;
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Floating Stats Section */
.stats-floating-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}
.stats-card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    border: none;
}
.stat-item {
    text-align: center;
    border-right: 1px solid #E2E8F0;
}
.stat-item:last-child {
    border-right: none;
}
.stat-val {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}
.stat-lbl {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}
.section-bg-alt {
    background-color: #f0f3ff;
}
.section-title-wrapper {
    margin-bottom: 45px;
}
.section-title {
    font-size: 2rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
}
.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* 4. Cards */
.custom-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(13, 49, 86, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}
.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.custom-card:hover .card-title {
    color: var(--secondary) !important;
}

/* 5. Special Sections */
/* About / Legacy */
.about-legacy-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.about-established-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    max-width: 250px;
    box-shadow: var(--shadow-soft);
}

/* Mission & Vision */
.mission-vision-card {
    border-left: 4px solid var(--primary);
    padding: 30px;
}
.mission-vision-card.vision {
    border-left: 4px solid var(--secondary);
}
.mission-vision-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

/* Focus Area / Programs */
.program-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}
.program-card-body {
    padding: 25px;
}
.program-card-link {
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}
.program-card-link:hover {
    color: var(--primary);
}

/* Call To Action */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary-container) 0%, var(--secondary) 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-soft);
}
.cta-badge {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
}

/* 6. Page Specific Styles */
/* Biography Page Layouts */
.bio-pfp-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 25px;
}
.bio-pfp {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 1/1.1;
    margin-bottom: 20px;
}
.bio-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--outline-variant);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 5px;
}
.bio-social-btn:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

/* Layout 1: Ganesh */
.ganesh-quote-block {
    background-color: #ffdcc5;
    border-left: 4px solid var(--secondary);
    padding: 30px;
    border-radius: var(--radius-sm);
    position: relative;
}
.ganesh-quote-block::before {
    content: '"';
    font-size: 6rem;
    color: rgba(240, 129, 25, 0.15);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

/* Layout 2: Vaishali */
.vaishali-stat-pill {
    background-color: #e7eeff;
    padding: 10px 18px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin: 5px;
}
.vaishali-stat-pill i {
    margin-right: 8px;
    font-size: 1.1rem;
}
.vaishali-timeline {
    position: relative;
    padding-left: 25px;
    border-left: 2px solid var(--outline-variant);
    margin-left: 10px;
}
.vaishali-timeline-item {
    position: relative;
    margin-bottom: 25px;
}
.vaishali-timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
    left: -32px;
    top: 6px;
    border: 2px solid var(--surface);
}

/* Layout 3: Shruti */
.shruti-spec-card {
    padding: 25px;
    border-radius: var(--radius-md);
    height: 100%;
}
.shruti-spec-card.navy {
    background-color: var(--primary-container);
    color: #ffffff;
}
.shruti-spec-card.navy h4 {
    color: #ffffff;
}
.shruti-spec-card.brown {
    background-color: var(--secondary);
    color: #ffffff;
}
.shruti-spec-card.brown h4 {
    color: #ffffff;
}
.shruti-spec-card.white {
    background-color: var(--surface);
    border: 1px solid var(--outline-variant);
}

/* Certificates Grid */
.cert-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 25px;
    border: none;
    transition: all 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.cert-icon-box {
    width: 50px;
    height: 50px;
    background-color: #ffdcc5;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Donate Page */
.upi-box {
    border: 1px dashed var(--outline);
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}
.qr-box {
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    background-color: #ffffff;
}
.bank-card {
    background-color: var(--primary-container);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow-soft);
}
.bank-card h4 {
    color: #ffffff;
}

/* Footer Section */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}
.footer h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
}
.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}
.footer-bottom {
    background-color: #001224;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* 7. Admin Dashboard Styles */
.admin-sidebar {
    background-color: var(--primary);
    min-height: 100vh;
    box-shadow: var(--shadow-soft);
}
.admin-nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    margin: 4px 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: #ffffff;
    background-color: var(--primary-container);
}
.admin-nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
}
.admin-card-stats {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 25px;
    border: none;
}
.admin-stat-icon {
    font-size: 2rem;
    color: var(--secondary);
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .section-padding {
        padding: 50px 0;
    }
    .topbar {
        display: none;
    }
}

/* ==========================================================================
   8. Testimonials Section
   ========================================================================== */
.testimonial-section {
    background-color: #f9f9ff;
    position: relative;
    border-top: 1px solid rgba(13, 49, 86, 0.05);
    border-bottom: 1px solid rgba(13, 49, 86, 0.05);
}
.testimonial-carousel {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}
.testimonial-card {
    background-color: var(--surface);
    border: 1px solid rgba(13, 49, 86, 0.06);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--secondary);
    padding: 50px 40px;
    box-shadow: var(--shadow-soft);
    margin: 15px;
    position: relative;
}
.testimonial-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}
.testimonial-quote::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 6rem;
    color: rgba(240, 129, 25, 0.08);
    position: absolute;
    top: -50px;
    left: -20px;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    object-fit: cover;
}
.testimonial-avatar-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background-color: var(--secondary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.testimonial-meta {
    text-align: left;
}
.testimonial-stars {
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}
.testimonial-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.testimonial-role {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0;
}

/* ==========================================================================
   9. Homepage Gallery Section
   ========================================================================== */
.home-gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: var(--primary-container);
}
.home-gallery-card img, .home-gallery-card svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.home-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 28, 56, 0.9) 0%, rgba(0, 28, 56, 0.3) 60%, rgba(0, 28, 56, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: all 0.3s ease;
    z-index: 2;
}
.home-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.home-gallery-card:hover img {
    transform: scale(1.08);
}
.home-gallery-card:hover .home-gallery-overlay {
    background: linear-gradient(to top, rgba(240, 129, 25, 0.95) 0%, rgba(0, 28, 56, 0.5) 75%);
}
.home-gallery-cat {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}
.home-gallery-card:hover .home-gallery-cat {
    color: #ffffff;
}
.home-gallery-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
}
.home-gallery-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.home-gallery-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   10. Gallery Masonry Layout (CSS Columns)
   ========================================================================== */
.gallery-masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
}
@media (max-width: 992px) {
    .gallery-masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 576px) {
    .gallery-masonry-grid {
        column-count: 1;
    }
}
.gallery-masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

