/* ==========================================================================
   QIMS College of Nursing — site styles
   Palette: deep teal (main), wine (from the logo, accents), warm sand, soft mint.
   Type: Fraunces (headings) + Plus Jakarta Sans (text).
   Motifs: arched photo frames, a soft "nursing cross" shape.
   ========================================================================== */

:root {
    --teal: #0f4c5c;
    --teal-900: color-mix(in srgb, var(--teal) 70%, #000);
    --teal-700: color-mix(in srgb, var(--teal) 88%, #000);
    --teal-100: color-mix(in srgb, var(--teal) 12%, #fff);
    --mint: #eaf4f1;
    --wine: #8c1d40;
    --wine-700: color-mix(in srgb, var(--wine) 85%, #000);
    --wine-100: color-mix(in srgb, var(--wine) 10%, #fff);
    --sand: #f7f2e9;
    --sand-2: #efe5d3;
    --gold: #c99a3b;
    --ink: #17262d;
    --text: #3b4a51;
    --muted: #66767d;
    --line: #e4ddcf;
    --white: #fff;
    --radius: 22px;
    --radius-lg: 32px;
    --arch: 999px 999px 28px 28px;
    --shadow-sm: 0 2px 10px rgba(15, 40, 50, .06);
    --shadow: 0 18px 40px -18px rgba(15, 40, 50, .28);
    --shadow-lg: 0 30px 70px -30px rgba(15, 40, 50, .45);
    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--wine); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.text-center { text-align: center; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.section { padding: 96px 0; position: relative; }
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.bg-mint { background: var(--mint); }
.bg-teal { background: var(--teal); color: rgba(255,255,255,.85); }
.bg-teal h2, .bg-teal h3, .bg-teal .section-title { color: #fff; }
.bg-teal .eyebrow { color: #f3c9d4; }
.bg-teal .eyebrow::before { background: #f3c9d4; }

/* ---------- headings ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--wine); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--wine); border-radius: 2px; }
.eyebrow-light { color: rgba(255,255,255,.85); }
.eyebrow-light::before { background: rgba(255,255,255,.85); }
.section-title { font-size: clamp(30px, 3.6vw, 46px); }
.section-title em, .hero-title em { font-style: italic; color: var(--wine); font-weight: 500; }
.bg-teal .section-title em { color: #f3c9d4; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.is-center .eyebrow { justify-content: center; }
.sec-intro { font-size: 18px; color: var(--muted); }
.bg-teal .sec-intro { color: rgba(255,255,255,.75); }
.sec-intro p:last-child { margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn i { transition: transform .25s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(3px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-wine { background: var(--wine); color: #fff; box-shadow: 0 10px 24px -10px var(--wine); }
.btn-wine:hover { background: var(--wine-700); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-900); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); background: none; border: 0; padding: 0; }
.link-arrow:hover { color: var(--wine); }
.link-arrow:hover .bi-arrow-right { transform: translateX(3px); }
.link-arrow i { transition: transform .25s var(--ease); }

/* ---------- top bar ---------- */
.topbar { background: var(--teal-900); color: rgba(255,255,255,.8); font-size: 13.5px; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: #fff; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar-info { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar-info li, .topbar-note { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info i, .topbar-note i { color: #f3c9d4; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-parent { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s;
}
.site-header.is-stuck { box-shadow: 0 8px 30px -18px rgba(15,40,50,.35); border-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 86px; transition: min-height .3s; }
.is-stuck .header-in { min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--teal); letter-spacing: -.01em; }
.brand-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-top: 4px; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
    display: block; padding: 10px 16px; border-radius: 999px;
    font-weight: 600; font-size: 15.5px; color: var(--ink);
    transition: background .2s, color .2s;
}
.nav-item > a:hover { background: var(--mint); color: var(--teal); }
.nav-item.is-current > a { background: var(--teal); color: #fff; }
.sub-toggle { background: none; border: 0; padding: 4px; color: var(--muted); margin-left: -10px; }
.sub {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px;
    list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.has-sub:hover .sub, .has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.sub a:hover, .sub a[aria-current] { background: var(--mint); color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span:not(.screen-reader-text) { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, var(--wine-100) 0, transparent 38%),
        radial-gradient(circle at 10% 90%, var(--mint) 0, transparent 45%),
        var(--sand);
    padding: 72px 0 120px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(color-mix(in srgb, var(--teal) 22%, transparent) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, #000 0, transparent 45%);
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 45%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
    margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 0 var(--wine); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.04; margin-bottom: 24px; color: var(--teal-900); letter-spacing: -.02em; }
.hero-lead { font-size: 19px; max-width: 540px; color: var(--text); margin-bottom: 34px; }
.hero-media { position: relative; justify-self: center; width: min(100%, 500px); }
.hero-arch {
    position: relative; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden;
    background: var(--teal-100); box-shadow: var(--shadow-lg);
    border: 10px solid #fff;
}
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease, transform 6s ease; transform: scale(1.06); }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide figcaption {
    position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 14px; border-radius: 14px;
    background: rgba(10, 30, 38, .62); color: #fff; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px);
}
.hero-empty { display: grid; place-items: center; font-size: 80px; color: var(--teal); opacity: 1; }
.hero-ring {
    position: absolute; inset: -26px -26px auto auto; width: 150px; height: 150px; border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--wine) 45%, transparent); animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-dots { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: color-mix(in srgb, var(--teal) 30%, transparent); transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 28px; background: var(--wine); }
.hero-badge {
    position: absolute; left: -48px; bottom: 56px; display: flex; align-items: center; gap: 12px;
    padding: 14px 18px 14px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
    font-size: 13.5px; color: var(--muted); line-height: 1.35; animation: float 6s ease-in-out infinite;
}
.hero-badge strong { display: block; font-size: 16px; color: var(--ink); font-family: var(--font-head); }
.hero-badge-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--wine); color: #fff; font-size: 20px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- highlights ---------- */
.highlights { position: relative; z-index: 2; padding: 0; }
.highlights.is-overlap { margin-top: -64px; }
.highlights:not(.is-overlap) { padding: 48px 0; }
.highlights-grid {
    list-style: none; margin: 0; padding: 10px; display: grid; gap: 0;
    grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.highlights-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.highlights-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.highlight { display: flex; gap: 14px; align-items: center; padding: 20px 22px; position: relative; line-height: 1.35; }
.highlight + .highlight::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.highlight strong { display: block; color: var(--ink); font-size: 16px; }
.highlight small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.highlight-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--teal); font-size: 22px; transition: .3s var(--ease); }
.highlight:hover .highlight-icon { background: var(--teal); color: #fff; transform: rotate(-6deg); }

/* ---------- leader message ---------- */
.message-in { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: start; }
.message-photo { margin: 0; position: sticky; top: 110px; }
.arch-frame { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-2); position: relative; }
.arch-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.message-photo::before {
    content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--arch);
    border: 2px solid var(--wine); z-index: -1;
}
.message-card {
    position: relative; margin: -46px 26px 0; padding: 18px 22px; border-radius: 18px; background: var(--teal); color: rgba(255,255,255,.85);
    box-shadow: var(--shadow); text-align: center; line-height: 1.4;
}
.message-card strong { display: block; color: #fff; font-family: var(--font-head); font-size: 21px; }
.message-card span { display: block; font-weight: 600; color: #f3c9d4; font-size: 14px; margin-top: 2px; }
.message-card small { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .03em; }
.message-body .sec-head { margin-bottom: 24px; }
.message-mark { display: block; font-size: 72px; line-height: .6; color: var(--wine); opacity: .25; margin: 0 0 6px -8px; }
.message-text { font-size: 17.5px; }
.message-more { margin-top: 6px; }
.message-more[aria-expanded="true"] i { transform: rotate(180deg); }
.message-sign { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.message-sign span { display: block; font-family: var(--font-head); font-style: italic; font-size: 26px; color: var(--teal); }

/* ---------- mission & vision ---------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.mission-grid.has-image { grid-template-columns: 1fr 300px 1fr; }
.mv-card { position: relative; overflow: hidden; padding: 44px 40px; border-radius: var(--radius-lg); color: rgba(255,255,255,.88); font-size: 17px; }
.mv-card h3 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.mv-card p { margin: 0; }
.mv-teal { background: var(--teal); }
.mv-wine { background: var(--wine); }
.mv-card::after {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; opacity: .12;
    background:
        linear-gradient(#fff, #fff) center / 34% 100% no-repeat,
        linear-gradient(#fff, #fff) center / 100% 34% no-repeat;
    border-radius: 24px; transform: rotate(12deg);
}
.mv-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 26px; color: #fff; margin-bottom: 22px; }
.mv-photo { margin: 0; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); }
.mv-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- programmes ---------- */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.program-grid.count-2 { grid-template-columns: repeat(2, 1fr); }
.program-grid.count-4 { grid-template-columns: repeat(4, 1fr); }
.program {
    position: relative; padding: 34px 32px 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
    display: flex; flex-direction: column;
}
.bg-white .program { background: var(--sand); border-color: transparent; }
.program:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; background: #fff; }
.program-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.program-icon { width: 60px; height: 60px; border-radius: 50% 50% 18px 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 26px; }
.program-num { font-family: var(--font-head); font-size: 54px; line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--wine) 45%, transparent); }
.program-meta { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
.program h3 { font-size: 25px; }
.program p { color: var(--muted); flex: 1; }

/* ---------- values ---------- */
.value-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.value-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.value-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.value { padding: 32px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: .35s var(--ease); position: relative; overflow: hidden; }
.bg-white .value { background: var(--sand); border-color: transparent; }
.value::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--wine); transition: width .45s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; }
.value:hover::before { width: 100%; }
.value-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-100); color: var(--wine); font-size: 23px; margin-bottom: 20px; }
.value h3 { font-size: 22px; }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }
.bg-teal .value { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.bg-teal .value p { color: rgba(255,255,255,.75); }

/* ---------- faculty ---------- */
.people-grid { display: grid; gap: 30px 26px; grid-template-columns: repeat(4, 1fr); }
.people-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.people-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.person { text-align: center; }
.person-photo { position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--mint), var(--sand-2)); margin-bottom: 18px; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.person:hover .person-photo img { transform: scale(1.05); }
.person-initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 72px; color: var(--teal); }
.person-subject {
    position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 9px 12px; border-radius: 14px;
    background: rgba(255,255,255,.94); color: var(--teal); font-size: 13.5px; font-weight: 700; line-height: 1.3;
    transform: translateY(6px); opacity: .96; transition: .35s var(--ease); box-shadow: var(--shadow-sm);
}
.person:hover .person-subject { transform: none; background: var(--wine); color: #fff; }
.person h3 { font-size: 21px; margin-bottom: 4px; }
.person-role { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); }
.person-quals { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- events ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .35s var(--ease); }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-100); }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.event-card:hover .event-thumb img { transform: scale(1.06); }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; color: var(--teal); }
.event-date {
    position: absolute; left: 16px; top: 16px; padding: 8px 12px; border-radius: 14px; background: #fff; color: var(--muted);
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; line-height: 1.2;
}
.event-date strong { display: block; font-family: var(--font-head); font-size: 24px; color: var(--wine); letter-spacing: 0; }
.event-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.event-title { font-size: 21px; margin-bottom: 8px; }
.event-title a { color: var(--ink); }
.event-title a:hover { color: var(--teal); }
.event-excerpt { color: var(--muted); font-size: 15px; flex: 1; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.pager .current, .pager a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- single event ---------- */
.event-single { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.event-aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.aside-card { padding: 26px; border-radius: var(--radius); background: var(--sand); }
.aside-date { font-weight: 700; color: var(--ink); }
.aside-title { font-size: 20px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aside-list a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 600; line-height: 1.35; font-size: 15px; }
.aside-list a:hover { color: var(--teal); }
.aside-list img, .aside-list .thumb-placeholder { width: 64px; height: 64px; flex-shrink: 0; border-radius: 14px; object-fit: cover; position: relative; font-size: 22px; background: var(--mint); }
.aside-list small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.event-content .wp-block-gallery, .event-content .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 24px 0; }
.event-content figure { margin: 0 0 16px; }
.event-content img { border-radius: 16px; width: 100%; object-fit: cover; }
.event-content .wp-block-image a, .event-content .gallery a { display: block; overflow: hidden; border-radius: 16px; }

/* ---------- gallery ---------- */
.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.photo-grid.is-mosaic { grid-auto-rows: 210px; }
.photo-grid.is-mosaic .photo:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid.is-grid .photo { aspect-ratio: 4 / 3; }
.photo { position: relative; display: block; overflow: hidden; border-radius: 20px; background: var(--teal-100); }
.photo[hidden] { display: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.07); }
.photo-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 76, 92, .45); color: #fff; font-size: 26px; opacity: 0; transition: opacity .3s; }
.photo:hover .photo-zoom { opacity: 1; }
.gallery-more { margin-top: 34px; }

/* ---------- admissions notice ---------- */
.notice-in { display: grid; grid-template-columns: 440px 1fr; gap: 64px; align-items: center; }
.notice-in.no-poster { grid-template-columns: 1fr; max-width: 820px; }
.notice-poster { position: relative; display: block; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-2deg); transition: transform .4s var(--ease); background: #fff; padding: 10px; }
.notice-poster:hover { transform: rotate(0) scale(1.01); }
.notice-poster img { border-radius: 18px; width: 100%; }
.notice-zoom { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(10,30,38,.75); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: var(--wine-100); color: var(--wine); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.facts { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--sand); font-weight: 700; color: var(--ink); line-height: 1.35; }
.facts i { color: var(--teal); font-size: 20px; }
.facts small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }

/* ---------- call to action ---------- */
.cta-wrap { padding: 40px 0 96px; }
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 64px; border-radius: 36px; color: rgba(255,255,255,.85); }
.cta.has-image { grid-template-columns: 1.2fr .8fr; }
.cta-wine { background: linear-gradient(130deg, var(--wine) 0%, var(--wine-700) 100%); }
.cta-teal { background: linear-gradient(130deg, var(--teal) 0%, var(--teal-900) 100%); }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.cta p { font-size: 18px; max-width: 560px; }
.cta-text { position: relative; z-index: 1; }
.cta-media { position: relative; z-index: 1; border-radius: var(--arch); overflow: hidden; border: 8px solid rgba(255,255,255,.15); aspect-ratio: 1; max-width: 340px; justify-self: end; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-cross, .banner-cross {
    position: absolute; width: 260px; height: 260px; right: -60px; top: -70px; opacity: .1; transform: rotate(18deg);
    background: linear-gradient(#fff, #fff) center / 34% 100% no-repeat, linear-gradient(#fff, #fff) center / 100% 34% no-repeat;
}
.cta.has-image .cta-cross { right: auto; left: 40%; top: auto; bottom: -110px; }

/* ---------- statement ---------- */
.statement-in { margin: 0; text-align: center; }
.statement-mark { display: block; font-size: 80px; line-height: .7; color: var(--wine); opacity: .35; }
.bg-teal .statement-mark { color: #f3c9d4; }
.statement blockquote { margin: 18px 0 0; font-family: var(--font-head); font-size: clamp(21px, 2.3vw, 28px); line-height: 1.5; font-weight: 500; color: var(--ink); }
.bg-teal .statement blockquote { color: #fff; }
.statement figcaption { margin-top: 22px; font-weight: 700; color: var(--wine); }
.bg-teal .statement figcaption { color: #f3c9d4; }

/* ---------- contact ---------- */
.contact-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: stretch; }
.contact-in.no-map { grid-template-columns: 1fr; max-width: 720px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px; background: var(--sand); color: var(--ink); font-weight: 600; line-height: 1.5; }
.bg-sand .contact-list li { background: #fff; }
.contact-list small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.ci-icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 19px; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; box-shadow: var(--shadow); }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* ---------- text / prose ---------- */
.prose { font-size: 17px; }
.prose h2 { font-size: 32px; margin-top: 1.4em; }
.prose h3 { font-size: 24px; margin-top: 1.3em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--wine); transform: rotate(45deg); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose > *:last-child { margin-bottom: 0; }

/* ---------- inner page banner ---------- */
.page-banner { position: relative; overflow: hidden; background: var(--teal); color: rgba(255,255,255,.82); padding: 64px 0 70px; }
.page-banner::before {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.2px); background-size: 22px 22px;
    mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.page-banner-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-title { color: #fff; font-size: clamp(36px, 5vw, 60px); margin: 0; }
.page-sub { margin: 14px 0 0; font-size: 18px; max-width: 620px; }
.page-banner-media { width: 230px; aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; border: 6px solid rgba(255,255,255,.18); box-shadow: var(--shadow-lg); }
.page-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.page-banner.has-image { padding-bottom: 60px; margin-bottom: 0; }
.page-banner .banner-cross { left: auto; right: 22%; top: -90px; opacity: .06; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; font-size: 14px; font-weight: 600; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: #f3c9d4; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: rgba(255,255,255,.75); }
.page-banner.has-image + * { position: relative; }

/* ---------- 404 ---------- */
.notfound-code { display: block; font-family: var(--font-head); font-size: clamp(90px, 16vw, 170px); line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 2px var(--wine); margin-bottom: 10px; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 0; color: rgba(255,255,255,.72); font-size: 15px; }
.footer-wave { line-height: 0; background: transparent; margin-bottom: -1px; }
.footer-wave svg { width: 100%; height: 60px; display: block; }
.footer-wave path { fill: var(--teal-900); }
.footer-main { background: var(--teal-900); padding: 56px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1fr; gap: 48px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-tag { color: #f3c9d4; }
.brand-light img { box-shadow: none; }
.footer-about p { margin: 20px 0 0; max-width: 380px; }
.foot-title { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; }
.foot-links a::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: #f3c9d4; transform: rotate(45deg); transition: .25s; }
.foot-links a:hover::before { background: #fff; transform: rotate(45deg) scale(1.3); }
.foot-contact li { display: flex; gap: 12px; }
.foot-contact i { color: #f3c9d4; margin-top: 3px; }
.foot-social { display: flex; gap: 10px; margin-top: 22px; }
.foot-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.foot-social a:hover { background: var(--wine); }
.foot-parent p { margin-bottom: 18px; }
.footer-bottom { background: color-mix(in srgb, var(--teal-900) 80%, #000); padding: 18px 0; font-size: 13.5px; }
.footer-bottom-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--wine); color: #fff; font-size: 18px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; background: var(--teal); }

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

/* Elementor resets img height/radius; keep our framed photos filling their frames */
.elementor :is(.hero-slide, .arch-frame, .person-photo, .event-thumb, .photo, .mv-photo, .cta-media) img { height: 100%; width: 100%; object-fit: cover; }
.elementor .notice-poster img { border-radius: 18px; }
.elementor .aside-list img { border-radius: 14px; }

/* Elementor: our widgets are full-width sections */
.elementor-widget[class*="elementor-widget-qcon-"] > .elementor-widget-container { margin: 0; padding: 0; }
.elementor-page-body .e-con, .is-home .e-con { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .header-cta { display: none; }
    .program-grid.count-4, .value-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    /* backdrop-filter would trap the fixed slide-out menu inside the header, so phones get a solid header */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .nav-open .site-header { z-index: 200; }
    body.nav-open { overflow: hidden; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 120;
        background: #fff; padding: 96px 24px 32px; overflow-y: auto;
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: transform .4s var(--ease), opacity .3s, visibility 0s .4s; box-shadow: var(--shadow-lg);
    }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition: transform .4s var(--ease), opacity .3s; }
    .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10,30,38,.45); z-index: 110; }
    .header-actions { margin-left: auto; position: relative; z-index: 130; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-item { flex-wrap: wrap; }
    .nav-item > a { flex: 1; padding: 13px 16px; border-radius: 14px; font-size: 17px; }
    .sub-toggle { margin: 0; width: 44px; height: 44px; }
    .sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 14px; opacity: 1; visibility: visible; transform: none; display: none; }
    .has-sub.is-open .sub { display: block; }
    .has-sub:hover .sub { display: none; }
    .has-sub.is-open:hover .sub { display: block; }
    .nav-cta-mobile { display: flex; margin-top: 20px; }
    .hero-in, .message-in, .notice-in, .contact-in, .event-single { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 110px; }
    .hero-media { width: min(100%, 440px); }
    .hero-badge { left: -12px; }
    .message-in { gap: 64px; }
    .message-photo { position: relative; top: 0; max-width: 380px; margin: 0 auto; }
    .mission-grid, .mission-grid.has-image { grid-template-columns: 1fr; }
    .mv-photo { display: none; }
    .program-grid, .program-grid.count-2, .program-grid.count-4 { grid-template-columns: repeat(2, 1fr); }
    .people-grid { grid-template-columns: repeat(3, 1fr); }
    .event-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight:nth-child(3)::before { display: none; }
    .notice-poster { max-width: 440px; margin: 0 auto; }
    .event-aside { position: static; }
    .cta.has-image { grid-template-columns: 1fr; }
    .cta-media { display: none; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .section { padding: 68px 0; }
    .hide-sm { display: none !important; }
    .topbar-info { gap: 14px; }
    .header-in { min-height: 72px; gap: 12px; }
    .brand img { width: 48px; height: 48px; }
    .brand-name { font-size: 18px; }
    .brand-tag { font-size: 10.5px; letter-spacing: .12em; }
    .sec-head { margin-bottom: 36px; }
    .hero-lead { font-size: 17px; }
    .hero-badge { left: 0; bottom: 24px; padding: 10px 14px 10px 10px; }
    .hero-ring { display: none; }
    .btn-lg { padding: 14px 24px; }
    .highlights.is-overlap { margin-top: -56px; }
    .highlights-grid, .highlights-grid.count-3 { grid-template-columns: 1fr; }
    .highlight + .highlight::before { left: 22px; right: 22px; top: 0; bottom: auto; width: auto; height: 1px; display: block !important; }
    .program-grid, .program-grid.count-2, .program-grid.count-4, .value-grid, .value-grid.cols-2, .value-grid.cols-4, .event-grid { grid-template-columns: 1fr; }
    .people-grid, .people-grid.cols-3, .people-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
    .person h3 { font-size: 17px; }
    .person-subject { font-size: 11.5px; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; }
    .person-quals { font-size: 12.5px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .photo-grid.is-mosaic { grid-auto-rows: 150px; }
    .mv-card { padding: 34px 26px; }
    .cta { padding: 40px 24px; border-radius: 26px; }
    .facts { grid-template-columns: 1fr; }
    .page-banner { padding: 44px 0 50px; }
    .page-banner-in { grid-template-columns: 1fr; }
    .page-banner-media { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .contact-map, .contact-map iframe { min-height: 300px; }
}
