/* ==========================================================================
   Triumphant International School (TIS) - Master Stylesheet
   Premium Christian International School Design System
   Restrained, Academic, Welcoming, Factual, Flawlessly Responsive
   ========================================================================== */

:root {
    /* Strict 2-Font Discipline: Montserrat for Headings & Plus Jakarta Sans for Body/UI */
    --font-heading: 'Montserrat', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: var(--font-heading); /* Replaces previous serif with clean, modern international school heading typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* School Brand Palette */
    --primary: #0c2340;        /* Deep Academic Navy */
    --primary-light: #163660;  /* Medium Navy */
    --primary-dark: #07172a;   /* Rich Midnight Navy */
    --accent: #8b1e2d;         /* Dignified Burgundy / Crimson for primary CTA */
    --accent-hover: #731825;   /* Darker Burgundy */
    --gold: #c59b27;           /* Warm Academic Gold for subtle highlights */
    --gold-light: #fef9ee;     /* Soft warm gold tint */
    --gold-hover: #b0881e;     /* Hover gold */

    /* Neutrals & Surfaces */
    --bg-page: #ffffff;        /* Pure Crisp White */
    --bg-cream: #faf8f5;       /* Warm Soft Cream for alternating sections */
    --bg-card: #ffffff;        /* Pure White Card */
    --border: #e2e8f0;         /* Crisp Hairline Border */
    --border-light: #f1f5f9;   /* Subtle Hairline Divider */

    /* Typography Scale */
    --text-heading: #0c2340;   /* Deep Academic Navy */
    --text-body: #334155;      /* Slate Charcoal */
    --text-muted: #64748b;     /* Slate Muted */
    --text-light: #94a3b8;     /* Light Grey */

    /* Status Colors */
    --success: #15803d;
    --success-bg: #f0fdf4;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;

    /* Restrained Geometry (No giant toy pills or excessive bubbles) */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;

    /* Calm Elevation (Subtle, never inflated) */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.07);

    /* Purposeful Subtle Transitions */
    --transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.65;
    font-size: 0.97rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

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

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

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Expansive, Fluid Container & Screen-Span System
   Spans modern wide screens (1440px - 1920px+), Tablets & Mobile Flawlessly
   ========================================================================== */
.container {
    width: 100%;
    max-width: min(1600px, 94vw);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
}

/* Wide Spanning Layouts (Top Bar, Main Navbar, Footer) */
.container-wide,
.top-bar .container,
.site-header .container,
.site-footer .container {
    max-width: min(1760px, 96vw);
    padding-left: clamp(16px, 3vw, 56px);
    padding-right: clamp(16px, 3vw, 56px);
}

/* Ergonomic Reading Container (Forms, Long-form Policy) */
.container-narrow {
    max-width: min(960px, 92vw);
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

h1, h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.025em;
}

h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.18; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.35rem); line-height: 1.22; }
h3 { font-size: 1.2rem; line-height: 1.35; }
h4 { font-size: 1.05rem; line-height: 1.4; }

p {
    font-family: var(--font-sans);
    font-size: 0.97rem;
    line-height: 1.68;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* ==========================================================================
   Buttons (Rectangular, 6px Radius, Clear Visual Hierarchy)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary, .btn-accent {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover, .btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
}

.btn-navy {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-navy:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--border);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 0.96rem;
}

/* ==========================================================================
   Top Utility Bar (Desktop Only, Subdued Academic Info)
   ========================================================================== */
.top-bar {
    background: #081a30;
    color: #cbd5e1;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.top-bar-theme {
    color: #e2e8f0;
    font-style: italic;
}

.top-bar-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.top-bar-link {
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-link:hover {
    color: #fbbf24;
}

/* ==========================================================================
   Site Header & Main Navigation
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    width: 100%;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold);
}

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

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.brand-motto {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-toggle:hover {
    background: var(--bg-cream);
}

/* ==========================================================================
   Hero Section (Simplified, Photographic, Dignified)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 85px 0 75px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-inner {
    min-height: 380px;
    padding: 60px 0 50px 0;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(12, 35, 64, 0.65);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(251, 191, 36, 0.35);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 35, 64, 0.65) 0%, rgba(12, 35, 64, 0.78) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4.2vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero p {
    font-family: var(--font-sans);
    font-size: clamp(1.02rem, 1.6vw, 1.16rem);
    color: #f1f5f9;
    line-height: 1.62;
    margin: 0 auto 28px auto;
    max-width: 600px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-scripture {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    color: #e2e8f0;
    opacity: 0.95;
    margin-top: 14px;
    letter-spacing: 0.02em;
}

.hero-scripture span {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #fbbf24;
    margin-left: 4px;
}

/* ==========================================================================
   Calm Horizontal Information / Facts Strip
   ========================================================================== */
.facts-strip {
    background: var(--bg-cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}

.facts-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.facts-strip-item {
    padding: 8px 16px;
    position: relative;
}

.facts-strip-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: #e2dcd0;
}

.facts-strip-number {
    font-family: var(--font-heading);
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.facts-strip-label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

/* ==========================================================================
   Standardized Vertical Section Rhythm
   ========================================================================== */
.section {
    padding: 72px 0;
    background-color: var(--bg-page);
    position: relative;
}

.section-cream, .section-alt {
    background-color: var(--bg-cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 46px auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.6vw, 2.35rem);
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.24;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 38px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.text-left .section-title::after,
.welcome-content .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 620px;
    margin: 14px auto 0 auto;
}

/* ==========================================================================
   Welcome Section (Editorial 2-Column Balance)
   ========================================================================== */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.welcome-content {
    display: flex;
    flex-direction: column;
}

.welcome-content p {
    margin-bottom: 1.1rem;
}

.editorial-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.editorial-image-wrapper img {
    width: 100%;
    height: 370px;
    object-fit: cover;
    display: block;
}

.editorial-caption {
    padding: 12px 18px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.editorial-caption strong {
    color: var(--text-heading);
}

/* ==========================================================================
   Why Triumphant? (4 Core Pillars Grid)
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pillar-card {
    background: #ffffff;
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pillar-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    border: 1px solid #e8e2d8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.pillar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

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

/* ==========================================================================
   Curriculum Showcase Section
   ========================================================================== */
.curriculum-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.curriculum-pillars-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0;
}

.curriculum-pillar-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
}

.curriculum-pillar-item h4 {
    font-size: 0.98rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.curriculum-pillar-item ul {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.8;
}

.curriculum-pillar-item li {
    position: relative;
    padding-left: 14px;
}

.curriculum-pillar-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   School Life Editorial Cards (3 Real Photos)
   ========================================================================== */
.life-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.life-card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.life-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

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

.life-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.life-card-tag {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.life-card-body h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.life-card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Admissions 4-Step Process Pathway
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-badge {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.08rem;
    margin-bottom: 6px;
    color: var(--text-heading);
}

.step-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Call to Action Box */
.cta-box {
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 44px 32px;
    text-align: center;
}

.cta-box h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.cta-box p {
    color: #e2e8f0;
    max-width: 580px;
    margin: 0 auto 24px auto;
    font-size: 0.98rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   News & Announcements Grid
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.news-thumb {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(12, 35, 64, 0.9);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.news-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-body h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.news-body h3 a {
    color: var(--text-heading);
}

.news-body h3 a:hover {
    color: var(--accent);
}

.news-body p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-grow: 1;
}

.read-more-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more-link:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   Campus Contact & Location Summary Bar
   ========================================================================== */
.contact-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.contact-summary-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    border: 1px solid #e5e0d8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-summary-body h4 {
    font-size: 0.98rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-summary-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

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

.contact-summary-body a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Restrained WhatsApp Widget (Discreet, Never Blocking)
   ========================================================================== */
.whatsapp-fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.whatsapp-fixed a {
    background: #25d366;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transition: var(--transition);
}

.whatsapp-fixed a:hover {
    background: #20ba59;
    color: #ffffff;
}

/* ==========================================================================
   Refined Academic Footer (Deep Navy, Understated)
   ========================================================================== */
.site-footer {
    background: #081a30;
    color: #cbd5e1;
    padding: 56px 0 24px 0;
    margin-top: auto;
    border-top: 3px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-sans);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 6px;
}

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-family: var(--font-sans);
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fbbf24;
}

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

.footer-contact-item i {
    color: var(--gold);
    margin-top: 4px;
    font-size: 0.9rem;
}

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

/* ==========================================================================
   Supporting Components (Forms, Alerts, FAQs, Tables)
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

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

.form-group.col-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.required-asterisk {
    color: var(--accent);
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-heading);
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.08);
}

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

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.error-msg {
    color: var(--danger);
    font-size: 0.78rem;
    margin-top: 4px;
    display: none;
}

.form-control:invalid.touched + .error-msg,
.form-control[aria-invalid="true"] + .error-msg {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--text-heading);
    cursor: pointer;
}

.faq-answer {
    padding: 0 20px 18px 20px;
    display: none;
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.62;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Subject Badges */
.subject-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.subject-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-heading);
}

.subject-badge i {
    color: var(--accent);
    font-size: 1.15rem;
}

/* Term Calendar Card */
.term-card {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.term-tag {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}

.term-card h3 {
    font-size: 1.25rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.term-dates {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.term-holiday {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Gallery Grid & Lightbox */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-heading);
    padding: 7px 18px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

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

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

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

.gallery-caption {
    padding: 14px 18px;
    background: #ffffff;
}

.gallery-caption h4 {
    font-size: 0.98rem;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.gallery-caption span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 35, 64, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
}

.lightbox-content img {
    max-height: 80vh;
    margin: 0 auto;
    border-radius: var(--radius);
}

.lightbox-title {
    color: #ffffff;
    text-align: center;
    margin-top: 14px;
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

/* Highlight Grids & Cards (Used in About, Academics, Admissions) */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.highlight-card {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    border: 1px solid #e8e2d8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

/* Callout Box (Christian Scriptures & Notices) */
.callout-box {
    background: var(--bg-cream);
    border-left: 3px solid var(--accent);
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-family: var(--font-sans);
    color: var(--primary);
}

.callout-box strong {
    font-family: var(--font-sans);
    font-style: normal;
    display: block;
    font-size: 0.88rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.callout-box p {
    margin-bottom: 0;
    font-size: 0.96rem;
    line-height: 1.6;
}

/* Pathway Cards (School Life & Facilities) */
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pathway-card {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pathway-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.pathway-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pathway-body {
    padding: 22px;
    flex-grow: 1;
}

.pathway-age {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}

/* Contact Grid & Details */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(28px, 4vw, 48px);
}

.contact-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-cream);
    border: 1px solid #e5e0d8;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   Responsive Breakpoints System
   Desktop & Mobile Engineered as Two Harmonious Layouts
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar {
        position: relative;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 24px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
        gap: 12px;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 0.95rem;
    }

    .nav-cta-item {
        margin-top: 8px;
    }

    .nav-cta-item .btn {
        width: 100%;
    }

    .welcome-grid, .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .facts-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .facts-strip-item:nth-child(2)::after {
        display: none;
    }

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

@media (max-width: 768px) {
    /* Hide top utility bar on mobile to eliminate clutter */
    .top-bar {
        display: none;
    }

    .site-header {
        height: 70px;
    }

    .navbar {
        height: 70px;
        gap: 10px;
    }

    .brand {
        gap: 10px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-title {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .brand-motto {
        display: none; /* Keep mobile header clean and uncrowded */
    }

    .mobile-toggle {
        flex-shrink: 0;
        margin-left: auto;
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .section {
        padding: 48px 0;
    }

    .hero {
        min-height: 480px;
        padding: 55px 0 45px 0;
    }

    .hero-overlay {
        background: rgba(12, 35, 64, 0.35);
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .editorial-image-wrapper img {
        height: 250px;
    }

    .life-grid, .news-grid, .contact-summary-grid, .contact-grid, .pathway-grid, .highlight-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-pillars-box {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-fixed {
        bottom: 18px;
        right: 18px;
    }

    .whatsapp-fixed a span {
        display: none;
    }

    .whatsapp-fixed a {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pillars-grid, .steps-grid, .facts-strip-grid {
        grid-template-columns: 1fr;
    }

    .facts-strip-item::after {
        display: none !important;
    }

    .facts-strip-number {
        font-size: 1.85rem;
    }
}
