/*
  Shrimathi Ranganayaki Ammal Nursery & Primary School
  Central Stylesheet — Red & White Brand Theme
  Version 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    --primary:        #C62828;
    --primary-light:  #E53935;
    --primary-dark:   #8B0000;
    --primary-soft:   rgba(198, 40, 40, 0.08);

    --white:          #FFFFFF;
    --bg-light:       #FAFAFA;
    --bg-card:        #FFFFFF;
    --accent:         #F5F5F5;
    --accent-dark:    #E0E0E0;

    --text-dark:      #1A1A1A;
    --text-light:     #616161;
    --text-muted:     #9E9E9E;

    --border:         #E0E0E0;
    --border-light:   #F5F5F5;

    --font-heading:   'Playfair Display', Georgia, serif;
    --font-body:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

    --shadow-sm:      0 2px 6px rgba(198, 40, 40, 0.06);
    --shadow-md:      0 10px 24px rgba(198, 40, 40, 0.08);
    --shadow-lg:      0 20px 44px rgba(198, 40, 40, 0.12);
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body.no-scroll {
    overflow: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

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

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

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border: 2px solid var(--bg-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-light  { color: var(--text-light); }
.text-muted  { color: var(--text-muted); }
.mt-4        { margin-top: 2.5rem; }
.mt-5        { margin-top: 3.5rem; }
.mb-4        { margin-bottom: 2.5rem; }

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6.5rem 0;
    position: relative;
}

.section-bg-white { background-color: var(--white); }

.section-bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}
.section-bg-dark p              { color: var(--text-muted); }
.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3             { color: var(--white); }

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header .tag,
.tag {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-header p { font-size: 1.125rem; }

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
    align-items: center;
}

/* ============================================================
   HEADER & NAVBAR
   ============================================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 1.25rem 0;
}

.main-header.scrolled {
    background-color: rgba(139, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-bottom {
        padding-bottom: 4.5rem; /* Prevents WhatsApp float overlap */
    }
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.school-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.school-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.main-header:not(.scrolled) .school-title { color: var(--primary-dark); }

.school-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.main-header.scrolled .school-subtitle { color: rgba(255,255,255,0.75); }

/* Desktop Nav */
.desktop-nav { display: block; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

.main-header:not(.scrolled) .nav-link { color: var(--primary-dark); }

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

.main-header.scrolled .nav-link::after { background-color: var(--white); }

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

.nav-link:hover,
.nav-link.active { color: var(--primary) !important; }

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active { color: var(--white) !important; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Hamburger */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.main-header:not(.scrolled) .mobile-menu-toggle .bar { background-color: var(--primary-dark); }

.mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-dark);
    padding: 6rem 2rem 2rem 2rem;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav-drawer.open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: block;
}

.mobile-link:hover,
.mobile-link.active {
    color: rgba(255,255,255,0.7);
    padding-left: 0.5rem;
}

.btn-mobile-cta { margin-top: 1.5rem; width: 100%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

/* Red filled button (primary CTA) */
.btn-primary,
.btn-gold { /* .btn-gold kept for backward compat */
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-gold:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.3);
}

/* White filled button (on dark backgrounds) */
.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

/* Outline red */
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Outline white */
.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Small nav CTA variant */
.btn-nav-cta {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(198, 40, 40, 0.05) 0%, rgba(255,255,255,0) 70%), var(--bg-light);
    position: relative;
    padding-top: 7rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(198, 40, 40, 0.08);
    border: 1px solid rgba(198, 40, 40, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-tag span {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-motto {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visuals */
.hero-visuals {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(198, 40, 40, 0.07) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

/* Floating Circles */
.floating-circle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    text-align: center;
}

.circle-1 {
    width: 220px;
    height: 220px;
    top: 5%;
    left: 10%;
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary);
    animation: float-slow 6s ease-in-out infinite;
}

.circle-1 h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.circle-1 p {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.circle-2 {
    width: 180px;
    height: 180px;
    bottom: 8%;
    right: 5%;
    background-color: var(--white);
    border-color: var(--primary-light);
    animation: float-mid 5s ease-in-out infinite alternate;
}

.circle-2-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.circle-2 h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--primary-dark);
}

.circle-2 p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-light);
}

.floating-leaf {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    right: 55%;
    background-color: var(--primary);
    border-radius: 50% 0 50% 0;
    z-index: 3;
    animation: float-fast 4s ease-in-out infinite;
    opacity: 0.85;
}

/* ============================================================
   ADMISSIONS BANNER
   ============================================================ */
.admission-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 3px solid rgba(255,255,255,0.2);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.banner-text-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-badge {
    background-color: var(--white);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    animation: blink 1.5s infinite;
    white-space: nowrap;
}

.banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.banner-title span { color: rgba(255,255,255,0.85); font-style: italic; }

.banner-cta-side {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-seats-alert {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* ============================================================
   HIGHLIGHTS ROW
   ============================================================ */
.highlights-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.highlight-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(198, 40, 40, 0.2);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.highlight-card h3 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.highlight-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ============================================================
   CARD NOTICES (Announcements)
   ============================================================ */
.card-notice {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-light);
    border-radius: 0 12px 12px 0;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-notice:hover {
    border-left-color: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.notice-title {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.notice-body {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.notice-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.notice-link:hover { color: var(--primary-dark); }

/* ============================================================
   CONTENT IMAGE WRAPPER (Placeholders)
   ============================================================ */
.content-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    aspect-ratio: 4/3;
    background-color: var(--accent-dark);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    text-align: center;
    padding: 2rem;
}

.placeholder-img svg {
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--primary);
}

.placeholder-img span {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============================================================
   ABOUT — VALUE CARDS, FEATURES, PRINCIPAL
   ============================================================ */
.value-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-top: 4px solid var(--primary);
}

.value-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-icon { font-size: 1.75rem; color: var(--primary); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 { margin-bottom: 0.35rem; font-size: 1.125rem; }
.feature-item p  { font-size: 0.9rem; margin-bottom: 0; }

/* Director / Principal Message Box */
.principal-section,
.director-section {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.principal-grid,
.director-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
}

.principal-quote,
.director-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary);
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-soft);
}

.principal-quote::before,
.director-quote::before {
    content: '\201C';
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.3;
}

.principal-name,
.director-name {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.principal-title,
.director-title {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ============================================================
   ACHIEVEMENTS STRIP
   ============================================================ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.achievement-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-bottom: 4px solid var(--primary);
    transition: var(--transition);
}

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

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.achievement-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.achievement-card p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-light);
}

/* ============================================================
   ACADEMICS — CLASS CARDS, PROGRAMS
   ============================================================ */
.class-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.class-card-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--primary-dark);
}

.class-card-header h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.class-card-age {
    background-color: rgba(255,255,255,0.15);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.class-card-body { padding: 2rem; }

.class-details-list {
    list-style: none;
    margin-bottom: 2rem;
}

.class-details-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.925rem;
    color: var(--text-light);
}

.class-details-list li:last-child { border-bottom: none; }
.class-details-list svg { color: var(--primary); flex-shrink: 0; }

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.program-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(198, 40, 40, 0.2);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.program-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.program-card p  { font-size: 0.925rem; margin-bottom: 0; }

/* ============================================================
   ADMISSIONS — ROADMAP, CHECKLIST, CTA BOX
   ============================================================ */
.roadmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-bottom: 4rem;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 4px;
    background-color: var(--border-light);
    z-index: 1;
}

.roadmap-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.roadmap-step:hover .step-number {
    border-color: var(--primary-dark);
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.roadmap-step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.roadmap-step p  { font-size: 0.85rem; padding: 0 0.5rem; }

.info-checklist-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.checklist-wrapper {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.checklist svg { color: var(--primary); margin-top: 0.2rem; flex-shrink: 0; }

.cta-box-sticky {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    border-bottom: 4px solid rgba(255,255,255,0.2);
    position: sticky;
    top: 100px;
}

.cta-box-sticky h3 { color: var(--white); margin-bottom: 1rem; }
.cta-box-sticky p  { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 2rem; }

/* WhatsApp CTA inside pages */
.whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: #25D366;
    color: var(--white);
    padding: 0.85rem 1.85rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.whatsapp-cta-btn:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    color: var(--white);
}

/* ============================================================
   EVENTS — FEATURED EVENT, EVENT CARDS, CIRCULARS
   ============================================================ */
.featured-event-box {
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 5rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.featured-content { padding: 4rem; }

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-soft);
    border: 1px solid rgba(198, 40, 40, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.featured-content h3 { font-size: 2.25rem; margin-bottom: 1rem; }

.featured-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.featured-content p { font-size: 1.05rem; margin-bottom: 2rem; }

.event-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    transition: var(--transition);
}

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

.event-visual {
    width: 260px;
    flex-shrink: 0;
    position: relative;
}

.event-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    z-index: 2;
}

.event-badge .day   { font-size: 1.25rem; font-weight: 800; }
.event-badge .month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; }

.event-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-meta {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-content h3 { margin-bottom: 0.75rem; font-size: 1.5rem; }
.event-desc { font-size: 0.95rem; margin-bottom: 0; }

/* Circulars / Notices Board */
.circulars-section {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.circulars-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.circulars-header h3 { margin-bottom: 0; }

.search-input-wrapper {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.search-icon-svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.circular-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.circular-item:last-child { border-bottom: none; }
.circular-item:hover { padding-left: 0.5rem; }

.circular-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.circular-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.circular-text h4 {
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.circular-text span { font-size: 0.8rem; color: var(--text-light); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 0.65rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    background-color: var(--white);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(198, 40, 40, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .placeholder-img { height: 100%; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.contact-card-sidebar {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.contact-details-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item-row { display: flex; gap: 1.25rem; }

.contact-item-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
}

.contact-item-text p { font-size: 0.9rem; margin-bottom: 0; }

.contact-item-text a {
    color: var(--primary);
    font-weight: 600;
}

.contact-item-text a:hover { color: var(--primary-dark); }

.quick-info-tagbar {
    background-color: var(--primary-dark);
    color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-left: 3px solid rgba(255,255,255,0.3);
}

.quick-info-tagbar span {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-title { margin-bottom: 2rem; }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.map-section { padding-bottom: 0; }

.map-wrapper {
    height: 450px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    background-color: var(--accent);
}

.form-success-box {
    display: none;
    text-align: center;
    padding: 3rem 1.5rem;
}

.form-success-box svg { color: var(--primary); margin-bottom: 1.5rem; }
.form-success-box h3  { margin-bottom: 0.75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 5.5rem 0 2rem 0;
    border-top: 5px solid rgba(255,255,255,0.15);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-brand .logo-wrapper { width: 45px; height: 45px; }
.footer-brand .school-title  { font-size: 1rem; color: var(--white); }

.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
    max-width: 380px;
    line-height: 1.7;
}

.footer-socials { display: flex; gap: 1rem; }

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

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

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: rgba(255,255,255,0.4);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

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

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p.address {
    color: rgba(255,255,255,0.6);
    font-size: 0.925rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.footer-contact p.meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-contact p.meta a {
    color: rgba(255,255,255,0.75);
}

.footer-contact p.meta a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    text-decoration: none;
    animation: wa-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
    color: var(--white);
    animation: none;
}

/* ============================================================
   CLASSES GRID (Academics page — 4 cards responsive)
   ============================================================ */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float-slow {
    0%   { transform: translateY(0px) rotate(0deg); }
    50%  { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-mid {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

@keyframes float-fast {
    0%   { transform: translateY(0px) rotate(0deg) scale(1); }
    50%  { transform: translateY(-8px) rotate(-3deg) scale(1.05); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes pulse {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
    70%  { transform: scale(1); box-shadow: 0 0 0 10px rgba(198, 40, 40, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

.animate-zoom {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-zoom.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ============================================================
   LOADING STATE (for JSON-driven sections)
   ============================================================ */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.loading-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .desktop-nav,
    .nav-actions .btn-nav-cta { display: none; }

    .mobile-menu-toggle { display: flex; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-description  { margin: 0 auto 2.5rem auto; }
    .hero-btns         { justify-content: center; }
    .hero-visuals      { height: 380px; }
    .circle-1          { width: 180px; height: 180px; left: 15%; }
    .circle-2          { width: 150px; height: 150px; right: 10%; }

    .highlights-row    { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

    .achievements-grid { grid-template-columns: repeat(3, 1fr); }
    .classes-grid      { grid-template-columns: repeat(2, 1fr); }
    .programs-grid     { grid-template-columns: repeat(2, 1fr); }

    .principal-grid,
    .director-grid     { grid-template-columns: 1fr; }

    .principal-photo-side,
    .director-photo-side { height: 300px; }

    .roadmap           { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .roadmap::before   { display: none; }

    .info-checklist-grid { grid-template-columns: 1fr; gap: 3rem; }

    .cta-box-sticky    { position: static; }

    .featured-grid     { grid-template-columns: 1fr; }
    .featured-content  { padding: 3rem; }
    .featured-photo    { height: 300px; }

    .contact-grid      { grid-template-columns: 1fr; gap: 3rem; }

    .footer-container  { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-brand      { grid-column: span 2; }
}

@media (max-width: 768px) {
    .grid-3            { grid-template-columns: 1fr; gap: 2rem; }
    .grid-2            { grid-template-columns: 1fr; gap: 2.5rem; }
    .features-grid     { grid-template-columns: 1fr; }
    .checklist         { grid-template-columns: 1fr; }
    .programs-grid     { grid-template-columns: 1fr; }
    .classes-grid      { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }

    .event-card        { flex-direction: column; }
    .event-visual      { width: 100%; height: 200px; }

    .circulars-section { padding: 2rem; }
    .circular-item     { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .circular-item .btn { align-self: flex-end; }

    .form-grid-2       { grid-template-columns: 1fr; gap: 1.5rem; }
    .contact-form-wrapper { padding: 2.5rem 1.5rem; }

    .footer-container  { grid-template-columns: 1fr; }
    .footer-brand      { grid-column: span 1; }
}

@media (max-width: 480px) {
    .section           { padding: 4.5rem 0; }

    .circle-1          { width: 140px; height: 140px; left: 5%; }
    .circle-2          { width: 120px; height: 120px; right: 5%; }

    .roadmap           { grid-template-columns: 1fr; }
    .highlights-row    { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .classes-grid      { grid-template-columns: 1fr; }

    .whatsapp-float    { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
}
