/* ==========================================================================
   DESIGN SYSTEM & CONSTANTS
   ========================================================================== */
:root {
    /* Colors */
    --navy-blue: #0B1F3A;
    --royal-blue: #155EEF;
    --sky-blue: #EAF4FF;
    --gold-yellow: #F4B400;
    --gold-hover: #D99A00;
    --white: #FFFFFF;
    --soft-gray: #F6F8FB;
    --text-dark: #1F2937;
    --text-muted: #4B5563;
    --border-color: #E5E7EB;
    
    /* Gaps & Paddings */
    --section-pad: 80px;
    --container-max-w: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(11, 31, 58, 0.05);
    --shadow-md: 0 8px 16px rgba(11, 31, 58, 0.08);
    --shadow-lg: 0 16px 32px rgba(11, 31, 58, 0.12);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--navy-blue);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-pad) 0;
}

.bg-light {
    background-color: var(--soft-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--royal-blue);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 12px;
}

.section-underline {
    width: 60px;
    height: 4px;
    background-color: var(--gold-yellow);
    margin: 0 auto;
    border-radius: 2px;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--royal-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0b4ec7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 94, 239, 0.25);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--navy-blue);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--soft-gray);
    transform: translateY(-2px);
}

.btn-secondary-light {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary-light:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold-yellow);
    color: var(--navy-blue);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.35);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* ==========================================================================
   1. TOP CONTACT BAR
   ========================================================================== */
.top-bar {
    background-color: var(--navy-blue);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 24px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-icon {
    width: 14px;
    height: 14px;
    color: var(--gold-yellow);
}

.top-bar-left a:hover {
    color: var(--gold-yellow);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-admissions {
    background-color: var(--gold-yellow);
    color: var(--navy-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
    font-weight: 600;
}

.whatsapp-btn-top:hover {
    color: var(--white);
}

.whatsapp-icon {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   2. NAVBAR
   ========================================================================== */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    padding: 4px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-smooth);
}

.header.scrolled .navbar-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.logo:hover .logo-icon {
    background-color: var(--royal-blue);
    color: var(--white);
    transform: rotate(-5deg);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.school-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy-blue);
    line-height: 1.15;
}

.school-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--navy-blue);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--royal-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--royal-blue);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--navy-blue);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    background: radial-gradient(circle at 100% 0%, var(--sky-blue) 0%, var(--white) 60%);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 130px);
}

.hero-badge {
    display: inline-block;
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(21, 94, 239, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Stats Cards */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 94, 239, 0.2);
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.stat-icon-wrapper.cbse { background-color: #E6F4EA; color: #137333; }
.stat-icon-wrapper.sec { background-color: #FEF7E0; color: #B06000; }
.stat-icon-wrapper.disc { background-color: #E8F0FE; color: #1A73E8; }
.stat-icon-wrapper.excel { background-color: #FCE8E6; color: #C5221F; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy-blue);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Visual & Floating Elements */
.hero-visual {
    height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle, rgba(21, 94, 239, 0.04) 0%, rgba(21, 94, 239, 0) 70%);
}

.hero-image-frame {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 2;
    background-color: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Base floating animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-item {
    position: absolute;
    animation: float var(--float-duration) ease-in-out var(--float-delay) infinite;
    z-index: 5;
}

/* 1. Shield */
.school-shield {
    top: 30%;
    left: 30%;
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, var(--navy-blue), #1c3559);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
}

.shield-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
}

.shield-svg {
    width: 60px;
    height: 60px;
    color: var(--gold-yellow);
    margin-bottom: 8px;
}

.shield-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
}

/* 2. Cap */
.float-cap {
    top: 15%;
    right: 15%;
    background-color: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    color: #4338CA;
    border: 1px solid var(--border-color);
}

.float-cap svg {
    width: 32px;
    height: 32px;
}

/* 3. Book */
.float-book {
    bottom: 20%;
    left: 15%;
    background-color: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    color: #059669;
    border: 1px solid var(--border-color);
}

.float-book svg {
    width: 32px;
    height: 32px;
}

/* 4. Pencil */
.float-pencil {
    top: 55%;
    right: 10%;
    background-color: var(--white);
    padding: 14px;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    color: #DC2626;
    border: 1px solid var(--border-color);
}

.float-pencil svg {
    width: 24px;
    height: 24px;
}

/* 5. Trophy */
.float-trophy {
    top: 10%;
    left: 10%;
    background-color: var(--white);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    color: var(--gold-yellow);
    border: 1px solid var(--border-color);
}

.float-trophy svg {
    width: 30px;
    height: 30px;
}

/* 6. Stars */
.float-star {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.star-1 { top: 40%; right: 35%; }
.star-2 { bottom: 45%; left: 38%; }
.star-3 { bottom: 15%; right: 25%; }

/* 7. Floating Card */
.achievement-float-card {
    bottom: 15%;
    right: 8%;
    background-color: var(--white);
    border-left: 5px solid var(--royal-blue);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ach-card-inner {
    display: flex;
    flex-direction: column;
}

.ach-num {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--royal-blue);
    line-height: 1.1;
}

.ach-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   4. ABOUT SCHOOL SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-image-wrapper {
    margin: 28px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.about-feature-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-feature-img {
    transform: scale(1.03);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--navy-blue);
}

.highlight-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
}

.about-cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.value-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 94, 239, 0.2);
}

.val-icon-box {
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.val-icon-box svg {
    width: 26px;
    height: 26px;
}

.val-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.val-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   5. WHY CHOOSE US SECTION
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    background-color: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 94, 239, 0.25);
}

.why-icon {
    font-size: 2.25rem;
    margin-bottom: 20px;
    background-color: var(--soft-gray);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   6. ACADEMICS SECTION
   ========================================================================== */
.academics-pillars {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.pillar-chip {
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(21, 94, 239, 0.1);
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.academic-level-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.academic-level-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.academic-banner {
    padding: 28px 24px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.academic-banner h3 {
    color: var(--white);
    font-size: 1.25rem;
}

.age-badge {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.bg-grad-1 { background: linear-gradient(135deg, #155EEF, #003FB4); }
.bg-grad-2 { background: linear-gradient(135deg, #4338CA, #2E2594); }
.bg-grad-3 { background: linear-gradient(135deg, #0D9488, #0B766C); }
.bg-grad-4 { background: linear-gradient(135deg, var(--navy-blue), #030C16); }

.academic-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.academic-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.academic-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.academic-list li {
    font-size: 0.85rem;
    color: var(--navy-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.academic-list li::before {
    content: '▪';
    color: var(--royal-blue);
    font-size: 1.1rem;
}

/* ==========================================================================
   7. FACILITIES SECTION
   ========================================================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.facility-card {
    background-color: var(--white);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 94, 239, 0.25);
}

.facility-icon-wrap {
    width: 52px;
    height: 52px;
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.facility-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.facility-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.facility-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   8. ADMISSIONS SECTION
   ========================================================================== */
.admissions-box {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #15335e 100%);
    border-radius: 24px;
    color: var(--white);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    box-shadow: var(--shadow-lg);
}

.admissions-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admission-meta {
    display: inline-block;
    color: var(--gold-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.admissions-content h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.admissions-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

.admissions-actions {
    display: flex;
    gap: 16px;
}

.admissions-steps h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 24px;
    border-left: 4px solid var(--gold-yellow);
    padding-left: 12px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    background-color: var(--gold-yellow);
    color: var(--navy-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-desc h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.step-desc p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ==========================================================================
   9. GALLERY SECTION
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* CSS Gradients as beautiful placeholders and actual images */
.gallery-item.item-1 { background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('images/school_campus.png'); }
.gallery-item.item-2 { background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('images/classroom_learning.png'); }
.gallery-item.item-3 { background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('images/sports_activities.png'); }
.gallery-item.item-4 { background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('images/cultural_events.png'); }
.gallery-item.item-5 { background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('images/classroom_learning.png'); }
.gallery-item.item-6 { background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7)), url('images/school_campus.png'); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: var(--transition-smooth) 0.1s;
}

.gallery-item:hover .gallery-overlay p {
    opacity: 1;
}

/* ==========================================================================
   10. ACHIEVEMENTS SECTION
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ach-card {
    background-color: var(--white);
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.ach-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 94, 239, 0.25);
}

.ach-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ach-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    background-color: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.ach-card h3 {
    font-size: 1.15rem;
}

.ach-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   11. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 36px 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 94, 239, 0.2);
}

.rating {
    color: var(--gold-yellow);
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.testi-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-avatar {
    background-color: var(--royal-blue);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    background-color: var(--sky-blue);
    color: var(--royal-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 22px;
    height: 22px;
}

.detail-text h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.detail-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-text a.phone-link {
    color: var(--royal-blue);
    font-weight: 700;
}

.detail-text a.phone-link:hover {
    text-decoration: underline;
}

.landmark-text {
    display: inline-block;
    font-size: 0.8rem;
    background-color: var(--sky-blue);
    color: var(--navy-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 4px;
}

.contact-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Contact Form Column */
.form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--soft-gray);
    color: var(--text-dark);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background-color: var(--white);
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid {
    border-color: #DC2626;
    background-color: #FEF2F2;
}

.error-msg {
    color: #DC2626;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    display: none;
}

.required {
    color: #DC2626;
}

.btn-submit-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
    color: var(--gold-yellow);
}

.footer-logo span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.05);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold-yellow);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--gold-yellow);
    transform: translateX(4px);
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-details li {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.foot-icon {
    font-size: 1.1rem;
}

.footer-contact-details a:hover {
    color: var(--gold-yellow);
}

.footer-col.cta-col p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-cta-btn {
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 30px 0;
    background-color: #050E1A;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.design-credits {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* ==========================================================================
   SCROLL REVEAL & MICRO-ANIMATIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--royal-blue);
    color: var(--white);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--navy-blue);
    transform: translateY(-4px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST AND BREAKPOINTS)
   ========================================================================== */

/* Laptop / Medium Desktops (1024px) */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .academics-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .admissions-box { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    :root {
        --section-pad: 50px;
    }
    
    .top-bar-left { display: none; }
    .top-bar-container { justify-content: center; }
    
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 40px 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
        border-bottom: 1px solid var(--soft-gray);
        padding: 12px 0;
    }
    
    .nav-link::after { display: none; }
    
    .btn-nav-cta {
        margin-top: 20px;
        width: 100%;
        padding: 14px;
    }
    
    .hamburger.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 30px;
        text-align: center;
    }
    
    .hero-actions { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-visual { height: 350px; }
    .school-shield { width: 140px; height: 140px; }
    
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .section-title { font-size: 1.85rem; }
}

/* Mobile Phones (480px) */
@media (max-width: 480px) {
    .top-bar { font-size: 0.8rem; }
    .top-bar-right { flex-direction: column; gap: 6px; }
    .badge-admissions { font-size: 0.7rem; }
    
    .logo-icon { width: 38px; height: 38px; }
    .logo-icon svg { width: 20px; height: 20px; }
    .school-name { font-size: 1.1rem; }
    .school-tagline { font-size: 0.65rem; }
    
    .hero-title { font-size: 2.15rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    
    .why-grid { grid-template-columns: 1fr; }
    .academics-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .admissions-box { padding: 30px 20px; }
    .admissions-actions { flex-direction: column; }
    
    .form-container { padding: 24px 16px; }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
