/* Home page styles. resources/views/public/home.blade.php links this with asset_v(), so browsers keep it across visits. */

:root{
    --h-navy:#182a5e; --h-navy-d:#111d40; --h-gold:#f2a41c; --h-gold-d:#e0940f;
    --h-purple:#4a2a86; --h-purple2:#6a3fa0; --h-soft:#f5f7fb; --h-ink:#1c2541; --h-muted:#5b6576;
}
.text-gold{color:var(--h-gold) !important;}
/* Buttons */
.home-btn-navy,.home-btn-outline,.home-btn-gold,.home-btn-outline-light{
    font-weight:600;padding:.62rem 1.4rem;border-radius:9px;border:2px solid transparent;display:inline-flex;align-items:center;gap:.4rem;transition:.15s;}
.home-btn-navy{background:var(--h-navy);color:#fff;border-color:var(--h-navy);}
.home-btn-navy:hover{background:var(--h-navy-d);color:#fff;}
.home-btn-outline{background:#fff;color:var(--h-navy);border-color:var(--h-navy);}
.home-btn-outline:hover{background:var(--h-navy);color:#fff;}
.home-btn-gold{background:var(--h-gold);color:#1a2340;border-color:var(--h-gold);font-weight:700;}
.home-btn-gold:hover{background:var(--h-gold-d);color:#1a2340;}
.home-btn-outline-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.75);}
.home-btn-outline-light:hover{background:#fff;color:var(--h-purple);}
/* Section scaffolding */
.home-section{padding:1.7rem 0;}
.home-section.bg-soft{background:var(--h-soft);}
.home-section > .container > .text-center.mb-4{margin-bottom:1rem !important;}
.home-h2{font-size:1.55rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--h-ink);margin:0;}
.home-underline{width:64px;height:3px;background:var(--h-gold);border-radius:2px;}
.home-eyebrow{display:block;font-size:.8rem;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--h-purple,#6d28d9);margin-bottom:.35rem;}
/* Find Us / Our Location (Leaflet + OpenStreetMap) */
.findus-wrap{display:flex;flex-wrap:wrap;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(16,26,58,.12);max-width:960px;margin:0 auto;}
.findus-info{flex:0 0 300px;max-width:300px;background:linear-gradient(160deg,var(--h-navy),var(--h-navy-d));color:#fff;padding:1.35rem 1.3rem;display:flex;flex-direction:column;gap:.35rem;}
.findus-logo{background:#fff;border-radius:10px;padding:.4rem .85rem;align-self:flex-start;margin-bottom:.2rem;}
.findus-logo img{max-height:44px;width:auto;display:block;}
.findus-name{font-size:1.12rem;font-weight:800;margin:.1rem 0 .3rem;}
/* Logo and school name side by side, the name vertically centred on the crest. */
.findus-brand{display:flex;align-items:center;gap:.8rem;margin-bottom:.3rem;}
.findus-brand .findus-logo{align-self:center;margin-bottom:0;flex-shrink:0;}
.findus-brand .findus-name{margin:0;}
.findus-line{display:flex;gap:.55rem;margin:0;font-size:.85rem;line-height:1.35;}
.findus-line i{color:var(--h-gold);margin-top:.15rem;flex:0 0 auto;}
.findus-line a{color:#fff;text-decoration:none;}
.findus-line a:hover{text-decoration:underline;}
.findus-btn{display:inline-flex;align-items:center;gap:.5rem;margin-top:.5rem;align-self:flex-start;padding:.45rem .95rem;border-radius:.5rem;font-weight:700;font-size:.88rem;color:#fff;background:var(--h-red,#c0392b);text-decoration:none;box-shadow:0 6px 16px rgba(0,0,0,.25);transition:.15s;}
.findus-btn:hover{filter:brightness(1.08);color:#fff;transform:translateY(-1px);}
.findus-hours{display:inline-flex;align-items:center;gap:.5rem;margin-top:.55rem;align-self:flex-start;padding:.35rem .8rem;border-radius:2rem;font-size:.8rem;font-weight:600;border:1px solid rgba(255,255,255,.3);}
.findus-map{flex:1 1 320px;min-height:300px;z-index:0;background:#e9edf3;}
.findus-map .leaflet-popup-content strong{color:var(--h-ink);}
@media (max-width:767.98px){
    .home-section{padding:1.25rem 0;}
    .findus-info{flex-basis:100%;max-width:100%;padding:1.2rem;}
    .findus-map{min-height:230px;flex-basis:100%;}
}
.home-lead-muted{color:var(--h-muted);}
/* ---- HERO SLIDER ---- */
.hero-slider{position:relative;background:var(--h-navy-d);}
.hero-slider .carousel-item{transition:opacity .8s ease, transform 0s .8s;}
/* 60/40 split — the banner (contain, never cropped) fills the LEFT 60%,
   the name label sits in the RIGHT 40%. */
/* Landscape frame over the left 60%, still width-driven (not viewport height) so
   every slide is the same size and the page never jumps as the slider rotates.
   Capped at 380px — a shallow band on purpose, so the stats band and the About
   section sit within the first screen instead of below a full-height hero. Note
   that a screen at 150% Windows scaling has only ~720px of CSS viewport height,
   so anything taller than this swallows it. Floor 320px for narrow windows. */
.hs-slide{position:relative;min-height:clamp(320px,40vw,380px);display:flex;align-items:center;
    overflow:hidden;background:linear-gradient(120deg,var(--h-navy-d),var(--h-navy));}
.hs-slide.hs-grad{background:linear-gradient(125deg,var(--h-navy) 0%,var(--h-purple) 100%);}
/* WHOLE banner visible — object-fit:contain, never cropped. The frame is a shallow
   landscape band while uploads are ~1.5:1, so a contained image leaves space beside
   it; hs-bg fills that with a blurred, darkened copy of the same artwork (one HTTP
   request — same src) instead of flat navy. Note that contain shrinks the PAINTED
   image but the element box stays full-size, so borders/shadows on .hs-img would
   draw at the frame edges, not around the picture. */
.hs-bg{position:absolute;top:0;bottom:0;left:0;width:60%;height:100%;object-fit:cover;object-position:center;
    filter:blur(22px) brightness(.5) saturate(1.1);transform:scale(1.15);z-index:0;pointer-events:none;}
.hs-img{position:absolute;top:0;bottom:0;left:0;width:60%;height:100%;object-fit:contain;object-position:center;
    z-index:1;}
.hs-slide[data-full]{cursor:zoom-in;}
.hs-overlay{position:absolute;inset:0;z-index:1;background:transparent;pointer-events:none;}
.hs-zoom{position:absolute;top:1rem;left:1rem;z-index:3;width:40px;height:40px;border-radius:50%;
    background:rgba(15,23,42,.55);color:#fff;display:flex;align-items:center;justify-content:center;
    border:1px solid rgba(255,255,255,.3);transition:.15s;pointer-events:none;}
.hs-slide[data-full]:hover .hs-zoom{background:var(--h-gold);color:#1a2340;border-color:var(--h-gold);}
/* Banner label ALWAYS inside the banner — a panel along the BOTTOM of the
   left 60% poster. Bottom-aligned rather than centred so it sits out of the
   way of the artwork; the extra bottom padding clears the slide indicators. */
.hs-content{position:absolute;top:0;bottom:0;left:0;width:60%;z-index:2;color:#fff;display:flex;
    align-items:flex-end;justify-content:center;padding:2rem 2rem 3.6rem;text-align:center;}
.hs-inner{display:inline-block;max-width:min(560px,90%);text-align:center;
    background:rgba(10,17,40,.5);border:1px solid rgba(255,255,255,.15);border-radius:1rem;padding:.75rem 1.5rem;
    backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}
/* Gradient (no-image) fallback slides have no artwork to avoid, so the name
   stays centred across the full width with no panel. */
.hs-slide.hs-grad .hs-content{width:100%;padding:2rem 1rem;align-items:center;}
.hs-slide.hs-grad .hs-inner{background:transparent;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;max-width:720px;}
.hs-title{font-size:clamp(1.35rem,2.6vw,2.05rem);font-weight:800;line-height:1.15;margin-bottom:0;
    text-shadow:0 3px 22px rgba(0,0,0,.5);}
/* A gradient slide still shows a subtitle underneath, so the title needs its gap back. */
.hs-slide.hs-grad .hs-title{font-size:clamp(1.5rem,3.2vw,2.5rem);margin-bottom:1rem;}
.hs-sub{font-size:clamp(1rem,1.6vw,1.18rem);opacity:.94;margin-bottom:0;line-height:1.5;}
.hero-slider .carousel-indicators{margin-bottom:1.7rem;z-index:3;}
.hero-slider .carousel-indicators [data-bs-target]{width:32px;height:4px;border-radius:2px;border:0;opacity:.5;transition:.2s;}
.hero-slider .carousel-indicators .active{opacity:1;background:var(--h-gold);width:44px;}
/* Coloured, always-visible nav arrows: navy circle + gold ring (gold fill on hover). */
.hero-slider .carousel-control-prev,.hero-slider .carousel-control-next{width:auto;opacity:1;z-index:5;}
.hero-slider .carousel-control-prev{left:.75rem;right:auto;}
.hero-slider .carousel-control-next{left:auto;right:calc(40% + .75rem);}
.hero-slider .carousel-control-prev-icon,.hero-slider .carousel-control-next-icon{
    width:clamp(40px,3.2vw,52px);height:clamp(40px,3.2vw,52px);background-size:42%;border-radius:50%;
    background-color:var(--h-navy);border:2px solid var(--h-gold);box-shadow:0 4px 16px rgba(0,0,0,.4);transition:.15s;}
.hero-slider .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-slider .carousel-control-next:hover .carousel-control-next-icon{background-color:var(--h-gold);transform:scale(1.08);}
@media (max-width:767.98px){ .hero-slider .carousel-control-next{left:auto;right:.5rem;} }
/* "Do You Know?" frame in the open right 40% */
.hero-quote{position:absolute;top:0;bottom:0;right:0;width:40%;z-index:4;display:flex;align-items:stretch;
    padding:1rem clamp(.9rem,1.6vw,1.9rem);}
.hq-card{width:100%;display:flex;flex-direction:column;color:#fff;
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:1rem;padding:1.35rem 1.5rem;
    backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);box-shadow:0 12px 34px rgba(0,0,0,.28);}
/* With a flyer the card splits into media | text, so the poster gets the whole
   card height rather than a strip of it. */
/* With a flyer nothing sits above or below it — head, title and button are all
   drawn ON the image, so the poster gets the card's full height. */
.hq-card.has-img{align-items:center;gap:0;padding:.6rem .7rem;}
.hq-media{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;
    display:flex;align-items:center;justify-content:center;}
/* Shrink-wraps to the image's laid-out size (inline-block, normal flow), so
   the absolute overlay and corner button sit ON the flyer — flex min-size
   quirks made the media box drift wider than the picture. */
.hq-shot{position:relative;display:inline-block;height:100%;max-width:100%;}
.hq-side{flex:1 1 0;min-width:0;display:flex;flex-direction:column;}
/* The head, banded across the top of the flyer. */
.hq-head-float{position:absolute;left:0;right:0;top:0;z-index:2;display:flex;justify-content:center;
    margin:0;padding:.5rem .7rem 1rem;border-radius:.6rem .6rem 0 0;pointer-events:none;
    background:linear-gradient(180deg,rgba(13,20,45,.9) 0%,rgba(13,20,45,.65) 55%,rgba(13,20,45,0) 100%);}
/* The entry's title, as a bar along the bottom edge of the flyer itself. */
.hq-overlay{position:absolute;left:0;right:0;bottom:0;padding:.9rem .7rem .5rem;text-align:center;pointer-events:none;
    background:linear-gradient(180deg,rgba(13,20,45,0) 0%,rgba(13,20,45,.82) 45%,rgba(13,20,45,.92) 100%);
    border-radius:0 0 .6rem .6rem;}
.hq-overlay .hq-text{font-size:clamp(.85rem,1.1vw,1rem);margin:0;}
.hq-overlay .hq-author{display:block;font-size:.78rem;margin-top:.15rem;}
/* See More lives INSIDE the image, pinned to its bottom-right corner. */
.hq-more-float{position:absolute;right:.55rem;bottom:.55rem;z-index:2;align-self:auto;margin-top:0;
    padding:.4rem .95rem;font-size:.78rem;box-shadow:0 4px 12px rgba(0,0,0,.4);}
/* When the corner button is there, the title keeps left of it. */
.hq-shot:has(.hq-more-float) .hq-overlay{text-align:left;padding:.9rem 7.5rem .55rem .8rem;}
.hq-head{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem;font-size:.74rem;font-weight:800;letter-spacing:.14em;
    text-transform:uppercase;color:var(--h-gold);margin-bottom:.65rem;}
/* 10rem, not 13: this floor plus the card's padding, heading and button is what
   the shallow 380px hero has to accommodate — the card is stretched to it. */
.hq-list{position:relative;flex:1 1 auto;min-height:10rem;}
.hq-item{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .6s ease;
    display:flex;flex-direction:column;justify-content:center;overflow:auto;}
.hq-item.active{opacity:1;}
/* The whole flyer, as large as the frame allows: full card height, contained
   (never cropped), the element shrink-wrapping the drawn image so the rounded
   corners and shadow hug the poster itself. */
.hq-img{display:block;height:100%;max-height:100%;width:auto;max-width:100%;object-fit:contain;object-position:center;
    border-radius:.6rem;box-shadow:0 6px 18px rgba(0,0,0,.3);}
.hq-img[data-full]{cursor:zoom-in;transition:transform .15s, box-shadow .15s;}
.hq-img[data-full]:hover{transform:scale(1.02);box-shadow:0 10px 26px rgba(0,0,0,.42);}
.hq-text{font-size:clamp(1.05rem,1.6vw,1.45rem);font-weight:600;line-height:1.45;margin:0 0 .7rem;}
.hq-text::before{content:"\201C";}
.hq-text::after{content:"\201D";}
.hq-author{font-size:.95rem;color:#cbd5e1;font-style:normal;font-weight:600;}
.hq-more{flex:0 0 auto;align-self:flex-start;margin-top:1.1rem;display:inline-flex;align-items:center;gap:.4rem;
    padding:.5rem 1.15rem;border-radius:2rem;font-size:.82rem;font-weight:700;letter-spacing:.02em;
    color:#1a2340;background:var(--h-gold);text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:.15s;}
.hq-more:hover{filter:brightness(1.08);transform:translateY(-1px);color:#1a2340;}
.hq-more i{transition:transform .15s;}
.hq-more:hover i{transform:translateX(3px);}
@media (max-width:991.98px){
    /* Below the 60/40 split: poster + name centre full-width; quote drops under the poster. */
    .hs-img,.hs-bg{width:100%;}
    .hs-content{width:100%;}
    .hero-slider .carousel-control-next{left:auto;right:.5rem;}
    .hero-quote{position:static;width:100%;padding:.75rem .9rem 1.1rem;}
    .hq-list{min-height:16rem;}
    /* In the flow (no fixed hero height): the flyer keeps its natural shape,
       capped well below the slider's height so the slider stays the main piece. */
    .hq-media{align-self:center;}
    .hq-card.has-img{padding:.5rem;}
    .hq-card.has-img .hq-shot{height:auto;}
    .hq-card.has-img .hq-img{height:auto;max-height:min(46vw,18rem);max-width:100%;}
}
/* Stats band beneath the slider */
.hero-stats-band{background:linear-gradient(90deg,var(--h-navy-d),var(--h-navy));color:#fff;}
.hsb{padding:1.15rem .5rem;text-align:center;position:relative;}
.hsb .n{font-size:1.55rem;font-weight:800;color:var(--h-gold);line-height:1;}
.hsb .l{font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;opacity:.85;margin-top:.35rem;display:block;line-height:1.25;}
@media (min-width:768px){ .hsb:not(:last-child)::after{content:"";position:absolute;right:0;top:22%;height:56%;width:1px;background:rgba(255,255,255,.14);} }
@media (max-width:767.98px){
    /* Phones: the label stays along the BOTTOM of the poster, as on desktop.
       The panel keeps it readable on any image.

       The frame follows the SCREEN WIDTH (not the viewport height), so every
       slide is the same height and the page never jumps as the slider rotates.
       The frame takes its height from the IMAGE, not a guessed ratio, so a
       contained poster fills it edge to edge with no blurred band whatever
       shape it was uploaded at. `height:auto` on the slide, the picture in
       normal flow at width:100% — nothing to letterbox against.
       (It was 66vh — tied to screen height, which made a tall narrow frame
       that cropped a landscape banner badly. Then a fixed 50vw/58vw, which
       only fitted one upload ratio and banded every other one.) */
    /* The main slider: a frame slightly taller than a wide poster alone (min
       60vw), the poster shown whole at full width in the middle and the
       blurred copy of it filling the thin band above and below — a little
       more presence without cropping anything or leaving deep empty bands. */
    .hs-slide{height:auto;min-height:min(60vw,360px);max-height:none;display:flex;align-items:center;}
    /* Into the flow at full width: the picture keeps its own shape, never cropped. */
    .hs-slide .hs-img{position:relative;width:100%;height:auto;max-height:80vh;object-fit:contain;display:block;z-index:1;}
    .hs-slide .hs-bg{display:block;}
    /* A gradient slide has no image to set the height, so it keeps a frame. */
    .hs-slide.hs-grad{min-height:min(58vw,320px);display:flex;}
    .hs-content{padding:1rem 1rem 2rem;}
    .hs-inner{max-width:92%;padding:.55rem 1rem;border-radius:.75rem;}
    .hs-title{font-size:1.05rem;margin-bottom:0;white-space:normal;line-height:1.3;}
    .hs-sub{font-size:.86rem;}
    .hs-zoom{width:30px;height:30px;font-size:.8rem;top:.6rem;left:.6rem;}
    /* Gradient (no-image) slides: compact centred text block. */
    .hs-slide.hs-grad .hs-content{padding:0;}
    .hs-slide.hs-grad .hs-inner{background:transparent;padding:1.6rem 1.1rem 2rem;}
    /* Swipe + dashes are enough on a phone — the big round arrows crowded it. */
    .hero-slider .carousel-control-prev,.hero-slider .carousel-control-next{display:none;}
    .hero-slider .carousel-indicators{margin-bottom:.35rem;}
    /* Stats band: tighter tiles. */
    .hsb{padding:.8rem .35rem;}
    .hsb .n{font-size:1.25rem;}
    .hsb .l{font-size:.62rem;}
}
/* ---- STREAMS (Class 11 & 12) ---- */
.streams-row{position:relative;}
.stream-card{display:flex;border-radius:16px;overflow:hidden;height:100%;box-shadow:0 12px 30px rgba(16,26,58,.12);color:#fff;}
.stream-science{background:linear-gradient(135deg,var(--h-navy),var(--h-navy-d));}
.stream-arts{background:linear-gradient(135deg,var(--h-purple),var(--h-purple2));}
.stream-media{flex:0 0 34%;display:flex;align-items:center;justify-content:center;font-size:3rem;color:rgba(255,255,255,.4);}
.stream-science .stream-media{background:rgba(0,0,0,.18);}
.stream-arts .stream-media{background:rgba(0,0,0,.12);}
.stream-body{flex:1;padding:1.5rem 1.6rem;}
.stream-body h3{font-size:1.35rem;font-weight:800;margin-bottom:.35rem;}
.stream-body>p{font-size:.9rem;opacity:.85;margin-bottom:.9rem;}
.stream-sub{font-weight:700;font-size:.95rem;margin-bottom:.5rem;}
.stream-list{list-style:none;padding:0;margin:0 0 1.1rem;display:grid;grid-template-columns:1fr 1fr;gap:.28rem .8rem;}
.stream-list li{font-size:.83rem;display:flex;align-items:flex-start;gap:.4rem;}
.stream-list li i{color:var(--h-gold);margin-top:.12rem;}
.stream-or{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;
    background:#fff;border:1px solid #e2e8f0;box-shadow:0 6px 16px rgba(16,26,58,.15);display:flex;align-items:center;justify-content:center;
    font-weight:800;color:var(--h-navy);z-index:4;}
/* ---- PROGRAMS ---- */
.program-card{background:#fff;border:1px solid #e8ecf3;border-radius:14px;padding:1.4rem 1rem;text-align:center;height:100%;transition:.15s;}
.program-card:hover{box-shadow:0 12px 26px rgba(16,26,58,.12);transform:translateY(-3px);}
.program-card i{font-size:1.9rem;color:var(--h-navy);}
.program-card h4{font-size:1rem;font-weight:700;color:var(--h-ink);margin:.7rem 0 .45rem;}
.program-card p{font-size:.8rem;color:var(--h-muted);margin:0;}
.program-card-hl{background:linear-gradient(135deg,var(--h-navy),var(--h-navy-d));border-color:transparent;}
.program-card-hl i,.program-card-hl p{color:rgba(255,255,255,.85);}
.program-card-hl h4{color:var(--h-gold);}
/* ---- CAMPUS LIFE + NEWS ---- */
.campus-card{height:100%;}
.campus-media{aspect-ratio:1/1;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:2rem;color:#fff;margin-bottom:.6rem;}
.campus-sports{background:linear-gradient(135deg,#1d6fb8,#123f6b);}
.campus-clubs{background:linear-gradient(135deg,#b8434f,#7a2833);}
.campus-community{background:linear-gradient(135deg,#2e8b57,#1c5c39);}
.campus-wellness{background:linear-gradient(135deg,#7a52b3,#4a2a86);}
.campus-card h5{font-size:.95rem;font-weight:700;color:var(--h-ink);margin-bottom:.2rem;}
.campus-card p{font-size:.78rem;color:var(--h-muted);margin:0;}
.news-viewall{font-size:.82rem;font-weight:600;color:var(--h-navy);text-decoration:none;white-space:nowrap;}
.news-viewall:hover{color:var(--h-gold-d);}
.news-item{display:flex;gap:.9rem;padding:.85rem 0;border-bottom:1px solid #e8ecf3;transition:background .12s;}
.news-item:last-child{border-bottom:0;}
a.news-item:hover{background:var(--h-soft);}
a.news-item:hover .news-body h6{color:var(--h-gold-d);}
.news-date{flex:0 0 52px;height:56px;border-radius:10px;background:var(--h-soft);border:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
/* The post's own picture, shown when it has one. */
.news-thumb{flex:0 0 84px;width:84px;height:66px;object-fit:cover;border-radius:10px;
    border:1px solid #e2e8f0;background:var(--h-soft);transition:border-color .12s;}
a.news-item:hover .news-thumb{border-color:var(--h-gold);}
.news-date .d{font-size:1.15rem;font-weight:800;color:var(--h-navy);line-height:1;}
.news-date .m{font-size:.66rem;text-transform:uppercase;color:var(--h-gold-d);font-weight:700;}
.news-body h6{font-size:.92rem;font-weight:700;color:var(--h-ink);margin:0 0 .15rem;}
.news-meta{font-size:.74rem;color:var(--h-muted);margin-bottom:.15rem;}
.news-body p{font-size:.78rem;color:var(--h-muted);margin:0;}
/* Blog categories (each with 3 latest posts) */
.cat-card{height:100%;background:#fff;border:1px solid #e8ecf3;border-radius:12px;padding:.85rem 1rem;box-shadow:0 4px 14px rgba(16,26,58,.05);}
.cat-head{display:flex;align-items:center;gap:.45rem;font-weight:800;color:var(--h-navy);font-size:.95rem;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:2px solid var(--h-gold);}
.cat-head i{color:var(--h-gold-d);}
.cat-head .cat-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cat-head .cat-more{margin-left:auto;font-size:.7rem;font-weight:700;color:var(--h-gold-d);text-decoration:none;text-transform:uppercase;letter-spacing:.04em;}
.cat-head .cat-more:hover{text-decoration:underline;}
.cat-list{list-style:none;margin:0;padding:0;}
.cat-list li{border-bottom:1px dashed #eef1f6;}
.cat-list li:last-child{border-bottom:0;}
/* A row is thumbnail + text side by side; posts with no picture keep the
   text at the same place because the thumbnail simply is not rendered. */
.cat-post{display:flex;align-items:center;gap:.6rem;padding:.4rem 0;text-decoration:none;}
.cat-post-thumb{flex:0 0 56px;width:56px;height:44px;object-fit:cover;border-radius:.4rem;
    border:1px solid #e2e8f0;background:var(--h-soft);transition:border-color .12s;}
.cat-post-text{display:flex;flex-direction:column;gap:.05rem;min-width:0;}
.cat-post-title{font-size:.85rem;font-weight:600;color:var(--h-ink);line-height:1.3;}
.cat-post:hover .cat-post-title{color:var(--h-gold-d);}
.cat-post:hover .cat-post-thumb{border-color:var(--h-gold);}
.cat-post-date{font-size:.7rem;color:var(--h-muted);}

/* ---- GALLERY ALBUM SLIDER ----
   A scroll strip, five cards wide on a desktop. Each card is exactly a fifth
   of the strip minus its share of the gap, so five sit across with no
   part-card peeking in. Phones get three (see the phone block below). */
.ga-strip{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;
    scroll-behavior:smooth;padding:.25rem .15rem 1rem;margin:0 -.15rem;
    scrollbar-width:none;-ms-overflow-style:none;}
.ga-strip::-webkit-scrollbar{display:none;}
.ga-card{flex:0 0 calc((100% - 4rem) / 5);scroll-snap-align:start;text-decoration:none;
    color:inherit;display:block;}
.ga-shot{position:relative;display:block;border-radius:.7rem;overflow:hidden;
    background:var(--h-soft);border:1px solid #e2e8f0;aspect-ratio:4/3;
    box-shadow:0 2px 10px rgba(16,24,40,.06);transition:.15s;}
.ga-shot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease;}
.ga-card:hover .ga-shot{border-color:var(--h-gold);box-shadow:0 8px 22px rgba(16,24,40,.14);}
.ga-card:hover .ga-shot img{transform:scale(1.06);}
.ga-noshot{display:flex;align-items:center;justify-content:center;height:100%;
    color:var(--h-muted);font-size:1.8rem;}
.ga-count{position:absolute;bottom:.4rem;right:.4rem;background:rgba(15,23,42,.72);color:#fff;
    font-size:.66rem;font-weight:700;padding:.15rem .45rem;border-radius:.35rem;}
.ga-title{margin-top:.5rem;font-size:.85rem;font-weight:600;line-height:1.3;
    color:var(--h-ink);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.ga-card:hover .ga-title{color:var(--h-gold-d);}
.ga-arrows{display:inline-flex;gap:.35rem;}
.ga-arrow{width:34px;height:34px;border-radius:50%;border:1px solid #d8e0ec;background:#fff;
    color:var(--h-navy);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.12s;}
.ga-arrow:hover{background:var(--h-navy);color:#fff;border-color:var(--h-navy);}
.ga-arrow:disabled{opacity:.35;cursor:default;}
/* Touchscreens swipe the strip, so the arrows are not needed. */
@media (hover:none) and (pointer:coarse){ .ga-arrows{display:none;} }
/* ---- ADMISSIONS BANNER ---- */
.admissions-banner{background:linear-gradient(120deg,var(--h-purple),var(--h-purple2));border-radius:16px;color:#fff;
    padding:1.5rem 1.8rem;display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;}
.ab-left{display:flex;align-items:center;gap:1rem;}
.ab-ic{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex:0 0 auto;}
.ab-left h3{font-size:1.35rem;font-weight:800;margin:0;}
.ab-left p{margin:.15rem 0 0;opacity:.9;font-size:.9rem;}
.ab-actions{display:flex;gap:.7rem;flex-wrap:wrap;}
/* ---- ABOUT + ACHIEVEMENTS ---- */
.about-tabs{border-bottom:1px solid #dfe5ee;gap:.1rem;flex-wrap:wrap;}
.about-tabs .nav-link{color:var(--h-muted);font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:.82rem;
    border:0;border-bottom:3px solid transparent;border-radius:0;padding:.7rem 1.1rem;background:transparent;}
.about-tabs .nav-link:hover{color:var(--h-navy);}
.about-tabs .nav-link.active{color:var(--h-navy);border-bottom-color:var(--h-gold);}
.about-panel{background:#fff;border:1px solid #e8ecf3;border-top:0;border-radius:0 0 14px 14px;padding:1.5rem 1.6rem;}
.about-panel h3{font-size:1.2rem;font-weight:800;color:var(--h-ink);margin-bottom:.7rem;}
.about-panel p{color:var(--h-muted);font-size:.94rem;line-height:1.65;margin-bottom:1rem;}
.about-values{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:.55rem 1rem;}
.about-values li{display:flex;align-items:flex-start;gap:.5rem;font-size:.92rem;font-weight:600;color:var(--h-ink);}
.about-values li i{color:var(--h-gold);margin-top:.15rem;}
.ach-card{border-radius:14px;overflow:hidden;border:1px solid #e8ecf3;background:#fff;height:100%;}
.ach-head{background:var(--h-navy);color:#fff;padding:.85rem 1.1rem;font-weight:800;letter-spacing:.03em;
    text-transform:uppercase;font-size:.95rem;display:flex;align-items:center;gap:.5rem;}
.ach-head i{color:var(--h-gold);}
.ach-list{list-style:none;margin:0;padding:0;}
.ach-list li{border-bottom:1px solid #eef1f6;}
.ach-list li:last-child{border-bottom:0;}
.ach-list a,.ach-list .ach-row{display:flex;gap:.55rem;align-items:flex-start;padding:.72rem 1.1rem;text-decoration:none;color:var(--h-ink);transition:.12s;}
.ach-list a:hover{background:var(--h-soft);color:var(--h-navy);}
.ach-ic{color:var(--h-gold);margin-top:.2rem;flex:0 0 auto;font-size:.8rem;}
.ach-t{font-weight:600;font-size:.9rem;line-height:1.35;}
.ach-d{font-size:.74rem;color:var(--h-muted);}

/* ---- PHONE RULES THAT MUST COME LAST ----
   A media query carries no extra specificity, so these have to be declared
   AFTER the base rules they override. Written up in the earlier phone block
   they would simply lose at every width — which is why section headings,
   stream cards and the About tabs stayed at their desktop sizes on a phone. */
@media (max-width:767.98px){
    /* Section headings: 1.55rem was wrapping onto three lines. */
    .home-h2{font-size:1.2rem;}
    /* Gallery slider: three album cards across instead of five. The gap is
       tightened to .6rem first so three still leave a usable card width on a
       narrow phone — hence (100% - 2 gaps) / 3. */
    .ga-strip{gap:.6rem;}
    .ga-card{flex:0 0 calc((100% - 1.2rem) / 3);}
    .ga-title{font-size:.76rem;margin-top:.35rem;}
    .ga-count{font-size:.6rem;padding:.1rem .3rem;bottom:.3rem;right:.3rem;}
    /* Post thumbnails: smaller so the headline keeps its room. */
    .news-thumb{flex:0 0 64px;width:64px;height:52px;}
    .cat-post-thumb{flex:0 0 46px;width:46px;height:36px;}
    /* Stream cards stack: the 34% icon panel left almost no room for the
       subject list beside it on a narrow screen. */
    .stream-card{flex-direction:column;}
    .stream-media{flex:0 0 auto;padding:1rem 0;font-size:2.2rem;}
    .stream-body{padding:1.15rem 1.2rem;}
    /* About Us / Mission & Vision / Our Prayer / Core Values — centred as a
       group and set larger, so they are comfortable to read and to tap.
       At .82rem and left-aligned the last tab was stranded against the edge. */
    /* One swipeable line instead of wrapping onto two. NOT centred: a centred
       flex row that overflows spills off BOTH ends, and the first tab can
       never be scrolled back into view. */
    .about-tabs{justify-content:flex-start;gap:.15rem .35rem;flex-wrap:nowrap;overflow-x:auto;
        scrollbar-width:none;-ms-overflow-style:none;}
    .about-tabs::-webkit-scrollbar{display:none;}
    .about-tabs .nav-item{flex:0 0 auto;}
    .about-tabs .nav-link{padding:.55rem .8rem;font-size:.86rem;text-align:center;white-space:nowrap;}
    .about-panel{padding:1rem 1.05rem;}
    /* "Do You Know?" card under the poster — 16rem of reserved height left a
       big empty gap beneath a short entry. */
    .hq-list{min-height:11rem;}
    .hq-card{padding:1.1rem 1.15rem;}
}

/* ---- PHONE COMPRESSION ----
   Everything below still carried desktop padding on a phone, which turned the
   home page into a long scroll of empty space: ~1.5rem inside every card and
   banner, decorative icon panels a finger tall, and section gaps to match.
   Declared LAST so it beats the 767.98px block above it. Nothing is removed —
   only tightened — except the two purely decorative panels called out below. */
@media (max-width:575.98px){
    .home-section{padding:.9rem 0;}
    .home-section > .container > .text-center.mb-4{margin-bottom:.7rem !important;}
    .home-h2{font-size:1.1rem;}
    .home-eyebrow{font-size:.68rem;letter-spacing:.16em;margin-bottom:.2rem;}
    .home-lead-muted{font-size:.84rem;}

    /* Streams: the icon panel was a ~110px empty band above each stacked card,
       holding one decorative glyph. The card's own heading says the same thing. */
    .stream-media{display:none;}
    .stream-body{padding:.9rem 1rem;}
    .stream-body h3{font-size:1.08rem;}
    .stream-body>p{font-size:.8rem;margin-bottom:.55rem;}
    .stream-sub{font-size:.85rem;margin-bottom:.3rem;}
    .stream-list{gap:.2rem .6rem;margin-bottom:.75rem;}
    .stream-list li{font-size:.75rem;}
    .stream-or{width:42px;height:42px;font-size:.8rem;}

    .program-card{padding:.9rem .7rem;}
    .program-card i{font-size:1.5rem;}
    .program-card h4{font-size:.86rem;margin:.4rem 0 .28rem;}
    .program-card p{font-size:.73rem;}

    .cat-card{padding:.6rem .7rem;}
    .cat-head{font-size:.86rem;margin-bottom:.35rem;padding-bottom:.35rem;}
    .cat-post{padding:.28rem 0;gap:.5rem;}
    .cat-post-title{font-size:.79rem;}

    .news-item{padding:.5rem 0;gap:.6rem;}
    .news-date{flex:0 0 42px;height:44px;}
    .news-date .d{font-size:.98rem;}
    .news-date .m{font-size:.58rem;}
    .news-body h6{font-size:.84rem;}
    .news-meta{font-size:.68rem;}
    /* The excerpt stays, clipped to one line — three lines per row was most of
       the section's height. */
    .news-body p{font-size:.72rem;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;
        -webkit-box-orient:vertical;overflow:hidden;}

    /* The two call-to-action banners: the round icon is decoration, and the
       buttons read better full width than wrapped onto three short rows. */
    .admissions-banner{padding:1rem 1.05rem;gap:.75rem;}
    .ab-ic{display:none;}
    .ab-left{gap:0;}
    .ab-left h3{font-size:1.05rem;}
    .ab-left p{font-size:.79rem;}
    .ab-actions{width:100%;gap:.5rem;}
    .ab-actions > a{width:100%;justify-content:center;padding:.5rem 1rem;}

    .ach-head{padding:.6rem .85rem;font-size:.85rem;}
    .ach-list a,.ach-list .ach-row{padding:.5rem .85rem;}
    .ach-t{font-size:.82rem;}
    .ach-d{font-size:.7rem;}

    .about-panel{padding:.85rem .9rem;}
    .about-panel h3{font-size:1rem;margin-bottom:.45rem;}
    .about-panel p{font-size:.84rem;line-height:1.5;margin-bottom:.7rem;}
    /* Two columns of values were splitting short phrases over two lines each. */
    .about-values{grid-template-columns:1fr;gap:.3rem;}
    .about-values li{font-size:.82rem;}

    .findus-info{padding:.9rem 1rem;}
    .findus-name{font-size:1rem;}
    .findus-line{font-size:.79rem;}
    .findus-btn{font-size:.82rem;padding:.4rem .85rem;}
    .findus-hours{font-size:.74rem;}
    .findus-map{min-height:190px;}
}
