/* ==========================================================================
   VP Foundation School - Richi Village, Jollang CSS Stylesheet
   Design Palette: Royal Blue, Golden Yellow, Vibrant Orange, White
   ========================================================================== */

:root {
    /* Core Brand Colors */
    --royal-blue: #1C4ED8; 
    --royal-dark: #1E3A8A; 
    --golden-yellow: #FFB300;
    --vibrant-orange: #FF6A00;
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    
    --font-heading: 'Fredoka', 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.12);
    
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0; 
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.mt-3 { margin-top: 15px; } .mt-4 { margin-top: 25px; } .mt-5 { margin-top: 50px; }
.pt-5 { padding-top: 50px; } .mb-5 { margin-bottom: 50px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; position: relative; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-full);
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    cursor: pointer; border: 2px solid transparent; transition: var(--transition-smooth);
}
.btn-primary { background-color: var(--golden-yellow); color: var(--royal-blue); }
.btn-primary:hover { background-color: #E0A000; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4); }
.btn-secondary { background-color: var(--royal-blue); color: #fff; }
.btn-secondary:hover { background-color: var(--royal-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--royal-blue); color: var(--royal-blue); }
.btn-outline:hover { background-color: var(--royal-blue); color: #fff; }
.btn-block { width: 100%; } .btn-lg { padding: 15px 36px; font-size: 1.1rem; } .btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* Section Titles */
.section-title { margin-bottom: 50px; }
.sub-heading { color: var(--vibrant-orange); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; display: inline-block; margin-bottom: 8px; }
.section-title h2 { font-family: var(--font-heading); font-size: 2.3rem; color: var(--royal-blue); font-weight: 700; }
.section-title h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--royal-blue); font-weight: 600; }
.title-bar { width: 60px; height: 4px; background: linear-gradient(to right, var(--golden-yellow), var(--vibrant-orange)); margin: 12px auto 0 auto; border-radius: var(--radius-full); }

/* Header & Transparent Navbar */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition-smooth); }
.top-bar { background-color: var(--royal-blue); color: #fff; font-size: 0.85rem; padding: 8px 0; }
.top-bar-container, .navbar-container { display: flex; justify-content: space-between; align-items: center; }
.top-info { display: flex; gap: 20px; }
.top-socials { display: flex; gap: 12px; }

.navbar { 
    background: transparent; 
    box-shadow: none; 
    padding: 20px 0; 
    transition: var(--transition-smooth); 
}

.header.scrolled .navbar { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    box-shadow: var(--shadow-soft); 
    padding: 10px 0; 
}

.brand-logo img { height: 90px; transition: var(--transition-smooth); }
.nav-menu { display: flex; align-items: center; gap: 25px; }
.nav-list { display: flex; gap: 20px; align-items: center; }
.nav-link { font-family: var(--font-heading); font-weight: 500; color: var(--text-dark); position: relative; padding: 10px 0; }
.nav-link:hover { color: var(--vibrant-orange); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--royal-blue); border-radius: 3px; }

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-heading);
    color: var(--text-dark);
    transition: var(--transition-fast);
}
.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--vibrant-orange);
}

/* ----------------------------------------------------
   HERO SECTION (DESKTOP)
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%);
}

.vibrant-blobs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15; 
}

.blob-color {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatBlob 12s infinite alternate ease-in-out;
}

.blob-royal { background: var(--royal-blue); width: 40vw; height: 40vw; top: -10%; left: -10%; }
.blob-yellow { background: var(--golden-yellow); width: 35vw; height: 35vw; bottom: 0%; right: 0%; animation-delay: -4s; }
.blob-orange { background: var(--vibrant-orange); width: 30vw; height: 30vw; top: 20%; left: 40%; animation-delay: -8s; }

@keyframes floatBlob {
    0% { transform: translate(0px, 0px) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.1); }
}

.hero-container {
    position: relative;
    z-index: 3;
    padding-top: 80px; 
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 650px;
    padding: 40px 0;
}

.hero-badge {
    background: var(--royal-blue); color: #fff;
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-title {
    font-family: var(--font-heading); 
    font-size: 4.2rem; 
    line-height: 1.15;
    color: var(--royal-blue); 
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); 
}

.mobile-break { display: none; }

.text-gradient {
    background: linear-gradient(90deg, var(--vibrant-orange), var(--golden-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.15));
}

.hero-subtitle { 
    font-size: 1.25rem; color: var(--text-dark); margin-bottom: 35px; 
    font-weight: 600; line-height: 1.6; 
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-actions { display: flex; gap: 15px; margin-bottom: 40px; }

.hero-trust {
    display: flex; gap: 30px; border-top: 2px solid rgba(28, 78, 216, 0.15); padding-top: 25px;
}
.trust-item { display: flex; flex-direction: column; }
.trust-num { 
    font-family: var(--font-heading); font-size: 2rem; font-weight: 700; 
    color: var(--royal-blue); text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.trust-stars { color: var(--golden-yellow); font-size: 0.85rem; }
.trust-label { font-size: 0.95rem; color: var(--royal-blue); font-weight: 700; }

.custom-shape-divider-bottom {
    position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 5;
}
.custom-shape-divider-bottom svg { display: block; width: calc(100% + 1.3px); height: 60px; }

/* ----------------------------------------------------
   General Sections & Theming
   ---------------------------------------------------- */
.bg-royal { background-color: var(--royal-blue); color: #fff; }
.bg-royal-dark { background-color: var(--royal-dark); color: #fff; }
.bg-yellow { background-color: var(--golden-yellow); color: var(--royal-blue); }
.bg-orange { background-color: var(--vibrant-orange); color: #fff; }

.text-royal { color: var(--royal-blue) !important; }
.text-yellow { color: var(--golden-yellow) !important; }
.text-orange { color: var(--vibrant-orange) !important; }
.border-royal { border: 2px solid var(--royal-blue); }
.border-orange { border: 2px solid var(--vibrant-orange); }

.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; }
.about-img-box { position: relative; }
.experience-badge { 
    position: absolute; bottom: -20px; right: -20px; 
    background: var(--vibrant-orange); color: #fff; padding: 20px; 
    border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-soft); 
}

/* Feature Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { 
    position: relative; padding: 45px 30px 30px 65px; margin-top: 20px; 
    border-radius: 20px 80px 80px 80px; box-shadow: 0 12px 25px rgba(0,0,0,0.08); 
    transition: var(--transition-smooth); text-align: left; border: none;
}
.feature-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15); }
.feature-card h3 { font-family: var(--font-heading); margin-bottom: 12px; }
.feature-card.bg-royal h3, .feature-card.bg-royal-dark h3, .feature-card.bg-orange h3 { color: #fff; }
.feature-card.bg-yellow h3 { color: var(--royal-blue); }

.feature-icon { 
    position: absolute; top: -25px; left: -15px; width: 75px; height: 75px; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; 
    font-size: 32px; z-index: 2;
    box-shadow: inset -4px -4px 10px rgba(0,0,0,0.15), 5px 5px 15px rgba(0,0,0,0.2);
    border: 4px solid #ffffff;
}

/* Programs Grid */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.program-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid #EEE; transition: var(--transition-smooth); }
.program-card:hover { transform: translateY(-8px); }
.program-img-wrapper { position: relative; }
.age-badge { position: absolute; top: 15px; right: 15px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; }
.program-content { padding: 25px; }
.program-content h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--royal-blue); }

/* Curriculum Grid */
.curriculum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.curr-box { 
    position: relative; padding: 45px 30px 30px 65px; margin-top: 20px; 
    border-radius: 20px 80px 80px 80px; box-shadow: 0 12px 25px rgba(0,0,0,0.08); 
    transition: var(--transition-smooth); text-align: left; border: none;
}
.curr-box:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15); }
.curr-box h4 { font-family: var(--font-heading); margin-bottom: 12px; }
.curr-box.bg-royal h4, .curr-box.bg-royal-dark h4, .curr-box.bg-orange h4 { color: #fff; }
.curr-box.bg-yellow h4 { color: var(--royal-blue); }
.curr-box.bg-royal p, .curr-box.bg-royal-dark p, .curr-box.bg-orange p { color: rgba(255, 255, 255, 0.9); }
.curr-box.bg-yellow p { color: var(--royal-blue); }

.curr-box .icon-wrapper { 
    position: absolute; top: -25px; left: -15px; width: 75px; height: 75px; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; 
    font-size: 32px; z-index: 2;
    box-shadow: inset -4px -4px 10px rgba(0,0,0,0.15), 5px 5px 15px rgba(0,0,0,0.2);
    border: 4px solid #ffffff;
}

/* Facilities Grid */
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; }
.facility-card { position: relative; border-radius: var(--radius-md); overflow: hidden; height: 240px; box-shadow: var(--shadow-soft); }
.facility-img { width: 100%; height: 100%; object-fit: cover; }
.facility-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28, 78, 216, 0.9), transparent); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.facility-overlay h3 { font-family: var(--font-heading); font-size: 1.3rem; }

/* Gallery */
.gallery-filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: var(--radius-full); border: 1px solid #DDD; background: #fff; font-family: var(--font-heading); cursor: pointer; transition: var(--transition-fast); }
.filter-btn.active, .filter-btn:hover { background: var(--vibrant-orange); color: #fff; border-color: var(--vibrant-orange); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; height: 200px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-smooth); }
.gallery-hover { position: absolute; inset: 0; background: rgba(255, 106, 0, 0.85); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: var(--transition-smooth); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-hover { opacity: 1; }

/* Leadership Messages */
.messages-grid { display: flex; flex-direction: column; gap: 40px; }
.message-card { display: flex; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); overflow: hidden; align-items: stretch; border: 3px solid transparent; transition: var(--transition-smooth); }
.message-card:hover { transform: translateY(-5px); }
.message-card.reverse { flex-direction: row-reverse; }

.message-card.theme-royal { border-color: var(--royal-blue); }
.message-card.theme-royal .message-content-col { background-color: rgba(28, 78, 216, 0.03); }
.message-card.theme-yellow { border-color: var(--golden-yellow); }
.message-card.theme-yellow .message-content-col { background-color: rgba(255, 179, 0, 0.05); }
.message-card.theme-orange { border-color: var(--vibrant-orange); }
.message-card.theme-orange .message-content-col { background-color: rgba(255, 106, 0, 0.04); }

.message-img-col { flex: 0 0 320px; position: relative; overflow: hidden; }
.message-img-col img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

.message-content-col { padding: 40px; flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; }
.quote-mark { position: absolute; top: 20px; right: 30px; font-size: 3rem; opacity: 0.15; }

.message-content-col h3 { font-family: var(--font-heading); margin-bottom: 5px; font-size: 1.8rem; }
.message-content-col .designation { display: block; color: var(--text-dark); font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.message-content-col .designation small { font-weight: 500; opacity: 0.8; text-transform: none; }
.message-content-col p { font-size: 1.05rem; color: var(--text-dark); line-height: 1.7; font-weight: 500; z-index: 2; position: relative; }

/* Testimonials */
.testimonial-slider { max-width: 800px; margin: 0 auto; position: relative; min-height: 220px; }
.testimonial-card { background: #fff; padding: 35px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); display: none; text-align: center; }
.testimonial-card.active { display: block; }
.stars { color: var(--golden-yellow); margin-bottom: 15px; }
.review-text { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; }
.parent-profile img { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto 10px auto; }
.slider-controls { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.slider-controls button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--royal-blue); color: #fff; cursor: pointer; }

/* Downloads & FAQ */
.downloads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.download-card { background: #fff; padding: 25px; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-soft); }
.download-card i { font-size: 40px; margin-bottom: 10px; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--radius-md); margin-bottom: 15px; box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-question { padding: 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-heading); color: var(--royal-blue); }
.faq-answer { padding: 0 20px 20px 20px; display: none; color: var(--text-muted); }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* Forms & Other UI elements */
.form-wizard-wrapper, .contact-form-card, .contact-info-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 40px; margin: 0 auto; max-width: 800px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--royal-blue); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px; border: 1px solid #DDD; border-radius: var(--radius-sm); font-family: inherit; color: var(--text-dark); }

/* Floating Controls */
.floating-actions { position: fixed; bottom: 25px; right: 25px; display: flex; flex-direction: column; gap: 12px; z-index: 999; }
.floating-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 24px; box-shadow: var(--shadow-hover); cursor: pointer; border: none; transition: var(--transition-smooth); }
.floating-btn.whatsapp { background-color: #25D366; }
.floating-btn.call { background-color: var(--royal-blue); }
.floating-btn.top-btn { background-color: var(--vibrant-orange); display: none; }
.floating-btn:hover { transform: translateY(-5px) scale(1.08); }

/* Playful Footer */
.footer-cloud-divider { width: 100%; overflow: hidden; line-height: 0; }
.footer-cloud-divider svg { position: relative; display: block; width: calc(100% + 1.3px); height: 70px; }
.footer-cloud-divider .shape-fill { fill: var(--royal-blue); }
.footer { background: var(--royal-blue); color: #fff; padding: 20px 0 60px 0; }
.footer p { font-family: var(--font-heading); font-size: 1.05rem; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: inline-flex; justify-content: center; align-items: center; color: #fff; transition: var(--transition-fast); }
.footer-socials a:hover { background: var(--golden-yellow); color: var(--royal-blue); transform: translateY(-3px); }

/* Preloader */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-white); z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-spinner { width: 60px; height: 60px; border: 6px solid #f3f3f3; border-top: 6px solid var(--golden-yellow); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}
.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    padding: 20px 30px;
    background: var(--royal-blue);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 { font-family: var(--font-heading); margin: 0; }
.modal-actions { display: flex; align-items: center; gap: 15px; }
.modal-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
    transition: var(--transition-fast);
}
.modal-close:hover { color: var(--golden-yellow); }
.modal-body {
    padding: 30px;
    overflow-y: auto;
}
.pdf-modal { max-width: 1000px; height: 85vh; }
.pdf-container { padding: 0; flex-grow: 1; }
.downloads-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Lightbox (Gallery) */
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; flex-direction: column; }
.lightbox-content { max-width: 98vw; max-height: 98vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; }
.lightbox-caption { color: #fff; margin-top: 15px; font-size: 1.2rem; font-family: var(--font-heading); }

/* ==========================================================================
   MOBILE RESPONSIVENESS (COMPACT UI FOCUSED)
   ========================================================================== */

@media (max-width: 992px) {
    .hero-title { font-size: 3.2rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    /* Highly Compact Mobile Sections */
    .section { padding: 40px 0; }
    .container { padding: 0 15px; }
    
    .hamburger { display: flex; }
    
    .navbar { padding: 10px 0; }
    .header.scrolled .navbar { padding: 8px 0; }
    .brand-logo img { height: 50px; }
    
    .nav-menu { 
        position: fixed; top: 60px; right: -100%; 
        width: 280px; height: 100vh; background: #fff; 
        flex-direction: column; padding: 30px 20px; 
        box-shadow: var(--shadow-hover); transition: var(--transition-smooth); 
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }
    .nav-list { flex-direction: column; width: 100%; align-items: flex-start; gap: 10px; }
    .nav-link { width: 100%; padding: 8px 0; }
    .top-bar { display: none; }

    /* Mobile Dropdown */
    .nav-dropdown { width: 100%; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 15px;
        background: transparent;
    }
    .nav-dropdown.active .dropdown-menu { display: block; }
    
    .hero-section { 
        min-height: auto; 
        display: block; 
        padding-top: 60px; 
        padding-bottom: 60px; 
        background: var(--bg-light); 
    }
    
    .hero-bg-image {
        position: relative; 
        height: 60vw; 
        background-size: contain; 
        background-position: center bottom;
        background-repeat: no-repeat;
        z-index: 2;
    }
    
    .hero-bg-image::after { 
        display: none; 
    }
    
    .mobile-break { display: block; }
    
    .hero-container { 
        padding-top: 15px; 
        text-align: center; 
    }
    
    .hero-content { padding: 0; max-width: 100%; }
    
    .hero-title { 
        font-size: 2.8rem; margin-bottom: 10px; 
        text-shadow: none; 
    }
    
    .hero-subtitle { 
        font-size: 1.1rem; padding: 0 10px; 
        text-shadow: none; margin-bottom: 25px;
    }
    
    .hero-actions { flex-direction: column; gap: 10px; width: 100%; padding: 0 10px; margin-bottom: 25px; }
    .hero-actions .btn { width: 100%; padding: 14px 20px; font-size: 1.1rem; }
    
    .hero-trust { justify-content: center; flex-wrap: wrap; gap: 15px; padding-top: 15px; }
    .trust-num { font-size: 1.6rem; }
    .trust-label { font-size: 0.85rem; }

    .about-img-box { margin-bottom: 25px; padding: 0 10px; }
    .experience-badge { 
        position: relative; 
        right: auto; bottom: auto; 
        margin: -30px auto 0 auto; 
        width: 90%; 
        padding: 12px;
        z-index: 2;
    }
    
    .section-title { margin-bottom: 25px; }
    .section-title h2 { font-size: 1.8rem; line-height: 1.2; }
    .sub-heading { font-size: 0.8rem; margin-bottom: 4px; }
    
    /* 2 Columns on Mobile for Features and Curriculum */
    .features-grid, .curriculum-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    /* Adjusting cards to fit 2-up */
    .feature-card, .curr-box { padding: 30px 10px 15px 25px; margin-top: 15px; margin-left: 5px; border-radius: 15px 40px 40px 40px; }
    .feature-icon, .curr-box .icon-wrapper { width: 45px; height: 45px; font-size: 20px; left: -10px; top: -15px; border-width: 2px; }
    
    .feature-card h3, .curr-box h4 { font-size: 0.85rem; margin-bottom: 5px; }
    .feature-card p, .curr-box p { font-size: 0.65rem; line-height: 1.3; }
    
    .about-grid, .contact-grid { gap: 20px; }
    
    /* Force 3 Columns on Mobile for Programs */
    .programs-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .program-content { padding: 10px; }
    .program-content h3 { font-size: 0.9rem; margin-bottom: 5px; }
    .program-duration { font-size: 0.7rem; margin-bottom: 5px; }
    .program-content p { font-size: 0.7rem; line-height: 1.2; margin-bottom: 8px; }
    .program-card .btn { font-size: 0.7rem; padding: 6px 4px; }
    .age-badge { font-size: 0.6rem; padding: 4px 6px; top: 10px; right: 10px; }
    
    .form-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 15px; }
    .form-wizard-wrapper, .contact-form-card, .contact-info-card { padding: 20px 15px; }
    .form-group input, .form-group select, .form-group textarea { padding: 12px; }
    
    .floating-actions { bottom: 15px; right: 15px; gap: 10px; }
    .floating-btn { width: 45px; height: 45px; font-size: 18px; }

    /* Compact Mobile Leadership Cards */
    .messages-grid { gap: 15px; }
    .message-card, .message-card.reverse { flex-direction: column; border-radius: var(--radius-md); }
    .message-img-col { flex: none; width: 100%; height: auto; position: relative; display: block; }
    .message-img-col img { position: static; width: 100%; height: auto; display: block; }
    .message-content-col { padding: 15px; }
    .quote-mark { top: 10px; right: 10px; font-size: 1.5rem; }
    .message-content-col h3 { font-size: 1.3rem; margin-bottom: 2px; }
    .message-content-col .designation { font-size: 0.75rem; margin-bottom: 10px; }
    .message-content-col p { font-size: 0.9rem; line-height: 1.4; }
    
    body { padding-bottom: 60px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.3rem; }
    .modal-actions .btn { font-size: 0.8rem; padding: 6px 10px; }
    
    .facilities-grid, .gallery-grid { grid-template-columns: 1fr; }
    
    /* Keep features and curriculum at 2 columns */
    .features-grid, .curriculum-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .feature-card, .curr-box { padding: 25px 8px 10px 20px; border-radius: 10px 30px 30px 30px; margin-left: 5px;}
    .feature-icon, .curr-box .icon-wrapper { width: 35px; height: 35px; font-size: 16px; left: -8px; top: -12px;}
    .feature-card h3, .curr-box h4 { font-size: 0.75rem; }
    .feature-card p, .curr-box p { font-size: 0.6rem; }
    
    /* Ensure 3 Columns remains strictly active on small phones for programs */
    .programs-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
    .program-content { padding: 8px 5px; }
    .program-content h3 { font-size: 0.8rem; margin-bottom: 3px; }
    .program-duration { font-size: 0.65rem; margin-bottom: 3px; }
    .program-content p { font-size: 0.65rem; line-height: 1.1; margin-bottom: 6px; }
    .program-card .btn { font-size: 0.65rem; padding: 5px 2px; }
    .age-badge { font-size: 0.5rem; padding: 3px 5px; top: 5px; right: 5px; }
}