/* ==========================================================================
   Peculiar International School — theme
   Brand tokens live in :root; the Montessori build overrides only these.
   ========================================================================== */
:root {
    --brand: #0b2a4a;          /* deep navy */
    --brand-2: #133e6b;
    --brand-ink: #071b30;
    --accent: #c9a227;         /* gold */
    --accent-2: #e2bf4a;
    --accent-ink: #1d1600;
    --cream: #f8f5ee;
    --surface: #ffffff;
    --text: #1e2a36;
    --muted: #5d6b7a;
    --line: #e6e1d6;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 42, 74, .08);
    --shadow-lg: 0 24px 60px rgba(11, 42, 74, .16);
    --font-head: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --header-h: 84px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    font-size: 1.0125rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display-5, .display-4 { font-family: var(--font-head); color: var(--brand); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.lead { color: var(--muted); font-size: 1.125rem; }
.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-cream { background: var(--cream); }
.bg-brand { background: var(--brand); color: #dbe5f0; }
.bg-brand h2, .bg-brand h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); margin-bottom: 14px; }
.section-head h2 em { font-style: italic; color: var(--accent); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Buttons */
.btn { white-space: nowrap; border-radius: 999px; font-weight: 600; padding: .7rem 1.5rem; letter-spacing: .01em; transition: all .25s ease; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-gold { background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); }
.btn-gold:hover, .btn-gold:focus { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 39, .35); }
.btn-brand { background: var(--brand); color: #fff; border: 2px solid var(--brand); }
.btn-brand:hover { background: var(--brand-2); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* Top bar */
.topbar { background: var(--brand-ink); color: #b9c6d4; font-size: .85rem; padding: 8px 0; }
.topbar a { color: #dbe5f0; text-decoration: none; }
.topbar a:hover { color: var(--accent-2); }
.topbar-contact li { margin-right: 22px; }
.topbar-contact i { color: var(--accent); margin-right: 4px; }
.topbar-label { opacity: .7; }
.school-pill { padding: 2px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: .78rem; font-weight: 600; }
.school-pill.active, .school-pill:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }
.topbar-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .2); }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .3s; z-index: 1030; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(11, 42, 74, .1); }
.site-header .navbar { min-height: var(--header-h); padding: 6px 0; }
.navbar-brand img { object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); color: var(--brand); font-size: 1.45rem; font-weight: 700; }
.brand-text small { color: var(--accent); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.site-header .nav-link { white-space: nowrap; color: var(--text); font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; position: relative; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand); }
@media (min-width: 1200px) {
    .site-header .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; border: 0; margin: 0; }
    .site-header .nav-link.dropdown-toggle::after { right: 1.6rem; }
    .site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
    .site-header .dropdown-toggle { padding-right: 1.6rem !important; }
    .site-header .dropdown-toggle::before { content: "\F282"; font-family: bootstrap-icons; position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: .65rem; }
    .site-header .dropdown:hover > .dropdown-menu { display: block; }
    .site-header .dropdown-menu { margin-top: 0; animation: dd .2s ease; }
}
@keyframes dd { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; min-width: 240px; border-top: 3px solid var(--accent); }
.dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-size: .92rem; color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--cream); color: var(--brand); }
.navbar-toggler { border: 0; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.offcanvas-title { font-family: var(--font-head); color: var(--brand); }
.offcanvas-schools a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
@media (max-width: 1199.98px) {
    .site-header .nav-link { padding: .8rem 0 !important; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .dropdown-menu { box-shadow: none; border-top: 0; padding: 0 0 8px 12px; }
    :root { --header-h: 70px; }
}

/* Hero slider */
.hero { position: relative; background: var(--brand); color: #fff; }
.hero .carousel-item { min-height: clamp(560px, 86vh, 820px); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, var(--brand-ink) 100%) center/cover no-repeat; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 27, 48, .88) 0%, rgba(7, 27, 48, .55) 55%, rgba(7, 27, 48, .2) 100%); }
.hero-slide.no-img::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 30%, rgba(201, 162, 39, .25) 0, transparent 45%), radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .08) 0, transparent 40%); }
.hero-content { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding: 120px 0 160px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 600; max-width: 820px; }
.hero h1 em { color: var(--accent-2); font-style: italic; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d7e1ec; max-width: 620px; margin: 20px 0 32px; }
.hero .eyebrow { color: var(--accent-2); }
.hero .carousel-indicators { bottom: 110px; justify-content: flex-start; margin-left: max(calc((100vw - 1296px) / 2 + 12px), 12px); }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 2px; border: 0; }
/* Slide text: the old slide's text drifts up and fades out while the photos crossfade, then the
   new slide's text rises in, line by line. Transitions (not keyframes), so nothing restarts when
   Bootstrap moves the "active" class at the end of the crossfade. */
.hero .carousel-item { transition-duration: 1s; }
.hero .carousel-fade .active.carousel-item-start,
.hero .carousel-fade .active.carousel-item-end { transition: opacity 0s 1s; }
.hero .hero-content > div > * { --d: 0s; opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.hero .hero-content > div > :nth-child(2) { --d: .1s; }
.hero .hero-content > div > :nth-child(3) { --d: .2s; }
.hero .hero-content > div > :nth-child(4) { --d: .3s; }
.hero .carousel-item.active .hero-content > div > *,
.hero .carousel-item-next.carousel-item-start .hero-content > div > *,
.hero .carousel-item-prev.carousel-item-end .hero-content > div > * { opacity: 1; transform: none; transition-delay: calc(.45s + var(--d)); }
.hero .carousel-item.active.carousel-item-start .hero-content > div > *,
.hero .carousel-item.active.carousel-item-end .hero-content > div > * { opacity: 0; transform: translateY(-16px); transition: opacity .4s ease, transform .5s ease; }
@starting-style { .hero .carousel-item.active .hero-content > div > * { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .hero .hero-content > div > * { transform: none !important; transition-duration: .01s !important; } }
/* Slow zoom on each banner photo while its slide is showing */
.hero .carousel-item.active .hero-slide:not(.no-img) { animation: hero-zoom 9s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Quick links under hero */
.quick-links { position: relative; z-index: 5; margin-top: -80px; }
.quick-links .ql { display: flex; gap: 16px; align-items: center; background: #fff; padding: 22px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); height: 100%; transition: transform .25s, box-shadow .25s; }
.quick-links .ql:hover { transform: translateY(-6px); color: var(--text); }
.ql-icon { flex: 0 0 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--brand); font-size: 1.4rem; transition: all .25s; }
.ql:hover .ql-icon { background: var(--accent); color: var(--accent-ink); }
.ql strong { display: block; color: var(--brand); font-size: 1.02rem; }
.ql small { color: var(--muted); line-height: 1.4; display: block; }

/* Image placeholder */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 220px; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--brand-2), var(--brand)); background-image: radial-gradient(circle at 75% 25%, rgba(201, 162, 39, .35), transparent 50%), linear-gradient(135deg, var(--brand-2), var(--brand)); text-align: center; padding: 16px; font-size: .85rem; }
.ph i { font-size: 2.2rem; color: var(--accent-2); }
.media { border-radius: var(--radius); overflow: hidden; position: relative; }
.media img, .media .ph { width: 100%; height: 100%; object-fit: cover; }

/* Welcome */
.welcome-media { position: relative; padding: 0 0 40px 40px; }
.welcome-media .media { aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.welcome-media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 3px solid var(--accent); border-radius: var(--radius); z-index: -1; }
.since-badge { position: absolute; right: -10px; bottom: 70px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-lg); text-align: center; }
.since-badge strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; }
.since-badge span { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.signature { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--brand); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.check-list li::before { content: "\F26B"; font-family: bootstrap-icons; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1.15rem; }

/* School cards */
.school-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; position: relative; }
.school-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.school-card .media { border-radius: 0; aspect-ratio: 16/10; }
.school-card .media img { transition: transform .6s; }
.school-card:hover .media img { transform: scale(1.06); }
.school-card .body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.school-card .icon { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.5rem; margin: -57px 0 14px; position: relative; border: 4px solid #fff; }
.school-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.school-card .ages { font-size: .82rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.school-card p { color: var(--muted); flex: 1; }
.school-card .stretched-link::after { z-index: 1; }

/* Stats */
.stats { background: var(--brand); background-image: radial-gradient(circle at 10% 20%, rgba(201, 162, 39, .18), transparent 40%), radial-gradient(circle at 90% 80%, rgba(255, 255, 255, .06), transparent 40%); color: #fff; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.6rem); color: var(--accent-2); line-height: 1; font-weight: 600; }
.stat .label { margin-top: 10px; color: #c9d6e3; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; }
@media (min-width: 768px) { .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); } }

/* Feature / pillar cards */
.feature { padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: all .3s; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature .f-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--cream); color: var(--brand); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px; transition: all .3s; }
.feature:hover .f-icon { background: var(--brand); color: var(--accent-2); }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--muted); margin: 0; }

/* News */
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; position: relative; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .media { border-radius: 0; aspect-ratio: 16/10; }
.news-card .media .ph { min-height: 0; }
.news-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; margin-bottom: 10px; }
.news-meta .cat { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 1.2rem; line-height: 1.35; }
.news-card h3 a { color: var(--brand); text-decoration: none; }
.news-card p { color: var(--muted); font-size: .95rem; flex: 1; }

/* Events */
.event { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event-date { flex: 0 0 72px; height: 76px; border-radius: 12px; background: var(--brand); color: #fff; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.event-date strong { font-family: var(--font-head); font-size: 1.8rem; line-height: 1; color: var(--accent-2); }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.event h3 { font-size: 1.08rem; margin: 0 0 4px; font-family: var(--font-body); font-weight: 600; }
.event small { color: var(--muted); }
.event small i { color: var(--accent); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; height: 100%; }
/* Side column with several panels (homepage events + announcements): stacked, sharing the column — never 100% each */
.panel-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.panel-stack > .panel { height: auto; flex: 1 0 auto; }

/* Testimonials */
.testimonial { max-width: 820px; margin: 0 auto; text-align: center; padding: 0 48px 48px; }
.testimonial blockquote { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: #fff; line-height: 1.5; font-weight: 500; }
.testimonial .q-mark { font-size: 3rem; color: var(--accent); line-height: 1; }
.testimonial cite { font-style: normal; color: var(--accent-2); font-weight: 600; display: block; margin-top: 20px; }
.testimonial cite small { display: block; color: #a9b8c8; font-weight: 400; }
#testimonials .carousel-indicators { bottom: 0; }
#testimonials .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }

/* Page hero */
.page-hero { position: relative; background: var(--brand) center/cover no-repeat; color: #fff; padding: 110px 0 90px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 27, 48, .92), rgba(11, 42, 74, .65)); }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(201, 162, 39, .12); }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .lead { color: #cfdbe7; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--accent-2); text-decoration: none; }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: #a9b8c8; }

/* Inner content */
.prose h2 { font-size: 1.9rem; margin: 0 0 16px; }
.prose h3 { font-size: 1.35rem; margin-top: 28px; }
.prose p { color: #3a4856; }
.value-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--brand); width: 100%; }
.value-chip b { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-head); }
.vm-card { padding: 40px; border-radius: var(--radius); height: 100%; position: relative; overflow: hidden; }
.vm-card.dark { background: var(--brand); color: #d7e1ec; }
.vm-card.dark h3 { color: #fff; }
.vm-card.light { background: var(--cream); }
.vm-card i.big { font-size: 2.6rem; color: var(--accent); }

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); }
.tl-item .yr { font-family: var(--font-head); font-size: 1.4rem; color: var(--accent); font-weight: 600; }
.tl-item h3 { font-size: 1.15rem; margin: 2px 0 6px; font-family: var(--font-body); font-weight: 600; }
.tl-item p { color: var(--muted); margin: 0; }

.level-card { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #fff; height: 100%; }
.level-card .head { background: var(--brand); color: #fff; padding: 22px 26px; }
.level-card .head h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.level-card .head small { color: var(--accent-2); font-weight: 600; }
.level-card .content { padding: 24px 26px; }
.subject-tags span { display: inline-block; padding: 5px 12px; margin: 0 6px 8px 0; border-radius: 999px; background: var(--cream); font-size: .85rem; color: var(--brand); font-weight: 500; }

.steps { counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); height: 100%; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 2.6rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

.accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-weight: 600; color: var(--brand); padding: 18px 22px; }
.accordion-button:not(.collapsed) { background: var(--cream); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 44px); }
.form-label { font-weight: 600; font-size: .88rem; color: var(--brand); }
.form-control, .form-select { border-radius: 10px; padding: .75rem 1rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .2); }
.hp { position: absolute; left: -9999px; }

.contact-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item i { flex: 0 0 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--brand); display: grid; place-items: center; font-size: 1.25rem; }
.contact-item h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin: 0 0 2px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Gallery */
.filter-btns .btn { padding: .45rem 1.2rem; font-size: .9rem; border: 1px solid var(--line); background: #fff; color: var(--text); margin: 0 4px 8px; }
.filter-btns .btn.active, .filter-btns .btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.g-item { display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.g-item img, .g-item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; min-height: 0; }
.g-item:hover img, .g-item:hover .ph { transform: scale(1.06); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-size: .9rem; font-weight: 500; background: linear-gradient(transparent, rgba(7, 27, 48, .85)); opacity: 0; transition: opacity .3s; }
.g-item:hover figcaption, .g-item:focus figcaption { opacity: 1; }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; text-align: center; }
.lightbox img, .lightbox .ph { max-height: 80vh; border-radius: var(--radius); min-height: 360px; }
.lightbox .btn-close { position: absolute; right: 0; top: -40px; }

/* Article */
.article-body p { font-size: 1.08rem; color: #34414e; }
.article-body .media { aspect-ratio: 16/8; margin-bottom: 32px; }

/* CTA + footer */
.cta-band { background: linear-gradient(120deg, var(--brand-2), var(--brand)); color: #d7e1ec; padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: -80px; bottom: -160px; width: 340px; height: 340px; border-radius: 50%; background: rgba(201, 162, 39, .12); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band .container { position: relative; z-index: 1; }
.site-footer { background: var(--brand-ink); color: #a9b8c8; padding: 80px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--accent); }
.site-footer a { color: #c9d6e3; text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer li { margin-bottom: 10px; }
.footer-brand { color: #fff !important; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; }
.footer-brand small { font-family: var(--font-body); font-size: .7rem; color: var(--accent-2); letter-spacing: .18em; text-transform: uppercase; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 3px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact i { color: var(--accent); margin-top: 2px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); margin-right: 6px; transition: all .25s; }
.footer-social a:hover { background: var(--accent); color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding: 24px 0; font-size: .85rem; }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 24px rgba(37, 211, 102, .4); z-index: 1040; transition: transform .25s; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
.back-to-top { position: fixed; right: 26px; bottom: 90px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: all .3s; z-index: 1040; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 767.98px) {
    .section { padding: 64px 0; }
    .hero-content { padding: 80px 0 140px; }
    .welcome-media { padding: 0 0 24px 24px; }
    .since-badge { right: 8px; bottom: 40px; padding: 12px 16px; }
    .since-badge strong { font-size: 1.8rem; }
    .testimonial { padding: 0 8px 48px; }
    .page-hero { padding: 72px 0 56px; }
}

/* Additional components */
.staff-card { text-align: center; }
.staff-card .media { aspect-ratio: 1; border-radius: 50%; width: 180px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.staff-card .media .ph { min-height: 0; }
.staff-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.staff-card .role { color: var(--accent); font-weight: 600; font-size: .9rem; }
.term-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.term-row:last-of-type { border-bottom: 0; }
.term-row strong { color: var(--brand); }
.term-row small { grid-column: 1 / -1; color: var(--muted); }
.prog-jump .btn { padding: .5rem 1.1rem; font-size: .92rem; }
.side-news .media .ph { min-height: 0; padding: 4px; }
.side-news .media .ph span { display: none; }
.anniv-badge { width: min(340px, 80vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, var(--brand-2), var(--brand-ink)); color: #fff; box-shadow: 0 0 0 12px var(--cream), 0 0 0 16px var(--accent), var(--shadow-lg); }
.anniv-badge strong { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 8rem); line-height: .9; color: var(--accent-2); }
.anniv-badge span { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; font-weight: 700; text-align: center; }
.anniv-badge small { margin-top: 10px; opacity: .7; }
.media > .ph { border-radius: inherit; }
.alert { border-radius: 12px; }

/* ==========================================================================
   Model Montessori theme — overrides brand tokens only
   ========================================================================== */
:root {
    --brand: #13294b;          /* uniform navy */
    --brand-2: #1e3d6b;
    --brand-ink: #0a1830;
    --accent: #9b1c2e;         /* uniform dark red */
    --accent-2: #d4566a;       /* lighter red for use on navy */
    --accent-ink: #ffffff;
    --cream: #f8f5f4;
    --line: #ebe4e2;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 20px;
}
.ph { background-image: radial-gradient(circle at 75% 25%, rgba(155, 28, 46, .35), transparent 50%), linear-gradient(135deg, var(--brand-2), var(--brand)); }
.btn-gold:hover, .btn-gold:focus { box-shadow: 0 10px 24px rgba(155, 28, 46, .35); }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(155, 28, 46, .2); }
.hero-slide.no-img::before { background-image: radial-gradient(circle at 80% 30%, rgba(212, 86, 106, .28) 0, transparent 45%), radial-gradient(circle at 15% 85%, rgba(255, 255, 255, .08) 0, transparent 40%); }
.page-hero::after { border-color: rgba(212, 86, 106, .14); }
.cta-band::after { background: rgba(212, 86, 106, .14); }
.stats { background-image: radial-gradient(circle at 10% 20%, rgba(212, 86, 106, .2), transparent 40%); }
.feature, .school-card, .news-card, .panel { border-radius: var(--radius); }
.principle { display: flex; gap: 18px; padding: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.principle .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--accent); line-height: 1; flex: 0 0 auto; }
.principle h3 { font-size: 1.15rem; }
.principle p { color: var(--muted); margin: 0; }
.quote-block { font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--brand); font-style: italic; line-height: 1.4; }
.quote-block cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 1rem; color: var(--accent); margin-top: 12px; font-weight: 700; }

/* Blur only on desktop: backdrop-filter would trap the fixed mobile off-canvas menu inside the header */
@media (min-width: 1200px) { .site-header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); } }
html, body { overflow-x: clip; }
@media (max-width: 575.98px) {
    .quick-links { margin-top: -60px; }
    .quick-links .ql { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
    .quick-links .ql-icon { flex-basis: auto; width: 44px; height: 44px; }
    .hero .carousel-indicators { bottom: 80px; }
}

/* Facebook updates (homepage, after the hero) */
.fb-section { background: linear-gradient(180deg, #fff 0, var(--cream) 100%); }
.fb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.fb-head > div { max-width: 680px; }
.fb-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
.fb-head h2 em { font-style: italic; color: var(--accent); }
.btn-fb { background: #1877f2; color: #fff; border: 2px solid #1877f2; }
.btn-fb:hover { background: #0e63d3; border-color: #0e63d3; color: #fff; transform: translateY(-2px); }
.fb-post { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.fb-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fb-post header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.fb-post header img { border-radius: 50%; object-fit: contain; background: var(--cream); }
.fb-post header strong { display: block; font-size: .92rem; color: var(--brand); line-height: 1.2; }
.fb-post header small { color: #6b7280; font-size: .78rem; }
.fb-post header .bi-facebook { color: #1877f2; font-size: 1.15rem; }
.fb-post-media { display: block; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.fb-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fb-post:hover .fb-post-media img { transform: scale(1.05); }
.fb-post p { padding: 14px 16px 0; margin: 0 0 12px; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fb-post-link { margin: auto 16px 0; padding: 12px 0 14px; border-top: 1px solid #edf0f4; font-weight: 600; font-size: .88rem; color: #1877f2; text-decoration: none; }
.fb-post-link:hover { color: #0e63d3; }
.fb-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid #1877f2; height: 100%; }
.fb-embed { position: relative; min-height: 640px; display: flex; justify-content: center; background: #f7f8fa; }
.fb-embed iframe { display: block; border: 0; width: 100%; max-width: 500px; height: 640px; position: relative; z-index: 1; }
.fb-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #1877f2; text-decoration: none; font-weight: 600; }
.fb-fallback i { font-size: 3rem; }
@media (max-width: 575.98px) { .fb-embed, .fb-embed iframe { min-height: 560px; height: 560px; } .fb-head .btn { width: 100%; } }
.g-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--brand); display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .3s; z-index: 2; }
.g-video:hover .g-play { transform: translate(-50%, -50%) scale(1.1); }
.fb-post-media.g-item { border-radius: 0; aspect-ratio: 1; cursor: pointer; }
@media (max-width: 575.98px) { .fb-posts-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: -12px; } .fb-posts-row > * { flex: 0 0 82%; scroll-snap-align: start; } }

/* Page banners: the page photo shows through, blended into the school colour from the left */
.page-hero { background-color: var(--brand); background-position: center 18%; padding: 130px 0 100px; }
.page-hero::before { background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand-ink) 94%, transparent) 0%, color-mix(in srgb, var(--brand) 80%, transparent) 42%, color-mix(in srgb, var(--brand) 28%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--brand-ink) 60%, transparent) 0%, transparent 55%); }
.page-hero .container { z-index: 1; }
.page-hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .25); max-width: 900px; }
@media (max-width: 767.98px) { .page-hero { padding: 80px 0 60px; } .page-hero::before { background: linear-gradient(90deg, color-mix(in srgb, var(--brand-ink) 92%, transparent), color-mix(in srgb, var(--brand) 62%, transparent)); } }

/* Pictures inside articles */
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 12px 0 20px; box-shadow: var(--shadow); }
.prose figure { margin: 28px 0; }
.prose figure img { margin: 0; width: 100%; }
.prose figcaption { font-size: .85rem; color: #6b7280; margin-top: 8px; text-align: center; }
.prose blockquote { border-left: 4px solid var(--accent); padding: 6px 0 6px 20px; margin: 28px 0; font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--brand); }
.prose .symbol { margin: 22px 0; display: flex; gap: 18px; align-items: flex-start; margin: 22px 0; }
.prose .symbol img { width: 92px; height: 92px; object-fit: cover; flex: 0 0 auto; margin: 0; border-radius: 50%; box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--accent); }
.prose .symbol figcaption { text-align: left; font-size: inherit; color: #3a4856; margin: 0; }
.prose .symbol strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--brand); margin-top: 4px; }
.prose .symbol small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.article-album .g-item { aspect-ratio: 1; }
/* Gallery albums */
.album-card .media { position: relative; }
.album-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .media img { transform: scale(1.05); }
.album-count { position: absolute; right: 12px; bottom: 12px; background: rgba(7, 27, 48, .78); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.album-count i { margin-right: 4px; }
.prose .symbol .sym-icon { width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; color: var(--accent-2); background: var(--brand); box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--accent); }
.about-small { min-height: 0; }

/* Other schools in the PIS family (Academics / Programmes page) */
.family-section { background: linear-gradient(180deg, #fff 0, var(--cream) 100%); }
.family-card { position: relative; display: flex; align-items: flex-end; min-height: 460px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); isolation: isolate; height: 100%; }
.family-img { position: absolute; inset: 0; z-index: -2; }
.family-img img, .family-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.family-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--c) 0%, color-mix(in srgb, var(--c) 82%, transparent) 38%, color-mix(in srgb, var(--c) 10%, transparent) 75%); transition: opacity .4s; }
.family-card:hover .family-img img { transform: scale(1.07); }
.family-body { padding: 32px; width: 100%; }
.family-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); margin-bottom: 16px; }
.family-body small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 700; color: rgba(255, 255, 255, .78); margin-bottom: 6px; }
.family-body h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-bottom: 10px; }
.family-body p { color: rgba(255, 255, 255, .88); margin-bottom: 22px; max-width: 460px; }
.family-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 50px; background: #fff; color: var(--c); font-weight: 700; font-size: .92rem; transition: transform .3s, box-shadow .3s; }
.family-card:hover .family-btn { transform: translateX(4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.family-card.soon .family-btn { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
@media (max-width: 575.98px) { .family-card { min-height: 420px; } .family-body { padding: 24px; } }

/* Facilities (School Life) */
.facility { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.facility:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.facility-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%), linear-gradient(135deg, var(--brand-2), var(--brand)); }
.facility-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.facility:hover .facility-media img { transform: scale(1.06); }
.facility-icon { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--accent); color: var(--accent-ink, #fff); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); z-index: 1; }
.facility .facility-media { overflow: visible; }
.facility .facility-media img { border-radius: var(--radius) var(--radius) 0 0; }
.facility.no-photo .facility-icon { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 84px; height: 84px; font-size: 2.2rem; border-radius: 24px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); box-shadow: none; }
.facility-body { padding: 34px 22px 22px; }
.facility.no-photo .facility-body { padding-top: 22px; }
.facility-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.facility-body p { margin: 0; color: #5b6673; font-size: .94rem; }

/* Key principles with pictures (Our Approach) */
.principle-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.principle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.principle-media { position: relative; aspect-ratio: 16/11; }
.principle-media img, .principle-media .ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.principle-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--brand) 55%, transparent), transparent 45%); }
.principle-media .num { position: absolute; left: 20px; bottom: -24px; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; box-shadow: 0 0 0 5px #fff, 0 10px 22px rgba(0, 0, 0, .15); }
.principle-body { padding: 36px 24px 26px; }
.principle-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.principle-body p { color: #5b6673; margin: 0; }

/* ==========================================================================
   Playful motion (Model Montessori only) — all of it switches off for
   visitors whose device asks for reduced motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    :root { --spring: cubic-bezier(.34, 1.56, .64, 1); }

    /* Entrance variants (assigned in main.js) */
    [data-reveal] { transition: opacity .7s ease, transform .9s var(--spring); }
    [data-reveal="zoom"] { transform: scale(.86); }
    [data-reveal="left"] { transform: translateX(-46px) rotate(-1.5deg); }
    [data-reveal="right"] { transform: translateX(46px) rotate(1.5deg); }
    [data-reveal="pop"] { transform: translateY(30px) scale(.9); }
    [data-reveal].in { transform: none; }

    /* Eyebrow lines draw themselves in */
    .eyebrow::before, .text-center .eyebrow::after { transition: width .8s var(--spring) .2s; }
    [data-reveal]:not(.in) .eyebrow::before, [data-reveal]:not(.in) .eyebrow::after { width: 0; }

    /* Buttons: springy bounce + a shine sweep */
    .btn { position: relative; overflow: hidden; transition: transform .35s var(--spring), background-color .25s, color .25s, box-shadow .25s, border-color .25s; }
    .btn::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); pointer-events: none; }
    .btn:hover { transform: translateY(-3px) scale(1.05); }
    .btn:hover::after { animation: shine .75s ease; }
    .btn:active { transform: scale(.94); }
    @keyframes shine { to { left: 130%; } }

    /* Badges and icons wobble when their card is hovered */
    @keyframes jelly { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.18, .84); } 50% { transform: scale(.88, 1.12); } 70% { transform: scale(1.06, .95); } 85% { transform: scale(.98, 1.03); } }
    @keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } 85% { transform: rotate(3deg); } }
    @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
    .feature:hover .f-icon, .ql:hover .ql-icon, .school-card:hover .icon, .facility:hover .facility-icon,
    .family-card:hover .family-icon, .event:hover .event-date, .news-card:hover .cat { animation: jelly .8s ease; }
    .principle-card:hover .num { animation: wiggle .7s ease; background: var(--brand); }
    .f-icon { animation: bob 3.2s ease-in-out infinite; }
    .feature:nth-child(2n) .f-icon, .col-md-6:nth-child(2n) .f-icon { animation-delay: -1.6s; }
    .feature:hover .f-icon { background: var(--accent); color: #fff; }
    .subject-tags span, .school-pill, .filter-btns .btn { transition: transform .3s var(--spring), background .2s, color .2s; }
    .subject-tags span:hover { transform: translateY(-3px) rotate(-3deg); background: var(--accent); color: #fff; }
    .school-pill:hover { transform: scale(1.12) rotate(-3deg); }
    .since-badge { animation: bob 4s ease-in-out infinite; }
    .since-badge:hover, .anniv-badge:hover { animation: jelly .8s ease; }
    .navbar-brand img { transition: transform .5s var(--spring); }
    .navbar-brand:hover img { transform: rotate(-10deg) scale(1.1); }

    /* Cards lift with a playful tilt */
    .feature, .school-card, .news-card, .facility, .principle-card, .fb-post, .panel, .g-item { transition: transform .45s var(--spring), box-shadow .3s, border-color .3s; }
    .feature:hover, .facility:hover, .fb-post:hover { transform: translateY(-8px) rotate(-.6deg); }
    .school-card:hover, .news-card:hover, .principle-card:hover { transform: translateY(-8px) rotate(.6deg); }
    .g-item:hover { transform: scale(1.03) rotate(-1deg); z-index: 2; }
    .col-6:nth-child(2n) .g-item:hover { transform: scale(1.03) rotate(1deg); }

    /* Numbers pop when the counter finishes */
    .stat .num.popped { animation: jelly .7s ease; }

    /* Floating shapes in page banners and the stats band */
    .float-shape { position: absolute; z-index: 0; pointer-events: none; opacity: .5; animation: drift 9s ease-in-out infinite; }
    .float-shape.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); }
    .float-shape.ring { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); }
    .float-shape.star { color: var(--accent-2); font-size: 1.4rem; line-height: 1; }
    .float-shape.square { width: 18px; height: 18px; border-radius: 5px; border: 3px solid var(--accent-2); }
    @keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(14px, -18px) rotate(40deg); } 66% { transform: translate(-10px, 10px) rotate(-25deg); } }

    /* WhatsApp button gently pulses */
    .whatsapp-float { animation: pulse 2.6s ease-out infinite; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

    /* Confetti burst from buttons */
    .confetti { position: fixed; z-index: 3000; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: burst .8s ease-out forwards; }
    @keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
}

/* Video wall (School Life) and portrait reels in the lightbox */
.video-tile { display: block; position: relative; aspect-ratio: 9/14; border-radius: var(--radius); overflow: hidden; background: var(--brand); box-shadow: var(--shadow); }
.video-tile img, .video-tile .ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.video-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, transparent 45%), linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 25%); pointer-events: none; }
.video-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.video-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 700; line-height: 1.25; font-size: .98rem; }
.video-tile .g-play { width: 54px; height: 54px; font-size: 1.7rem; }
.lightbox .video-portrait { --bs-aspect-ratio: 177.78%; width: min(420px, calc(85vh * 9 / 16)); margin: 0 auto; }
.lightbox .video-square { --bs-aspect-ratio: 100%; width: min(640px, 80vh); margin: 0 auto; }
@media (max-width: 575.98px) { .video-wall { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-right: -12px; } .video-wall > * { flex: 0 0 62%; scroll-snap-align: start; } }

/* Programme page: at-a-glance facts and learning outcomes */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.glance div { background: #fff; padding: 18px 22px; }
.glance small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.glance strong { color: var(--brand); font-size: 1.05rem; font-weight: 600; }
.learn-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); height: 100%; }
.learn-item > i { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--accent); font-size: 1.3rem; }
.bg-cream .learn-item > i { background: #fff; }
.learn-item h3 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.learn-item p { margin: 0; color: var(--muted); }

/* Footer: accreditations */
.footer-accred { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-accred h3 { margin: 0; }
.footer-accred ul { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.footer-accred li { margin: 0; }
.site-footer .accred { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: background .2s, border-color .2s; }
.site-footer .accred { font: inherit; text-align: left; cursor: pointer; }
.site-footer .accred:hover, .site-footer .accred:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--accent); color: #fff; }
.accred i { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); font-size: 1.25rem; }
.accred img { width: auto; min-width: 44px; max-width: 96px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.accred strong { display: block; font-size: .95rem; line-height: 1.2; }
.accred small { display: block; color: #a9b8c8; font-size: .78rem; }

/* Lightbox: browse a gallery without closing it */
.lightbox .lb-media { max-width: 100%; animation: lb-in .25s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.lb-caption { color: #fff; margin: 14px 0 0; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lb-count { color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1065; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.5rem; transition: background .2s; }
.lb-nav:hover, .lb-nav:focus-visible { background: rgba(255, 255, 255, .3); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 767.98px) {
    .lb-nav { width: 42px; height: 42px; font-size: 1.2rem; top: auto; bottom: 18px; transform: none; }
}
.modal-open .whatsapp-float, .modal-open .back-to-top { display: none !important; } /* keep the viewer's arrows clear */

/* Head of School page: letter, profile, quote, feature photo */
.head-portrait { position: relative; margin: 0; }
@media (min-width: 992px) { .head-portrait { position: sticky; top: 110px; } }
.head-portrait .media { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.head-portrait figcaption { position: relative; margin: -46px 20px 0; padding: 16px 20px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.head-portrait figcaption strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--brand); }
.head-portrait figcaption span { display: block; color: var(--muted); font-size: .9rem; }
.head-contact { display: inline-flex; align-items: center; gap: 8px; margin: 18px 20px 0; font-size: .92rem; }
.head-letter > p:first-of-type { font-family: var(--font-head); font-size: 1.35rem; color: var(--brand); }
.head-signoff { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.head-profile-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.head-profile-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 6px 0 6px; }
.head-award { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem; }
.head-award i { color: var(--accent-2, var(--accent)); font-size: 1.15rem; }
.head-bio > p:first-of-type::first-letter { float: left; font-family: var(--font-head); font-size: 3.6rem; line-height: .85; padding: 6px 10px 0 0; color: var(--brand); }
.prose .head-quote { margin: 32px 0 0; padding: 26px 30px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); position: relative; font-style: normal; }
.prose .head-quote::before { content: "\201C"; position: absolute; top: -14px; left: 22px; font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--accent); }
.prose .head-quote p { margin: 0; font-family: var(--font-head); font-size: 1.3rem; font-style: italic; line-height: 1.5; color: var(--brand); }
.head-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .9rem; font-weight: 600; color: var(--accent); }
.head-facts { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 26px; }
.head-facts .learn-item { height: auto; padding: 18px 0; }
.head-facts .learn-item:last-child { border-bottom: 0; }
.head-facts .learn-item > i { background: var(--cream); }
.head-download { text-decoration: none; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--brand); color: #fff; transition: transform .2s, background .2s; }
.head-download:hover { color: #fff; background: var(--brand-2); transform: translateY(-2px); }
.head-download > i:first-child { font-size: 1.8rem; color: var(--accent-2, var(--accent)); }
.head-download strong { display: block; }
.head-download small { display: block; opacity: .75; }
.head-feature { margin: 56px 0 0; }
.head-feature img { width: 100%; max-height: 620px; object-fit: cover; object-position: center 25%; border-radius: var(--radius); box-shadow: var(--shadow); }
.head-feature figcaption { margin-top: 12px; text-align: center; font-size: .9rem; font-style: italic; color: var(--muted); }

/* Self-hosted videos: lightbox player and the video at the top of a news post */
.lightbox .ratio > video { object-fit: contain; background: #000; }
.article-video { margin: 0 0 28px; }
.article-video video { display: block; width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.article-video.video-portrait video { width: min(100%, 440px, calc(80vh * 9 / 16)); margin: 0 auto; aspect-ratio: 9 / 16; }
.article-video.video-square video { width: min(100%, 560px); margin: 0 auto; aspect-ratio: 1; }
.article-video figcaption { margin-top: 10px; text-align: center; font-size: .9rem; color: var(--muted); }

/* Accreditation pop-up (footer) */
.accred-modal .modal-content { border: 0; border-radius: calc(var(--radius) + 6px); color: var(--text); background: var(--surface, #fff); box-shadow: 0 30px 80px rgba(7, 27, 48, .35); overflow: hidden; }
.accred-modal .btn-close { position: absolute; top: 14px; right: 14px; z-index: 2; background-color: rgba(255, 255, 255, .9); border-radius: 50%; padding: .6rem; opacity: .8; }
.accred-modal .modal-body { padding: 0; }
.accred-modal-grid { display: grid; }
.accred-modal-grid.has-cert { grid-template-columns: 1fr; }
.accred-modal-info { padding: 40px 32px 32px; text-align: center; }
.accred-modal-logo { display: grid; place-items: center; height: 120px; margin: 0 auto 22px; padding: 14px 22px; max-width: 280px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(7, 27, 48, .08); }
.accred-modal-logo img { max-width: 100%; max-height: 92px; object-fit: contain; }
.accred-modal-logo i { font-size: 3rem; color: var(--accent); }
.accred-modal-eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.accred-modal h2 { font-size: 1.45rem; margin: 0 0 12px; }
.accred-modal-note { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; background: var(--cream); color: var(--brand); font-weight: 600; font-size: .88rem; }
.accred-modal-note i { color: var(--accent); }
.accred-modal-details { color: var(--muted); line-height: 1.7; margin: 0 auto 22px; max-width: 46ch; }
.accred-modal-cert { position: relative; display: block; padding: 24px; background: var(--cream); border-top: 1px solid var(--line); text-align: center; }
.accred-modal-cert img { max-width: 100%; max-height: 62vh; border-radius: 8px; box-shadow: 0 12px 34px rgba(7, 27, 48, .18); transition: transform .25s; }
.accred-modal-cert:hover img { transform: scale(1.015); }
.accred-modal-cert span { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--brand); }
@media (min-width: 992px) {
    .accred-modal-grid.has-cert { grid-template-columns: 1fr 1fr; align-items: stretch; }
    .accred-modal-grid.has-cert .accred-modal-info { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 36px; }
    .accred-modal-cert { border-top: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .accred-modal-cert img { max-height: 70vh; }
}

/* Announcements (short notices), Code of Conduct, School Anthem — shared pages */
.notice { padding: 18px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.notice time { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.notice h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.notice p { color: var(--muted); margin: 0; font-size: .95rem; }
.notice-list .notice { padding: 26px 28px; margin-bottom: 18px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.notice-list .notice h3 { font-size: 1.3rem; }
.notice-panel .notice { padding: 14px 0; }
.conduct-rule { position: relative; }
.conduct-rule .rule-no { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--line); }
.conduct-note { display: flex; gap: 14px; align-items: flex-start; }
.conduct-note i { font-size: 1.4rem; color: var(--accent); }
.anthem { position: relative; padding: 48px 40px; border-radius: var(--radius); background: var(--cream); text-align: center; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.9; color: var(--brand); }
.anthem p { margin: 0 0 1.6em; }
.anthem p:last-child { margin-bottom: 0; }
.anthem-icon { display: block; font-size: 2rem; color: var(--accent); margin-bottom: 18px; }
@media (max-width: 575.98px) { .anthem { padding: 32px 20px; font-size: 1.05rem; } .notice-list .notice { padding: 20px; } }

/* "Get notifications" bell and pop-up (CMS → Settings → Notifications) */
.push-float { position: fixed; left: 20px; bottom: 20px; z-index: 1040; height: 52px; min-width: 52px; padding: 0 18px 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); transition: transform .25s, background .25s; }
.push-float i { font-size: 1.25rem; color: var(--accent-2, #fff); }
.push-float:hover { transform: translateY(-2px); background: var(--brand-2, var(--brand)); }
.push-float.is-on { padding: 0; width: 52px; justify-content: center; }
.push-float.is-on .push-float-text { display: none; }
@media (max-width: 575.98px) { .push-float { padding: 0; width: 52px; justify-content: center; } .push-float-text { display: none; } }
.push-modal .modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.push-modal .btn-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.push-modal .modal-body { padding: 36px 30px 30px; text-align: center; }
.push-modal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.push-icon img { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.push-lead { color: var(--muted); margin-bottom: 22px; }
.push-small { color: var(--muted); font-size: .86rem; margin: 12px 0 0; }
.push-ok { color: #157347; font-weight: 600; } .push-ok i { margin-right: 6px; }
.push-warn { color: var(--brand); font-weight: 600; } .push-warn i { margin-right: 6px; color: var(--accent); }
.push-error { color: #b02a37; font-size: .88rem; margin: 14px 0 0; }
.push-steps { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 12px; }
.push-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; counter-increment: step; }
.push-step-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--brand); font-size: 1.2rem; }
.push-hint { color: var(--muted); }

/* Portals: header button, band above the footer, pop-up and /portals page (CMS: Content → Portals) */
.topbar .portal-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .08); }
.header-portals { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 600; padding: 5px 12px; }
@media (max-width: 459.98px) { .header-portals { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 1.1rem; } .header-portals span { display: none; } }
.portal-band { background: var(--cream); border-top: 1px solid var(--line); padding: 44px 0; }
.portal-band-inner { display: flex; align-items: center; gap: 28px; }
.portal-band-icon { flex-shrink: 0; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 2rem; box-shadow: 0 12px 28px rgba(7, 27, 48, .18); }
.portal-band-text { flex: 1; min-width: 0; }
.portal-band .eyebrow { margin-bottom: 6px; }
.portal-band h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 6px; }
.portal-band p { color: var(--muted); margin: 0 0 12px; }
.portal-band-names { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.portal-band-names li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--brand); }
.portal-band-names i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--accent); font-size: .85rem; }
.portal-band-names img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; }
.portal-band-btn { flex-shrink: 0; }
@media (max-width: 767.98px) {
    .portal-band-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
    .portal-band-icon { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 14px; }
    .portal-band-btn { width: 100%; }
}
.portal-list { display: grid; gap: 16px; }
.portal-card { display: flex; gap: 20px; align-items: flex-start; padding: 20px; border-radius: var(--radius, 14px); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.portal-card:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(7, 27, 48, .08); }
.portal-logo { flex-shrink: 0; width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.portal-logo img { max-width: 72px; max-height: 72px; object-fit: contain; }
.portal-logo i { font-size: 2.2rem; color: var(--accent); }
.portal-body { min-width: 0; }
.portal-body h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.portal-body p { color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
@media (max-width: 575.98px) {
    .portal-card { flex-direction: column; gap: 14px; }
    .portal-logo { width: 64px; height: 64px; }
}
.portals-modal .modal-content { border: 0; border-radius: calc(var(--radius, 14px) + 6px); overflow: hidden; box-shadow: 0 30px 80px rgba(7, 27, 48, .35); }
.portals-modal .modal-header { align-items: flex-start; padding: 28px 28px 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
.portals-modal .modal-title { font-size: 1.5rem; margin: 0 0 4px; }
.portals-modal .modal-header p { color: var(--muted); }
.portals-modal .modal-body { padding: 24px 28px; }
.portals-modal .modal-footer { border-top: 1px solid var(--line); }

/* Directress page: award ("Recognition") band */
.head-award-plaque { margin: 0; padding: 12px; border-radius: var(--radius); background: rgba(255,255,255,.08); box-shadow: 0 24px 60px rgba(0,0,0,.35); transform: rotate(-1.5deg); }
.head-award-plaque img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.head-award-band .eyebrow { color: var(--accent-2, #fff); }
.head-award-band h2 { margin-bottom: 10px; }
.head-award-event { display: flex; gap: 10px; align-items: baseline; color: var(--accent-2, #fff); font-weight: 600; margin-bottom: 18px; }
.head-award-text p { font-size: 1.05rem; line-height: 1.75; }
@media (max-width: 991.98px) { .head-award-plaque { transform: none; max-width: 420px; margin: 0 auto; } }

/* Homepage spotlight (CMS → Homepage → Spotlight) */
.spotlight { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.spotlight-media { position: relative; }
.spotlight-media .media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.spotlight-media .media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-second { position: absolute; right: -18px; bottom: -28px; width: 38%; aspect-ratio: 3/4; object-fit: cover; border: 6px solid #fff; border-radius: var(--radius); transform: rotate(3deg); }
.spotlight-media.has-second { margin-right: 18px; margin-bottom: 28px; }
@media (max-width: 575.98px) { .spotlight-second { width: 42%; right: -8px; bottom: -20px; border-width: 4px; } .spotlight-media.has-second { margin-right: 8px; } }

/* School Life: activity picture cards (CMS → School Life → Activity pictures) */
.activity-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, var(--shadow)); }
.activity-media { position: relative; aspect-ratio: 16/10; }
.activity-media img, .activity-media .ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.activity-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--brand) 50%, transparent), transparent 45%); pointer-events: none; }
.activity-icon { position: absolute; left: 20px; bottom: -24px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); font-size: 1.3rem; box-shadow: 0 0 0 5px #fff, 0 10px 22px rgba(0, 0, 0, .15); }
.activity-body { padding: 36px 24px 26px; }
.activity-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.activity-body p { color: var(--muted, #5b6673); margin: 0; }
