/* =============================
   CSS TABLE OF CONTENTS
   1. CSS Custom Properties
   2. Reset & Base
   3. Preloader
   4. Scroll to Top
   5. Header & Navigation
   6. Hero Section
   7. Stats Section
   8. Section Common Styles
   9. About / Mission & Vision
   10. Our Team
   11. Principal's Message
   12. Academics
   13. Life at KVI
   14. Gallery
   15. Video Gallery
   16. Downloads
   17. Contact Us
   18. Map Section
   19. Lightbox
   20. Footer
   21. Responsive Design
   ============================= */

/* ===== 1. CSS Custom Properties ===== */
:root {
    --primary: #0a1936;
    --primary-light: #1a3a6b;
    --secondary: #f0a500;
    --secondary-light: #ffc107;
    --accent: #e67e22;
    --bg-light: #f8f9fc;
    --bg-dark: #0a1936;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --white: #ffffff;
    --shadow: 0 5px 25px rgba(10, 25, 54, 0.1);
    --shadow-hover: 0 10px 40px rgba(10, 25, 54, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
    --font: 'Poppins', sans-serif;
}

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pt-0 { padding-top: 0 !important; }

/* ===== 3. Preloader ===== */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { text-align: center; color: var(--white); }
.loader .loader-book { font-size: 3rem; margin-bottom: 1rem; animation: pulse 1.5s ease infinite; }
.loader p { font-size: 1.2rem; font-weight: 500; letter-spacing: 2px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ===== 4. Scroll to Top ===== */
#scrollTopBtn {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--secondary); color: var(--primary);
    border: none; cursor: pointer; font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(240, 165, 0, 0.4);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition);
}
#scrollTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTopBtn:hover { background: var(--accent); transform: translateY(-3px); }

/* ===== 5. Header & Navigation ===== */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; }

.header-top {
    background: var(--primary);
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--white);
    display: none;
}
.header-top-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
}
.header-top-content span i { margin-right: 6px; color: var(--secondary); }

#navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10,25,54,0.08);
    transition: var(--transition);
}
#navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 25px rgba(10,25,54,0.1);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; height: 70px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--primary); color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.logo-text h1 { font-size: 1.15rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: 0.7rem; color: var(--text-light); }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px;
}
.menu-toggle span {
    display: block; width: 28px; height: 3px;
    background: var(--primary); border-radius: 3px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.nav-menu { display: flex; align-items: center; gap: 5px; }
.nav-link {
    display: block; padding: 8px 16px;
    font-size: 0.85rem; font-weight: 500; color: var(--text-dark);
    border-radius: var(--radius-sm); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(10,25,54,0.05); }
.nav-link i { font-size: 0.7rem; margin-left: 4px; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 220px; background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
    z-index: 100;
}
.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li a {
    display: block; padding: 8px 20px;
    font-size: 0.85rem; color: var(--text-dark);
    transition: var(--transition);
}
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--primary); padding-left: 25px; }

/* ===== 6. Hero Section ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding-top: 70px; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.8s ease; }
.hero-slide.active { opacity: 1; }

.hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 80px 20px 40px;
}
.hero-content .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12); color: var(--secondary);
    padding: 8px 24px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800; color: var(--white);
    line-height: 1.15; margin-bottom: 15px;
}
.hero-content h1 span { color: var(--secondary); }
.hero-content .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 650px; margin: 0 auto 25px;
}
.hero-info {
    display: flex; justify-content: center; gap: 25px;
    flex-wrap: wrap; margin-bottom: 30px;
}
.hero-info span { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.hero-info span i { color: var(--secondary); margin-right: 6px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer; transition: var(--transition);
    font-family: var(--font);
}
.btn-primary {
    background: var(--secondary); color: var(--primary);
    border-color: var(--secondary);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(240,165,0,0.4); }
.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

.hero-wave {
    position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

/* ===== 7. Stats Section ===== */
.stats {
    position: relative; z-index: 3;
    margin-top: -50px; padding-bottom: 40px;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
    background: var(--white); padding: 30px 20px;
    border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; background: var(--secondary);
    transform: scaleX(0); transition: var(--transition);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stat-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 10px; }
.stat-card h3 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card p { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }

/* ===== 8. Section Common Styles ===== */
.section {
    padding: 90px 0;
    position: relative;
}
.bg-light { background: var(--bg-light); }
.bg-primary {
    background: var(--primary); color: var(--white);
}
.section-header {
    text-align: center; max-width: 650px;
    margin: 0 auto 50px;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }
.section-tag {
    display: inline-block;
    background: rgba(240,165,0,0.12); color: var(--secondary);
    padding: 5px 18px; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700; color: var(--primary); margin-bottom: 10px;
}
.section-header h2 span { color: var(--secondary); }
.section-header h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700; color: var(--primary); margin-bottom: 10px;
}
.section-header h3 span { color: var(--secondary); }
.section-header p { color: var(--text-light); font-size: 0.95rem; }

.divider {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 15px;
}
.divider span {
    display: block; width: 50px; height: 3px; border-radius: 3px;
    background: var(--secondary);
}
.divider.light span { background: var(--secondary); }

/* ===== 9. About / Mission & Vision ===== */
.about-intro {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: center;
}
.about-image-placeholder {
    width: 100%; aspect-ratio: 4/3; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem; color: var(--secondary);
    box-shadow: var(--shadow);
}
.about-text p { margin-bottom: 15px; color: var(--text-dark); }
.about-highlights {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px;
}
.about-highlights .highlight {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; font-weight: 500;
}
.about-highlights .highlight i { color: #27ae60; font-size: 0.9rem; }

/* Mission & Vision */
.mv-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 35px;
}
.mv-card {
    background: var(--white); padding: 40px 35px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.mv-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px;
}
.mv-card.mission::after { background: var(--secondary); }
.mv-card.vision::after { background: #27ae60; }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.mv-icon {
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 20px;
}
.mv-card.mission .mv-icon { background: rgba(240,165,0,0.12); color: var(--secondary); }
.mv-card.vision .mv-icon { background: rgba(39,174,96,0.12); color: #27ae60; }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--primary); }
.mv-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 15px; }
.mv-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; margin-bottom: 8px; }
.mv-list li i { color: var(--secondary); font-size: 0.7rem; }

/* ===== 10. Our Team ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.staff-card {
    text-align: center;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: white;
    transition: 0.3s;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.staff-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.staff-card a {
    color: #1d4ed8;
    text-decoration: none;
}

.staff-card a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}/* ===== 11. Principal's Message ===== */
.principal-message-content {
    display: grid; grid-template-columns: 300px 1fr; gap: 40px;
    align-items: start;
}
.principal-img-placeholder {
    width: 100%; aspect-ratio: 1; border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.15);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--secondary); gap: 8px;
    padding: 20px;
}
.principal-img-placeholder span { font-size: 1rem; color: var(--white); font-weight: 600; }
.principal-img-placeholder small { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.principal-text .message-greeting { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.principal-text p { margin-bottom: 15px; line-height: 1.8; color: rgba(255,255,255,0.85); }
.principal-text .message-signature { margin-top: 25px; }
.principal-text .message-signature strong { color: var(--secondary); font-size: 1.1rem; }

/* ===== 12. Academics ===== */
.academics-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.academic-card {
    background: var(--white); padding: 35px 25px;
    border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}
.academic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.academic-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(240,165,0,0.12); color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 18px;
    transition: var(--transition);
}
.academic-card:hover .academic-icon { background: var(--secondary); color: var(--white); }
.academic-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); }
.academic-card p { font-size: 0.88rem; color: var(--text-light); }

/* ===== 13. Life at KVI ===== */
.life-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.life-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition);
}
.life-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.life-image {
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: var(--secondary);
    transition: var(--transition);
}
.life-card:hover .life-image { color: var(--secondary-light); }
.life-content { padding: 20px; }
.life-content h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.life-content p { font-size: 0.88rem; color: var(--text-light); }

/* ===== 14. Gallery ===== */
.gallery-filter {
    display: flex; justify-content: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 30px;
}
.filter-btn {
    padding: 8px 22px; border-radius: 50px;
    border: 2px solid rgba(10,25,54,0.1);
    background: transparent; font-family: var(--font);
    font-size: 0.85rem; font-weight: 500; color: var(--text-dark);
    cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--secondary); color: var(--primary);
    border-color: var(--secondary);
}

.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery-img { position: relative; overflow: hidden; }
.gallery-placeholder {
    width: 100%; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--secondary);
    transition: var(--transition);
}
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(10,25,54,0.85);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.05); }
.gallery-view-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--secondary); color: var(--primary);
    border: none; cursor: pointer; font-size: 1.2rem;
    transition: var(--transition);
}
.gallery-view-btn:hover { background: var(--white); transform: scale(1.1); }
.gallery-overlay span { color: var(--white); font-size: 0.9rem; font-weight: 500; }

/* ===== 15. Video Gallery ===== */
.video-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px;
}
.video-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition);
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.video-thumbnail { position: relative; overflow: hidden; }
.video-placeholder {
    width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: var(--white); cursor: pointer;
    transition: var(--transition);
}
.video-placeholder i { font-size: 3rem; color: var(--secondary); transition: var(--transition); }
.video-card:hover .video-placeholder i { transform: scale(1.15); }
.video-placeholder span { font-size: 0.9rem; font-weight: 500; }
.video-info { padding: 18px; }
.video-info h4 { font-size: 1rem; margin-bottom: 5px; color: var(--primary); }
.video-info p { font-size: 0.85rem; color: var(--text-light); }

/* ===== 16. Downloads ===== */
.downloads-grid {
    display: grid; gap: 15px; max-width: 800px; margin: 0 auto;
}
.download-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--white); padding: 18px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.download-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.download-icon {
    width: 50px; height: 50px; border-radius: var(--radius-sm);
    background: rgba(231,76,60,0.12); color: #e74c3c;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.download-info { flex: 1; min-width: 0; }
.download-info h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 2px; }
.download-info p { font-size: 0.82rem; color: var(--text-light); margin-bottom: 2px; }
.download-meta { font-size: 0.75rem; color: var(--text-light); }
.btn-download {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--secondary); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    transition: var(--transition);
}
.btn-download:hover { background: var(--accent); transform: scale(1.1); }

/* ===== 17. Contact Us ===== */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
}
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
    background: var(--white); padding: 25px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center;
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-icon {
    width: 55px; height: 55px; border-radius: 50%;
    background: rgba(240,165,0,0.12); color: var(--secondary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto 12px;
}
.contact-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.contact-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

.contact-form-wrapper {
    background: var(--white); padding: 35px;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 2px solid #e8ecf1;
    border-radius: var(--radius-sm); font-family: var(--font);
    font-size: 0.9rem; transition: var(--transition);
    outline: none; background: var(--bg-light);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    width: 100%; justify-content: center; padding: 14px;
    font-size: 1rem;
}

/* ===== 18. Map Section ===== */
.map-section { line-height: 0; }
.map-container { width: 100%; }
.map-placeholder {
    background: linear-gradient(135deg, #1a3a6b, #2d5aa0);
    padding: 60px 20px; text-align: center; color: var(--white);
}
.map-content i { font-size: 3rem; color: var(--secondary); margin-bottom: 15px; }
.map-content h3 { font-size: 1.3rem; margin-bottom: 8px; }
.map-content p { margin-bottom: 18px; color: rgba(255,255,255,0.8); }

/* ===== 19. Lightbox ===== */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
}
.lightbox.show { display: flex; }
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    background: none; border: none; color: var(--white);
    font-size: 2.5rem; cursor: pointer; z-index: 10;
    opacity: 0.7; transition: var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none;
    color: var(--white); width: 55px; height: 55px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; z-index: 10;
    transition: var(--transition);
}
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--secondary); color: var(--primary); }
.lightbox-content { max-width: 80vw; max-height: 80vh; text-align: center; }
.lightbox-placeholder {
    max-width: 100%; max-height: 70vh;
    background: linear-gradient(135deg, var(--primary-light), #2d5aa0);
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem; color: var(--secondary);
    aspect-ratio: 16/9; border-radius: var(--radius);
}
.lightbox-caption {
    color: var(--white); margin-top: 15px; font-size: 1rem;
}

/* ===== 20. Footer ===== */
#footer { background: var(--primary); position: relative; }
.footer-wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }
.footer-wave svg { width: 100%; height: 50px; display: block; }

.footer-top { padding: 60px 0 40px; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-about .footer-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 15px;
}
.footer-logo i { font-size: 2rem; color: var(--secondary); }
.footer-logo h3 { font-size: 1.1rem; color: var(--white); }
.footer-logo span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.footer-about p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--primary); }

.footer-links h4, .footer-contact h4 {
    font-size: 1rem; color: var(--white); margin-bottom: 18px;
    position: relative; padding-bottom: 10px;
}
.footer-links h4::after, .footer-contact h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px; background: var(--secondary);
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: rgba(255,255,255,0.6); font-size: 0.88rem;
    transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact p {
    color: rgba(255,255,255,0.6); font-size: 0.88rem;
    margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.footer-contact p i { color: var(--secondary); width: 18px; text-align: center; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}
.footer-bottom-content {
    display: flex; justify-content: space-between; align-items: center;
    color: rgba(255,255,255,0.5); font-size: 0.82rem;
}
.footer-bottom-content i { color: #e74c3c; }

/* ===== 21. Responsive Design ===== */
@media (max-width: 1024px) {
    .academics-grid { grid-template-columns: repeat(2, 1fr); }
    .life-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .principal-message-content { grid-template-columns: 1fr; }
    .principal-img-placeholder { max-width: 250px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed; top: 70px; left: 0; right: 0;
        background: var(--white); flex-direction: column;
        padding: 20px; gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%); opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }
    .nav-menu.active {
        transform: translateY(0); opacity: 1;
        pointer-events: all;
    }
    .nav-link { padding: 12px 16px; width: 100%; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none;
        display: none; padding-left: 20px;
    }
    .dropdown.active .dropdown-menu { display: block; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-card { padding: 20px 15px; }
    .stat-card h3 { font-size: 1.6rem; }

    .about-intro { grid-template-columns: 1fr; gap: 30px; }
    .about-highlights { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .academics-grid { grid-template-columns: 1fr; }
    .life-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom-content { flex-direction: column; gap: 5px; text-align: center; }
    .hero-content { padding: 60px 15px 30px; }
    .hero-wave svg { height: 40px; }

    .principal-message-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .logo-text h1 { font-size: 0.95rem; }
    .logo-text span { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 15px 10px; }
    .stat-card h3 { font-size: 1.3rem; }
    .stat-card p { font-size: 0.8rem; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .download-card { flex-wrap: wrap; }
    .btn-download { width: 40px; height: 40px; font-size: 1rem; }
}
/* ===== NOTICE MARQUEE ===== */

.notice-bar {
    background: #0a1936;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    position: relative;
}

.notice-text {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 15s linear infinite;
    font-weight: 500;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
@keyframes scrollLeft {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}
/* ===== UPDATED GALLERY FOR STAFF ===== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Card Style */
.gallery-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Image */
.gallery-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Info */
.gallery-info {
    padding: 12px;
    text-align: center;
}

.gallery-info h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 2px 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== TEAM SECTION IMPROVEMENT ===== */

#team {
    background: var(--bg-light);
}

#team h2 {
    font-family: var(--font);
    letter-spacing: 0.5px;
}

/* Card Enhancement */
#team .bg-white {
    transition: var(--transition);
    border-radius: var(--radius);
}

#team .bg-white:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Image Styling */
#team img {
    border: 3px solid var(--secondary);
    transition: var(--transition);
}

#team .bg-white:hover img {
    transform: scale(1.05);
}

/* Name Styling */
#team h4 {
    color: var(--primary);
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Role Styling */
#team p.text-gray-500 {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Contact Links */
#team a {
    text-decoration: none;
    transition: var(--transition);
}

#team a:hover {
    color: var(--secondary);
}

/* Section Headings */
#team h3 {
    color: var(--primary);
    position: relative;
}

#team h3::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--secondary);
    position: absolute;
    bottom: -5px;
    left: 0;
}
/* ================= TEAM SECTION FIXES ================= */

/* Ensure consistent card height and alignment */
#team .grid > div {
    transition: all 0.3s ease;
}

/* Card hover effect */
#team .grid > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Uniform image styling */
#team img {
    object-fit: cover;
    border: 3px solid #e5e7eb;
    transition: transform 0.3s ease;
}

/* Image zoom on hover */
#team .grid > div:hover img {
    transform: scale(1.05);
}

/* Fix text spacing inside cards */
#team h4 {
    margin-top: 10px;
    font-size: 15px;
}

#team p {
    margin: 2px 0;
    line-height: 1.3;
}

/* Better grid behavior on small screens */
@media (max-width: 640px) {
    #team .grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}
/* ===== STAFF GRID (5 PER ROW) ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* Card design */
.staff-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    transition: 0.3s;
}

/* Hover effect */
.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Image */
.staff-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    margin-bottom: 10px;
}

/* Text */
.staff-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 5px 0;
}

.staff-card p {
    font-size: 12px;
    margin: 2px 0;
    color: #555;
}

/* Mobile responsive */
@media (max-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* ===== CIRCULAR STAFF IMAGES ===== */
.staff-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
}
.staff-card img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0a1936;
    padding: 2px;
    background: white;
}
.principal-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Circular image */
.principal-photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0a1936;
    margin-bottom: 10px;
    display: block;
}

/* Name styling */
.principal-photo h3 {
    margin: 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0a1936;
}

/* Role styling */
.principal-photo small {
    font-size: 14px;
    color: gray;
}
/* FORCE PROPER GRID BEHAVIOR */
.staff-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 18px;
    align-items: stretch;
}

/* IMPORTANT: prevent breaking layout */
.staff-card {
    width: 100%;
    float: none !important;
    display: block;
}
/* ===== HARD RESET STAFF GRID ===== */
.staff-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* FORCE NO BREAKING */
.staff-card {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* IMAGE FIX */
.staff-card img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

/* SAFETY RESET */
.staff-grid * {
    box-sizing: border-box;
}