:root {
    --primary-green: #256e39;      /* Forest Green matching exact top ribbon */
    --primary-dark: #1b532b;
    --primary-light: #2e8b47;
    --accent-gold: #cfa838;
    --accent-gold-light: #fef8e7;
    --charcoal: #2a3138;
    --slate-gray: #4a5568;
    --light-gray: #f7fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.09);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--charcoal);
    background-color: #fbfcfb;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ===================================================
   TOP BAR (CBSE Affiliation & Social Icons)
   =================================================== */
.top-bar {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 9px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.top-affiliation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.top-affiliation i {
    font-size: 1.15rem;
}

.top-social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-social-links a {
    color: var(--white);
    font-size: 1.05rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.top-social-links a:hover {
    transform: translateY(-2px);
    opacity: 1;
    color: #e2fbd8;
}

/* ===================================================
   MAIN NAVBAR
   =================================================== */
.main-header {
    background: var(--white);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-content {
    display: grid;
    grid-template-columns: minmax(250px, 295px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}

/* Brand Logo Emblem */
.brand-container {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.school-emblem {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.emblem-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

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

.school-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.2;
    letter-spacing: 0.25px;
    max-width: 205px;
}

.school-tagline {
    font-size: 0.58rem;
    color: var(--slate-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(8px, 1.2vw, 18px);
}

.nav-links li a {
    font-size: 0.84rem;
    font-weight: 600;
    color: #2b3b2f;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-green);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Contact box on right */
.nav-contact-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.76rem;
    line-height: 1.4;
    border-left: 2px solid #ebf2ec;
    padding-left: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.contact-label {
    font-weight: 700;
    color: #2b3b2f;
}

.contact-val {
    color: var(--primary-green);
    font-weight: 700;
}

.contact-val:hover {
    text-decoration: underline;
}

.separator {
    color: #a0aec0;
    margin: 0 2px;
}

.email-row {
    margin-top: 2px;
    color: var(--primary-green);
    font-weight: 600;
}

.email-row i {
    font-size: 0.95rem;
    margin-right: 2px;
}

.email-row a {
    white-space: nowrap;
    color: var(--primary-green);
}

.email-row a:hover {
    text-decoration: underline;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* ===================================================
   HERO BANNER (MATCHING THE UPLOADED PHOTOGRAPH)
   =================================================== */
.hero-banner-section {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #000;
}

.hero-slider-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 31, 20, 0.72) 0%, rgba(10, 31, 20, 0.48) 46%, rgba(10, 31, 20, 0.04) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.36), transparent 56%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 28px 40px 20px;
    text-align: left;
    color: var(--white);
}

.hero-badge {
    background: rgba(37, 110, 57, 0.88);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-overlay h1 {
    font-size: 1.9rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
    margin-bottom: 8px;
    max-width: 760px;
}

.hero-overlay p {
    font-size: 1.15rem;
    max-width: 580px;
    color: #f0f7f2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 24px;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 110, 57, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 110, 57, 0.6);
}

.btn-accent {
    background-color: var(--accent-gold);
    color: #1a221a;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(207, 168, 56, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #ba9328;
    transform: translateY(-2px);
}

/* Dots indicator from the bottom of photograph */
.hero-dots-indicator {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: #25d366;
    width: 24px;
    border-radius: 8px;
}

/* ===================================================
   QUICK ACTION ICON STRIP (Matching lower photo strip)
   =================================================== */
.action-strip-section {
    background: #9ab47a; /* Olive tinted accent banner as in bottom teaser */
    background: linear-gradient(135deg, #8ba868 0%, #9cb978 100%);
    padding: 18px 0;
    color: var(--white);
    border-bottom: 3px solid #739050;
}

.action-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.action-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    transition: var(--transition);
}

.action-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.action-card i {
    font-size: 1.8rem;
    color: #ffffff;
}

.action-card .action-title {
    font-size: 1.02rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
}

.action-card .action-sub {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ===================================================
   ANNOUNCEMENT TICKER / NOTICE
   =================================================== */
.ticker-wrap {
    background: #edf7ee;
    border-bottom: 1px solid #d4ebd7;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.ticker-title {
    background: var(--primary-green);
    color: white;
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    margin-right: 15px;
    white-space: nowrap;
}

.ticker-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-size: 0.92rem;
    font-weight: 500;
    color: #244b2c;
}

.ticker-content a {
    color: var(--primary-green);
    font-weight: 700;
    margin: 0 15px;
}

.ticker-content a:hover {
    text-decoration: underline;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===================================================
   GENERAL SECTION STYLES
   =================================================== */
.section {
    padding: 65px 0;
}

.section-light {
    background-color: #f7faf7;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-subtitle {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e3523;
    line-height: 1.25;
}

.section-title-line {
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===================================================
   WELCOME / PRINCIPAL SECTION
   =================================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.welcome-img-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-img-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.welcome-badge-floating {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(37, 110, 57, 0.92);
    backdrop-filter: blur(8px);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-gold);
}

.welcome-badge-floating h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.welcome-badge-floating p {
    font-size: 0.82rem;
    opacity: 0.9;
}

.welcome-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    color: #1c3d24;
    margin-bottom: 16px;
    line-height: 1.3;
}

.welcome-text p {
    color: var(--slate-gray);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.features-check-list {
    margin: 20px 0 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.features-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #2b3b2f;
}

.features-check-list li i {
    color: var(--primary-green);
    font-size: 1rem;
}

/* ===================================================
   KEY STATS COUNTER STRIP
   =================================================== */
.stats-strip {
    background: var(--primary-green);
    color: white;
    padding: 45px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    align-items: center;
    max-width: 1120px;
    margin-inline: auto;
}

.stats-strip .stats-grid {
    width: min(92%, 1500px);
    max-width: 1500px;
}

.stat-item i {
    font-size: 2.4rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ===================================================
   FACILITIES & INFRASTRUCTURE CARDS
   =================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-box {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #c4e0c8;
}

.feature-box-icon-head {
    height: 130px;
    background: linear-gradient(135deg, #edf7ee 0%, #e1efe3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 3rem;
}

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

.feature-box-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3523;
    margin-bottom: 10px;
}

.feature-box-body p {
    font-size: 0.92rem;
    color: var(--slate-gray);
    margin-bottom: 18px;
    flex-grow: 1;
}

.feature-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.feature-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ===================================================
   ADMISSION / ENQUIRY FORM (DYNAMIC PHP)
   =================================================== */
.admission-banner {
    background: linear-gradient(rgba(20, 50, 30, 0.92), rgba(20, 50, 30, 0.92)), url('../images/hero-banner.jpg') center/cover;
    color: white;
    padding: 60px 0;
}

.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.admission-details h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.admission-details p {
    font-size: 1rem;
    color: #e2f0e4;
    margin-bottom: 25px;
}

.admission-step-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admission-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-num {
    width: 38px;
    height: 38px;
    background: var(--accent-gold);
    color: #111;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

.step-info p {
    font-size: 0.88rem;
    color: #c7ded0;
    margin-bottom: 0;
}

.form-card {
    background: var(--white);
    color: var(--charcoal);
    padding: 35px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 8px;
    text-align: center;
}

.form-card p {
    font-size: 0.88rem;
    color: var(--slate-gray);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2b3b2f;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(37, 110, 57, 0.15);
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #198754;
}

/* ===================================================
   GALLERY PREVIEW GRID
   =================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 110, 57, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 15px;
    text-align: center;
}

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

.gallery-overlay i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.gallery-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================================
   PAGE HERO (SUBPAGES)
   =================================================== */
.subpage-hero {
    background: linear-gradient(rgba(24, 60, 35, 0.9), rgba(24, 60, 35, 0.9)), url('../images/hero-banner.jpg') center/cover;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.subpage-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.breadcrumbs {
    font-size: 0.92rem;
    color: #e0f2e2;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.breadcrumbs a {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===================================================
   MPD / COMPLIANCE TABLE (CBSE Requirement)
   =================================================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 25px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.custom-table th,
.custom-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.94rem;
}

.custom-table th {
    background: #edf7ee;
    color: var(--primary-green);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.custom-table tr:hover {
    background-color: #fcfdfc;
}

.btn-table-doc {
    background: var(--primary-green);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-table-doc:hover {
    background: var(--primary-dark);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer-section {
    background-color: #19271d;
    color: #e2e8f0;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 50px;
}

.brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
}

.brand-col .footer-logo i {
    color: var(--accent-gold);
    font-size: 1.6rem;
}

.brand-col .footer-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.footer-desc {
    font-size: 0.88rem;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #cbd5e1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links li a i {
    font-size: 0.75rem;
    color: var(--primary-green);
}

.footer-links li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-contact li i {
    color: var(--accent-gold);
    font-size: 1.05rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-links {
    display: flex;
    gap: 20px;
}

.bottom-links a {
    color: #94a3b8;
}

.bottom-links a:hover {
    color: white;
}

/* ===================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   =================================================== */
@media (max-width: 1024px) {
    .nav-content {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nav-links {
        justify-content: flex-start;
        gap: 14px;
    }

    .nav-contact-box {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px 4%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.show {
        display: flex;
    }
    
    .action-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        gap: 15px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-content {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .school-emblem {
        width: 60px;
        height: 60px;
    }

    .school-name {
        font-size: 0.92rem;
        max-width: 210px;
    }

    .school-tagline {
        white-space: normal;
        font-size: 0.52rem;
    }

    .hero-banner-section {
        height: 420px;
    }

    .hero-overlay {
        padding: 32px 22px 52px 20px;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .welcome-grid,
    .admission-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid .stat-item:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: 50%;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .action-strip-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
