/* =====================================================================
   Metis Public School theme — main stylesheet (ver 1.3)
   Brand: Metis red #DA251C on white, gold accent for calls to action.
   ===================================================================== */

:root {
  --c-red: #da251c;
  --c-red-dark: #b51d16;
  --c-red-deep: #7f130e;
  --c-red-ink: #4a0b08;
  --c-gold: #f2b01e;
  --c-gold-dark: #d4950a;
  --c-ink: #1e2229;
  --c-body: #333a44;
  --c-muted: #5f6672;
  --c-line: #e9e2df;
  --c-bg: #ffffff;
  --c-bg-soft: #fbf7f5;
  --c-bg-tint: #fdecea;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(30, 20, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(60, 10, 10, 0.16);
  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-red); text-decoration: none; }
a:hover { color: var(--c-red-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--c-ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.3em; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; height: auto; width: auto; left: 8px; top: 8px; z-index: 9999; background: #fff; padding: .5em 1em; border-radius: 6px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 860px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; line-height: 1.2;
  font-family: var(--font-body);
}
.btn--gold { background: var(--c-gold); color: var(--c-red-ink); border-color: var(--c-gold); box-shadow: 0 8px 20px rgba(242,176,30,.35); }
.btn--gold:hover { background: var(--c-gold-dark); border-color: var(--c-gold-dark); color: #fff; transform: translateY(-2px); }
.btn--red { background: var(--c-red); color: #fff; border-color: var(--c-red); }
.btn--red:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); color: #fff; transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--c-red); border-color: #fff; }
.btn--white:hover { background: var(--c-bg-tint); color: var(--c-red-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline:hover { background: #fff; color: var(--c-red); }
.btn--outline-red { background: transparent; color: var(--c-red); border-color: var(--c-red); }
.btn--outline-red:hover { background: var(--c-red); color: #fff; }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--c-red-deep); color: #fff; font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .4em; opacity: .95; }
.topbar a:hover { opacity: 1; color: var(--c-gold); }
.topbar svg { width: 15px; height: 15px; fill: currentColor; }
.topbar__badge { background: rgba(255,255,255,.12); padding: .15em .7em; border-radius: 999px; font-weight: 600; letter-spacing: .02em; }
.topbar__social { display: flex; gap: .4rem; }
.topbar__social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.12); justify-content: center; }
.topbar__social a:hover { background: var(--c-gold); color: var(--c-red-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.06); border-bottom: 3px solid var(--c-red); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--c-ink); flex: none; }
.brand > span { display: flex; flex-direction: column; }
.brand__logo { height: 64px; width: auto; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; color: var(--c-red); line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.brand__tag { font-size: .72rem; color: var(--c-muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-top: .3em; white-space: nowrap; }
.nav-wrap { display: flex; align-items: center; gap: 1rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: .6em .85em; color: var(--c-ink); font-weight: 600; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_parent > a { color: var(--c-red); background: var(--c-bg-tint); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: .5em; position: relative; top: -3px; }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); padding: .5rem; display: none; flex-direction: column; border-top: 3px solid var(--c-red); }
.main-nav li:hover > .sub-menu, .main-nav li.is-open > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: .55em .9em; font-weight: 500; border-radius: 6px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--c-red); border-radius: 8px; padding: .4em .5em; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-red); margin: 5px 0; transition: .2s; }
.header-cta { margin-left: .4rem; }

@media (max-width: 1200px) {
  .brand__tag { display: none; }
}
@media (max-width: 1060px) {
  .main-nav a { padding: .6em .6em; font-size: .9rem; }
  .header-cta { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0; top: 0; background: #fff; z-index: 950; padding: 150px 1.2rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .9em .8em; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .main-nav .sub-menu { position: static; box-shadow: none; border-top: 0; padding: 0 0 0 1rem; min-width: 0; background: var(--c-bg-soft); }
  .main-nav .sub-menu a { font-size: .98rem; }
  .main-nav .menu-item-has-children > a::after { float: right; margin-top: .55em; }
  .nav-toggle { position: relative; z-index: 960; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar__right .topbar__badge { display: none; }
}
@media (max-width: 600px) {
  .brand__logo { height: 52px; }
  .brand__name { font-size: 1.1rem; }
  .topbar .container { justify-content: center; }
  .topbar__right { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--c-red-ink); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.1); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(100,12,8,.92) 0%, rgba(160,25,18,.78) 45%, rgba(40,10,8,.55) 100%); }
.hero .container { position: relative; z-index: 2; padding: 90px 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: .6em; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .35em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.4rem; backdrop-filter: blur(6px); }
.hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 4px rgba(242,176,30,.3); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); max-width: 17ch; text-shadow: 0 4px 24px rgba(0,0,0,.35); margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--c-gold); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 60ch; opacity: .95; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.6rem; font-size: .9rem; opacity: .9; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45em; }
.hero__meta svg { width: 16px; height: 16px; fill: var(--c-gold); }
@media (max-width: 700px) { .hero { min-height: 540px; } .hero .container { padding: 70px 0; } }

/* ---------- Stats strip ---------- */
.stats { background: #fff; position: relative; z-index: 3; margin-top: -48px; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-weight: 900; font-size: 2rem; color: var(--c-red); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--c-muted); margin-top: .5em; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } .stat:nth-child(3) { border-right: 0; } .stat:nth-child(n+4) { border-top: 1px solid var(--c-line); } }
@media (max-width: 520px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; } .stat:nth-child(odd) { border-right: 1px solid var(--c-line); } .stat:nth-child(n+3) { border-top: 1px solid var(--c-line); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--tint { background: linear-gradient(180deg, #fff 0%, var(--c-bg-tint) 100%); }
.section--red { background: linear-gradient(135deg, var(--c-red-deep) 0%, var(--c-red) 100%); color: #fff; }
.section--red h2, .section--red h3 { color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head--left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-block; color: var(--c-red); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: .8rem; }
.section--red .eyebrow { color: var(--c-gold); }
.section__head h2 { margin-bottom: .5em; }
.section__head p { color: var(--c-muted); font-size: 1.05rem; }
.section--red .section__head p { color: rgba(255,255,255,.85); }
.underline { width: 64px; height: 4px; background: var(--c-gold); border-radius: 2px; margin: .8rem auto 0; }
.section__head--left .underline { margin-left: 0; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

/* Two column */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.split--rev > :first-child { order: 2; }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.split__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__img--badge::after { content: attr(data-badge); position: absolute; left: 1rem; bottom: 1rem; background: var(--c-gold); color: var(--c-red-ink); font-weight: 700; padding: .4em .9em; border-radius: 999px; font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--c-ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split--rev > :first-child { order: 0; } }

/* Check list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.checklist li { display: flex; gap: .7em; align-items: flex-start; line-height: 1.5; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/13px no-repeat; margin-top: .15em; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #f3c9c5; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--c-red), var(--c-gold)); }
.card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--c-bg-tint); color: var(--c-red); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card p { color: var(--c-muted); font-size: .97rem; margin: 0; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards--3 { grid-template-columns: 1fr; } }

/* Video */
.video-wrap { max-width: 920px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-frame { position: relative; aspect-ratio: 16/9; cursor: pointer; }
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-frame__play span { width: 86px; height: 86px; border-radius: 50%; background: var(--c-red); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(218,37,28,.3); transition: transform .2s; }
.video-frame:hover .video-frame__play span { transform: scale(1.08); background: var(--c-gold); }
.video-frame__play svg { width: 34px; height: 34px; fill: #fff; margin-left: 6px; }

/* Principal message block */
.msg-feature { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.msg-feature__photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid rgba(255,255,255,.15); background: #fff; }
.msg-feature__photo img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.msg-feature blockquote { margin: 0 0 1.5rem; font-size: 1.15rem; line-height: 1.75; position: relative; padding-left: 1.6rem; border-left: 4px solid var(--c-gold); }
.msg-feature__sign { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.msg-feature__role { color: var(--c-gold); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .msg-feature { grid-template-columns: 1fr; } .msg-feature__photo { max-width: 320px; } }

/* Leadership cards */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.leader { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-line); display: flex; flex-direction: column; }
.leader__photo { aspect-ratio: 4/3; background: var(--c-bg-tint); display: grid; place-items: center; overflow: hidden; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.leader__role { color: var(--c-red); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.leader h3 { margin: .25em 0 .5em; font-size: 1.15rem; }
.leader p { color: var(--c-muted); font-size: .95rem; flex: 1; }
.leader a.more { font-weight: 700; font-size: .92rem; }
.leader a.more::after { content: " →"; }
@media (max-width: 900px) { .leaders { grid-template-columns: 1fr; } }

/* Photo placeholder (until a portrait is added) */
.portrait-placeholder { width: 100%; height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: linear-gradient(180deg, #fdf3f2 0%, #f6e3e1 100%); color: #c98b86; border: 2px dashed #e9b7b2; border-radius: inherit; }
.portrait-placeholder svg { width: 38%; max-width: 120px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; opacity: .8; }
.portrait-placeholder span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-red-dark); opacity: .75; }
.msg-feature__photo .portrait-placeholder { background: rgba(255,255,255,.95); aspect-ratio: 4/4.6; }

/* Monogram placeholder */
.monogram { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-red-deep), var(--c-red)); color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 3rem; min-height: 200px; }

/* Gallery preview */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(80,10,8,.5)); opacity: 0; transition: opacity .3s; }
.gallery-grid a:hover::after { opacity: 1; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Notices */
.notices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.notice { background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); display: flex; gap: 1.1rem; }
.notice__date { flex: none; width: 64px; text-align: center; background: var(--c-red); color: #fff; border-radius: 10px; padding: .5em 0; line-height: 1.1; align-self: flex-start; }
.notice__date b { display: block; font-size: 1.5rem; font-family: var(--font-head); }
.notice__date small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.notice h3 { font-size: 1.05rem; margin: 0 0 .35em; }
.notice h3 a { color: var(--c-ink); }
.notice h3 a:hover { color: var(--c-red); }
.notice p { margin: 0; color: var(--c-muted); font-size: .93rem; }
@media (max-width: 900px) { .notices { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(90deg, var(--c-gold-dark), var(--c-gold)); color: var(--c-red-ink); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--c-red-ink); margin: 0 0 .3em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; font-size: 1.05rem; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--c-red-deep) 0%, #4e0c08 100%); color: rgba(255,255,255,.88); padding-top: 70px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--c-gold); border-radius: 2px; }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: var(--c-gold); }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: .3em 0; }
.footer-links li a::before { content: "›"; color: var(--c-gold); margin-right: .5em; font-weight: 700; }
.footer-contact p { display: flex; gap: .7em; align-items: flex-start; margin-bottom: .9em; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--c-gold); flex: none; margin-top: .25em; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social a:hover { background: var(--c-gold); color: var(--c-red-ink); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 50px; padding: 1.2rem 0; font-size: .86rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--c-red-deep) 0%, var(--c-red) 70%, #e8473f 100%); color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.page-hero::after { content: ""; position: absolute; left: -60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.05); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0 0 .3em; }
.breadcrumb { font-size: .9rem; opacity: .9; display: flex; gap: .5em; flex-wrap: wrap; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb span.sep { opacity: .6; }
.page-hero__sub { max-width: 60ch; opacity: .92; margin-top: .6rem; font-size: 1.05rem; }

/* ---------- Entry content ---------- */
.entry { padding: 70px 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); position: relative; padding-left: .8em; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .2em; width: 5px; height: 1em; background: var(--c-red); border-radius: 3px; }
.entry-content h3 { margin-top: 1.6em; color: var(--c-red-deep); }
.entry-content ul li, .entry-content ol li { margin-bottom: .35em; }
.entry-content figure { margin: 1.5em 0; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 4px solid var(--c-gold); background: var(--c-bg-soft); padding: 1.2rem 1.5rem; margin: 1.5em 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content .wp-block-table table, .entry-content table, .metis-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.entry-content table th, .entry-content table td, .metis-table th, .metis-table td { padding: .75em .9em; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.entry-content table thead th, .metis-table thead th, .entry-content table tr:first-child th { background: var(--c-red); color: #fff; font-weight: 600; border-color: var(--c-red-dark); }
.entry-content table tbody tr:nth-child(even), .metis-table tbody tr:nth-child(even) { background: var(--c-bg-soft); }
.entry-content .wp-block-table { overflow-x: auto; }
.wp-block-table.is-style-stripes { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; }
.entry-content .wp-block-buttons .wp-block-button__link, .wp-element-button { background: var(--c-red); color: #fff; border-radius: 999px; padding: .75em 1.5em; font-weight: 600; }
.entry-content .wp-block-buttons .wp-block-button__link:hover { background: var(--c-red-dark); }
.wp-block-separator { border: 0; border-top: 2px solid var(--c-line); max-width: 120px; margin: 2.5em auto; }
.alignwide { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.has-text-align-center { text-align: center; }

/* Details (collapsible) blocks */
.entry-content .wp-block-details { border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; margin: 1em 0; box-shadow: var(--shadow); }
.entry-content .wp-block-details > summary { cursor: pointer; padding: 1em 1.2em; font-weight: 700; color: var(--c-red-deep); list-style: none; display: flex; align-items: center; gap: .7em; }
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::before { content: "+"; width: 26px; height: 26px; border-radius: 50%; background: var(--c-red); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.entry-content .wp-block-details[open] > summary::before { content: "–"; }
.entry-content .wp-block-details[open] > summary { border-bottom: 1px solid var(--c-line); }
.entry-content .wp-block-details > *:not(summary) { margin-left: 1.2em; margin-right: 1.2em; }
.entry-content .wp-block-details > .wp-block-table:last-child { margin-bottom: 1.2em; }

/* Info boxes (used in page content) */
.infobox { background: var(--c-bg-tint); border: 1px solid #f5cfcb; border-left: 5px solid var(--c-red); padding: 1.1rem 1.4rem; border-radius: var(--radius-sm); margin: 1.5em 0; }
.infobox--gold { background: #fff8e6; border-color: #f7dd9a; border-left-color: var(--c-gold); }
.pill { display: inline-block; background: var(--c-bg-tint); color: var(--c-red-dark); font-weight: 600; padding: .25em .8em; border-radius: 999px; font-size: .85rem; margin: .2em .3em .2em 0; }

/* Download button for PDFs */
.doc-link { display: inline-flex; align-items: center; gap: .55em; background: #fff; border: 1.5px solid var(--c-red); color: var(--c-red); padding: .45em 1em; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.doc-link:hover { background: var(--c-red); color: #fff; }
.doc-link svg { width: 16px; height: 16px; fill: currentColor; }
.doc-missing { color: var(--c-muted); font-size: .9rem; font-style: italic; }

/* ---------- Gallery block ---------- */
.entry-content .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5em 0 2.5em; }
.entry-content .wp-block-gallery .wp-block-image, .entry-content .wp-block-gallery figure { margin: 0 !important; width: auto !important; }
.entry-content .wp-block-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform .3s; cursor: zoom-in; }
.entry-content .wp-block-gallery img:hover { transform: scale(1.02); }
.entry-content .wp-block-gallery figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: .4em; }
.entry-content .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .wp-block-gallery .wp-block-image figcaption { position: static !important; background: none !important; color: var(--c-muted) !important; padding: .3em 0 0 !important; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin: 1.5em 0; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .entry-content .wp-block-gallery, .entry-content .wp-block-gallery.columns-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .entry-content .wp-block-gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.lb { position: fixed; inset: 0; background: rgba(20,5,5,.94); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lb.is-open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb__close, .lb__prev, .lb__next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb__close { top: 18px; right: 18px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: var(--c-red); }
.lb__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .85; }

/* ---------- Message page ---------- */
.message-page { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; }
.message-page__aside { position: sticky; top: calc(var(--header-h) + 20px); }
.message-page__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--c-line); background: #fff; }
.message-page__photo img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.message-page__card { background: var(--c-bg-soft); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-top: 1rem; border: 1px solid var(--c-line); }
.message-page__card .name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--c-ink); }
.message-page__card .role { color: var(--c-red); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.message-page__body { font-size: 1.07rem; }
.message-page__body p:first-of-type { font-size: 1.15rem; color: var(--c-ink); font-weight: 500; }
.message-page__body .sign { margin-top: 2rem; padding-top: 1.2rem; border-top: 2px solid var(--c-line); }
.message-page__body .sign b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--c-ink); }
.message-nav { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.message-nav a { background: #fff; border: 1.5px solid var(--c-line); border-radius: 999px; padding: .45em 1em; font-size: .88rem; font-weight: 600; color: var(--c-ink); }
.message-nav a:hover, .message-nav a.is-current { border-color: var(--c-red); color: var(--c-red); background: var(--c-bg-tint); }
@media (max-width: 860px) { .message-page { grid-template-columns: 1fr; } .message-page__aside { position: static; max-width: 340px; } }

/* ---------- Mandatory disclosure ---------- */
.mpd-section { margin-bottom: 3rem; }
.entry-content h2:has(.mpd-letter) { display: flex; align-items: center; gap: .7em; padding-left: 0; }
.entry-content h2:has(.mpd-letter)::before { display: none; }
.mpd-letter { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--c-red); color: #fff; display: grid; place-items: center; font-size: 1.1rem; font-family: var(--font-body); }
.mpd-table td:first-child { width: 60px; text-align: center; color: var(--c-muted); }
.mpd-table th:first-child { white-space: nowrap; }
.mpd-table td:last-child { width: 240px; }
.mpd-note { font-size: .9rem; color: var(--c-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.contact-card__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--c-bg-tint); color: var(--c-red); display: grid; place-items: center; }
.contact-card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.contact-card h3 { font-size: 1rem; margin: 0 0 .3em; }
.contact-card p { margin: 0; font-size: .95rem; color: var(--c-muted); }
.contact-card a { color: var(--c-ink); font-weight: 500; }
.contact-card a:hover { color: var(--c-red); }
.form { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 1.2rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35em; color: var(--c-ink); }
.form input, .form textarea, .form select { width: 100%; padding: .75em .9em; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); font: inherit; font-size: .97rem; background: #fff; color: var(--c-ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--c-red); box-shadow: 0 0 0 3px rgba(218,37,28,.12); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .field { margin-bottom: 1rem; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { padding: .9em 1.2em; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.form-msg--ok { background: #e8f7ec; color: #176b2f; border: 1px solid #b5e3c1; }
.form-msg--err { background: var(--c-bg-tint); color: var(--c-red-dark); border: 1px solid #f3c2bd; }
.map-wrap { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-line); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* ---------- Blog / notices ---------- */
.post-list { display: grid; gap: 1.5rem; }
.post-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.3rem; margin: 0 0 .3em; }
.post-card h2 a { color: var(--c-ink); }
.post-card h2 a:hover { color: var(--c-red); }
.post-meta { color: var(--c-muted); font-size: .88rem; margin-bottom: .6em; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination .page-numbers { padding: .5em .9em; border: 1px solid var(--c-line); border-radius: 8px; color: var(--c-ink); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-red); color: #fff; border-color: var(--c-red); }

/* ---------- Faculty ---------- */
.faculty-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin: 1.5em 0 2em; }
.faculty-summary div { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: .9rem; text-align: center; }
.faculty-summary b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--c-red); }
.faculty-summary span { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
@media (max-width: 800px) { .faculty-summary { grid-template-columns: repeat(3, 1fr); } }

/* Misc */
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--c-red); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: .25s; z-index: 800; box-shadow: var(--shadow-lg); }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__bg { animation: none; } }
.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: 5rem; color: var(--c-red); }

/* Full-width template (page builders) */
.entry--full { padding: 0; }
.entry--full > .entry-content > *:not(.elementor):not(.alignfull) { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
