/* ───────────────────────────────────────────────────────────────────
   Malongwe Public Site — Emma-inspired layout
   ─────────────────────────────────────────────────────────────────── */

:root {
    --primary: #1d4ed8;          /* deep royal blue */
    --primary-dark: #1e3a8a;
    --accent: #fbbf24;           /* warm gold */
    --accent-dark: #d97706;
    --header-bg: #ffffff;
    --footer-bg: #0b1224;
    --body: #1f2937;
    --ink: #0f172a;
    --link: #1d4ed8;
    --button-text: #0a1628;
    --heading-font: 'Poppins';
    --body-font: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --muted: #64748b;
    --soft: #f1f5f9;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 8px 24px rgba(15,23,42,.08);
    --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--body);
    background: #fff;
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4,h5 { font-family: var(--heading-font), 'Poppins', sans-serif; color: var(--ink); margin: 0 0 .5em; line-height: 1.2; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: var(--button-text); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* ── Utility bar ───────────────────────────────────────────── */
.utility-bar {
    background: var(--utility-bg, var(--primary-dark));
    color: var(--utility-text, #cbd5e1);
    font-size: .8rem;
    padding: .5rem 0;
}
.utility-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.utility-left, .utility-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.utility-bar a { color: var(--utility-text, #cbd5e1); }
.utility-bar a:hover { color: #fff; }
.utility-bar i { margin-right: .35rem; color: var(--utility-accent, var(--accent)); }

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
    background: var(--header-bg);
    color: var(--header-text, inherit);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .85rem;
    padding-bottom: .85rem;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.brand-text h1 { font-size: 1.1rem; margin: 0; font-family: var(--heading-font), serif; color: var(--header-title, var(--primary-dark)); line-height: 1.2; }
.brand-text span { font-size: .72rem; color: var(--header-motto, var(--muted)); display: block; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--nav-link, var(--ink)); font-weight: 500; font-size: .92rem; padding: .35rem 0; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--nav-link-active, var(--primary)); }
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--nav-link-active, var(--accent));
    transform: scaleX(0);
    transition: transform .2s;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-cta { background: var(--nav-cta-bg, var(--accent)); color: var(--nav-cta-text, var(--ink)) !important; padding: .55rem 1.1rem !important; border-radius: var(--radius); font-weight: 700; }
.nav-cta:hover { background: var(--accent-dark); color: var(--nav-cta-text, #fff) !important; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 88vh;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    position: absolute;
    inset: 0;
}
.hero-bg img.active { opacity: 1; }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.78) 0%, rgba(30,58,138,.66) 60%, rgba(15,23,42,.55) 100%);
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
    max-width: 900px;
}
.hero-badge {
    display: inline-block;
    background: rgba(251,191,36,.18);
    color: var(--accent);
    border: 1px solid rgba(251,191,36,.4);
    padding: .35rem .9rem;
    border-radius: 40px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero h2 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h2 em { font-style: normal; color: var(--accent); }
.hero p.lead {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255,255,255,.92);
    max-width: 720px;
    margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-chips {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.hero-chip {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25);
    padding: .65rem 1.1rem;
    border-radius: 40px;
    color: #fff;
    font-size: .82rem;
    font-weight: 500;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.hero-chip:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hero-stats {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 720px;
}
.hero-stat .num { font-size: 2.2rem; font-weight: 800; color: var(--accent); font-family: var(--heading-font), 'Poppins', sans-serif; line-height: 1; }
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.85); margin-top: .35rem; }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 3rem; }
.section-label {
    color: var(--accent-dark);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .65rem;
    display: inline-block;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: .65rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ── Per-section colour overrides (driven by admin → Section Colours) ──
   When SectionStyle.style_attr sets --section-heading / --section-accent
   on a <section>, the rules below pick them up. When unset, the var()
   falls back to the global brand default so nothing breaks. */
section h1, section h2, section h3, section h4, section h5, section h6 { color: var(--section-heading, var(--ink)); }
section .section-label { color: var(--section-accent, var(--accent-dark)); }
section .btn-primary,
section .btn-accent { background: var(--section-accent, var(--accent)); border-color: var(--section-accent, var(--accent)); }
section .btn-outline { color: var(--section-accent, var(--primary)); border-color: var(--section-accent, var(--primary)); }
section .btn-outline:hover { background: var(--section-accent, var(--primary)); color: #fff; }
section a:not(.btn) { color: var(--section-accent, var(--link)); }

/* ── Welcome (We are X) ────────────────────────────────────── */
.welcome { background: #fff; }
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.welcome-media {
    position: relative;
}
.welcome-media .main-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.welcome-media .accent-img {
    position: absolute;
    bottom: -28px; right: -28px;
    width: 45%;
    border-radius: var(--radius);
    border: 6px solid #fff;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.welcome-body .rich-text { color: var(--body); font-size: 1.02rem; }
.welcome-body .rich-text p { margin-bottom: 1rem; }
.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}
.about-feature-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: .86rem;
    color: var(--ink);
}
.about-feature-icon { color: var(--accent-dark); font-weight: 700; }
.welcome-ctas { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.8rem; }
.welcome-ctas a {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 600;
    transition: all .2s;
    background: #fff;
}
.welcome-ctas a:hover { border-color: var(--primary); color: var(--primary); transform: translateX(4px); }
.welcome-ctas a i { color: var(--accent); }

/* ── Value Proposition ─────────────────────────────────────── */
.values { background: var(--soft); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.value-card {
    background: #fff;
    padding: 2.2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--accent);
    transition: transform .2s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .icon { font-size: 2.2rem; color: var(--primary); margin-bottom: .85rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.value-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ── Featured Programs slider ──────────────────────────────── */
.featured-programs { background: #fff; }
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.program-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-card .img-wrap { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.program-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.program-card:hover .img-wrap img { transform: scale(1.05); }
.program-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.program-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.program-card p { color: var(--muted); margin: 0 0 1rem; flex: 1; font-size: .92rem; }
.program-card .more {
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.program-card .more::after { content: '→'; transition: transform .2s; }
.program-card .more:hover::after { transform: translateX(4px); }

/* ── Featured Quote ────────────────────────────────────────── */
.featured-quote {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
}
.featured-quote .container { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.featured-quote .photo {
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,.2);
    box-shadow: var(--shadow-lg);
}
.featured-quote .photo img { width: 100%; height: 100%; object-fit: cover; }
.featured-quote .quote-body { flex: 1 1 320px; }
.featured-quote .quote-body i.fa-quote-left { color: var(--accent); font-size: 2rem; margin-bottom: 1rem; }
.featured-quote .quote-body blockquote {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    color: #fff;
}
.featured-quote .cite-name { font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.featured-quote .cite-role { color: rgba(255,255,255,.8); font-size: .9rem; }

/* ── Multicultural strip ───────────────────────────────────── */
.multicultural {
    background: var(--soft);
    padding: 3rem 0;
}
.multicultural h3 {
    text-align: center;
    font-size: 1.25rem;
    color: var(--muted);
    font-family: var(--body-font), 'Roboto', sans-serif;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.country-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
}
.country-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: #fff;
    border-radius: 40px;
    font-weight: 500;
    color: var(--ink);
    font-size: .92rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.country-chip .flag { font-size: 1.2rem; }

/* ── Why Choose Us ─────────────────────────────────────────── */
.why-choose { background: #fff; }
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.why-image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-list { list-style: none; padding: 0; margin: 0; counter-reset: why; }
.why-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 4.25rem;
    background: var(--soft);
    border-radius: var(--radius);
    margin-bottom: .85rem;
    font-size: 1rem;
    counter-increment: why;
}
.why-list li::before {
    content: counter(why, decimal-leading-zero);
    position: absolute;
    left: 1.25rem; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--ink);
    border-radius: 50%;
    font-weight: 800;
    font-size: .92rem;
    font-family: var(--heading-font), 'Poppins', sans-serif;
}

/* ── Testimonials carousel ─────────────────────────────────── */
.testimonials-section { background: var(--soft); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px; left: 18px;
    font-size: 5rem;
    color: var(--accent);
    font-family: var(--heading-font), 'Poppins', sans-serif;
    line-height: 1;
    opacity: .4;
}
.testimonial-card p { font-style: italic; color: var(--body); margin-bottom: 1.25rem; font-size: .95rem; }
.testimonial-meta { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial-meta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-meta .name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.testimonial-meta .role { font-size: .8rem; color: var(--muted); }

/* ── Facilities ────────────────────────────────────────────── */
.facilities { background: #fff; }
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.facility-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.facility-card .img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.facility-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.facility-card:hover .img-wrap img { transform: scale(1.05); }
.facility-card .body { padding: 1.25rem 1.4rem 1.5rem; }
.facility-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.facility-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ── Callout (performance + fees) ──────────────────────────── */
.callout-row { background: var(--soft); }
.callout-row .container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.callout {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}
.callout.alt { border-left-color: var(--primary); }
.callout h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.callout p { color: var(--body); margin-bottom: 1.25rem; }
.callout a.read-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .92rem;
}
.callout a.read-more::after { content: '→'; transition: transform .2s; }
.callout a.read-more:hover::after { transform: translateX(4px); }

/* ── News ─────────────────────────────────────────────────── */
.news-section { background: #fff; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card .img-wrap { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .img-wrap img { transform: scale(1.05); }
.news-card .body { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card .meta { color: var(--accent-dark); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.3; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { color: var(--muted); font-size: .92rem; flex: 1; margin: 0 0 1rem; }

/* ── Events ───────────────────────────────────────────────── */
.events-section { background: var(--soft); }
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 850px;
    margin: 0 auto;
}
.event-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}
.event-date {
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: .65rem .25rem;
}
.event-date .d { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event-date .m { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.event-info h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.event-info p { color: var(--muted); font-size: .88rem; margin: 0; }
.event-info i { margin-right: .3rem; color: var(--accent-dark); }

/* ── Newsletter + Feedback ─────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
}
.newsletter-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter-section h2 { color: #fff; }
.newsletter-section p { color: rgba(255,255,255,.88); margin-bottom: 1.5rem; }
.newsletter-form {
    display: flex;
    gap: .5rem;
    background: #fff;
    padding: .35rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: .85rem 1.25rem;
    border: none;
    background: transparent;
    font: inherit;
    color: var(--ink);
    outline: none;
}
.newsletter-form button {
    background: var(--accent);
    color: var(--ink);
    border: none;
    padding: .85rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font: inherit;
}
.newsletter-form button:hover { background: var(--accent-dark); color: #fff; }

.feedback-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--radius);
}
.feedback-card h3 { color: var(--accent); font-size: 1.25rem; }
.feedback-card label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: rgba(255,255,255,.9); }
.feedback-card input, .feedback-card select, .feedback-card textarea {
    width: 100%;
    padding: .65rem .85rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.95);
    font: inherit;
    margin-bottom: .85rem;
    color: var(--ink);
}
.feedback-card textarea { min-height: 90px; resize: vertical; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text, #94a3b8);
    padding: 4rem 0 1.5rem;
    font-size: .92rem;
}
.site-footer a { color: var(--footer-link, var(--footer-text, #cbd5e1)); }
.site-footer a:hover { color: var(--footer-link-hover, var(--accent)); }

/* ── Mission & Vision ────────────────────────────────────────────────── */
.mission-vision {
    background: linear-gradient(135deg, rgba(99,102,241,.05), rgba(147,51,234,.05));
    padding: 5rem 0;
    border-bottom: 1px solid rgba(99,102,241,.15);
}
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.mv-content h2 { color: var(--primary); margin-bottom: 1.5rem; }
.mv-statement {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}
.statement-block h3 { color: var(--section-heading, var(--accent)); margin-bottom: .5rem; font-size: 1.15rem; }
.statement-block p { color: var(--card-text, inherit); line-height: 1.75; }
.motto { font-style: italic; color: var(--link); font-size: 1.1rem; margin-top: 1.5rem; }
.mv-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 768px) {
    .mission-vision-grid { grid-template-columns: 1fr; }
    .mv-image { order: -1; }
}
/* Centered variant (used on the About page) */
.mission-vision.centered .mission-vision-grid {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.mission-vision.centered .mv-content { display: flex; flex-direction: column; align-items: center; }
.mission-vision.centered .mv-statement { width: 100%; max-width: 720px; margin: 2rem auto; }
.mission-vision.centered .statement-block { text-align: center; }
.mission-vision.centered .mv-image { margin-top: 2rem; }
.mission-vision.centered .mv-image img { max-width: 720px; margin: 0 auto; }

/* ── Leadership ────────────────────────────────────────────────── */
.leadership {
    padding: 4rem 0;
    background: #fafafa;
}
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.leader-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    text-align: center;
}
.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.leader-photo, .leader-photo-placeholder {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}
.leader-card h3 { color: var(--ink); margin: 1.25rem 1rem 0.35rem; font-size: 1.2rem; }
.leader-card .title { color: var(--accent); font-weight: 600; font-size: .95rem; margin: 0 1rem; }
.leader-card .bio { color: var(--body); font-size: .9rem; padding: 0 1rem 1rem; line-height: 1.6; }

/* ── Full Academics Section ────────────────────────────────────────────────── */
.academics-full {
    padding: 4rem 0;
    background: white;
}
.academics-banner {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.academics-banner img { width: 100%; height: auto; display: block; }
.academics-content { max-width: 1000px; margin: 0 auto; }
.academics-content h2 { color: var(--primary); margin-bottom: 1.5rem; }
.academics-gallery {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .85rem;
}
.academics-gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.academics-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.feature-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-item h4 { color: var(--ink); margin-bottom: .5rem; font-size: 1.05rem; }
.feature-item p { color: var(--body); font-size: .95rem; }

/* ── Community Life ────────────────────────────────────────────────── */
.community-full {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(147,51,234,.03), rgba(99,102,241,.03));
}
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.community-content h2 { color: var(--primary); margin-bottom: 1.5rem; }
.community-content p { color: var(--body); line-height: 1.75; margin-bottom: 1.5rem; }
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem;
    background: white;
    border-radius: var(--radius);
}
.highlight-item .icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }
.highlight-item .text { color: var(--body); font-weight: 500; }
.community-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
@media (max-width: 768px) {
    .community-grid { grid-template-columns: 1fr; }
    .community-image { order: -1; }
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery {
    padding: 4rem 0;
    background: white;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}
.gallery-image { width: 100%; height: 280px; object-fit: cover; display: block; }
.gallery-item iframe { border-radius: var(--radius) !important; }
.gallery-item video { border-radius: var(--radius); }
.gallery-item .caption { padding: 1rem; color: var(--body); font-size: .95rem; text-align: center; font-weight: 500; }

/* ── Location Section ────────────────────────────────────────────────── */
.location-section {
    padding: 4rem 0;
    background: #f9fafb;
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}
.location-content h2 { color: var(--primary); margin-bottom: 1.5rem; }
.location-content p { color: var(--body); line-height: 1.75; margin-bottom: 1.5rem; }
.location-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
.location-photo { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.location-map iframe { border-radius: var(--radius); }
@media (max-width: 768px) {
    .location-grid { grid-template-columns: 1fr; }
    .location-photos { grid-template-columns: 1fr; }
    .location-photo { height: 150px; }
}


.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-col h4 { color: #fff; font-size: 1rem; font-family: var(--heading-font), 'Poppins', sans-serif; font-weight: 700; margin-bottom: 1rem; }
.footer-col p, .footer-col li { font-size: .88rem; color: #94a3b8; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul a { color: #94a3b8; transition: color .2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-col i.contact-i { color: var(--accent); margin-right: .5rem; width: 1.2em; }
.socials { display: flex; gap: .65rem; margin-top: 1.25rem; }
.socials a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    color: #fff;
    transition: all .2s;
}
.socials a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #64748b;
    font-size: .82rem;
}

/* ── Flash messages ────────────────────────────────────────── */
#cms-flash { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; max-width: 540px; width: 92%; }
#cms-flash .flash {
    padding: .9rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: .6rem;
    box-shadow: var(--shadow-lg);
    color: #fff;
    font-weight: 500;
}
#cms-flash .flash.success { background: #16a34a; }
#cms-flash .flash.error   { background: #dc2626; }
#cms-flash .flash.info    { background: var(--primary); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.25rem; gap: .25rem; box-shadow: var(--shadow-md); border-top: 1px solid var(--border); }
    .main-nav.open { display: flex; }
    .main-nav a { width: 100%; padding: .75rem 0; border-bottom: 1px solid var(--border); }
    .menu-toggle { display: block; }
    .welcome-grid, .why-grid, .newsletter-section .container, .callout-row .container { grid-template-columns: 1fr; }
    .welcome-media .accent-img { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 70vh; }
    .hero-inner { padding: 3rem 0; }
    section { padding: 3.5rem 0; }
    .utility-bar { font-size: .72rem; }
    .featured-quote .photo { width: 140px; height: 140px; margin: 0 auto; }
    .featured-quote .container { text-align: center; }
    .academics-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .event-row { grid-template-columns: 80px 1fr; }
    .event-row .btn { grid-column: 1 / -1; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .newsletter-form button { border-radius: var(--radius); }
    .academics-gallery { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------
   Professional polish � page heros, animations, refinements
   ------------------------------------------------------------- */

/* -- Page Hero (banner used on every inner page) --------------- */
.page-hero {
    position: relative;
    min-height: 320px;
    padding: 5rem 0 3.5rem;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-dark) 100%);
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(251,191,36,.10) 0%, transparent 50%);
    z-index: -1;
}
.page-hero.has-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,.82) 0%, rgba(30,58,138,.72) 100%);
    z-index: 0;
}
.page-hero .ph-bg {
    position: absolute; inset: 0; z-index: -1;
    background-size: cover; background-position: center;
    filter: brightness(.6);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label {
    color: var(--accent);
    background: rgba(251,191,36,.14);
    border: 1px solid rgba(251,191,36,.35);
    padding: .35rem .9rem;
    border-radius: 40px;
}
.page-hero h1, .page-hero h2 {
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    margin: .75rem 0 .75rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.page-hero p.lead {
    color: rgba(255,255,255,.92);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 760px;
    margin: 0 auto;
}
.page-hero.center { text-align: center; }
.page-hero.center .section-label { margin-bottom: .5rem; }
.page-hero .crumbs {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 1rem;
}
.page-hero .crumbs a { color: rgba(255,255,255,.75); }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .crumbs i { font-size: .65rem; opacity: .6; }

/* Wave divider beneath page hero (subtle) */
.page-hero + section { position: relative; }

/* -- Section variants for rhythm ---------------------------- */
.section-alt { background: var(--soft); }
.section-tight { padding: 3rem 0; }
.section-tight-bottom { padding-bottom: 3rem; }
.has-divider { border-bottom: 1px solid var(--border); }

/* -- Rich text polish -------------------------------------- */
.rich-text { color: var(--body); font-size: 1.02rem; line-height: 1.75; }
.rich-text p { margin: 0 0 1.1em; }
.rich-text h2, .rich-text h3 { margin: 1.6em 0 .5em; color: var(--ink); }
.rich-text ul, .rich-text ol { margin: 0 0 1.1em 1.25em; padding: 0; }
.rich-text ul li, .rich-text ol li { margin: .3em 0; }
.rich-text a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.rich-text img { border-radius: var(--radius); margin: 1em auto; box-shadow: var(--shadow-sm); }
.rich-text blockquote {
    border-left: 4px solid var(--accent);
    padding: .25em 1.1em;
    color: var(--ink);
    background: var(--soft);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.25em 0;
    font-style: italic;
}

/* -- Mission & Vision refresh (cards) ------------------------ */
.mission-vision { background: #fff; }
.mv-statement { grid-template-columns: 1fr 1fr; }
.statement-block {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}
.statement-block:nth-child(2) { border-top-color: var(--accent); }
.statement-block h3 { color: var(--section-heading, var(--primary)); margin-bottom: .65rem; }
.statement-block p { color: var(--card-text, inherit); margin: 0; line-height: 1.7; }
@media (max-width: 720px) { .mv-statement { grid-template-columns: 1fr !important; } }

/* -- Registration form (admissions) ---------------------- */
.registration-section { padding: 4rem 0; background: var(--soft); }
.reg-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.reg-intro .reg-banner {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}
.reg-intro h2 { color: var(--ink); margin-bottom: .65rem; }
.reg-intro p { color: var(--body); }
.reg-steps { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.reg-step {
    display: flex; align-items: flex-start; gap: 1rem;
    background: #fff; padding: 1rem 1.1rem;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent);
}
.reg-step .num {
    flex-shrink: 0;
    width: 34px; height: 34px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 800; font-size: .9rem;
}
.reg-step .t { font-weight: 700; color: var(--ink); margin-bottom: .15rem; }
.reg-step .d { color: var(--muted); font-size: .88rem; line-height: 1.5; }

.reg-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.reg-form h3 {
    color: var(--primary); font-size: 1.05rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: .5rem; margin: 0 0 1.1rem;
}
.reg-form h3 + .reg-row, .reg-form h3 + .reg-field { margin-top: 0; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.reg-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.reg-field label { font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.reg-field label span { color: #dc2626; }
.reg-field input, .reg-field select, .reg-field textarea {
    padding: .7rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.reg-field input:focus, .reg-field select:focus, .reg-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,.15);
}
.reg-field textarea { min-height: 90px; resize: vertical; }
.reg-consent {
    display: flex; align-items: flex-start; gap: .65rem;
    font-size: .88rem; color: var(--body);
    margin: 1rem 0 1.25rem;
}
.reg-consent input { margin-top: .2rem; }
.reg-submit { width: 100%; padding: .95rem 1.5rem; font-size: 1rem; }

@media (max-width: 900px) {
    .reg-grid { grid-template-columns: 1fr; }
    .reg-row { grid-template-columns: 1fr; }
}

/* -- News list/detail polish -------------------------------- */
.news-detail { padding: 4rem 0; background: #fff; }
.news-detail-inner { max-width: 820px; margin: 0 auto; }
.news-detail .news-date {
    color: var(--accent-dark);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.news-detail h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    margin: .5rem 0 1.25rem;
    line-height: 1.25;
}
.news-detail .cover {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: var(--radius); margin: 0 0 2rem;
    box-shadow: var(--shadow-md);
}
.news-detail .rich-text { font-size: 1.05rem; }
.related-news { background: var(--soft); padding: 3rem 0 4rem; }
.related-news h3 { color: var(--ink); margin-bottom: 1.5rem; }

/* -- Reveal on scroll ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* -- Generic CTA strip --------------------------------------- */
.cta-strip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; padding: 3rem 0;
}
.cta-strip .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.cta-strip h3 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.cta-strip p { color: rgba(255,255,255,.85); margin: .35rem 0 0; }
.cta-strip .cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* -- Mobile nav drawer --------------------------------------- */
@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 84%; max-width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 1.75rem 2rem;
        gap: 1.1rem;
        box-shadow: -10px 0 30px rgba(0,0,0,.12);
        transition: right .3s ease;
        z-index: 200;
    }
    .main-nav.open { right: 0; }
    .main-nav a { width: 100%; padding: .5rem 0; border-bottom: 1px solid var(--border); }
    .main-nav a::after { display: none; }
    .nav-cta { width: 100%; text-align: center; }
    .nav-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 150;
    }
    .nav-backdrop.open { display: block; }
    .menu-toggle.open i::before { content: '\f00d'; }
}

@media (max-width: 760px) {
    .welcome-grid,
    .why-grid,
    .community-grid,
    .location-grid,
    .newsletter-section .container { grid-template-columns: 1fr; }
    .callout-row .container { grid-template-columns: 1fr; }
    .welcome-media .accent-img { display: none; }
    .page-hero { padding: 3.5rem 0 2.5rem; min-height: 220px; }
    .cta-strip .container { flex-direction: column; text-align: center; }
}


/* ===================================================================
   PRO3 OVERHAUL — readable typography, visible buttons, no head-crop
   on leaders, and full responsive coverage (mobile-first refinements
   modelled on francmatic responsive.css).
   =================================================================== */

/* ── Base typography bump for desktop readability ──────────────── */
html { font-size: 17px; }
body { font-size: 1rem; line-height: 1.65; }

h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { font-size: 1rem; }

/* ── Buttons: bigger, bolder, always readable ─────────────────── */
.btn {
    padding: .95rem 1.7rem;
    font-size: 1rem;
    border-radius: 8px;
    min-height: 48px;            /* easy tap target */
    line-height: 1.2;
    letter-spacing: .01em;
    box-shadow: 0 2px 6px rgba(15,23,42,.08);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15,23,42,.14); }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; min-height: 38px; }

/* .btn-ghost — only intended for dark backgrounds. Give it a
   sensible fallback so if it is accidentally placed on a light
   background it still has contrast instead of vanishing. */
.btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.7);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }
section:not(.hero):not(.cta-strip):not(.page-hero):not([class*="-section"][class*="dark"]) .btn-ghost {
    /* Light-background safety: switch to outline-style automatically */
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    backdrop-filter: none;
}
section:not(.hero):not(.cta-strip):not(.page-hero) .btn-ghost:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Page-hero CTAs (if any are added later) need to stand out */
.page-hero .hero-ctas, .page-hero .ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ── Nav typography ─────────────────────────────────────────── */
.main-nav a { font-size: 1rem; padding: .45rem 0; }
.brand-text h1 { font-size: 1.25rem; }
.brand-text span { font-size: .8rem; }

/* ── Section heads & cards: readable copy sizes ───────────── */
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.section-head p  { font-size: 1.08rem; }

.program-card h3, .news-card h3, .facility-card h3, .value-card h3 {
    font-size: 1.2rem;
}
.program-card p, .news-card p, .facility-card p, .value-card p {
    font-size: .98rem; line-height: 1.6;
}

/* ── Leader photos: no more cut-off heads ──────────────────── */
.leader-photo, .leader-photo-placeholder {
    height: 320px;
    object-position: top center;          /* keep faces in frame */
    aspect-ratio: 4 / 5;
}
.leader-card { padding-bottom: 1.5rem; }
.leader-card h3 { font-size: 1.25rem; margin-top: 1.35rem; }
.leader-card .title { font-size: 1rem; }
.leader-card .bio { font-size: .95rem; line-height: 1.65; }

/* ── Hero polish ───────────────────────────────────────────── */
.hero h2 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.1; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; }

/* ===================================================================
   RESPONSIVE — comprehensive coverage
   =================================================================== */

/* ── Large tablets / small desktops ──────────────────────── */
@media (max-width: 1024px) {
    html { font-size: 16.5px; }
    .container { padding: 0 1.5rem; }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .academics-gallery { grid-template-columns: repeat(3, 1fr); }
    .leaders-grid { gap: 1.75rem; }
}

/* ── Tablets ────────────────────────────────────────────── */
@media (max-width: 960px) {
    html { font-size: 16px; }
    .utility-bar { display: none; }      /* declutter mobile header */
    .site-header .container { padding-top: .7rem; padding-bottom: .7rem; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-text h1 { font-size: 1.05rem; }
    .brand-text span { font-size: .7rem; }
    .menu-toggle { display: block; font-size: 1.6rem; padding: .35rem .5rem; }

    .hero { min-height: 70vh; }
    .hero-inner { padding: 3.5rem 0; }
    .hero h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
    .hero p.lead { font-size: 1.05rem; }
    .hero-chips { margin-top: 1.5rem; }
    .hero-stats, .hero-ctas { justify-content: flex-start; }

    section { padding: 3rem 0; }
    .page-hero { padding: 4rem 0 2.5rem; min-height: 240px; }
    .page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }

    /* Stack two-column grids */
    .welcome-grid,
    .why-grid,
    .community-grid,
    .location-grid,
    .reg-grid,
    .mv-statement,
    .callout-row .container,
    .newsletter-section .container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .welcome-media .accent-img { display: none; }
    .community-image,
    .location-photos { order: -1; }

    .leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
        margin-left: auto; margin-right: auto;
    }
    .leader-photo, .leader-photo-placeholder { height: 280px; }

    .programs-grid,
    .news-grid,
    .facilities-grid,
    .values-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    .academics-features { grid-template-columns: 1fr; }
    .academics-gallery  { grid-template-columns: repeat(2, 1fr); }

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

/* ── Mobile landscape / phones ─────────────────────────── */
@media (max-width: 720px) {
    html { font-size: 15.5px; }
    .container { padding: 0 1rem; }

    section { padding: 2.5rem 0; }
    .hero { min-height: 60vh; }
    .hero-inner { padding: 2.5rem 0; }
    .hero h2 { font-size: 1.85rem; line-height: 1.15; }
    .hero p.lead { font-size: 1rem; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; }
    .hero-chips { gap: .5rem; }
    .hero-chip { font-size: .8rem; padding: .3rem .7rem; }

    .page-hero { padding: 3rem 0 2rem; min-height: 200px; }
    .page-hero h1 { font-size: 1.7rem; line-height: 1.2; }
    .page-hero p.lead { font-size: .98rem; }
    .page-hero .crumbs { font-size: .75rem; }

    .section-head h2 { font-size: 1.5rem; }
    .section-head p  { font-size: 1rem; }

    /* All multi-col grids → single column */
    .programs-grid,
    .news-grid,
    .facilities-grid,
    .values-grid,
    .testimonials-grid,
    .leaders-grid,
    .gallery-grid,
    .academics-gallery,
    .academics-features,
    .countries-grid,
    .stats-grid,
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .leaders-grid {
        max-width: 360px;
    }
    .leader-photo, .leader-photo-placeholder { height: auto; aspect-ratio: 4 / 5; }

    .academics-gallery-image { height: auto; aspect-ratio: 4 / 3; }
    .gallery-image { height: auto; aspect-ratio: 4 / 3; }

    .event-row { grid-template-columns: 64px 1fr; gap: .85rem; }
    .event-row .btn { grid-column: 1 / -1; width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .socials { justify-content: center; }
    .footer-col i.contact-i { display: inline-block; }

    .reg-form { padding: 1.4rem 1.1rem; }
    .reg-row  { grid-template-columns: 1fr; gap: 0; }

    .cta-strip { padding: 2.25rem 0; text-align: center; }
    .cta-strip .container { flex-direction: column; gap: 1.25rem; }
    .cta-strip .cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .cta-strip .cta-actions .btn { width: 100%; }

    .news-detail { padding: 2.5rem 0; }
    .news-detail h1 { font-size: 1.55rem; }

    .featured-quote .container { text-align: center; }
    .featured-quote .photo { width: 120px; height: 120px; margin: 0 auto 1rem; }
}

/* ── Small phones ──────────────────────────────────────── */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: 0 .9rem; }

    .brand-text h1 { font-size: .95rem; }
    .brand-text span { display: none; }

    .btn { padding: .85rem 1.3rem; font-size: .95rem; min-height: 46px; }
    .btn-sm { padding: .55rem 1rem; font-size: .85rem; }

    .hero h2 { font-size: 1.6rem; }
    .hero-badge { font-size: .7rem; padding: .25rem .7rem; }

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

    .leaders-grid { max-width: 320px; }
    .leader-card h3 { font-size: 1.15rem; }
}

/* ── Tap-friendly anchors on touch ─────────────────────── */
@media (hover: none) {
    .btn:hover, .program-card:hover, .news-card:hover, .leader-card:hover,
    .facility-card:hover, .value-card:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------
   Per-section CARD colour overrides (driven by SectionStyle.card_bg_color
   and SectionStyle.card_text_color). Each public section sets
   --card-bg / --card-text inline; if unset, var() is invalid and the
   original .X-card { background: #fff } declaration above wins.
   ------------------------------------------------------------------- */
.value-card,
.program-card,
.testimonial-card,
.facility-card,
.news-card,
.leader-card,
.feedback-card,
.event-row,
.feature-card,
.info-card,
.club-card,
.subject-card,
.fee-card,
.contact-card,
.mv-card,
.story-card,
.team-card,
.stat-card,
.featured-card,
.highlight-card,
.award-card {
    background: var(--card-bg);
    color: var(--card-text);
}
.value-card h3, .program-card h3, .testimonial-card h3, .facility-card h3,
.news-card h3, .leader-card h3, .feedback-card h3, .event-row h3,
.feature-card h3, .info-card h3, .club-card h3, .subject-card h3,
.fee-card h3, .contact-card h3, .mv-card h3, .story-card h3,
.team-card h3, .stat-card h3, .featured-card h3, .highlight-card h3, .award-card h3 {
    color: var(--card-text);
}
