/* ==========================================================
   QIMS – Front-end stylesheet
   Brand colours come from Admin > Settings > General
   (--primary and --accent are set inline in the layout).
   ========================================================== */

:root {
    --primary: #801213;
    --accent: #c8a24a;
    --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 8%, #fff);
    --ink: #1d2230;
    --muted: #5d6475;
    --line: #e7e9ef;
    --bg-soft: #f6f6f8;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(20, 24, 40, .08);
    --shadow-lg: 0 24px 60px rgba(20, 24, 40, .16);
    --header-h: 84px;
    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.65; overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.25; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .65rem 1.25rem; display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-primary-brand { background: var(--primary); color: #fff; border: 0; }
.btn-primary-brand:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #241a05; border: 0; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-brand:hover { background: var(--primary); color: #fff; }
.btn i { transition: transform .2s; }
.btn:hover i.bi-arrow-right { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,.85); font-size: .85rem; padding: 7px 0; }
.topbar a, .topbar span { color: rgba(255,255,255,.88); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 28px; height: 28px; border-radius: 50%; justify-content: center; background: rgba(255,255,255,.1); }
.topbar-social a:hover { background: var(--accent); color: #241a05; }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: stretch; background: #fff8e6; border-bottom: 1px solid #f0e2bd; font-size: .9rem; overflow: hidden; }
.ticker-label { background: var(--accent); color: #241a05; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; padding: 9px 18px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; }
.ticker-label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; padding-left: 18px; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { padding-right: 60px; position: relative; color: #4a3a12; }
.ticker-item::after { content: "\25C6"; position: absolute; right: 24px; color: var(--primary); font-size: .7rem; top: 50%; transform: translateY(-50%); }
.ticker-item a { color: #4a3a12; font-weight: 500; }
.ticker-item a:hover { color: var(--primary); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 575px) { .ticker-label span { display: none; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation-duration: 200s; } }

/* ---------- Header ---------- */
/* No backdrop-filter here: it would trap the fixed mobile menu inside the header */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(20,24,40,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1rem; color: var(--primary); font-weight: 700; max-width: 230px; }
.brand-text small { font-size: .74rem; color: var(--muted); letter-spacing: .03em; }

.main-nav { display: flex; align-items: center; gap: 10px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-li { position: relative; }
.nav-a { display: flex; align-items: center; gap: 4px; padding: 30px 11px; font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap; position: relative; }
.nav-a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 22px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav-li:hover > .nav-a, .nav-li:focus-within > .nav-a { color: var(--primary); }
.nav-li:hover > .nav-a::after, .nav-li:focus-within > .nav-a::after { transform: scaleX(1); }
.nav-a .caret { font-size: .65rem; transition: transform .2s; }
.nav-li:hover .caret { transform: rotate(180deg); }
.sub-toggle, .nav-mobile-head, .nav-toggler, .nav-backdrop { display: none; }
.nav-cta { margin-left: 8px; padding: .6rem 1.1rem; font-size: .9rem; white-space: nowrap; }

.sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--primary); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s ease; }
.sub-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.sub-menu a:hover { background: var(--primary-soft); color: var(--primary); padding-left: 18px; }
.nav-li:hover > .sub-menu, .nav-li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-li.is-mega { position: static; }
.mega-panel { position: absolute; left: 12px; right: 12px; top: 100%; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--primary); padding: 26px 28px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .22s ease; }
.nav-li.is-mega:hover > .mega-panel, .nav-li.is-mega:focus-within > .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.mega-col h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega-col h6 a { color: inherit; }
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li a { display: block; padding: 6px 0; font-size: .88rem; color: var(--ink); }
.mega-col li a:hover { color: var(--primary); transform: translateX(4px); }
.mega-col li a { transition: transform .2s, color .2s; }

/* The header uses a wider container than the page so the 9-item menu fits */
.site-header .header-inner { max-width: 1560px; padding-left: 24px; padding-right: 24px; }
@media (min-width: 1200px) and (max-width: 1599px) { .nav-cta { display: none; } }
@media (max-width: 1399px) {
    .nav-a { padding-left: 8px; padding-right: 8px; font-size: .88rem; }
    .nav-a::after { left: 8px; right: 8px; }
    .brand-text strong { max-width: 190px; font-size: .92rem; }
}

/* Mobile navigation */
@media (max-width: 1199px) {
    .brand img { height: 52px; }
    .nav-toggler { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 11px; }
    .nav-toggler span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
    .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; z-index: 1050; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); }
    .main-nav.open { transform: translateX(0); }
    .nav-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--primary); color: #fff; font-family: var(--font-head); }
    .nav-close { background: none; border: 0; color: #fff; font-size: 1.2rem; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(10,12,20,.5); z-index: 1040; opacity: 0; visibility: hidden; transition: opacity .3s; }
    .nav-backdrop.show { display: block; opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; align-items: stretch; padding: 8px 0; }
    .nav-li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; }
    .nav-a { padding: 13px 20px; flex: 1; }
    .nav-a::after, .nav-a .caret { display: none; }
    .sub-toggle { display: flex; align-items: center; justify-content: center; width: 52px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); }
    .sub-toggle i { transition: transform .2s; }
    .nav-li.open > .sub-toggle i { transform: rotate(180deg); }
    .sub-menu, .mega-panel { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; display: none; background: var(--bg-soft); padding: 6px 12px 12px; }
    .nav-li.open > .sub-menu, .nav-li.open > .mega-panel { display: block; }
    .mega-grid { grid-template-columns: 1fr; gap: 14px; }
    .mega-col h6 { margin-top: 8px; }
    .nav-cta { margin: 18px 20px 0; display: inline-flex; }
}
@media (max-width: 575px) { .site-header .header-inner { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 575px) {
    .brand-text strong { font-size: .82rem; max-width: 170px; }
    .brand-text small { display: none; }
    .brand img { height: 46px; }
    :root { --header-h: 70px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: #111; }
.hero .carousel-item { height: min(82vh, 760px); min-height: 440px; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.carousel-item.active .hero-img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,6,6,.78) 0%, rgba(20,6,6,.45) 45%, rgba(0,0,0,.05) 100%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; padding-bottom: 60px; }
.hero-content { max-width: 640px; color: #fff; }
.hero-kicker { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--accent); margin-bottom: 14px; padding-left: 38px; position: relative; }
.hero-kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 28px; height: 2px; background: var(--accent); }
h1.hero-kicker { font-family: inherit; line-height: 1.5; }
.hero-title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 16px; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.88); margin-bottom: 28px; max-width: 520px; }
.carousel-item.active .hero-content > * { animation: heroIn .8s both; }
.carousel-item.active .hero-content > *:nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-content > *:nth-child(3) { animation-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-arrow { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; backdrop-filter: blur(4px); transition: background .2s; }
.carousel-control-prev, .carousel-control-next { width: 8%; opacity: 1; }
.carousel-control-prev:hover .hero-arrow, .carousel-control-next:hover .hero-arrow { background: var(--primary); border-color: var(--primary); }
.hero .carousel-indicators { margin-bottom: 110px; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 4px; border: 0; }
.hero .carousel-indicators .active { background: var(--accent); width: 44px; }
@media (max-width: 767px) {
    .carousel-control-prev, .carousel-control-next { display: none; }
    .hero .carousel-item { height: 62vh; min-height: 380px; }
    .hero-overlay { background: linear-gradient(0deg, rgba(20,6,6,.85) 10%, rgba(20,6,6,.35) 70%); }
    .hero-caption { align-items: flex-end; padding-bottom: 110px; }
    .hero-kicker { font-size: .68rem; letter-spacing: .1em; padding-left: 0; }
    .hero-kicker::before { display: none; }
    .hero-title { font-size: 1.9rem; }
    .hero-sub { font-size: .98rem; margin-bottom: 20px; }
    .hero .carousel-indicators { margin-bottom: 70px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.text-center .eyebrow::after { content: ""; width: 24px; height: 2px; background: var(--accent); }
.eyebrow-light { color: var(--accent); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }
@media (max-width: 767px) { .section { padding: 64px 0; } }

/* ---------- Why study ---------- */
.why-section { position: relative; z-index: 5; padding: 90px 0; }
.why-section.why-overlap { margin-top: -90px; padding-top: 0; }
.why-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.why-intro { background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff; padding: 40px 34px; position: relative; overflow: hidden; }
.why-intro::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); right: -80px; bottom: -90px; }
.why-intro h2 { color: #fff; font-size: 1.75rem; font-weight: 700; }
.why-intro p { color: rgba(255,255,255,.85); font-size: .95rem; }
.why-card { padding: 40px 30px; border-left: 1px solid var(--line); transition: background .25s; position: relative; }
.why-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--primary); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.why-card:hover { background: var(--primary-soft); }
.why-card:hover::before { transform: scaleX(1); }
.why-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px; transition: all .25s; }
.why-card:hover .why-icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.why-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: .93rem; margin-bottom: 14px; }
.why-link { font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 767px) { .why-section { padding: 60px 0; } .why-section.why-overlap { margin-top: -50px; padding-top: 0; } .why-card { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.stat { text-align: center; position: relative; }
.stat i { font-size: 2rem; color: var(--accent); display: block; margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.1; }
.stat-label { color: rgba(255,255,255,.8); font-size: .92rem; margin-top: 4px; }
.stats-head { position: relative; max-width: 760px; margin: 0 auto 40px; }
.stats-head h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 10px; }
.stats-head p { color: rgba(255,255,255,.82); margin: 0; }

/* ---------- About + video (homepage) ---------- */
.about-home { padding-top: 24px; }
.about-home-text { color: #4a5060; }
.video-frame { position: relative; border-radius: 18px; box-shadow: var(--shadow-lg); }
.video-frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 3px solid var(--accent); border-radius: 18px; z-index: -1; }
.video-lite, .video-frame iframe { display: block; position: relative; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #111; cursor: pointer; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .92; }
.video-lite:hover img { transform: scale(1.04); opacity: 1; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 2.4rem; box-shadow: 0 0 0 12px rgba(255,255,255,.25); transition: transform .3s; }
.video-play i { margin-left: 4px; }
.video-lite:hover .video-play, .video-lite:focus-visible .video-play { transform: translate(-50%, -50%) scale(1.08); }
@media (max-width: 991px) { .video-frame { margin: 0 14px 0 14px; } }
@media (max-width: 575px) { .video-play { width: 62px; height: 62px; font-size: 1.9rem; box-shadow: 0 0 0 8px rgba(255,255,255,.25); } .video-frame::before { inset: -10px 10px 10px -10px; } .about-home { padding-top: 8px; } }

/* ---------- Leader ---------- */
.leader-section { background: var(--bg-soft); }
.leader-photo { position: relative; max-width: 440px; margin: 0 auto; }
.leader-photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 3px solid var(--accent); border-radius: 18px; }
.leader-photo img { position: relative; width: 100%; aspect-ratio: 5/7; object-fit: cover; object-position: center top; border-radius: 18px; box-shadow: var(--shadow-lg); }
.leader-badge { position: absolute; left: -16px; bottom: 34px; background: var(--primary); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow); }
.leader-badge strong { display: block; font-family: var(--font-head); }
.leader-badge span { font-size: .82rem; color: rgba(255,255,255,.85); }
.leader-message { position: relative; font-size: 1.08rem; line-height: 1.8; color: #3a4050; background: #fff; padding: 64px 34px 28px 32px; border-left: 4px solid var(--primary); border-radius: 0 16px 16px 0; box-shadow: var(--shadow); margin: 26px 0 24px; overflow: hidden; }
.leader-message .quote-mark { position: absolute; left: 26px; top: 10px; font-size: 2.8rem; color: var(--accent); opacity: .55; line-height: 1; pointer-events: none; }
.leader-message p { position: relative; }
.leader-message p:last-child { margin-bottom: 0; }
.leader-sign strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.leader-sign span { color: var(--muted); font-size: .9rem; }
@media (max-width: 575px) {
    .leader-badge { left: 10px; }
    .leader-photo::before { inset: 14px -10px -14px 14px; }
    .leader-message { padding: 54px 20px 20px 20px; }
    .leader-message .quote-mark { left: 16px; top: 6px; font-size: 2.4rem; }
}
/* Comfortable 16px side margins on phones */
@media (max-width: 575px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .row { --bs-gutter-x: 1.25rem; }
}

/* ---------- CTA ---------- */
.cta-band { padding: 0; background: linear-gradient(to bottom, var(--bg-soft) 50%, #fff 50%); }
.cta-inner { display: flex; align-items: center; gap: 28px; background: #1f1414; color: #fff; padding: 40px 44px; border-radius: 20px; position: relative; z-index: 3; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.cta-icon { width: 72px; height: 72px; flex-shrink: 0; border-radius: 18px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--accent); }
.cta-text { flex: 1; position: relative; z-index: 1; }
.cta-text h2 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
.cta-inner .btn { position: relative; z-index: 1; }
@media (max-width: 991px) { .cta-inner { flex-direction: column; text-align: center; padding: 34px 24px; } }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.gallery-filters button { border: 1px solid var(--line); background: #fff; border-radius: 40px; padding: 8px 18px; font-weight: 500; font-size: .9rem; color: var(--ink); transition: all .2s; display: inline-flex; gap: 8px; align-items: center; }
.gallery-filters button span { background: var(--bg-soft); border-radius: 20px; padding: 0 8px; font-size: .75rem; color: var(--muted); }
.gallery-filters button:hover { border-color: var(--primary); color: var(--primary); }
.gallery-filters button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-filters button.active span { background: rgba(255,255,255,.2); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.gallery-grid .gallery-item.is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } /* 1 large + 8 small = 3 full rows */
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } /* absolute: a tall photo can never stretch the grid */
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; background: color-mix(in srgb, var(--primary) 70%, transparent); opacity: 0; transition: opacity .3s; font-size: 1.4rem; }
.gallery-overlay em { font-style: normal; font-size: .85rem; font-weight: 500; }
.gallery-item:hover .gallery-overlay, .gallery-item:focus .gallery-overlay { opacity: 1; }
.gallery-item.is-hidden, .gallery-item.is-extra { display: none; }
.gallery-grid.filtered .gallery-item:not(.is-feature) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .gallery-grid .gallery-item.is-feature { grid-row: span 1; aspect-ratio: 16/9; } }

/* ---------- News ---------- */
.news-section { background: var(--bg-soft); }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--primary-soft); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-img-ph { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary); }
.news-date { position: absolute; left: 16px; top: 16px; background: var(--primary); color: #fff; text-align: center; padding: 6px 12px; border-radius: 10px; font-size: .72rem; line-height: 1.2; text-transform: uppercase; }
.news-date strong { display: block; font-size: 1.35rem; font-family: var(--font-head); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.news-more { font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Inner page header ---------- */
.page-header { position: relative; overflow: hidden; background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0/22px 22px, linear-gradient(120deg, #1f0a0a, var(--primary)); padding: 84px 0 72px; color: #fff; }
.page-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-header.has-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(25,6,6,.92) 0%, color-mix(in srgb, var(--primary) 72%, transparent) 55%, rgba(25,6,6,.45) 100%); }
.page-header .container { z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin: 0 0 10px; max-width: 820px; }
.page-header-sub { color: rgba(255,255,255,.85); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 640px; margin: 0; }
.page-header .breadcrumb { margin: 0 0 16px; font-size: .85rem; flex-wrap: wrap; }
.page-header .breadcrumb a { color: var(--accent); }
.page-header .breadcrumb-item, .page-header .breadcrumb-item.active { color: rgba(255,255,255,.8); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
@media (max-width: 767px) { .page-header { padding: 48px 0 42px; } }

/* "In this section" sub navigation */
.section-nav { position: sticky; top: var(--header-h); z-index: 1020; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20,24,40,.05); }
.section-nav-inner { display: flex; align-items: center; gap: 18px; }
.section-nav-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; padding-right: 18px; border-right: 1px solid var(--line); }
.section-nav-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px 0; }
.section-nav-scroll::-webkit-scrollbar { display: none; }
.section-nav-scroll a { white-space: nowrap; padding: 8px 16px; border-radius: 40px; font-size: .9rem; font-weight: 500; color: var(--ink); transition: background .2s, color .2s; }
.section-nav-scroll a:hover { background: var(--primary-soft); color: var(--primary); }
.section-nav-scroll a.active { background: var(--primary); color: #fff; }
@media (max-width: 767px) {
    .section-nav-label { display: none; }
    .section-nav .container { padding-right: 0; }
    .section-nav-scroll { padding: 8px 16px 8px 0; mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .section-nav-scroll a { font-size: .85rem; padding: 7px 14px; }
}

/* Active top menu item */
.nav-li.is-current > .nav-a { color: var(--primary); }
.nav-li.is-current > .nav-a::after { transform: scaleX(1); }

/* ---------- Page builder sections ---------- */
.block { padding: 88px 0; position: relative; }
.block.bg-white { background: #fff; }
.block.bg-soft { background: var(--bg-soft); }
.block.bg-brand { background: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/22px 22px, linear-gradient(125deg, var(--primary-dark), var(--primary)); color: #fff; }
.block.bg-white + .block.bg-white, .block.bg-soft + .block.bg-soft { padding-top: 0; }
@media (max-width: 767px) { .block { padding: 56px 0; } }

.block-head { max-width: 760px; margin: 0 0 40px; }
.block-head.text-center { margin-left: auto; margin-right: auto; }
.block-intro { color: var(--muted); margin-top: 6px; }
.block-intro p:last-child { margin-bottom: 0; }
.bg-brand .section-title, .bg-brand h3 { color: #fff; }
.bg-brand .eyebrow { color: var(--accent); }
.bg-brand .block-intro, .bg-brand .prose { color: rgba(255,255,255,.85); }

.prose { font-size: 1.04rem; line-height: 1.8; color: #3a4050; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; }
.prose th { background: var(--primary-soft); color: var(--primary); }
/* Data tables: wrap in <div class="table-wrap"> so they scroll sideways on phones */
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; margin: 0 0 1.4em; box-shadow: 0 4px 16px rgba(20,24,40,.04); background: #fff; }
.prose .table-wrap table { display: table; margin: 0; min-width: 560px; font-size: .93rem; }
.prose .table-wrap th, .prose .table-wrap td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.prose .table-wrap thead th { background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .02em; white-space: nowrap; }
.prose .table-wrap tbody tr:nth-child(even) td { background: #fafafb; }
.prose .table-wrap tbody tr:last-child td { border-bottom: 0; }
.prose .table-wrap td.num, .prose .table-wrap th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose .table-wrap tr.total td { font-weight: 700; background: var(--primary-soft) !important; color: var(--primary); }
.prose .table-wrap tr.sub td { font-weight: 600; }
.prose .table-caption { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin: 1.6em 0 .6em; color: var(--ink); }
.prose .note-box { background: color-mix(in srgb, var(--accent) 12%, #fff); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 1em 0 1.4em; font-size: .95rem; }
.prose .note-box p:last-child, .prose .note-box ul:last-child { margin-bottom: 0; }
@media (max-width: 575px) { .prose .table-wrap { margin-left: -4px; margin-right: -4px; } }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--muted); font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose iframe { max-width: 100%; }
.prose-narrow { max-width: 860px; margin: 0 auto; }

/* Image + text */
.it-media { display: block; position: relative; border-radius: 18px; }
.it-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--accent); border-radius: 18px; z-index: 0; transition: transform .4s; }
.it-media.is-left::before { inset: 18px 18px -18px -18px; }
.it-media img { position: relative; z-index: 1; display: block; width: 100%; max-height: 560px; border-radius: 18px; box-shadow: var(--shadow-lg); object-fit: cover; object-position: top; background: #fff; }
.it-media:hover::before { transform: translate(-6px, -6px); }
.block-image-text .block-head { margin-bottom: 18px; }
@media (max-width: 991px) { .it-media { margin: 0 18px 18px 0; } .it-media.is-left { margin: 0 0 18px 18px; } }

/* Cards */
.info-card { position: relative; overflow: hidden; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.info-card-img { aspect-ratio: 16/10; overflow: hidden; }
.info-card-img img { width: 100%; height: 100%; object-fit: cover; }
.info-card-body { padding: 30px 28px; position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.info-card-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.65rem; margin-bottom: 20px; transition: all .3s; }
.info-card:hover .info-card-icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.info-card-sub { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.info-card .prose { font-size: .97rem; color: var(--muted); flex: 1; }
.info-card-link { font-weight: 600; font-size: .9rem; margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; }
.info-card.is-large .info-card-body { padding: 44px 40px; }
.info-card.is-large h3 { font-size: 1.6rem; }
.info-card.is-large .prose { font-size: 1.08rem; color: #3a4050; }
.info-card.is-large::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--primary), var(--accent)); }
.info-card-watermark { position: absolute; right: -10px; bottom: -30px; font-size: 9rem; color: var(--primary); opacity: .05; z-index: 0; }
@media (max-width: 575px) { .info-card.is-large .info-card-body { padding: 32px 26px; } .info-card.is-large h3 { font-size: 1.35rem; } }

/* Numbered list (learning outcomes) */
.outcome-list { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: grid; gap: 16px; counter-reset: none; }
.outcome { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.outcome:hover { border-color: color-mix(in srgb, var(--primary) 30%, transparent); box-shadow: var(--shadow); transform: translateX(4px); }
.outcome-num { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.outcome-body { flex: 1; min-width: 0; }
.outcome-tag { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--accent) 18%, #fff); color: #6b5212; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 30px; margin-bottom: 10px; }
.outcome-title { font-size: 1.06rem; font-weight: 500; color: var(--ink); margin: 0; line-height: 1.6; }
.outcome-note { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.outcome-note p { margin: 0; }
.bg-soft .outcome { background: #fff; }
@media (max-width: 575px) { .outcome { flex-direction: column; gap: 14px; padding: 20px; } .outcome-num { width: 44px; height: 44px; font-size: 1rem; } }

/* Timeline */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); background: linear-gradient(var(--primary), var(--accent)); border-radius: 3px; }
.tl-item { position: relative; width: 50%; padding: 0 44px 34px 0; }
.tl-item.is-right { margin-left: 50%; padding: 0 0 34px 44px; }
.tl-dot { position: absolute; top: 22px; right: -10px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--primary); z-index: 1; box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 15%, transparent); }
.tl-item.is-right .tl-dot { left: -10px; right: auto; }
.tl-card { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); position: relative; }
.tl-card::after { content: ""; position: absolute; top: 24px; right: -8px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.tl-item.is-right .tl-card::after { left: -8px; right: auto; }
.tl-date { display: inline-block; background: var(--primary); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 30px; margin-bottom: 10px; }
.tl-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.tl-card .prose { font-size: .95rem; color: var(--muted); }
.tl-img { width: 100%; border-radius: 10px; margin-bottom: 12px; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 767px) {
    .timeline::before { left: 10px; }
    .tl-item, .tl-item.is-right { width: 100%; margin-left: 0; padding: 0 0 24px 40px; }
    .tl-dot, .tl-item.is-right .tl-dot { left: 0; right: auto; }
    .tl-card::after, .tl-item.is-right .tl-card::after { left: -8px; right: auto; }
}

/* Statistics tiles */
.stat-tile { text-align: center; padding: 28px 16px; border-radius: 16px; height: 100%; background: #fff; border: 1px solid var(--line); }
.stat-tile i { font-size: 1.8rem; color: var(--primary); display: block; margin-bottom: 8px; }
.stat-tile-value { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.1; color: var(--ink); }
.stat-tile-label { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.bg-brand .stat-tile { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); backdrop-filter: blur(2px); }
.bg-brand .stat-tile i { color: var(--accent); }
.bg-brand .stat-tile-value { color: #fff; }
.bg-brand .stat-tile-label { color: rgba(255,255,255,.78); }
@media (max-width: 575px) { .stat-tile { padding: 20px 10px; } .stat-tile-label { font-size: .8rem; } }

/* Documents */
.doc-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: transform .3s, box-shadow .3s; }
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.doc-cover { position: relative; aspect-ratio: 3/4; background: var(--primary-soft); overflow: hidden; }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.doc-card:hover .doc-cover img { transform: scale(1.04); }
.doc-cover.no-img { aspect-ratio: 16/10; }
.doc-cover.no-img .doc-ph strong { font-size: 1.35rem; }
.doc-cover.no-img .doc-ph i { font-size: 2.4rem; }
.doc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--primary); background: linear-gradient(160deg, var(--primary-soft), color-mix(in srgb, var(--primary) 16%, #fff)); }
.doc-ph i { font-size: 3.2rem; }
.doc-ph strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; }
.doc-ext { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .05em; }
.doc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc-body h3 { font-size: 1rem; margin: 0; flex: 1; }
.doc-action { font-size: .84rem; font-weight: 600; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 575px) { .doc-body { padding: 12px 14px 14px; } .doc-body h3 { font-size: .9rem; } .doc-ph i { font-size: 2.4rem; } .doc-ph strong { font-size: 1.4rem; } }

/* Block gallery */
.block-gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.block-gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.block-gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.block-gallery-grid .gallery-item { aspect-ratio: 4/3; }
.block-gallery-grid .gallery-item:nth-child(6n+1) { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
@media (max-width: 767px) { .block-gallery-grid, .block-gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.single-photo { display: block; max-width: 900px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.single-photo img { width: 100%; display: block; transition: transform .6s; }
.single-photo:hover img { transform: scale(1.03); }
.single-photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; color: #fff; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* People */
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 100%; text-align: center; transition: transform .3s, box-shadow .3s; }
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.person-photo { aspect-ratio: 1/1; background: var(--primary-soft); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-photo span { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 4rem; color: color-mix(in srgb, var(--primary) 45%, #fff); }
.person-body { padding: 20px 18px 24px; }
.person-body h3 { font-size: 1.08rem; margin-bottom: 4px; }
.person-role { color: var(--primary); font-size: .88rem; font-weight: 600; display: block; }
.person-bio { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.person-bio p { margin-bottom: .4em; }
.person-card { position: relative; }
.person-card.no-photo { padding-top: 28px; }
.person-card.no-photo .person-photo { aspect-ratio: auto; background: none; overflow: visible; }
.person-photo .person-initials { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem !important; letter-spacing: .02em; color: var(--primary) !important; background: var(--primary-soft); border: 2px solid color-mix(in srgb, var(--primary) 18%, #fff); }
.person-card.is-head { border-color: color-mix(in srgb, var(--accent) 70%, #fff); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 22%, transparent); }
.person-card.is-head .person-initials { background: var(--primary); color: #fff !important; border-color: var(--accent); }
.person-badge { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; background: var(--accent); color: #2a1f05; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; }
.person-card.is-head.no-photo { padding-top: 46px; }
.person-card:not(.no-photo) .person-badge { top: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
@media (max-width: 575px) { .person-card:not(.no-photo) .person-photo { aspect-ratio: auto; height: 260px; } }
@media (max-width: 575px) {
    /* Compact horizontal cards on phones */
    .person-card.no-photo { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; }
    .person-card.no-photo .person-photo { flex-shrink: 0; }
    .person-card.no-photo .person-photo .person-initials { width: 60px; height: 60px; font-size: 1.15rem !important; }
    .person-card.no-photo .person-body { padding: 0; }
    .person-card.is-head.no-photo { padding-top: 40px; }
    .person-card.no-photo .person-badge { left: 16px; transform: none; }
}

/* Accordion */
.qims-accordion .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; overflow: hidden; margin-bottom: 12px; }
.qims-accordion .accordion-button { font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 18px 22px; color: var(--ink); }
.qims-accordion .accordion-button:not(.collapsed) { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.qims-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 20%, transparent); }
.qims-accordion .accordion-body { padding: 18px 22px 22px; }

/* Quote */
.block-quote.has-bg { color: #fff; overflow: hidden; }
.block-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.block-quote.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(25,6,6,.78); }
.block-quote .container { z-index: 2; }
.big-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.big-quote > i { font-size: 3.4rem; color: var(--accent); line-height: 1; }
.big-quote blockquote { font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 500; line-height: 1.6; color: inherit; margin: 10px 0 20px; }
.big-quote blockquote p { margin: 0; color: inherit; }
.block-quote.has-bg blockquote, .bg-brand .big-quote blockquote { color: #fff; }
.big-quote figcaption strong { display: block; font-family: var(--font-head); }
.big-quote figcaption span { color: var(--muted); font-size: .9rem; }
.block-quote.has-bg figcaption span, .bg-brand .big-quote figcaption span { color: rgba(255,255,255,.7); }

/* CTA section reuses .cta-inner from the homepage */
.cta-inner.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(25,10,10,.82); }
.cta-inner .cta-icon, .cta-inner .cta-text { position: relative; z-index: 1; }
.cta-desc { color: rgba(255,255,255,.75); font-size: .95rem; }
.cta-desc p { margin: 0; }

/* Job openings */
.jobs-list { display: grid; gap: 16px; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; transition: box-shadow .25s, border-color .25s; }
.job-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.job-top { display: flex; gap: 18px; align-items: center; }
.job-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.job-main { flex: 1; min-width: 0; }
.job-main h3 { font-size: 1.15rem; margin: 0 0 6px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); }
.job-meta i { color: var(--primary); }
.job-deadline { text-align: right; flex-shrink: 0; line-height: 1.3; }
.job-deadline small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.job-deadline strong { font-family: var(--font-head); color: var(--ink); }
.job-deadline em { display: block; font-style: normal; font-size: .78rem; color: #b45309; font-weight: 600; }
.job-deadline.is-soon em { color: #dc2626; }
.job-toggle { margin-top: 14px; background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; font-size: .9rem; }
.job-toggle i { transition: transform .2s; }
.job-toggle:not(.collapsed) i { transform: rotate(180deg); }
.job-toggle .when-open, .job-toggle:not(.collapsed) .when-closed { display: none; }
.job-toggle:not(.collapsed) .when-open { display: inline; }
.job-details { padding-top: 14px; margin-top: 14px; border-top: 1px dashed var(--line); }
.job-status { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.job-status.is-open { background: #e6f6ec; color: #15803d; }
.job-status.is-closed { background: #fde8e8; color: #b91c1c; }
.job-card.is-closed { background: #fafafb; border-style: dashed; }
.job-card.is-closed:hover { box-shadow: none; border-color: #d4d6de; }
.job-card.is-closed .job-icon { background: #eef0f3; color: #8a8f9c; }
.job-card.is-closed .job-main h3 { color: #5d6475; }
.job-card.is-closed .job-meta i { color: #9aa0ad; }
.job-card.is-closed .job-deadline strong { color: #b91c1c; }
.job-closed-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 9px 14px; border-radius: 10px; background: #fff4f4; border: 1px solid #fbd5d5; color: #9b1c1c; font-size: .88rem; font-weight: 500; }
.jobs-none-open { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-weight: 500; }
.jobs-empty { text-align: center; padding: 40px 24px; background: var(--bg-soft); border-radius: 18px; border: 1px dashed #d9d9e0; }
.jobs-empty h3 { font-size: 1.3rem; }
.jobs-empty p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.bg-soft .jobs-empty { background: #fff; }
@media (max-width: 575px) {
    .job-top { flex-wrap: wrap; }
    .job-icon { width: 44px; height: 44px; font-size: 1.15rem; }
    .job-main { flex-basis: calc(100% - 62px); }
    .job-deadline { width: 100%; text-align: left; display: flex; gap: 8px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
    .job-deadline em { display: inline; }
}

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.contact-list .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .95rem; margin-bottom: 2px; }
.contact-list div { font-size: .94rem; color: #3a4050; overflow-wrap: anywhere; }
.contact-form-card { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.contact-form-card .form-control, .contact-form-card .form-select { padding: .7rem .9rem; border-radius: 10px; }
.contact-form-card .form-control:focus, .contact-form-card .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary) 15%, transparent); }
.form-success { display: flex; gap: 14px; align-items: flex-start; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.form-success i { font-size: 1.5rem; color: #10b981; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-map { margin-top: 48px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 380px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; } }
@media (max-width: 575px) { .contact-form-card { padding: 22px 18px; } .contact-map { height: 280px; margin-top: 32px; } }

/* Contact details & map */
.contact-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px 24px; transition: transform .3s, box-shadow .3s; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cc-icon { width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 9%, #fff); color: var(--primary); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.contact-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.contact-card p { color: #4a5060; font-size: .95rem; line-height: 1.65; flex-grow: 1; margin-bottom: 14px; }
.contact-card p a { color: var(--ink); }
.contact-card p a:hover { color: var(--primary); }
.cc-big { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.cc-break { overflow-wrap: anywhere; }
.cc-link { font-weight: 600; font-size: .9rem; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.cc-social { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.cc-social a:hover { background: var(--accent); color: #fff; }
.bg-soft .contact-card { border-color: transparent; box-shadow: var(--shadow); }
.contact-map-wrap { position: relative; margin-top: 40px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); height: 440px; background: #e9ecef; }
.contact-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card { position: absolute; left: 24px; bottom: 24px; max-width: 340px; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-lg); display: grid; gap: 6px; justify-items: start; }
.map-card strong { font-family: var(--font-head); color: var(--primary); }
.map-card span { font-size: .9rem; color: #4a5060; }
@media (max-width: 767px) {
    .contact-map-wrap { height: auto; background: none; box-shadow: none; overflow: visible; margin-top: 28px; }
    .contact-map-wrap iframe { height: 300px; border-radius: 18px; box-shadow: var(--shadow); }
    .map-card { position: static; max-width: none; margin-top: 14px; box-shadow: none; border: 1px solid var(--line); }
    .contact-card { padding: 22px 20px 20px; }
}

/* Not found / coming soon */
.not-found { text-align: center; max-width: 560px; margin: 0 auto; }
.not-found-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 2.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.not-found h2 { font-size: 1.7rem; }
.not-found p { color: var(--muted); }

.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.article-meta { color: var(--muted); font-size: .9rem; }
.article-content { font-size: 1.04rem; }
.article-content img { height: auto; border-radius: 10px; }
.news-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.news-gallery a { display: block; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
.news-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .4s; }
.news-gallery a:hover img { transform: scale(1.06); }
@media (max-width: 575px) { .news-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.side-box { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-box h5, .side-box .side-title { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 2px solid var(--primary); margin-bottom: 14px; }
.side-box.side-about { position: static; }
.side-about p { font-size: .92rem; color: #4a5060; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.side-links a:hover { background: #fff; color: var(--primary); }
.side-links i { color: var(--primary); }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-share { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.article-share a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--primary); }
.article-share a:hover { background: var(--primary); color: #fff; }
.side-news { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.side-news:last-child { border-bottom: 0; }
.side-news img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.side-news strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.side-news small { color: var(--muted); }
.side-news:hover strong { color: var(--primary); }

.pager-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pager-wrap ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; flex-wrap: wrap; }
.pager-wrap li a { display: block; min-width: 42px; padding: 8px 12px; text-align: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.pager-wrap li.active a, .pager-wrap li a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #170e0e; color: rgba(255,255,255,.72); padding-top: 80px; font-size: .93rem; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--accent); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { height: 64px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); display: block; font-size: .95rem; line-height: 1.3; }
.footer-brand small { color: var(--accent); font-size: .78rem; }
.footer-about { line-height: 1.7; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-contact, .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, color .2s; }
.footer-links a i { font-size: .7rem; color: var(--accent); }
.footer-links a:hover { transform: translateX(4px); }
.footer-map { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }
.footer-bottom { margin-top: 60px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }

/* ---------- Popup ---------- */
.popup-content { border: 0; border-radius: 16px; overflow: hidden; }
.popup-content .modal-header { background: var(--primary); color: #fff; border: 0; }
.popup-content .modal-title { color: #fff; font-size: 1.05rem; }

/* ---------- Back to top ---------- */

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   WordPress / Elementor additions
   ========================================================= */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; background: #fff; padding: 12px 18px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.alignwide { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption, figure { max-width: 100%; }
.prose img, .article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.prose .wp-block-table, .article-content .wp-block-table { overflow-x: auto; }
.pagination .page-link { color: var(--primary); border-radius: 10px !important; margin: 0 3px; border: 1px solid var(--line); }
.pagination .page-item.active .page-link, .pagination .page-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 10px; }
.search-form .search-submit { background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 0 18px; }

/* Elementor: QIMS widgets bring their own section spacing and container */
[class*="elementor-widget-qims-"] > .elementor-widget-container { padding: 0; margin: 0; }
.e-con.qims-full, .elementor-section.qims-full { padding: 0 !important; }

/* Text written directly with Elementor's own widgets gets the site typography */
.elementor-widget-text-editor { font-size: 1.04rem; line-height: 1.8; color: #3a4050; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--font-head); }

/* ---------- Leadership: several leaders ---------- */
.leader-head { margin-bottom: 28px; }
.leader-tabs { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 auto 44px; }
.leader-tab { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid transparent; border-radius: 999px; padding: 6px 22px 6px 6px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; text-align: left; }
.leader-tab:hover { transform: translateY(-2px); }
.leader-tab.active { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.leader-tab-img { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }
.leader-tab-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader-tab-text strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); line-height: 1.2; }
.leader-tab-text small { color: var(--muted); font-size: .8rem; }
.leader-tab.active .leader-tab-text strong { color: var(--primary); }
.leader-section .tab-pane.fade { transition: opacity .35s ease; }
.leader-photo.is-reverse::before { inset: 22px 22px -22px -22px; }
.leader-photo.is-reverse .leader-badge { left: auto; right: -16px; }
.leader-initials { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 5/7; border-radius: 18px; background: linear-gradient(150deg, var(--primary), var(--primary-dark)); color: #fff; font-family: var(--font-head); font-size: 5rem; font-weight: 700; box-shadow: var(--shadow-lg); }
@media (max-width: 991px) {
    .leader-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 12px; margin-bottom: 28px; scroll-snap-type: x mandatory; }
    .leader-tabs::-webkit-scrollbar { display: none; }
    .leader-tab { flex-shrink: 0; scroll-snap-align: start; }
    .leader-photo.is-reverse::before { inset: 14px -10px -14px 14px; }
    .leader-photo.is-reverse .leader-badge { right: auto; left: 10px; }
}

/* =========================================================
   News & Events – homepage feature + list, archive lead + story cards
   ========================================================= */
.news-home { background: var(--bg-soft); }
.news-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #1d1d1d; }

.news-feature { position: relative; display: block; height: 100%; min-height: 440px; border-radius: 20px; overflow: hidden; background: var(--primary-dark); color: #fff; box-shadow: var(--shadow-lg); isolation: isolate; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; z-index: -2; }
.news-feature:hover img { transform: scale(1.05); }
.news-feature-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(20,6,6,.55) 55%, rgba(20,6,6,.92) 100%); }
.news-feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; display: grid; gap: 12px; justify-items: start; }
.news-feature-title { font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.25; color: #fff; }
.news-feature-text { color: rgba(255,255,255,.85); font-size: .97rem; max-width: 620px; }
.news-feature-more { font-weight: 600; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.news-feature:hover .news-feature-more i { transform: translateX(4px); }
.news-feature-more i { transition: transform .3s; }

.news-list { display: grid; gap: 14px; height: 100%; align-content: space-between; }
.news-row { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--line); color: var(--ink); transition: transform .3s, box-shadow .3s, border-color .3s; }
.news-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.news-row-img { width: 120px; aspect-ratio: 4/3; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); font-size: 1.6rem; }
.news-row-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-row-body { display: grid; gap: 4px; min-width: 0; }
.news-row-body small { color: var(--primary); font-weight: 600; font-size: .78rem; }
.news-row-body strong { font-family: var(--font-head); font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row-body em { font-style: normal; font-size: .84rem; font-weight: 600; color: var(--muted); }
.news-row:hover .news-row-body em { color: var(--primary); }

.news-lead { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 56px; }
.news-lead-img { position: relative; min-height: 360px; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); font-size: 3rem; overflow: hidden; }
.news-lead-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.news-lead:hover .news-lead-img img { transform: scale(1.04); }
.news-lead-badge { position: absolute; top: 18px; left: 18px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.news-lead-body { padding: 40px; display: grid; gap: 16px; align-content: center; justify-items: start; }
.news-lead-body h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; line-height: 1.25; }
.news-lead-body h2 a { color: var(--ink); }
.news-lead-body h2 a:hover { color: var(--primary); }
.news-lead-body p { color: #4a5060; margin: 0; }
.news-grid-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.news-grid-head h2 { font-size: 1.3rem; margin: 0; white-space: nowrap; }
.news-grid-head::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }

.story-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s, border-color .35s; }
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.story-img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story-card:hover .story-img img { transform: scale(1.06); }
.story-date { position: absolute; left: 16px; bottom: -1px; background: #fff; color: var(--muted); border-radius: 12px 12px 0 0; padding: 8px 14px 6px; font-size: .75rem; text-align: center; line-height: 1.1; }
.story-date strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--primary); }
.story-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.story-body h3 { font-size: 1.08rem; line-height: 1.4; margin: 0; }
.story-body h3 a { color: var(--ink); }
.story-body h3 a:hover { color: var(--primary); }
.story-body p { color: #5a6070; font-size: .93rem; margin: 0; flex: 1; }
.story-more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--primary); margin-top: 4px; }
.story-arrow { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 10%, #fff); transition: background .3s, color .3s, transform .3s; }
.story-card:hover .story-arrow { background: var(--primary); color: #fff; transform: translateX(3px); }

@media (max-width: 991px) {
    .news-feature { min-height: 380px; }
    .news-lead { grid-template-columns: 1fr; }
    .news-lead-img { min-height: 0; aspect-ratio: 16/9; }
    .news-lead-body { padding: 26px 22px 28px; }
}
@media (max-width: 575px) {
    .news-feature { min-height: 340px; border-radius: 16px; }
    .news-feature-body { padding: 22px 20px; }
    .news-feature-text { display: none; }
    .news-row-img { width: 96px; }
    .news-row { padding: 10px; gap: 12px; }
    .news-lead { margin-bottom: 40px; border-radius: 18px; }
}

/* Elementor img height fix */
/* Elementor's ".elementor img { height: auto }" beats single-class theme rules; restore the theme's full-height images inside Elementor content. */
.elementor .hero-img,
.elementor .video-lite img,
.elementor .gallery-item img,
.elementor .news-img img,
.elementor .news-img-ph,
.elementor .info-card-img img,
.elementor .doc-cover img,
.elementor .person-photo img,
.elementor .block-bg-img,
.elementor .news-gallery img,
.elementor .leader-tab-img img,
.elementor .news-feature img,
.elementor .news-row-img img,
.elementor .news-lead-img img,
.elementor .story-img img { height: 100%; }

/* =========================================================
   Faculty & staff profiles (people section)
   ========================================================= */
.pf-lead { position: relative; display: flex; align-items: center; gap: 28px; max-width: 920px; margin: 0 auto 32px; padding: 28px 32px; background: linear-gradient(135deg, #fff 0%, #fff 55%, color-mix(in srgb, var(--accent) 12%, #fff) 100%); border: 1px solid color-mix(in srgb, var(--accent) 45%, #fff); border-radius: 22px; box-shadow: 0 18px 40px rgba(80, 20, 20, .08); overflow: hidden; }
.pf-lead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.pf-lead-avatar { width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: #fff; font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--accent); overflow: hidden; }
.pf-lead-avatar img, .pf-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-lead-body { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.pf-lead-label { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b4e0b; background: color-mix(in srgb, var(--accent) 28%, #fff); padding: 5px 12px; border-radius: 999px; }
.pf-lead-label i { color: #a77d18; }
.pf-lead-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 4px 0 0; }
.pf-lead .pf-quals { margin-top: 8px; }

.pf-grid { justify-content: center; }
.pf-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; overflow: hidden; }
.pf-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30, 20, 20, .09); border-color: transparent; }
.pf-card:hover::after { transform: scaleX(1); }
.pf-top { display: flex; align-items: center; gap: 14px; }
.pf-avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 9%, #fff); color: var(--primary); font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 16%, #fff); overflow: hidden; transition: background .3s, color .3s; }
.pf-card:hover .pf-avatar:not(.has-photo) { background: var(--primary); color: #fff; }
.pf-id { min-width: 0; }
.pf-id h3 { font-size: 1.02rem; line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.pf-role { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, #fff); padding: 3px 10px; border-radius: 999px; line-height: 1.4; }
.pf-bottom { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pf-quals { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-quals li { font-size: .75rem; font-weight: 500; color: #4a5060; background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; line-height: 1.45; }
.pf-bio { font-size: .87rem; color: #5a6070; }
.pf-bio p { margin-bottom: .4em; }
.pf-link { margin-top: auto; padding-top: 14px; font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.bg-soft .pf-card { border-color: transparent; box-shadow: 0 6px 20px rgba(30, 20, 20, .05); }
.bg-soft .pf-quals li { background: #fff; }
@media (max-width: 575px) {
    .pf-lead { flex-direction: column; text-align: center; padding: 26px 20px 24px; gap: 16px; }
    .pf-lead::before { left: 0; right: 0; bottom: auto; width: auto; height: 5px; }
    .pf-lead-body { justify-items: center; }
    .pf-lead .pf-quals { justify-content: center; }
    .pf-card { padding: 18px 16px 16px; }
}

/* =========================================================
   Back to top (with reading-progress ring)
   ========================================================= */
.back-to-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; cursor: pointer; z-index: 1050; box-shadow: 0 10px 26px rgba(128, 18, 19, .35); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity .3s, visibility .3s, transform .3s, background .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover, .back-to-top:focus-visible { background: var(--primary-dark); transform: translateY(-3px); outline: none; }
.back-to-top:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 60%, transparent); }
.back-to-top i { position: relative; z-index: 1; transition: transform .3s; }
.back-to-top:hover i { transform: translateY(-2px); }
.back-to-top .btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.back-to-top .btt-ring circle { fill: none; stroke-width: 3; }
.back-to-top .btt-track { stroke: rgba(255, 255, 255, .22); }
.back-to-top .btt-bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset .15s linear; }
@media (max-width: 575px) { .back-to-top { width: 48px; height: 48px; font-size: 1.1rem; } }
@media print { .back-to-top { display: none; } }
/* profile avatars: fill the circle exactly (beats Elementor's ".elementor img { height: auto }") */
.elementor .pf-lead-avatar img, .elementor .pf-avatar img, .pf-lead-avatar img, .pf-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* =========================================================
   Explore Our Academic Institutions (parallax)
   ========================================================= */
.inst-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 120px 0; min-height: 560px; display: flex; align-items: center; background: var(--primary-dark); }
.inst-section > .container { width: 100%; }
.inst-bg { position: absolute; left: 0; right: 0; top: -18%; bottom: -18%; z-index: -2; will-change: transform; }
.inst-bg img, .elementor .inst-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.inst-shade { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(ellipse at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 75%),
    linear-gradient(180deg, rgba(40, 6, 8, var(--inst-overlay, .72)) 0%, rgba(20, 4, 5, calc(var(--inst-overlay, .72) + .1)) 100%); }
.inst-shade::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent); }
.inst-head { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.inst-head .eyebrow { justify-content: center; }
.inst-head h2 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; line-height: 1.2; margin: 0 0 18px; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.inst-head h2::after { content: ""; display: block; width: 72px; height: 3px; border-radius: 3px; background: var(--accent); margin: 20px auto 0; }
.inst-head p { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.8; margin: 0 auto; max-width: 760px; }
.inst-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 880px; margin: 0 auto; }
.inst-grid.inst-count-1 { max-width: 440px; }
.inst-grid.inst-count-3, .inst-grid.inst-count-4 { max-width: 1180px; }
.inst-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(0,0,0,.25); transition: transform .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease; overflow: hidden; }
.inst-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s ease; }
.inst-card:hover, .inst-card:focus-visible { color: #fff; transform: translateY(-6px); background: rgba(255,255,255,.16); border-color: color-mix(in srgb, var(--accent) 80%, #fff); box-shadow: 0 24px 50px rgba(0,0,0,.35); outline: none; }
.inst-card:hover::before { transform: translateX(100%); }
.inst-icon { width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; color: var(--accent); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: background .35s, color .35s; }
.inst-card:hover .inst-icon { background: var(--accent); color: var(--primary-dark); }
.inst-name { flex: 1; font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.3; text-align: left; }
.inst-go { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.5); transition: background .35s, color .35s, transform .35s, border-color .35s; }
.inst-card:hover .inst-go { background: #fff; color: var(--primary); border-color: #fff; transform: translateX(3px); }
@media (max-width: 767px) {
    .inst-section { padding: 84px 0; min-height: 0; }
    .inst-head { margin-bottom: 34px; }
    .inst-card { padding: 18px; gap: 14px; }
    .inst-icon { width: 50px; height: 50px; font-size: 1.35rem; }
    .inst-name { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) { .inst-bg { top: 0; bottom: 0; transform: none !important; } }
