/* ════════════════════════════════════════════════════════════════
   School public website — shared stylesheet.
   Colours/fonts come from each school's CMS settings as CSS variables
   (--pub-primary / --pub-secondary / --pub-accent / --font-h / --font-b),
   set inline in public/header.php.
   ════════════════════════════════════════════════════════════════ */
:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #5b6475;
    --line: #e6e8ee;
    --soft: color-mix(in srgb, var(--pub-primary) 4%, #f8f9fb);
    --tint: color-mix(in srgb, var(--pub-primary) 10%, #fff);
    --deep: color-mix(in srgb, var(--pub-primary) 72%, #000);
    --r-sm: 10px; --r: 16px; --r-lg: 24px;
    --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 2px 4px rgba(15,23,42,.04), 0 18px 48px rgba(15,23,42,.12);
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-b), system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink-2);
       background: #fff; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6 {
    font-family: var(--font-h), system-ui, sans-serif; color: var(--ink); text-wrap: balance; }
a { color: var(--pub-primary); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--pub-accent) 60%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { font-weight: 600; }
.btn-pub-primary   { background: var(--pub-primary); color: #fff; border: none; }
.btn-pub-primary:hover { background: var(--deep); color: #fff; }
.btn-pub-accent    { background: var(--pub-accent); color: #fff; border: none; }
.btn-pub-accent:hover  { filter: brightness(.94); color: #fff; }
.btn-pub-secondary { background: var(--pub-secondary); color: #111; border: none; }
.btn-pub-secondary:hover { filter: brightness(.95); color: #111; }
.btn-pub-outline   { border: 2px solid var(--pub-primary); color: var(--pub-primary); background: transparent; }
.btn-pub-outline:hover { background: var(--pub-primary); color: #fff; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-glass:hover { background: #fff; color: var(--ink); }
.text-pub-primary { color: var(--pub-primary) !important; }
.text-pub-accent  { color: var(--pub-accent) !important; }
.bg-pub-primary   { background: var(--pub-primary) !important; }
.fw-600 { font-weight: 600 !important; } .fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; } .fw-900 { font-weight: 900 !important; }
.py-lg-7 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ── Top strip ───────────────────────────────────────────────── */
.pub-topbar { background: var(--deep); color: rgba(255,255,255,.85); font-size: .8rem; }
.pub-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.pub-topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.pub-topbar a:hover { color: #fff; }
.pub-topbar .tb-group { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.pub-topbar .tb-item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.pub-topbar .tb-social a { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 6px; }
.pub-topbar .tb-social a:hover { background: rgba(255,255,255,.15); }
.pub-topbar .tb-affil { color: var(--pub-secondary); font-weight: 600; }

/* ── Navbar ──────────────────────────────────────────────────── */
.pub-navbar { background: rgba(255,255,255,.97) !important; backdrop-filter: saturate(160%) blur(8px);
              border-bottom: 1px solid var(--line); transition: box-shadow .2s, padding .2s; padding: .6rem 0; }
.pub-navbar.is-scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.08); padding: .35rem 0; }
.pub-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.pub-brand-logo { width: auto; transition: height .2s; }
.pub-brand-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--pub-primary); color: #fff;
                  display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.pub-brand-text { color: var(--ink) !important; font-family: var(--font-h), sans-serif; font-weight: 800;
                  font-size: 1.12rem; line-height: 1.15; display: block; }
.pub-brand-tagline { font-size: .72rem; color: var(--muted); display: block; font-weight: 500; letter-spacing: .01em; }
.pub-navbar .nav-link { font-weight: 600; font-size: .92rem; color: var(--ink-2) !important; padding: .55rem .8rem !important; border-radius: 8px; }
.pub-navbar .nav-link:hover, .pub-navbar .nav-link.active { color: var(--pub-primary) !important; background: var(--tint); }
.pub-navbar .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .4rem; min-width: 230px; }
.pub-navbar .dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: .9rem; font-weight: 500; }
.pub-navbar .dropdown-item i { color: var(--pub-primary); width: 20px; }
.pub-navbar .dropdown-item:hover { background: var(--tint); color: var(--pub-primary); }
@media (min-width: 992px) { .pub-navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }
@media (max-width: 991.98px) {
    .pub-navbar .navbar-collapse { padding: .75rem 0 1rem; max-height: 75vh; overflow-y: auto; }
    .pub-navbar .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
}

/* ── Ticker ──────────────────────────────────────────────────── */
.pub-ticker { background: var(--pub-secondary); color: #111; font-size: .88rem; overflow: hidden; }
.pub-ticker .container { display: flex; align-items: stretch; min-height: 40px; }
.pub-ticker-label { background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
                    font-size: .72rem; display: flex; align-items: center; gap: .4rem; padding: 0 1rem; flex-shrink: 0; }
.pub-ticker-track { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center;
                    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
/* The item list is printed twice; sliding by exactly half loops seamlessly,
   and the text is on screen from the first frame. */
.pub-ticker-move { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 1rem;
                   animation: pubTicker var(--ticker-dur, 40s) linear infinite; font-weight: 600; }
.pub-ticker-move > .tk-set { display: inline-flex; gap: 3rem; padding-right: 3rem; }
.pub-ticker-move a { color: inherit; text-decoration: none; }
.pub-ticker-move a:hover { text-decoration: underline; }
.pub-ticker-move span::before { content: '●'; font-size: .55rem; margin-right: .8rem; vertical-align: middle; opacity: .6; }
.pub-ticker:hover .pub-ticker-move { animation-play-state: paused; }
@keyframes pubTicker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pub-ticker-move > .tk-set + .tk-set { display: none; } .pub-ticker-track { overflow-x: auto; } }

/* ── Hero ────────────────────────────────────────────────────── */
.pub-hero { position: relative; background: var(--deep); overflow: hidden; }
.pub-hero .carousel-item { height: clamp(520px, 78vh, 720px); background-size: cover; background-position: center; }
.pub-hero-shade { position: absolute; inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--deep) 88%, transparent) 0%,
                                        color-mix(in srgb, var(--deep) 55%, transparent) 50%, rgba(0,0,0,.1) 100%); }
.pub-hero-inner { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2; }
.pub-hero-copy { max-width: 640px; color: #fff; padding-bottom: 3rem; }
.pub-hero-badge { display: inline-flex; align-items: center; gap: .45rem; background: var(--pub-secondary); color: #111;
                  font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
                  padding: .42rem 1rem; border-radius: 100px; margin-bottom: 1.1rem; }
.pub-hero-title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; letter-spacing: -.01em; }
.pub-hero-sub { color: rgba(255,255,255,.88); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.6; max-width: 34em; }
.pub-hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; color: rgba(255,255,255,.85); font-size: .88rem; }
.pub-hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.pub-hero-trust i { color: var(--pub-secondary); }
.pub-hero .carousel-indicators { justify-content: flex-start; margin-left: max(1rem, calc((100vw - 1296px) / 2 + .75rem)); margin-bottom: 5.5rem; }
.pub-hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; border: 0; }
/* No photos yet — branded panel instead of an empty block */
.pub-hero-static { min-height: clamp(520px, 70vh, 660px); display: flex; align-items: center; position: relative;
    background: radial-gradient(1000px 500px at 85% 20%, color-mix(in srgb, var(--pub-accent) 35%, transparent), transparent 60%),
                linear-gradient(135deg, var(--pub-primary), var(--deep)); }
.pub-hero-static::after { content: ''; position: absolute; inset: 0; opacity: .08;
    background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.pub-hero-static .container { position: relative; z-index: 2; }
.pub-hero-panel { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-lg);
                  padding: 2rem; color: #fff; backdrop-filter: blur(6px); }
.pub-hero-panel .hp-year { font-size: 4rem; font-weight: 800; line-height: 1; font-family: var(--font-h), sans-serif; }
@media (max-width: 767.98px) {
    .pub-hero .carousel-item { height: 560px; }
    .pub-hero-shade { background: linear-gradient(180deg, color-mix(in srgb, var(--deep) 55%, transparent), color-mix(in srgb, var(--deep) 92%, transparent)); }
    .pub-hero-inner { align-items: flex-end; }
    .pub-hero-copy { padding-bottom: 5.5rem; }
    .pub-hero .carousel-indicators { margin-bottom: 4.5rem; }
}

/* ── Quick-action tiles (overlap the hero) ───────────────────── */
.pub-quick { position: relative; z-index: 5; margin-top: -3.25rem; }
.pub-quick-grid { display: grid; grid-template-columns: repeat(var(--qcols, 4), 1fr); gap: 1rem; }
.pub-quick-tile { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.15rem 1.2rem;
                  display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink);
                  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.pub-quick-tile:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 24px 56px rgba(15,23,42,.16); }
.pub-quick-tile .qi { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem;
                      background: var(--tint); color: var(--pub-primary); flex-shrink: 0; }
.pub-quick-tile:nth-child(2) .qi { background: color-mix(in srgb, var(--pub-accent) 14%, #fff); color: var(--pub-accent); }
.pub-quick-tile:nth-child(3) .qi { background: color-mix(in srgb, var(--pub-secondary) 20%, #fff); color: color-mix(in srgb, var(--pub-secondary) 70%, #000); }
.pub-quick-tile .qt { font-weight: 700; font-size: .96rem; line-height: 1.2; display: block; }
.pub-quick-tile .qs { font-size: .78rem; color: var(--muted); display: block; margin-top: .15rem; }
@media (max-width: 991.98px) { .pub-quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pub-quick-tile { padding: .9rem; } .pub-quick-tile .qi { width: 40px; height: 40px; font-size: 1.1rem; } .pub-quick-tile .qs { display: none; } }

/* ── Section scaffolding ─────────────────────────────────────── */
.pub-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.pub-section.soft { background: var(--soft); }
.pub-head { max-width: 680px; margin: 0 auto 2.75rem; text-align: center; }
.pub-head.left { margin-left: 0; text-align: left; }
.pub-eyebrow, .pub-section-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--pub-primary);
    background: var(--tint); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: .35rem .9rem; border-radius: 100px; margin-bottom: .85rem; }
.pub-section-eyebrow-light { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.92);
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 100px; }
.pub-title, .section-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
.pub-lead, .section-subtitle { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-top: .75rem; }
.section-subtitle { max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── About ───────────────────────────────────────────────────── */
.pub-about-media { position: relative; }
.pub-about-media img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 4/3.2; box-shadow: var(--shadow-lg); }
.pub-about-placeholder { aspect-ratio: 4/3.2; border-radius: var(--r-lg); display: grid; place-items: center; color: #fff; text-align: center;
    background: radial-gradient(600px 300px at 80% 10%, color-mix(in srgb, var(--pub-accent) 45%, transparent), transparent 60%),
                linear-gradient(135deg, var(--pub-primary), var(--deep)); }
.pub-est-badge { position: absolute; bottom: -22px; right: -14px; width: 118px; height: 118px; border-radius: 50%;
    background: var(--pub-secondary); color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.pub-est-text { font-size: .66rem; letter-spacing: .25em; font-weight: 700; }
.pub-est-year { font-size: 1.85rem; font-weight: 800; line-height: 1; font-family: var(--font-h), sans-serif; }
.pub-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.pub-checks li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.pub-checks i { color: var(--pub-accent); margin-top: .1rem; }
@media (max-width: 575.98px) { .pub-checks { grid-template-columns: 1fr; } .pub-est-badge { width: 92px; height: 92px; right: 8px; } .pub-est-year { font-size: 1.4rem; } }
.pub-mv-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; height: 100%; }
.pub-mv-icon { font-size: 1.35rem; color: var(--pub-primary); }

/* ── Stats band ──────────────────────────────────────────────── */
.pub-stats { background: linear-gradient(135deg, var(--pub-primary), var(--deep)); color: #fff; border-radius: var(--r-lg);
             padding: 2.25rem 1rem; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; overflow: hidden; }
.pub-stats::after { content: ''; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 20px 20px; }
.pub-stat { text-align: center; padding: .5rem; position: relative; z-index: 1; }
.pub-stat + .pub-stat { border-left: 1px solid rgba(255,255,255,.18); }
.pub-stat i { font-size: 1.6rem; color: var(--pub-secondary); }
.pub-stat .sv { font-family: var(--font-h), sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.1; margin-top: .35rem; font-variant-numeric: tabular-nums; }
.pub-stat .sl { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
@media (max-width: 767.98px) { .pub-stats { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; } .pub-stat:nth-child(3) { border-left: 0; } }

/* ── Principal's desk ────────────────────────────────────────── */
.pub-principal { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pub-principal-photo { position: relative; }
.pub-principal-photo img, .pub-principal-photo .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.pub-principal-photo .ph { display: grid; place-items: center; color: #fff; font-family: var(--font-h), sans-serif; font-weight: 800;
    font-size: clamp(3.5rem, 8vw, 5.5rem); letter-spacing: .04em;
    background: radial-gradient(400px 260px at 80% 0%, color-mix(in srgb, var(--pub-accent) 45%, transparent), transparent 60%),
                linear-gradient(160deg, var(--pub-primary), var(--deep)); }
.pub-principal-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--pub-secondary); border-radius: var(--r-lg); z-index: -1; }
.pub-quote-mark { font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--pub-secondary); display: block; height: 2.2rem; }
.pub-principal-msg { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.pub-principal-msg.clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.pub-principal-name { font-family: var(--font-h), sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-top: 1.25rem; }
.pub-principal-role { color: var(--pub-primary); font-weight: 600; font-size: .92rem; }
.pub-principal-sign { max-height: 56px; margin-top: .5rem; opacity: .9; }
@media (max-width: 767.98px) { .pub-principal { grid-template-columns: 1fr; } .pub-principal-photo { width: 100%; max-width: 280px; margin: 0 auto 1rem; } }

/* ── Cards (programs, facilities, news) ──────────────────────── */
.pub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pub-prog-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 1.45rem; color: var(--pub-primary); }
.pub-fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pub-fac { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.25rem; transition: .2s; }
.pub-fac:hover { border-color: color-mix(in srgb, var(--pub-primary) 35%, var(--line)); box-shadow: var(--shadow); }
.pub-fac i { font-size: 1.6rem; color: var(--pub-primary); display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); }
.pub-fac h3 { font-size: 1.02rem; font-weight: 700; margin: .9rem 0 .35rem; }
.pub-fac p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 991.98px) { .pub-fac-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pub-fac-grid { grid-template-columns: 1fr; } }

/* ── Toppers / achievements rail ─────────────────────────────── */
.pub-rail-wrap { position: relative; }
.pub-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1rem;
            overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: thin; }
.pub-rail > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .pub-rail { grid-auto-columns: calc((100% - 3rem) / 4); } }
.pub-rail-btn { position: absolute; top: 42%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
                background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; color: var(--ink); }
.pub-rail-btn.prev { left: -18px; } .pub-rail-btn.next { right: -18px; }
.pub-rail-btn:hover { background: var(--pub-primary); color: #fff; }
@media (max-width: 767.98px) { .pub-rail-btn { display: none; } }
.pub-topper { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.25rem 1.25rem; text-align: center;
              position: relative; overflow: hidden; height: 100%; }
.pub-topper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 70px;
                      background: linear-gradient(135deg, var(--pub-primary), var(--deep)); }
.pub-topper .tp-photo { position: relative; width: 104px; height: 104px; margin: .25rem auto .9rem; border-radius: 50%;
                        border: 4px solid #fff; box-shadow: var(--shadow); overflow: hidden; background: var(--tint);
                        display: grid; place-items: center; color: var(--pub-primary); font-weight: 800; font-size: 2rem; }
.pub-topper .tp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pub-topper .tp-score { font-family: var(--font-h), sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--pub-primary); line-height: 1; }
.pub-topper .tp-name { font-weight: 700; color: var(--ink); margin-top: .5rem; font-size: 1.02rem; }
.pub-topper .tp-sub { font-size: .84rem; color: var(--muted); }
.pub-topper .tp-tag { display: inline-block; margin-top: .6rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
                      background: color-mix(in srgb, var(--pub-secondary) 22%, #fff); color: color-mix(in srgb, var(--pub-secondary) 60%, #000);
                      padding: .2rem .6rem; border-radius: 100px; }

/* ── Gallery ─────────────────────────────────────────────────── */
.pub-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: .75rem; }
.pub-mosaic .pub-gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767.98px) { .pub-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }
.pub-gallery-item { position: relative; cursor: pointer; border-radius: 14px; overflow: hidden; background: var(--soft); }
.pub-gallery-item img { transition: transform .5s ease; display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-gallery-item:hover img { transform: scale(1.06); }
.pub-gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff; padding: 1.5rem 1rem .75rem; font-size: .85rem; font-weight: 600; transform: translateY(100%); transition: .3s; }
.pub-gallery-item:hover .pub-gallery-caption { transform: translateY(0); }

/* ── Notice board + news ─────────────────────────────────────── */
.pub-notice { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.pub-notice-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.pub-notice-head h3 { font-size: 1.1rem; font-weight: 800; margin: 0; display: flex; gap: .5rem; align-items: center; }
.pub-notice-head h3 i { color: var(--pub-secondary); }
.pub-notice-list { list-style: none; margin: 0; padding: .25rem 0; max-height: 430px; overflow-y: auto; flex: 1; }
.pub-notice-list li { display: flex; gap: .9rem; padding: .85rem 1.25rem; border-bottom: 1px dashed var(--line); }
.pub-notice-list li:last-child { border-bottom: 0; }
.pub-date-chip { width: 52px; flex-shrink: 0; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pub-date-chip .dd { display: block; font-family: var(--font-h), sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); line-height: 1.5; }
.pub-date-chip .mm { display: block; background: var(--pub-primary); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; padding: .12rem 0; }
.pub-notice-title { font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.35; }
.pub-notice-text { font-size: .84rem; color: var(--muted); margin-top: .2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-new { background: #ef4444; color: #fff; font-size: .62rem; font-weight: 800; padding: .08rem .4rem; border-radius: 4px; margin-left: .35rem; vertical-align: middle; }
.pub-news-card img { height: 190px; object-fit: cover; width: 100%; border-radius: var(--r) var(--r) 0 0; }
.pub-news-date { font-size: .8rem; color: var(--pub-primary); font-weight: 600; }
.pub-read-more { color: var(--pub-primary); font-weight: 700; text-decoration: none; font-size: .9rem; }
.pub-read-more:hover { color: var(--pub-accent); }

/* ── Testimonials ────────────────────────────────────────────── */
.pub-testi-band { background: linear-gradient(135deg, var(--pub-primary), var(--deep)); color: #fff; }
.pub-testi-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 1.6rem; height: 100%; }
.pub-testi-quote { color: rgba(255,255,255,.92); font-size: .98rem; line-height: 1.75; }
.pub-testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--pub-secondary); display: grid; place-items: center;
                    color: #111; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; overflow: hidden; }
.pub-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Admission CTA band ──────────────────────────────────────── */
.pub-cta { border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
           background: radial-gradient(700px 300px at 100% 0%, color-mix(in srgb, var(--pub-secondary) 40%, transparent), transparent 60%),
                       linear-gradient(135deg, var(--pub-primary), var(--deep)); color: #fff; }
.pub-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0; }
.pub-cta p { color: rgba(255,255,255,.85); margin: .4rem 0 0; }

/* ── Forms / contact ─────────────────────────────────────────── */
.pub-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.pub-form-label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.pub-input { border: 1.5px solid var(--line); border-radius: 10px; padding: .72rem 1rem; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.pub-input:focus { border-color: var(--pub-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pub-primary) 14%, transparent); outline: none; }
.pub-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pub-contact-info-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pub-contact-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.pub-contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--pub-primary); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.pub-contact-label { font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pub-contact-value { font-size: .98rem; color: var(--ink); font-weight: 600; text-decoration: none; }
a.pub-contact-value:hover { color: var(--pub-primary); }
.pub-map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); height: 260px; }
.pub-map iframe { width: 100% !important; height: 100% !important; border: 0; }

/* ── Inner page hero (About, Admissions, …) ──────────────────── */
.pub-inner-hero { background: radial-gradient(700px 320px at 92% -10%, color-mix(in srgb, var(--pub-accent) 32%, transparent), transparent 62%),
                              linear-gradient(135deg, var(--pub-primary), var(--deep));
                  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.75rem, 6vw, 4.25rem); position: relative; overflow: hidden; }
.pub-inner-hero::before { content: ''; position: absolute; inset: 0; opacity: .07; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.pub-inner-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pub-secondary); }
.pub-inner-hero > * { position: relative; }
.pub-inner-hero-eyebrow { display: inline-block; background: rgba(255,255,255,.14); color: rgba(255,255,255,.95); font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 100px; margin: 1rem 0 .7rem; }
.pub-inner-hero-title { color: #fff; font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin: 0 0 .4rem; letter-spacing: -.01em; max-width: 22em; }
.pub-inner-hero-sub { color: rgba(255,255,255,.85); font-size: clamp(.98rem, 1.8vw, 1.1rem); line-height: 1.6; max-width: 40em; margin: .4rem 0 0; }
.pub-inner-hero .breadcrumb { margin: 0; padding: 0; font-size: .85rem; }
.pub-inner-hero .breadcrumb-item a { color: rgba(255,255,255,.78); text-decoration: none; }
.pub-inner-hero .breadcrumb-item a:hover { color: #fff; }
.pub-inner-hero .breadcrumb-item.active { color: rgba(255,255,255,.55); }
.pub-inner-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.pub-inner-hero .breadcrumb-item.active { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* In-page section links (About) */
.pub-jump { position: sticky; top: 64px; z-index: 900; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pub-jump .container { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-top: .45rem; padding-bottom: .45rem; }
.pub-jump .container::-webkit-scrollbar { display: none; }
.pub-jump a { flex-shrink: 0; padding: .45rem .9rem; border-radius: 100px; font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.pub-jump a:hover, .pub-jump a.active { background: var(--tint); color: var(--pub-primary); }

/* Facts strip under the banner (Admissions / Contact) */
.pub-facts { position: relative; z-index: 5; margin-top: -1.75rem; }
.pub-facts-grid { display: flex; flex-wrap: wrap; align-items: stretch; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.pub-fact { flex: 1 1 160px; padding: 1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; }
.pub-fact + .pub-fact { border-left: 1px solid var(--line); }
.pub-fact small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pub-fact b { font-family: var(--font-h), sans-serif; font-size: 1.08rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pub-status { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; padding: .45rem .9rem; border-radius: 100px; font-weight: 800; font-size: .88rem; }
.pub-status.open   { background: #dcfce7; color: #166534; }
.pub-status.wait   { background: #fef3c7; color: #92400e; }
.pub-status.closed { background: #fee2e2; color: #991b1b; }
@media (max-width: 575.98px) { .pub-fact { flex-basis: 50%; } .pub-fact + .pub-fact { border-left: 0; } .pub-fact:nth-child(n+3) { border-top: 1px solid var(--line); } .pub-fact:nth-child(even) { border-left: 1px solid var(--line); } }

/* At a glance (About) */
.pub-glance { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; position: sticky; top: 130px; }
.pub-glance h3 { font-size: 1.05rem; font-weight: 800; display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.pub-glance h3 i { color: var(--pub-primary); }
.pub-glance dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 0; }
.pub-glance dt { font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: .1rem; }
.pub-glance dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; word-break: break-word; }
.pub-values { display: flex; flex-wrap: wrap; gap: .5rem; }
.pub-values span { background: #fff; border: 1px solid color-mix(in srgb, var(--pub-primary) 25%, var(--line)); color: var(--pub-primary);
                   padding: .4rem .9rem; border-radius: 100px; font-weight: 700; font-size: .88rem; }
.pub-topper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }

/* Admission steps */
.pub-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.pub-steps li { counter-increment: step; position: relative; padding: .35rem 0 1.4rem 3.6rem; color: var(--ink-2); font-weight: 500; line-height: 1.55; min-height: 3.2rem; }
.pub-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
                        background: var(--pub-primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-h), sans-serif; }
.pub-steps li::after { content: ''; position: absolute; left: calc(1.25rem - 1px); top: 2.7rem; bottom: .2rem; width: 2px; background: var(--tint); }
.pub-steps li:last-child { padding-bottom: 0; }
.pub-steps li:last-child::after { display: none; }
.pub-checks.one { grid-template-columns: 1fr; margin-top: 0; }
.pub-sticky { position: sticky; top: 90px; }
@media (max-width: 991.98px) { .pub-sticky, .pub-glance { position: static; } }

/* Tables (age criteria, disclosure, results) */
.pub-table { font-size: .93rem; }
.pub-table thead th { background: var(--soft); color: var(--ink); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
                      border-bottom: 1px solid var(--line); white-space: nowrap; }
.pub-table td, .pub-table th { padding: .75rem 1rem; border-color: var(--line); }
.pub-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--pub-primary) 2%, #fff); }
.pub-table td { font-variant-numeric: tabular-nums; }

/* FAQ */
.pub-faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.pub-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 1.25rem; }
.pub-faq details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--pub-primary) 30%, var(--line)); }
.pub-faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; font-weight: 700; color: var(--ink); position: relative; }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--pub-primary); font-weight: 400; }
.pub-faq details[open] summary::after { content: '–'; }
.pub-faq p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; line-height: 1.7; }

/* Contact quick actions */
.pub-contact-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; }
.pub-cq { display: flex; gap: .85rem; align-items: center; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1rem 1.15rem;
          text-decoration: none; color: var(--ink); transition: transform .2s; min-width: 0; }
.pub-cq:hover { transform: translateY(-3px); color: var(--ink); }
.pub-cq > i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.2rem; background: var(--tint); color: var(--pub-primary); }
.pub-cq.wa > i { background: #dcfce7; color: #16a34a; }
.pub-cq small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pub-cq b { display: block; font-size: .95rem; line-height: 1.3; }
.pub-cq > span { min-width: 0; }
.pub-wa-btn { background: #25d366; color: #fff; }
.pub-wa-btn:hover { background: #1ebe5a; color: #fff; }

/* Empty state */
.pub-empty { text-align: center; max-width: 460px; margin: 0 auto; padding: 3rem 1rem; }
.pub-empty > i { font-size: 3.5rem; color: color-mix(in srgb, var(--pub-primary) 30%, #cbd5e1); display: block; margin-bottom: .75rem; }
.pub-empty p { color: var(--muted); }

/* Gallery */
.pub-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.pub-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 100px; border: 1.5px solid var(--line);
            background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; transition: .15s; }
.pub-chip span { font-size: .72rem; background: var(--soft); color: var(--muted); border-radius: 100px; padding: .05rem .45rem; font-variant-numeric: tabular-nums; }
.pub-chip:hover { border-color: var(--pub-primary); color: var(--pub-primary); }
.pub-chip.active { background: var(--pub-primary); border-color: var(--pub-primary); color: #fff; }
.pub-chip.active span { background: rgba(255,255,255,.2); color: #fff; }
.pub-masonry { columns: 3 280px; column-gap: 1rem; }
.pub-mitem { break-inside: avoid; margin: 0 0 1rem; border-radius: 14px; overflow: hidden; background: var(--soft); position: relative; }
.pub-mitem a { display: block; cursor: zoom-in; }
.pub-mitem img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.pub-mitem:hover img { transform: scale(1.04); }
.pub-mitem figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-size: .85rem; font-weight: 600;
                        background: linear-gradient(to top, rgba(0,0,0,.7), transparent); pointer-events: none; }
.pub-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,12,20,.94); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pub-lightbox[hidden] { display: none; }
.pub-lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.pub-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.pub-lightbox figcaption { color: rgba(255,255,255,.88); margin-top: .75rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.pub-lightbox figcaption small { color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.pub-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 48px; height: 48px;
                       display: grid; place-items: center; font-size: 1.3rem; }
.pub-lightbox button:hover { background: rgba(255,255,255,.25); }
.pub-lightbox .lb-close { top: 1rem; right: 1rem; }
.pub-lightbox .lb-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pub-lightbox .lb-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .pub-lightbox .lb-nav { top: auto; bottom: 1rem; transform: none; } }

/* News */
.pub-news-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; text-decoration: none; }
.pub-news-lead > img, .pub-news-lead > .pub-news-ph { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
@media (max-width: 767.98px) { .pub-news-lead { grid-template-columns: 1fr; } .pub-news-lead > img, .pub-news-lead > .pub-news-ph { min-height: 200px; max-height: 260px; } }
.pub-news-ph { display: grid; place-items: center; font-size: 3rem; color: rgba(255,255,255,.7);
               background: linear-gradient(135deg, var(--pub-primary), var(--deep)); }
.pub-news-ph.sm { height: 150px; font-size: 2.2rem; border-radius: var(--r) var(--r) 0 0; }
.pub-article-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.pub-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pub-share > span { font-weight: 700; font-size: .9rem; margin-right: .25rem; }
.pub-share a, .pub-share button { display: inline-flex; align-items: center; gap: .35rem; height: 40px; min-width: 40px; justify-content: center; padding: 0 .75rem;
                                  border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .85rem; text-decoration: none; }
.pub-share a.wa { color: #16a34a; } .pub-share a.fb { color: #1877f2; }
.pub-share a:hover, .pub-share button:hover { border-color: var(--pub-primary); }
.pub-pagination .page-link { border-radius: 10px !important; margin: 0 .2rem; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; min-width: 42px; text-align: center; }
.pub-pagination .active .page-link { background: var(--pub-primary); border-color: var(--pub-primary); color: #fff; }

/* CMS / article body */
.pub-prose { max-width: 820px; margin: 0 auto; }
.pub-cms-body { line-height: 1.8; font-size: 1.04rem; color: var(--ink-2); overflow-wrap: break-word; }
.pub-cms-body h1, .pub-cms-body h2, .pub-cms-body h3, .pub-cms-body h4 { color: var(--ink); font-weight: 800; margin: 2rem 0 .75rem; }
.pub-cms-body > :first-child { margin-top: 0; }
.pub-cms-body img, .pub-cms-body iframe, .pub-cms-body video { max-width: 100%; height: auto; border-radius: 12px; }
.pub-cms-body p { margin-bottom: 1rem; }
.pub-cms-body ul, .pub-cms-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.pub-cms-body a { font-weight: 600; }
.pub-cms-body blockquote { border-left: 4px solid var(--pub-secondary); padding: 1rem 1.25rem; background: var(--soft); border-radius: 0 12px 12px 0; margin: 1.5rem 0; }
.pub-cms-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; display: block; overflow-x: auto; }
.pub-cms-body th, .pub-cms-body td { padding: .6rem .9rem; border: 1px solid var(--line); }
.pub-cms-body th { background: var(--soft); color: var(--ink); }

/* Branches */
.pub-branch { padding: 1.5rem; }
.pub-branch-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); padding: 4px; background: #fff; }

/* Mandatory disclosure */
.pub-disc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pub-disc-toc { display: flex; flex-wrap: wrap; gap: .5rem; }
.pub-disc-toc a { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem .4rem .45rem; border-radius: 100px; border: 1px solid var(--line);
                  font-size: .85rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: #fff; }
.pub-disc-toc a b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pub-primary); color: #fff; font-size: .75rem; }
.pub-disc-toc a:hover { border-color: var(--pub-primary); color: var(--pub-primary); }
.pub-disc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.pub-disc h2 { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.pub-disc h2 span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--pub-primary); font-size: 1rem; flex-shrink: 0; }
.pub-doc-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; }
.pub-doc-link i { font-size: 1.1rem; }
.pub-doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem 1.5rem; }

/* Printing (disclosure, articles) */
@media print {
    .pub-topbar, .pub-navbar, .pub-ticker, .pub-jump, .pub-footer, .pub-fab, .pub-mbar, .pub-disc-toolbar, .pub-share, .pub-cta { display: none !important; }
    .pub-inner-hero { background: none !important; padding: 0 0 1rem; }
    .pub-inner-hero::before, .pub-inner-hero::after { display: none; }
    .pub-inner-hero-title, .pub-inner-hero-sub, .pub-inner-hero-eyebrow { color: #000 !important; background: none !important; padding: 0; }
    .pub-inner-hero .breadcrumb { display: none; }
    .pub-disc, .pub-card { box-shadow: none !important; break-inside: avoid; }
    .pub-section { padding: 1rem 0; }
    body { padding-bottom: 0 !important; }
    a[href^="http"].pub-doc-link::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .75rem; word-break: break-all; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.pub-footer { background: #0b1220; color: #9aa4b5; font-size: .92rem; }
.pub-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 1.1rem; }
.pub-footer a { color: #b6bfcd; text-decoration: none; }
.pub-footer a:hover { color: #fff; }
.pub-footer ul { list-style: none; padding: 0; margin: 0; }
.pub-footer li { margin-bottom: .55rem; }
.pub-footer .ft-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.pub-footer .ft-brand img { background: #fff; border-radius: 10px; padding: 4px; }
.pub-footer .ft-brand strong { color: #fff; font-family: var(--font-h), sans-serif; font-size: 1.08rem; line-height: 1.2; }
.pub-footer .ft-row { display: flex; gap: .65rem; margin-bottom: .7rem; }
.pub-footer .ft-row i { color: var(--pub-secondary); margin-top: .15rem; }
.pub-footer .ft-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.pub-footer .ft-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #d5dbe5; }
.pub-footer .ft-social a:hover { background: var(--pub-primary); color: #fff; }
.pub-footer .ft-app { display: inline-flex; align-items: center; gap: .6rem; background: #000; border: 1px solid #333; border-radius: 10px; padding: .45rem .9rem; color: #fff !important; margin: 0 .4rem .5rem 0; }
.pub-footer .ft-app i { font-size: 1.4rem; }
.pub-footer .ft-app small { display: block; font-size: .62rem; opacity: .75; line-height: 1; }
.pub-footer .ft-app b { display: block; font-size: .9rem; line-height: 1.2; }
.pub-footer .ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0; font-size: .82rem; color: #6f7a8c; }
.pub-footer .ft-affil { color: #cfd6e2; font-size: .82rem; margin-top: .8rem; line-height: 1.6; }

/* ── Floating actions ────────────────────────────────────────── */
.pub-fab { position: fixed; right: 18px; bottom: 18px; z-index: 1030; display: flex; flex-direction: column; gap: .6rem; }
.pub-fab a, .pub-fab button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.45rem; color: #fff;
                              border: 0; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s; text-decoration: none; }
.pub-fab a:hover, .pub-fab button:hover { transform: scale(1.07); color: #fff; }
.pub-fab .f-wa { background: #25d366; }
.pub-fab .f-call { background: var(--pub-primary); }
.pub-fab .f-top { background: var(--ink); font-size: 1.1rem; width: 44px; height: 44px; margin-left: auto; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pub-fab .f-top.show { opacity: 1; pointer-events: auto; }
/* Phones get a bottom action bar instead of floating circles */
.pub-mbar { display: none; }
@media (max-width: 767.98px) {
    .pub-fab .f-wa, .pub-fab .f-call { display: none; }
    .pub-fab { bottom: 76px; }
    .pub-mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
                background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15,23,42,.08);
                padding-bottom: env(safe-area-inset-bottom, 0px); }
    .pub-mbar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem 0; font-size: .72rem; font-weight: 700;
                  color: var(--ink-2); text-decoration: none; }
    .pub-mbar a i { font-size: 1.2rem; color: var(--pub-primary); }
    .pub-mbar a.m-apply { background: var(--pub-primary); color: #fff; }
    .pub-mbar a.m-apply i { color: #fff; }
    .pub-mbar a.m-wa i { color: #25d366; }
    body { padding-bottom: 62px; }
}

/* ── Reveal on scroll (content is visible without JS) ────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Sidebar cards size to their content */
aside .pub-notice { height: auto; }

/* Phones/tablets: a long school name wraps beside the menu button instead of pushing it to a new line */
@media (max-width: 991.98px) {
    .pub-navbar .pub-brand { max-width: calc(100% - 56px); margin-right: 0 !important; }
    .pub-navbar .pub-brand > span.text-truncate { white-space: normal; overflow: visible; }
    .pub-navbar .pub-brand-text { display: block; line-height: 1.2; font-size: 1rem; }
    .pub-navbar .pub-brand-tagline { display: none; }
    .pub-navbar .navbar-toggler { margin-left: auto; }
}

/* Mosaic with fewer than 5 photos: one even row instead of a big tile with gaps */
.pub-mosaic.few { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-auto-rows: 240px; }
.pub-mosaic.few .pub-gallery-item:first-child { grid-column: auto; grid-row: auto; }

/* Branch card (Contact + Branches) */
.pub-branch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.4rem;
                   height: 100%; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.pub-branch-card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--pub-primary) 25%, var(--line)); }
.pub-branch-card .bc-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.pub-branch-card .bc-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; flex-shrink: 0; border: 1px solid var(--line); padding: 4px; background: #fff; }
.pub-branch-card .bc-mark { display: grid; place-items: center; background: var(--tint); color: var(--pub-primary); border: 0; font-size: 1.3rem; }
.pub-branch-card h3 { font-size: 1.02rem; font-weight: 800; margin: 0; line-height: 1.3; }
.pub-branch-card .bc-city { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--pub-primary);
                            text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.pub-branch-card .bc-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; flex: 1; }
.pub-branch-card .bc-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.45; min-width: 0; }
.pub-branch-card .bc-list i { width: 30px; height: 30px; border-radius: 8px; background: var(--soft); color: var(--pub-primary); display: grid; place-items: center;
                              flex-shrink: 0; font-size: .9rem; margin-top: -.2rem; }
.pub-branch-card .bc-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.pub-branch-card .bc-list a:hover { color: var(--pub-primary); }
.pub-branch-card .bc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.min-w-0 { min-width: 0; }

/* Links inside cards and lists are styled components, not underlined text */
.pub-card a:not(.btn), .pub-contact-info-card a:not(.btn), .pub-notice a, .pub-glance a:not(.btn), .pub-footer a, .pub-disc a, .pub-doc-list a { text-decoration: none; }
/* Links inside running text keep an underline, drawn cleanly */
.pub-lead a, .pub-form-card p a, .pub-cms-body a, .pub-faq a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Photo tiles are links, never underlined */
a.pub-gallery-item, .pub-mitem a, a.pub-quick-tile, a.pub-cq, a.pub-news-lead, a.pub-news-card { text-decoration: none; }

/* Filled and outlined buttons are the same height side by side */
.btn-pub-primary, .btn-pub-accent, .btn-pub-secondary { border: 2px solid transparent; }
.pub-news-ph.sm { height: 190px; }

/* Phones: programme and facility cards become compact rows (icon left) instead of tall tiles */
@media (max-width: 575.98px) {
    .pub-prog-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; align-items: start; padding: 1rem 1.1rem !important; }
    .pub-prog-card .pub-prog-icon { grid-row: span 2; width: 48px; height: 48px; font-size: 1.25rem; margin: 0 !important; }
    .pub-prog-card h3 { margin-bottom: .15rem !important; font-size: 1.02rem; }
    .pub-fac-grid { gap: .75rem; }
    .pub-fac { display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; align-items: start; padding: 1rem 1.1rem; }
    .pub-fac i { grid-row: span 2; width: 44px; height: 44px; font-size: 1.3rem; }
    .pub-fac h3 { margin: 0 0 .15rem; }
}

/* Text-style buttons use the school colour, not Bootstrap blue */
.btn-link { color: var(--pub-primary); }
.btn-link:hover { color: var(--deep); }

/* Home: lead news photo — full width on phones, beside the text from 576px */
@media (min-width: 576px) { .pub-news-card img.pub-news-side { width: 260px; flex-shrink: 0; height: auto; min-height: 190px; border-radius: var(--r) 0 0 var(--r); } }
#notices .pub-notice { height: auto; }
