/* ==========================================================
   بوصلة الفتح — public site styles
   ========================================================== */
:root {
    --maroon: #7a1e3a;
    --maroon-600: #8f2547;
    --maroon-50: #fbf2f5;
    --navy: #1b3260;
    --navy-800: #13244a;
    --navy-900: #0d1a36;
    --navy-50: #eef2f9;
    --ink: #172033;
    --ink-2: #3c475c;
    --muted: #6b7689;
    --line: #e4e9f1;
    --line-2: #d6dde8;
    --surface: #ffffff;
    --tile: #f6f8fc;
    --bg: #f8fafd;
    --gold: #b98a3c;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-xs: 0 1px 2px rgba(16, 30, 60, .05);
    --shadow-sm: 0 1px 3px rgba(16, 30, 60, .06), 0 1px 2px rgba(16, 30, 60, .04);
    --shadow: 0 10px 30px -12px rgba(16, 30, 60, .22), 0 2px 6px -2px rgba(16, 30, 60, .06);
    --shadow-lg: 0 24px 48px -20px rgba(16, 30, 60, .35);
    --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-display: "Cairo", "IBM Plex Sans Arabic", sans-serif;
    --container: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --c-general: #4f46e5;
    --c-events: #f97316;
    --c-cyber: #7c3aed;
    --c-ai: #059669;
    --c-learning: #0284c7;
    --c-achievements: #e11d48;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(122, 30, 58, .35); outline-offset: 2px; border-radius: 6px; }
.icon { flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ---------- top bar ---------- */
.topbar { background: linear-gradient(90deg, #6c1834 0%, var(--maroon) 50%, #5a1430 100%); color: rgba(255, 255, 255, .86); font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.topbar__info { display: flex; align-items: center; gap: 22px; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__info a:hover { color: #fff; }
.topbar__social { display: flex; gap: 2px; }
.topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background .2s; }
.topbar__social a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- sticky smart header ---------- */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px -14px rgba(16, 30, 60, .3);
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
}
.navbar.is-visible { transform: none; }
.navbar .container { display: flex; align-items: center; gap: 24px; height: 66px; }
.navbar__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--navy); white-space: nowrap; }
.navbar__brand .compass { width: 42px; height: 42px; }
.navbar__brand b { color: var(--maroon); font-weight: 900; }
.navbar__links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.navbar__links::-webkit-scrollbar { display: none; }
.navbar__links a { position: relative; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s, background .2s; }
.navbar__links a:hover { color: var(--maroon); background: var(--maroon-50); }
.navbar__links a.is-active { color: var(--maroon); font-weight: 700; }
.navbar__links a.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--maroon); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    height: 440px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.hero::before {
    /* subtle Islamic geometric pattern behind the brand */
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 60%;
    z-index: -2;
    opacity: .55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231b3260' stroke-opacity='.09' stroke-width='1'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='7'/%3E%3Cpath d='M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 15% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 15% 30%, #000 20%, transparent 75%);
}
.hero__photo {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 60%;
    z-index: -1;
    background: url("../images/hero.jpg") 50% 62% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to left, #000 55%, rgba(0, 0, 0, .5) 75%, transparent 100%);
    mask-image: linear-gradient(to left, #000 55%, rgba(0, 0, 0, .5) 75%, transparent 100%);
}
.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 55%, rgba(248, 250, 253, .85) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, .25), transparent 40%);
}
.hero .container { position: relative; height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; padding-bottom: 60px; }
.brand__compass { width: 220px; height: 220px; filter: drop-shadow(0 14px 22px rgba(16, 30, 60, .18)); animation: brand-in 1s var(--ease) both; }
.brand__text { text-align: center; animation: brand-in 1s .12s var(--ease) both; }
@keyframes brand-in { from { opacity: 0; transform: translateY(10px); } }
.brand__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(46px, 7.4vw, 98px);
    line-height: 1.02;
    letter-spacing: -1px;
}
.brand__title .a { color: var(--maroon); }
.brand__title .b { color: var(--navy); }
.brand__tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    color: var(--maroon);
    font-size: clamp(16px, 2vw, 25px);
    font-weight: 500;
}
.brand__tagline::before { content: ""; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--navy)); }
.brand__school {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 16px 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}
.brand__school .icon { color: var(--maroon); }
.hero__waves { position: absolute; inset: auto 0 -1px 0; width: 100%; height: 120px; pointer-events: none; }

.hero--compact { height: 230px; }
.hero--compact .hero__photo { background-position: 50% 22%; }
.hero--compact .brand { padding-bottom: 34px; }
.hero--compact .brand__compass { width: 128px; height: 128px; }
.hero--compact .brand__title { font-size: clamp(38px, 5vw, 60px); }
.hero--compact .brand__tagline { font-size: 17px; margin-top: 6px; }
.hero--compact .brand__school { display: none; }
.hero--compact .hero__waves { height: 70px; }

/* ---------- nav tiles ---------- */
.tiles {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr));
    gap: 14px;
    margin: 28px auto 34px;
}
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 8px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--tile-color, var(--navy));
    transform: scaleX(0);
    transition: transform .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile:hover::before, .tile.is-active::before { transform: scaleX(1); }
.tile.is-active { border-color: color-mix(in srgb, var(--tile-color) 35%, #fff); box-shadow: var(--shadow); }
.tile__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), transparent 55%),
        var(--tile-color, var(--navy));
    box-shadow: 0 10px 18px -10px var(--tile-color, var(--navy)), inset 0 -3px 0 rgba(0, 0, 0, .15);
    margin-bottom: 12px;
    transition: transform .3s var(--ease);
}
.tile:hover .tile__icon { transform: scale(1.06) rotate(-4deg); }
.tile__title { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.4; white-space: nowrap; }
.tile__sub { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 14px; }
.panel__title { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.panel__title .icon { color: var(--maroon); }
.panel__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -14px; width: 36px; height: 3px; border-radius: 3px; background: var(--maroon); }
.panel__head + * { border-top: 1px solid var(--line); padding-top: 12px; }
.panel__head-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.panel__head-link:hover { color: var(--maroon); }

/* ---------- home grid ---------- */
.home-grid {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 20px;
    align-items: stretch;
}
.home-grid > * { min-width: 0; }

/* quick links */
.quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 16px 6px; }
.quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 92px;
    padding: 14px 8px;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    transition: all .25s var(--ease);
}
.quick__item .icon { color: var(--navy); transition: transform .25s var(--ease), color .25s; }
.quick__item:hover { background: #fff; border-color: transparent; box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.quick__item:hover .icon { transform: scale(1.1); color: var(--maroon); }
.motto { display: flex; flex-direction: column; align-items: center; padding: 14px 16px 20px; color: var(--navy); font-size: 19px; font-weight: 700; font-family: var(--font-display); }
.motto__line { display: flex; align-items: center; gap: 14px; }
.motto__line::before, .motto__line::after { content: ""; width: 28px; height: 2px; background: var(--maroon); border-radius: 2px; }
.motto .icon { color: var(--navy); margin-top: 2px; opacity: .8; }

/* slider */
.slider { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-900); box-shadow: var(--shadow-lg); min-height: 440px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 26, 54, .1) 0%, rgba(13, 26, 54, 0) 35%, rgba(13, 26, 54, .55) 65%, rgba(13, 26, 54, .92) 100%);
}
.slide__text { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 0 28px 54px; color: #fff; }
.slide__kicker {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 12px; font-weight: 600;
    margin-bottom: 10px;
}
.slide__title { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.3; font-family: var(--font-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.slide__body { margin: 6px 0 0; font-size: 17px; font-weight: 500; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.slide.is-active .slide__text > * { animation: rise .8s var(--ease) both; }
.slide.is-active .slide__title { animation-delay: .1s; }
.slide.is-active .slide__body { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.slider__dots { position: absolute; inset-inline: 28px; bottom: 22px; display: flex; gap: 8px; z-index: 3; }
.slider__dot { position: relative; width: 26px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .35); cursor: pointer; overflow: hidden; }
.slider__dot.is-active { width: 44px; }
.slider__dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: right; animation: fill var(--slide-ms, 6000ms) linear both; }
.slider.is-paused .slider__dot.is-active::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } }
.slider__nav {
    position: absolute; top: 20px; z-index: 3;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}
.slider__nav:hover { background: rgba(255, 255, 255, .3); }
.slider__nav--prev { inset-inline-end: 66px; }
.slider__nav--next { inset-inline-end: 20px; }

/* latest news list */
.news-list { list-style: none; margin: 0; padding: 4px 20px 0; }
.news-row + .news-row { border-top: 1px solid var(--line); }
.news-row a { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.news-row__thumb { width: 92px; height: 66px; border-radius: 10px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-xs); background: var(--tile); }
.news-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-row a:hover .news-row__thumb img { transform: scale(1.08); }
.news-row__body { flex: 1; min-width: 0; }
.news-row__title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.news-row__meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.news-row__meta .date { display: inline-flex; align-items: center; gap: 4px; }
.news-row__meta .cat { color: var(--cat); font-weight: 600; }
.news-row .icon--chev { color: var(--line-2); transition: transform .25s var(--ease), color .25s; }
.news-row a:hover .news-row__title { color: var(--maroon); }
.news-row a:hover .icon--chev { transform: translateX(-4px); color: var(--maroon); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin: 8px 20px 18px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.more-link:hover { color: var(--maroon); }
.more-link .icon { transition: transform .25s var(--ease); }
.more-link:hover .icon { transform: translateX(-4px); }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }

/* category thumbnails / placeholders */
.ph {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: rgba(255, 255, 255, .92);
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.08'%3E%3Crect x='12' y='12' width='24' height='24'/%3E%3Crect x='12' y='12' width='24' height='24' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .2), transparent 55%),
        linear-gradient(135deg, var(--cat, var(--navy)) 0%, color-mix(in srgb, var(--cat, var(--navy)) 60%, #000) 100%);
}
.cat-general { --cat: var(--c-general); }
.cat-events { --cat: var(--c-events); }
.cat-cyber { --cat: var(--c-cyber); }
.cat-ai { --cat: var(--c-ai); }
.cat-learning { --cat: var(--c-learning); }
.cat-achievements { --cat: var(--c-achievements); }

/* ---------- values ---------- */
.values {
    position: relative;
    display: grid;
    grid-template-columns: 150px repeat(4, minmax(0, 1fr)) minmax(0, 1.45fr);
    align-items: center;
    margin: 24px auto 56px;
    padding: 24px 28px;
    background: linear-gradient(90deg, #ffffff 0%, #f3f6fb 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 140px;
}
.values__title { margin: 0; font-size: 30px; font-weight: 900; color: var(--navy); font-family: var(--font-display); }
.values__title small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); font-family: var(--font); margin-top: 2px; }
.value { text-align: center; padding: 4px 12px; border-inline-start: 1px solid var(--line-2); }
.value:first-of-type { border-inline-start: 0; }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; color: var(--maroon); background: var(--maroon-50); transition: transform .3s var(--ease), background .3s, color .3s; }
.value:hover .value__icon { transform: translateY(-3px); background: var(--maroon); color: #fff; }
.value__title { font-weight: 800; color: var(--navy); font-size: 16.5px; font-family: var(--font-display); }
.value__text { font-size: 12.5px; color: var(--muted); }
.values__photo {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 30%;
    background: url("../images/values.jpg") 50% 60% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, #000 25%, transparent 92%);
    mask-image: linear-gradient(to right, #000 25%, transparent 92%);
}

/* ---------- page header (inner) ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 900; color: var(--navy); font-family: var(--font-display); line-height: 1.4; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a:hover { color: var(--maroon); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 14px -8px var(--navy); }

.searchbox { position: relative; min-width: min(340px, 100%); }
.searchbox input { width: 100%; height: 46px; padding-inline: 44px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.searchbox input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 50, 96, .1); }
.searchbox .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* news cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media .ph .icon { width: 46px; height: 46px; }
.card__cat { position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--cat, var(--navy)); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__title { margin: 0 0 8px; font-size: 17.5px; font-weight: 800; line-height: 1.6; color: var(--ink); font-family: var(--font-display); transition: color .2s; }
.card:hover .card__title { color: var(--maroon); }
.card__text { margin: 0 0 16px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .read { color: var(--navy); font-weight: 700; }

/* pagination */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 34px 0 10px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.pager a:hover { border-color: var(--navy); color: var(--navy); }
.pager .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .is-disabled { opacity: .4; }

/* article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; margin-bottom: 56px; }
.article { overflow: hidden; }
.article__media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--tile); }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__media .ph .icon { width: 72px; height: 72px; opacity: .8; }
.article__inner { padding: 28px 34px 32px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--cat, var(--navy)); background: color-mix(in srgb, var(--cat, var(--navy)) 10%, #fff); }
.article__title { margin: 0 0 16px; font-size: clamp(23px, 3vw, 32px); line-height: 1.5; font-weight: 900; color: var(--navy); font-family: var(--font-display); }
.article__lead { font-size: 18px; color: var(--ink-2); font-weight: 500; border-inline-start: 4px solid var(--maroon); padding: 4px 16px; margin: 0 0 22px; background: var(--maroon-50); border-radius: 10px; border-start-start-radius: 0; border-end-start-radius: 0; }
.article__body { font-size: 17px; line-height: 2.05; color: #263043; }
.article__body p { margin: 0 0 1.1em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }
.share > span { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-size: 13.5px; transition: all .2s; }
.share a:hover, .share button:hover { border-color: var(--navy); color: var(--navy); }
.aside { position: sticky; top: 90px; }
.aside .panel + .panel { margin-top: 18px; }
.cat-list { list-style: none; margin: 0; padding: 12px 14px 14px; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; transition: background .2s, color .2s; }
.cat-list a:hover { background: var(--tile); color: var(--maroon); }
.cat-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 15%, #fff); }

/* gallery */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery a { position: relative; display: block; break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; transition: transform .7s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; font-size: 14.5px; background: linear-gradient(transparent, rgba(13, 26, 54, .88)); }

.empty-state { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state .icon { width: 56px; height: 56px; color: #b9c3d3; margin: 0 auto 12px; }

/* ---------- footer ---------- */
.footer { position: relative; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); color: rgba(255, 255, 255, .78); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--maroon), #a33a5c, var(--maroon)); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 36px; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 900; font-size: 26px; color: #fff; }
.footer__brand .compass { width: 56px; height: 56px; }
.footer__about { margin: 14px 0 18px; font-size: 14px; line-height: 1.9; max-width: 340px; }
.footer h3 { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 700; font-family: var(--font-display); }
.footer h3::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 8px; background: #c25b7b; border-radius: 2px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer ul a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s, transform .2s; }
.footer ul a:hover { color: #fff; transform: translateX(-3px); }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .icon { color: #d49aae; margin-top: 4px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }
.footer__skyline { display: block; width: min(640px, 100%); height: auto; margin: 0 auto -6px; color: rgba(255, 255, 255, .28); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; font-size: 13px; }
.footer__admin { opacity: .6; display: inline-flex; align-items: center; gap: 6px; }
.footer__admin:hover { opacity: 1; color: #fff; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-grid { grid-template-columns: 1fr 1fr; }
    .home-grid .slider { grid-column: 1 / -1; order: -1; min-height: 400px; }
    .values { grid-template-columns: 120px repeat(4, minmax(0, 1fr)); }
    .values__photo { display: none; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-wrap { grid-template-columns: 1fr; }
    .aside { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .navbar__links a { padding: 8px 9px; font-size: 14px; }
}

@media (max-width: 760px) {
    .container { padding-inline: 16px; }
    .topbar__info .hide-sm { display: none; }
    .navbar .container { height: 58px; gap: 12px; }
    .navbar__brand { font-size: 18px; }
    .navbar__brand .compass { width: 34px; height: 34px; }

    .hero, .hero--compact { height: auto; }
    .hero::before { width: 100%; }
    .hero__photo { position: relative; inset: auto; width: 100%; height: 230px; -webkit-mask-image: none; mask-image: none; }
    .hero .container, .hero--compact .container { justify-content: center; height: auto; padding-inline: 20px; }
    .brand { padding: 0 0 58px; margin-top: -44px; gap: 2px; }
    .brand__compass { width: 88px; height: 88px; }
    .brand__title { font-size: 42px; letter-spacing: 0; }
    .brand__tagline { font-size: 15px; }
    .brand__tagline::before { width: 34px; }
    .brand__school { font-size: 12.5px; margin-top: 12px; }
    .hero--compact .hero__photo { height: 130px; }
    .hero--compact .brand { margin-top: -28px; padding-bottom: 42px; }
    .hero--compact .brand__compass { width: 76px; height: 76px; }
    .hero__waves { height: 64px; }

    .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 20px -16px 26px; padding: 4px 16px 12px; scrollbar-width: none; }
    .tiles::-webkit-scrollbar { display: none; }
    .tile { flex: 0 0 132px; scroll-snap-align: start; }

    .home-grid { grid-template-columns: 1fr; gap: 16px; }
    .slider { min-height: 380px; }
    .slide__title { font-size: 23px; }
    .slide__body { font-size: 15.5px; }
    .slide__text { padding: 0 20px 50px; }
    .slider__dots { inset-inline: 20px; }

    .values { grid-template-columns: 1fr 1fr; gap: 20px 8px; padding: 24px 16px; }
    .values__title { grid-column: 1 / -1; text-align: center; }
    .value { border: 0; }

    .cards { grid-template-columns: 1fr; }
    .article__inner { padding: 22px 18px 26px; }
    .page-head h1 { font-size: 25px; }

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-block: 40px 26px; }
    .footer__grid > :first-child { grid-column: 1 / -1; }
    .footer__bottom .container { justify-content: center; text-align: center; padding-block: 12px; }
}

/* ==========================================================
   Lively theme — cheerful colour layer on top of the base styles
   ========================================================== */
:root {
    --rainbow: linear-gradient(90deg, #6366f1, #0ea5e9, #14b8a6, #10b981, #f59e0b, #f97316, #f43f5e, #ec4899, #8b5cf6);
}
body {
    background:
        radial-gradient(600px 400px at 0% 30%, rgba(14, 165, 233, .09), transparent 70%),
        radial-gradient(500px 420px at 100% 55%, rgba(236, 72, 153, .08), transparent 70%),
        radial-gradient(600px 400px at 10% 95%, rgba(245, 158, 11, .09), transparent 70%),
        radial-gradient(520px 380px at 90% 10%, rgba(16, 185, 129, .07), transparent 70%),
        #f9fafe;
    background-attachment: fixed;
}
.topbar { background: linear-gradient(90deg, #7a1e3a 0%, #be185d 55%, #db2777 100%); position: relative; }
.topbar::after { content: ""; position: absolute; inset: auto 0 -3px 0; height: 3px; background: var(--rainbow); z-index: 5; }

/* hero: floating confetti shapes */
.hero__shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__shapes i { position: absolute; display: block; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.hero__shapes .s1 { width: 22px; height: 22px; left: 4%; top: 18%; background: #f59e0b; opacity: .8; }
.hero__shapes .s2 { width: 12px; height: 12px; left: 22%; top: 9%; background: #0ea5e9; animation-delay: -2s; }
.hero__shapes .s3 { width: 34px; height: 34px; left: 1.5%; top: 40%; border: 4px solid #ec4899; opacity: .55; animation-delay: -4s; }
.hero__shapes .s4 { width: 14px; height: 14px; left: 9%; top: 62%; background: #10b981; animation-delay: -1s; }
.hero__shapes .s5 { width: 18px; height: 18px; left: 31%; top: 6%; background: #8b5cf6; border-radius: 5px; transform: rotate(20deg); opacity: .75; animation-delay: -3s; }
.hero__shapes .s6 { width: 10px; height: 10px; left: 28%; top: 40%; background: #f43f5e; animation-delay: -5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.brand__school { background: linear-gradient(#fff, #fff) padding-box, var(--rainbow) border-box; border: 2px solid transparent; }

/* tiles: each a bright colour with a soft tint */
.tile { background: linear-gradient(180deg, color-mix(in srgb, var(--tile-color) 9%, #fff) 0%, #fff 70%); border-color: color-mix(in srgb, var(--tile-color) 18%, #fff); }
.tile__icon {
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%),
        linear-gradient(135deg, var(--tile-color), var(--tile-color-2, var(--tile-color)));
    box-shadow: 0 10px 20px -8px var(--tile-color), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.tile:hover { box-shadow: 0 16px 30px -14px var(--tile-color); }
.tile:hover .tile__title, .tile.is-active .tile__title { color: var(--tile-color-2, var(--tile-color)); }
.tile.is-active { border-color: var(--tile-color); box-shadow: 0 14px 28px -14px var(--tile-color); }
.tile::before { height: 4px; background: linear-gradient(90deg, var(--tile-color), var(--tile-color-2, var(--tile-color))); }

/* panels */
.panel { border-color: #e8ecf5; box-shadow: 0 10px 30px -18px rgba(79, 70, 229, .25); }
.panel__title::after { width: 44px; background: var(--rainbow); }
.panel__title .icon { color: #fff; background: linear-gradient(135deg, #f43f5e, #ec4899); border-radius: 10px; padding: 5px; width: 30px; height: 30px; box-shadow: 0 6px 12px -6px #ec4899; }
.news-panel .panel__title .icon { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 6px 12px -6px #f97316; }
.aside .panel:last-child .panel__title .icon { background: linear-gradient(135deg, #0ea5e9, #6366f1); box-shadow: 0 6px 12px -6px #6366f1; }

/* quick links */
.quick__item { background: color-mix(in srgb, var(--c) 7%, #fff); border-color: color-mix(in srgb, var(--c) 16%, #fff); }
.quick__item .icon { color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 12px; padding: 7px; width: 44px; height: 44px; }
.quick__item:hover { background: #fff; box-shadow: 0 14px 26px -14px var(--c); }
.quick__item:hover .icon { color: #fff; background: var(--c); }
.motto__line::before { background: linear-gradient(90deg, #f59e0b, #f43f5e); }
.motto__line::after { background: linear-gradient(90deg, #0ea5e9, #8b5cf6); }

/* slider */
.slide::after { background: linear-gradient(180deg, rgba(13, 26, 54, 0) 35%, rgba(49, 46, 129, .55) 70%, rgba(30, 27, 75, .92) 100%); }
.slide__kicker { background: linear-gradient(90deg, #f43f5e, #f59e0b); border: 0; }
.slider__dot.is-active::after { background: linear-gradient(90deg, #f59e0b, #f43f5e); }

/* news rows */
.news-row__thumb { box-shadow: 0 8px 16px -10px var(--cat, #6366f1); }
.news-row__meta .cat { padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--cat) 12%, #fff); }
.news-row a:hover .icon--chev { color: var(--cat, var(--maroon)); }

/* values */
.values { background: linear-gradient(110deg, #fff 0%, #fdf2f8 35%, #eff6ff 70%, #ecfdf5 100%); }
.value__icon { color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: 0 8px 16px -10px var(--c); }
.value:hover .value__icon { background: var(--c); color: #fff; }
.values__title { background: linear-gradient(90deg, #4f46e5, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.values__title small { -webkit-text-fill-color: var(--muted); }

/* cards & chips */
.card { border-color: color-mix(in srgb, var(--cat) 15%, #fff); }
.card:hover { box-shadow: 0 24px 40px -22px var(--cat); }
.card__cat { color: #fff; background: var(--cat); }
.card__meta .read { color: var(--cat); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--cat); }
.chip.is-active { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; box-shadow: 0 8px 16px -8px #6366f1; }
.chip:hover { border-color: #8b5cf6; color: #6d28d9; }
.pager .is-current { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; }
.page-head h1 { background: linear-gradient(90deg, #312e81, #be185d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.navbar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--rainbow); }

/* footer */
.footer { background: linear-gradient(160deg, #1e1b4b 0%, #1b3260 55%, #13244a 100%); }
.footer::before { background: var(--rainbow); }
.footer h3::after { background: linear-gradient(90deg, #f59e0b, #ec4899); }
.footer__social a:nth-child(1):hover { background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6); }
.footer__social a:nth-child(2):hover { background: #000; }
.footer__social a:nth-child(3):hover { background: #ef4444; }
.footer__skyline { color: rgba(167, 139, 250, .45); }

/* ---------- admin controls on public pages ---------- */
.admin-add {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: 0 8px 16px -8px #059669;
    transition: transform .2s, box-shadow .2s;
}
.admin-add:hover { transform: translateY(-1px); box-shadow: 0 12px 20px -8px #059669; }
.news-row { position: relative; display: flex; align-items: center; gap: 8px; }
.news-row > a { flex: 1; min-width: 0; }
.admin-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.admin-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 34px; height: 34px; padding: 0 8px;
    border-radius: 10px; border: 1px solid #c7d2fe;
    background: #eef2ff; color: #4338ca;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .2s;
}
.admin-btn:hover { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.admin-btn--danger { border-color: #fecdd3; background: #fff1f2; color: #e11d48; }
.admin-btn--danger:hover { background: #e11d48; border-color: #e11d48; color: #fff; }
.admin-draft { padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 11.5px; font-weight: 700; }
.admin-bar-inline {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 18px; padding: 10px 14px;
    border-radius: 12px; border: 1px dashed #a5b4fc; background: #f5f7ff;
    font-size: 13.5px; font-weight: 600; color: #4338ca;
}
.admin-bar-inline > span { display: inline-flex; align-items: center; gap: 6px; }
.admin-bar-inline .admin-btn { padding: 0 12px; }

.admin-dock {
    position: fixed; z-index: 70; bottom: 18px; left: 50%; translate: -50% 0;
    display: flex; align-items: center; gap: 4px;
    padding: 6px; border-radius: 999px;
    background: rgba(30, 27, 75, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px -14px rgba(30, 27, 75, .7);
    color: #fff; font-size: 13.5px;
}
.admin-dock__who { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 700; white-space: nowrap; }
.admin-dock__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.admin-dock a, .admin-dock button {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .2s;
}
.admin-dock a:first-of-type { background: linear-gradient(135deg, #10b981, #059669); }
.admin-dock a:hover, .admin-dock button:hover { background: rgba(255, 255, 255, .22); }
.admin-dock form { margin: 0; }

.site-dialog { border: 0; border-radius: 20px; padding: 26px 24px 22px; width: min(400px, calc(100% - 32px)); text-align: center; box-shadow: var(--shadow-lg); }
.site-dialog::backdrop { background: rgba(30, 27, 75, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.site-dialog__icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; background: #fff1f2; color: #e11d48; }
.site-dialog h2 { margin: 0 0 6px; font-size: 19px; font-family: var(--font-display); }
.site-dialog p { margin: 0 0 18px; color: var(--muted); }
.site-dialog__actions { display: flex; gap: 10px; }
.site-btn { flex: 1; height: 44px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; cursor: pointer; }
.site-btn--ghost { background: #fff; border-color: var(--line-2); }
.site-btn--danger { background: #e11d48; color: #fff; }
.site-btn--danger:hover { background: #be123c; }

.toast {
    position: fixed; z-index: 80; top: 20px; left: 50%; translate: -50% 0;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 700;
    box-shadow: 0 16px 32px -14px #059669;
    animation: toast-in .4s var(--ease) both;
    transition: opacity .5s, translate .5s;
}
.toast.is-out { opacity: 0; translate: -50% -20px; }
@keyframes toast-in { from { opacity: 0; translate: -50% -20px; } }

@media (max-width: 760px) {
    .admin-dock { bottom: 12px; font-size: 12.5px; max-width: calc(100% - 24px); overflow-x: auto; }
    .admin-dock__who { display: none; }
    .admin-dock a, .admin-dock button { padding: 0 11px; }
    .hero__shapes .s3, .hero__shapes .s5 { display: none; }
}

/* keep news-row meta tidy when admin buttons share the row */
.news-row__meta { flex-wrap: wrap; row-gap: 2px; }
.news-row__meta .cat, .news-row__meta .date { white-space: nowrap; }
.news-row:has(.admin-actions) .icon--chev { display: none; }
.news-row:has(.admin-actions) .news-row__thumb { width: 78px; height: 58px; }

/* ---------- about, vision & mission ---------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 22px;
    margin: 28px auto 0;
    padding: 28px;
    background: linear-gradient(110deg, #fff 0%, #f5f3ff 55%, #fdf2f8 100%);
    border: 1px solid #e8ecf5;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -18px rgba(79, 70, 229, .25);
}
.about__intro { position: relative; }
.about__badge {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px;
    border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    box-shadow: 0 10px 20px -10px #6366f1;
}
.about__title { margin: 0 0 12px; font-size: 28px; font-weight: 900; line-height: 1.4; font-family: var(--font-display); color: var(--navy); }
.about__title small { display: block; font-size: 14px; font-weight: 600; color: var(--maroon); font-family: var(--font); }
.about__text { margin: 0; font-size: 16px; line-height: 2; color: var(--ink-2); text-align: justify; }
.about__cards { display: grid; gap: 16px; align-content: center; }
.about-card {
    position: relative; padding: 20px 22px 18px; overflow: hidden;
    background: #fff; border: 1px solid color-mix(in srgb, var(--c) 16%, #fff); border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.about-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--c); }
.about-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -16px var(--c); }
.about-card__icon {
    float: inline-start; display: grid; place-items: center; width: 46px; height: 46px; margin-inline-end: 12px;
    border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
}
.about-card__title { margin: 0 0 4px; font-size: 19px; font-weight: 800; font-family: var(--font-display); color: var(--c); line-height: 46px; }
.about-card__text { clear: both; margin: 8px 0 0; font-size: 15.5px; line-height: 1.95; color: var(--ink); }

@media (max-width: 1100px) {
    .about { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .about { padding: 22px 16px; margin-top: 20px; }
    .about__title { font-size: 24px; }
    .about__text { text-align: start; font-size: 15px; }
}

/* school code badge in the top bar */
.topbar__social { align-items: center; }
.topbar__code { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 8px; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); white-space: nowrap; }
.topbar__code b { color: #fff; letter-spacing: .5px; }
.footer__contact a[href^="tel:"] { direction: ltr; }
@media (max-width: 760px) {
    .topbar__code { padding: 2px 9px; margin-inline-end: 4px; font-size: 12px; }
    .topbar__code .icon { display: none; }
}

/* ==========================================================
   Hero — refined layout: arched school photo, gold rule, calm brand block
   ========================================================== */
.hero { height: 500px; background: linear-gradient(180deg, #ffffff 0%, #f8f6f1 100%); }
.hero__shapes { display: none; }

/* photo: arched inner edge with a thin gold band behind it */
.hero__photo,
.hero__arc {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    clip-path: ellipse(100% 88% at 100% 42%);
    -webkit-mask-image: none;
    mask-image: none;
}
.hero__photo { width: 52%; z-index: -1; background-size: cover; background-position: right 45%; }
.hero__photo--school { background-position: right 46%; }
.hero__photo::after { background: linear-gradient(180deg, rgba(13, 26, 54, 0) 55%, rgba(13, 26, 54, .22) 100%), linear-gradient(270deg, rgba(13, 26, 54, 0) 70%, rgba(13, 26, 54, .12) 100%); }
.hero__arc {
    width: calc(52% + 12px);
    z-index: -1;
    background: linear-gradient(180deg, #e6c98b 0%, #b98a3c 55%, #8f6a2c 100%);
}

/* brand block */
/* the text lives in its own lane beside the photo, so the two can never overlap */
.hero .container {
    max-width: none;
    justify-content: center;
    padding-inline-start: calc(52% + 48px);
    padding-inline-end: max(24px, calc((100% - var(--container)) / 2 + 20px));
}
.brand { flex-direction: column-reverse; gap: 10px; padding-bottom: 64px; }
.brand__text { text-align: center; }
.brand__eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 6px;
    font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
    color: #8f6a2c;
}
.brand__eyebrow::before,
.brand__eyebrow::after { content: ""; width: 28px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, transparent, #b98a3c); }
.brand__eyebrow::after { transform: scaleX(-1); }
.brand__title { font-size: clamp(44px, 4.8vw, 80px); }
.brand__title a { color: inherit; }
.brand__tagline {
    margin: 10px 0 0;
    color: var(--ink-2);
    font-size: clamp(16px, 1.7vw, 21px);
    font-weight: 500;
}
.brand__tagline::before { display: none; }
.brand__school { display: none; }
.brand__compass { width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgba(16, 30, 60, .16)); }

.brand__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 50px; padding: 0 24px;
    border-radius: 999px;
    font-weight: 700; font-size: 15.5px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.hero-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #9b2c50 0%, var(--maroon) 55%, #5a1430 100%);
    box-shadow: 0 14px 28px -14px rgba(122, 30, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hero-btn--primary .icon { transition: transform .25s var(--ease); }
.hero-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(122, 30, 58, .85); }
.hero-btn--primary:hover .icon { transform: translateX(-4px); }
.hero-btn--ghost { color: var(--navy); background: rgba(255, 255, 255, .85); border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); }
.hero-btn--ghost:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: var(--shadow); }

/* compact header on inner pages */
.hero--compact { height: 240px; }
.hero--compact .hero__photo { width: 50%; background-position: right 42%; }
.hero--compact .hero__arc { width: calc(50% + 10px); }
.hero--compact .container { padding-inline-start: calc(50% + 40px); }
.hero--compact .brand { flex-direction: column-reverse; padding-bottom: 16px; gap: 6px; }
.hero--compact .brand__title { font-size: clamp(30px, 3.2vw, 42px); }
.hero--compact .brand__tagline { font-size: 14px; margin-top: 4px; }
.hero--compact .brand__compass { width: 72px; height: 72px; }


@media (max-width: 1000px) {
    .hero, .hero--compact { height: auto; background: #fff; }
    .hero__arc { display: none; }
    .hero__photo, .hero--compact .hero__photo {
        position: relative; inset: auto;
        width: 100%; height: clamp(240px, 44vw, 420px);
        clip-path: ellipse(120% 100% at 50% 0%);
        background-position: 60% 40%;
    }
    .hero--compact .hero__photo { height: 150px; }
    .hero .container, .hero--compact .container { justify-content: center; height: auto; padding-inline: 20px; }
    .brand, .hero--compact .brand { flex-direction: column-reverse; gap: 6px; margin-top: -46px; padding: 0 0 64px; }
    .brand__compass, .hero--compact .brand__compass {
        width: 86px; height: 86px;
        padding: 6px; border-radius: 50%;
        background: #fff;
        box-shadow: 0 10px 24px -10px rgba(16, 30, 60, .35);
    }
    .brand__eyebrow { font-size: 13px; }
    .brand__eyebrow::before, .brand__eyebrow::after { width: 18px; }
    .brand__title { font-size: 44px; }
    .hero--compact .brand { margin-top: -40px; padding-bottom: 46px; }
    .hero--compact .brand__title { font-size: 36px; }
    .brand__tagline { font-size: 15.5px; }
    .brand__actions { margin-top: 18px; gap: 10px; }
    .hero-btn { height: 46px; padding: 0 18px; font-size: 14.5px; }
}

/* ---------- gallery lightbox ---------- */
.gallery a { cursor: zoom-in; }
.lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: transparent;
    display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(9, 16, 34, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox__figure { margin: 0; max-width: min(1200px, calc(100vw - 140px)); text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lightbox__figure figcaption { margin-top: 14px; color: #fff; font-weight: 600; font-size: 15.5px; }
.lightbox__close, .lightbox__nav {
    position: fixed; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff;
    cursor: pointer; transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 20px; left: 20px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { right: 20px; }
.lightbox__nav--next { left: 20px; }
@media (max-width: 760px) {
    .lightbox__figure { max-width: calc(100vw - 24px); }
    .lightbox__nav { top: auto; bottom: 20px; translate: none; }
    .lightbox__nav--prev { right: calc(50% - 60px); }
    .lightbox__nav--next { left: calc(50% - 60px); }
}

/* ---------- downloadable files ---------- */
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--navy); font-family: var(--font-display); }
.section-title .icon { color: var(--maroon); }
.file-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-bottom: 30px; }
.file-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.file-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, #fff); box-shadow: 0 14px 28px -16px var(--c); }
.file-card__icon { flex: 0 0 auto; display: grid; place-items: center; gap: 2px; width: 58px; height: 62px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.file-card__icon b { font-size: 10.5px; line-height: 1; }
.file-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-card__title { font-weight: 700; color: var(--ink); line-height: 1.5; }
.file-card__meta { font-size: 12.5px; color: var(--muted); }
.file-card__dl { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--c); }

/* ---------- supervisory visit form ---------- */
.visit { margin-top: 8px; }
.visit__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.visit__toolbar .section-title { margin: 0; }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.visit__saved { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #047857; font-weight: 600; }
.visit__help { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm); background: #eff6ff; border: 1px solid #dbeafe; color: #1e3a8a; font-size: 14px; }
.visit__help p { margin: 0; }
.visit__help .icon { margin-top: 3px; }

.visit-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }
.visit-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 2px solid var(--navy); }
.visit-sheet__ministry { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.6; }
.visit-sheet__title { margin: 0; font-size: 22px; font-weight: 900; color: var(--navy); font-family: var(--font-display); }
.visit-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 18px; }
.visit-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.visit-field--wide { grid-column: span 2; }
.visit-field input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fbfcfe; font-weight: 500; }
.visit-field input:focus, .visit-table select:focus, .visit-notes textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 50, 96, .12); }

.visit-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.visit-table th, .visit-table td { border: 1px solid #cfd7e4; padding: 6px 8px; vertical-align: middle; }
.visit-table thead th, .visit-table thead th.c-domain, .visit-table thead th.c-crit, .visit-table thead th.c-sum { background: var(--navy); color: #fff; font-weight: 700; text-align: center; }
.visit-table .c-n { width: 34px; text-align: center; font-weight: 800; }
.visit-table .c-domain { width: 110px; text-align: center; font-weight: 800; color: var(--navy); background: #f3f6fb; }
.visit-table .c-crit { width: 190px; font-weight: 700; background: #fafbfd; }
.visit-table .c-w { width: 56px; text-align: center; font-weight: 800; }
.visit-table .c-score { width: 76px; text-align: center; }
.visit-table .c-sum { width: 96px; text-align: center; background: #fafbfd; }
.visit-table .c-sum b { display: block; font-size: 17px; color: var(--navy); }
.visit-table .c-sum small { display: block; font-size: 11.5px; font-weight: 700; }
.visit-table .c-sum[data-level="5"] small, .visit-table .c-sum[data-level="4"] small { color: #047857; }
.visit-table .c-sum[data-level="3"] small { color: #b45309; }
.visit-table .c-sum[data-level="2"] small, .visit-table .c-sum[data-level="1"] small, .visit-table .c-sum[data-level="0"] small { color: #b91c1c; }
.visit-table tbody + tbody { border-top: 3px solid var(--navy); }
.visit-table tr.crit-start td { border-top: 2px solid #b8c3d6; }
.visit-table select { width: 100%; height: 34px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-weight: 700; text-align: center; cursor: pointer; }
.visit-table tfoot th { text-align: start; background: #f3f6fb; font-size: 15px; }
.visit-table .c-grand { text-align: center; font-size: 15px; background: #f3f6fb; }
.visit-table .c-grand b { font-size: 20px; color: var(--maroon); }
.visit-table .c-grand small { display: block; color: var(--muted); }

.visit-scale { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 16px 0 20px; }
.visit-scale table { border-collapse: collapse; font-size: 12.5px; text-align: center; }
.visit-scale th, .visit-scale td { border: 1px solid #cfd7e4; padding: 3px 12px; }
.visit-scale th { background: #f3f6fb; }
.visit-note { flex: 1; min-width: 260px; margin: 0; font-size: 12.5px; color: var(--muted); }
.visit-notes { display: grid; gap: 14px; }
.visit-notes__item { display: flex; flex-direction: column; gap: 6px; }
.visit-notes__item > span { align-self: flex-start; padding: 2px 10px; border-radius: 6px; background: #fef9c3; font-weight: 800; color: var(--ink); }
.visit-notes textarea { width: 100%; min-height: 110px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; line-height: 2; resize: vertical; }
.visit-sign { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; font-weight: 700; color: var(--ink-2); }
.visit-credit { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.print-only { display: none; }

@media (max-width: 900px) {
    .visit-sheet { padding: 16px; }
    .visit-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .visit-sheet__head { flex-direction: column-reverse; align-items: flex-start; }
    /* the wide table scrolls sideways on phones */
    .visit-table { display: block; overflow-x: auto; }
    .visit-table .c-text { min-width: 220px; }
}

/* ---------- printing (supervisory visit form) ---------- */
@media print {
    @page { size: A4; margin: 10mm; }
    body { background: #fff !important; font-size: 11px; }
    .topbar, .navbar, .hero, .tiles, .footer, .admin-dock, .toast, .no-print { display: none !important; }
    .container { max-width: none; padding: 0; }
    .visit-sheet { border: 0; box-shadow: none; padding: 0; }
    .visit-sheet__head { padding-bottom: 8px; margin-bottom: 8px; }
    .visit-sheet__title { font-size: 18px; }
    .visit-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 10px; margin-bottom: 8px; }
    .visit-field input { height: auto; padding: 0 0 2px; border: 0; border-bottom: 1px dotted #555; border-radius: 0; background: none; }
    .visit-table { font-size: 10px; display: table; table-layout: auto; }
    .visit-table .c-text { min-width: 0; }
    .visit-table .c-n { width: 22px; }
    .visit-table .c-domain { width: 64px; }
    .visit-table .c-crit { width: 118px; }
    .visit-table .c-w { width: 36px; }
    .visit-table .c-score { width: 40px; }
    .visit-table .c-sum { width: 58px; }
    .visit-sheet__head { flex-direction: row; align-items: center; }
    .visit-scale { break-inside: avoid; }
    .visit-table th, .visit-table td { padding: 2px 4px; border-color: #555; }
    .visit-table thead th, .visit-table thead th.c-domain, .visit-table thead th.c-crit, .visit-table thead th.c-sum { background: #e5e7eb !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .visit-table select { appearance: none; -webkit-appearance: none; border: 0; height: auto; padding: 0; background: none; font-size: 11px; }
    .visit-table tbody { break-inside: avoid; }
    .visit-notes { break-before: page; }
    .visit-notes textarea { display: none; }
    .visit-notes__print { display: block; min-height: 90px; padding: 4px 0; white-space: pre-wrap; line-height: 2; border-bottom: 1px dotted #555; }
    .visit-notes__item > span { background: #fef08a !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Oman Vision 2040 logo, top corner of the hero opposite the photo */
.hero__vision { position: absolute; z-index: 3; top: 22px; inset-inline-end: max(24px, calc((100% - var(--container)) / 2 + 20px)); width: auto; height: 74px; object-fit: contain; }
.hero--compact .hero__vision { height: 54px; top: 16px; }
@media (max-width: 1000px) {
    .hero__vision, .hero--compact .hero__vision { top: 12px; inset-inline-end: 12px; height: 46px; filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .7)); }
}

/* ---------- saved supervisory visits (admin) ---------- */
.visit__errors { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius-sm); background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: 14px; }
.visit__errors ul { margin: 0; padding-inline-start: 18px; }
.visit__errors .icon { margin-top: 3px; flex: none; }
.visit-field .req { color: #e11d48; }
.visit__bottom { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.visit__delete { display: flex; justify-content: flex-end; margin-top: 14px; }
.visit__delete .admin-btn { padding: 0 14px; }

.visits-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-bottom: 16px; padding: 0 14px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--muted); }
.visits-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 50, 96, .12); }
.visits-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.visits-wrap { overflow-x: auto; }
.visits { width: 100%; border-collapse: collapse; font-size: 14px; }
.visits th, .visits td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.visits thead th { background: #f3f6fb; color: var(--navy); font-weight: 800; font-size: 13px; }
.visits tbody tr:last-child > * { border-bottom: 0; }
.visits tbody tr:hover { background: #fafbfd; }
.visits tbody th a { color: var(--navy); font-weight: 800; text-decoration: none; }
.visits tbody th a:hover { text-decoration: underline; }
.visits td b { color: var(--maroon); }
.visits td small { color: var(--muted); }
.visits__actions { display: flex; gap: 6px; justify-content: flex-end; }
.visits__actions form { margin: 0; }
.empty-state .hero-btn { margin-top: 14px; }

/* ==========================================================
   Hero — elegant refresh: warm ivory ground, gold hairlines, Amiri title
   ========================================================== */
.hero {
    height: 540px;
    background:
        radial-gradient(520px 360px at 26% 46%, rgba(201, 162, 78, .14), transparent 70%),
        linear-gradient(180deg, #fffdf9 0%, #f8f3ea 100%);
}
.hero::before { opacity: .3; }
/* a soft fade and a single gold hairline replace the old waves */
.hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; z-index: 2; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(185, 138, 60, .7) 30%, rgba(185, 138, 60, .7) 70%, transparent 100%);
}
.hero__photo::after {
    background:
        linear-gradient(180deg, rgba(13, 26, 54, 0) 60%, rgba(13, 26, 54, .18) 100%),
        linear-gradient(270deg, rgba(13, 26, 54, 0) 75%, rgba(13, 26, 54, .1) 100%);
}
.hero__arc { background: linear-gradient(180deg, #ecd6a2 0%, #c9a24e 50%, #9c7630 100%); width: calc(52% + 8px); }
.hero--compact .hero__arc { width: calc(50% + 7px); }

.brand { padding-bottom: 0; gap: 18px; }
.brand__compass {
    width: 104px; height: 104px; padding: 10px;
    border-radius: 50%; background: #fff;
    box-shadow:
        0 0 0 1px rgba(185, 138, 60, .45),
        0 0 0 9px rgba(185, 138, 60, .07),
        0 20px 36px -18px rgba(16, 30, 60, .45);
    filter: none;
}
.brand__eyebrow { font-size: 15px; color: #8f6a2c; letter-spacing: .4px; }
.brand__eyebrow::before, .brand__eyebrow::after { width: 44px; height: 1px; background: linear-gradient(90deg, transparent, #b98a3c); }
.brand__title {
    font-family: "Amiri", "Cairo", serif;
    font-weight: 700;
    font-size: clamp(54px, 6vw, 96px);
    line-height: 1.3;
    letter-spacing: 0;
}
.brand__title .a {
    background: linear-gradient(180deg, #a3345a 0%, var(--maroon) 60%, #5a1430 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__title .b { color: var(--navy); }
.brand__rule { display: flex; align-items: center; justify-content: center; gap: 12px; width: 240px; margin: 14px auto 10px; color: #b98a3c; }
.brand__rule::before, .brand__rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(185, 138, 60, .85)); }
.brand__rule::after { transform: scaleX(-1); }
.brand__rule svg { width: 16px; height: 16px; flex: 0 0 auto; }
.brand__tagline { margin: 0; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); letter-spacing: .2px; }

.brand__actions { margin-top: 30px; gap: 14px; }
.hero-btn { height: 52px; padding: 0 26px; }
.hero-btn--primary {
    background: linear-gradient(135deg, #a3345a 0%, var(--maroon) 55%, #5a1430 100%);
    box-shadow: 0 16px 30px -16px rgba(122, 30, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(236, 214, 162, .25);
}
.hero-btn--ghost { background: transparent; border: 1px solid rgba(185, 138, 60, .55); color: var(--navy); box-shadow: none; }
.hero-btn--ghost:hover { background: #fff; border-color: #b98a3c; box-shadow: var(--shadow); }
.hero-btn--ghost .icon { color: #b98a3c; }

.hero__vision { padding: 0; border-radius: 0; background: none; box-shadow: none; }

/* compact header on inner pages */
.hero--compact { height: 250px; }
.hero--compact .brand { gap: 10px; }
.hero--compact .brand__compass { width: 70px; height: 70px; padding: 6px; box-shadow: 0 0 0 1px rgba(185, 138, 60, .45), 0 12px 24px -14px rgba(16, 30, 60, .45); }
.hero--compact .brand__title { font-size: clamp(36px, 3.6vw, 52px); }
.hero--compact .brand__rule { width: 160px; margin: 8px auto 4px; }
.hero--compact .brand__rule svg { width: 12px; height: 12px; }
.hero--compact .brand__tagline { font-size: 14.5px; }

@media (max-width: 1000px) {
    .hero, .hero--compact { height: auto; padding-bottom: 8px; }
    .brand, .hero--compact .brand { margin-top: -52px; padding: 0 0 44px; gap: 8px; }
    .brand__compass, .hero--compact .brand__compass { width: 92px; height: 92px; padding: 8px; }
    .brand__title { font-size: 52px; }
    .hero--compact .brand__title { font-size: 40px; }
    .hero--compact .brand { margin-top: -44px; padding-bottom: 30px; }
    .hero--compact .brand__compass { width: 76px; height: 76px; }
    .brand__rule { width: 180px; }
    .hero-btn { height: 48px; padding: 0 20px; }
}

/* ---------- responsive polish (phones & tablets) ---------- */
/* tablets: buttons wrap in centred rows, so a leftover button never sits alone at the edge */
@media (min-width: 761px) and (max-width: 1100px) {
    .tiles { display: flex; flex-wrap: wrap; justify-content: center; }
    .tile { flex: 0 0 calc((100% - 4 * 14px) / 5); }
    .tile__title { white-space: normal; }
}
/* small phones: keep the top bar on one line */
.topbar__info span, .topbar__code { white-space: nowrap; }
@media (max-width: 420px) {
    .topbar { font-size: 12px; }
    .topbar .container { gap: 6px; }
    .topbar__info .icon, .topbar__code .icon { display: none; }
    .topbar__social a { width: 26px; height: 26px; }
}
/* inner pages: a shorter header on tablets and phones so the content starts sooner */
@media (max-width: 1000px) {
    .hero--compact .hero__photo { height: 120px; }
    .hero--compact .brand { margin-top: -38px; padding-bottom: 22px; gap: 4px; }
    .hero--compact .brand__compass { width: 66px; height: 66px; padding: 5px; }
    .hero--compact .brand__eyebrow { font-size: 12.5px; margin-bottom: 0; }
    .hero--compact .brand__title { font-size: 34px; line-height: 1.35; }
    .hero--compact .brand__rule { margin: 4px auto 2px; }
    .hero--compact .brand__tagline { font-size: 13.5px; }
}
@media (max-width: 760px) {
    .hero--compact .brand__rule, .hero--compact .brand__tagline { display: none; }
}
/* phones: download cards keep the title readable */
@media (max-width: 520px) {
    .file-card { gap: 12px; padding: 12px; }
    .file-card__icon { width: 48px; height: 54px; }
    .file-card__dl { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; }
    .file-card__dl .icon { width: 20px; height: 20px; }
}
/* phones: each saved visit becomes a labelled card instead of a wide table row */
@media (max-width: 640px) {
    .visits-wrap { overflow: visible; background: none; border: 0; box-shadow: none; }
    .visits thead { display: none; }
    .visits, .visits tbody, .visits tr, .visits th, .visits td { display: block; width: 100%; }
    .visits tr { position: relative; margin-bottom: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
    .visits tbody tr:hover { background: #fff; }
    .visits th, .visits td { padding: 4px 0; border: 0; white-space: normal; }
    .visits tbody th { padding-inline-end: 130px; font-size: 16px; margin-bottom: 4px; }
    .visits td[data-label] { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
    .visits td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
    .visits td.visits__actions { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; width: auto; padding: 0; }
}
.admin-btn--dl { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.admin-btn--dl:hover { background: #15803d; border-color: #15803d; color: #fff; }
