/* ==========================================================
   WISE Academy theme: shared tokens, header and footer
   ========================================================== */
:root {
  --navy: #0f1d33;
  --navy-2: #182a47;
  --gold: #c9a227;
  --gold-dark: #b38f1f;
  --ivory: #faf8f3;
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: #e7e2d6;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* overflow:hidden on the wrapper would stop the sticky header; clip keeps the clipping without that */
.mad-page-wrapper { overflow: clip; }

/* ---------- Header ---------- */

.wise-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; font-family: var(--sans); }
.wise-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15,29,51,.45); }
.wise-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding-top: 8px; padding-bottom: 8px; }
.wise-logo img { display: block; height: 66px; width: auto; }

.wise-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; }
.wise-nav a { position: relative; display: block; padding: 8px 0; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--navy) !important; text-decoration: none; transition: color .2s ease; }
.wise-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.wise-nav a:hover { color: var(--gold) !important; }
.wise-nav a:hover::after, .wise-nav .is-active > a::after { transform: scaleX(1); }
.wise-nav .is-active > a { color: var(--gold) !important; }
.wise-nav .wise-nav-cta a { padding: 11px 24px; border: 1px solid var(--gold); color: var(--navy) !important; }
.wise-nav .wise-nav-cta a::after { display: none; }
.wise-nav .wise-nav-cta a:hover, .wise-nav .wise-nav-cta.is-active a { background: var(--gold); color: var(--navy) !important; }

.wise-burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line); cursor: pointer; position: relative; }
.wise-burger span, .wise-burger span::before, .wise-burger span::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--navy); transition: transform .3s ease, background .3s ease; content: ''; }
.wise-burger span { top: 20px; }
.wise-burger span::before { left: 0; top: -6px; }
.wise-burger span::after { left: 0; top: 6px; }
.wise-burger[aria-expanded="true"] span { background: transparent; }
.wise-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.wise-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991px) {
  .wise-header .container { min-height: 72px; flex-wrap: wrap; }
  .wise-burger { display: block; }
  .wise-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .wise-nav.is-open { max-height: 420px; }
  .wise-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 20px; }
  .wise-nav li { border-top: 1px solid var(--line); }
  .wise-nav a { padding: 16px 0; }
  .wise-nav a::after { display: none; }
  .wise-nav .wise-nav-cta { border-top: 0; padding-top: 16px; }
  .wise-nav .wise-nav-cta a { text-align: center; }
}

/* ---------- Footer ---------- */
.wise-footer { background: var(--navy); color: rgba(255,255,255,.65); font-family: var(--sans); font-size: 15px; line-height: 1.7; }
.wise-footer-accent { height: 3px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 33%, transparent 33%); }
.wise-footer-main { padding: 80px 0 56px; }
.wise-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.wise-footer-logo img { display: block; width: 280px; max-width: 100%; height: auto; margin-bottom: 24px; }
.wise-footer-about { max-width: 320px; margin: 0; }
.wise-footer h4 { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; margin: 0 0 20px; letter-spacing: .3px; }
.wise-footer ul { list-style: none; margin: 0; padding: 0; }
.wise-footer li { margin-bottom: 10px; }
.wise-footer a { color: rgba(255,255,255,.65) !important; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.wise-footer-links a:hover { color: var(--gold) !important; padding-left: 4px; }
.wise-footer-contact a:hover { color: var(--gold) !important; }
.wise-footer-label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.wise-footer-contact li { margin-bottom: 18px; }
.wise-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; font-size: 13px; }
.wise-footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wise-footer-bottom p { margin: 0; }
.wise-footer-tag { letter-spacing: 3px; text-transform: uppercase; font-size: 11px; color: rgba(255,255,255,.45); }


@media (max-width: 991px) {
  .wise-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .wise-footer-main { padding: 56px 0 32px; }
  .wise-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .wise-footer-bottom .container { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wise-header, .wise-nav, .wise-nav a::after { transition: none; }
}

/* ---------- Shared page components ---------- */
.wise-page { color: var(--ink); font-size: 16px; line-height: 1.7; }
.wise-page h1, .wise-page h2, .wise-page h3, .wise-page h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; letter-spacing: .2px; }
.wise-page section { padding: 96px 0; }
.wise-h2 { font-size: 44px; line-height: 1.15; margin: 0; }
.wise-eyebrow { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.wise-rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 22px 0 28px; }
.wise-center { text-align: center; }
.wise-center .wise-rule { margin-left: auto; margin-right: auto; }
.wise-lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.wise-center .wise-lead { margin: 0 auto; }

.wise-btn { display: inline-block; padding: 14px 32px; border-radius: 2px; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; transition: all .25s ease; text-decoration: none; }
.wise-btn--gold { background: var(--gold); color: var(--navy) !important; border: 1px solid var(--gold); }
.wise-btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.wise-btn--ghost { color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
.wise-btn--ghost:hover { background: #fff; color: var(--navy) !important; }
.wise-btn + .wise-btn { margin-left: 14px; }

.wise-link { display: inline-block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy) !important; font-weight: 500; border-bottom: 1px solid var(--gold); padding-bottom: 4px; text-decoration: none; }
.wise-link:hover { color: var(--gold) !important; }

/* Inner-page banner */
.wise-page-hero { position: relative; padding: 88px 0 80px; background: var(--navy) url('../images/slider2.jpg') center 30% / cover no-repeat; color: #fff; }
.wise-page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,29,51,.97) 0%, rgba(15,29,51,.85) 55%, rgba(15,29,51,.55) 100%); }
.wise-page-hero .container { position: relative; }
.wise-crumbs { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.wise-crumbs a { color: var(--gold) !important; text-decoration: none; }
.wise-crumbs a:hover { color: #fff !important; }
.wise-crumbs span { margin: 0 10px; }
.wise-page-hero h1 { color: #fff !important; font-size: 60px; line-height: 1.08; margin: 0 0 18px; }
.wise-page-hero p { font-size: 19px; color: rgba(255,255,255,.8); max-width: 640px; margin: 0; }

/* Scroll reveal (content stays visible if JavaScript is off) */
.wise-js .wise-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.wise-js .wise-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 991px) {
  .wise-page section { padding: 72px 0; }
  .wise-page-hero h1 { font-size: 46px; }
}
@media (max-width: 575px) {
  .wise-page section { padding: 56px 0; }
  .wise-h2 { font-size: 34px; }
  .wise-page-hero { padding: 64px 0 56px; }
  .wise-page-hero h1 { font-size: 38px; }
  .wise-page-hero p { font-size: 17px; }
  .wise-btn { display: block; text-align: center; }
  .wise-btn + .wise-btn { margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wise-js .wise-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Faculty full-bio pages ---------- */
.wise-bio-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; align-items: start; }
.wise-bio-aside { position: sticky; top: 120px; }
.wise-bio-photo { position: relative; padding: 0 0 24px 24px; margin-bottom: 36px; }
.wise-bio-photo::before { content: ''; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; border: 1px solid var(--gold); }
.wise-bio-photo img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; box-shadow: 0 30px 60px -30px rgba(15,29,51,.45); }
.wise-bio-facts { list-style: none; margin: 0; padding: 0; }
.wise-bio-facts li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); line-height: 1.55; }
.wise-bio-facts li:last-child { border-bottom: 1px solid var(--line); }
.wise-bio-facts span { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

.wise-bio-head h2 { font-size: 56px; line-height: 1.05; margin: 0 0 10px; }
.wise-bio-cred { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); margin: 0; }
.wise-bio-lead { font-family: var(--serif); font-size: 26px; line-height: 1.5; color: var(--navy); margin: 0 0 16px; }
.wise-bio-section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.wise-bio-section h3 { font-size: 32px; margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; }
.wise-bio-section h3 small { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); font-weight: 600; }
.wise-bio-section p { color: #3b4752; }
.wise-bio-callout { margin: 32px 0; padding: 32px 36px; background: var(--navy); color: rgba(255,255,255,.8); position: relative; }
.wise-bio-callout::before { content: '\201C'; position: absolute; top: 14px; left: 24px; font-family: var(--serif); font-size: 80px; line-height: 1; color: var(--gold); opacity: .5; }
.wise-bio-callout p { color: rgba(255,255,255,.82) !important; margin: 0; padding-left: 36px; font-size: 17px; }
.wise-bio-callout strong { color: var(--gold); font-weight: 500; }
.wise-bio-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wise-bio-chips li { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); border: 1px solid var(--line); background: var(--ivory); padding: 7px 14px; }

/* Other faculty */
.wise-bio-others { background: var(--ivory); }
.wise-bio-others-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin: 48px auto 0; }
.wise-bio-other { display: flex; align-items: center; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.wise-bio-other:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15,29,51,.35); }
.wise-bio-other img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center; border: 2px solid var(--gold); flex-shrink: 0; }
.wise-bio-other strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.wise-bio-other span { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

@media (max-width: 991px) {
  .wise-bio-grid { grid-template-columns: 1fr; gap: 48px; }
  .wise-bio-aside { position: static; max-width: 440px; }
  .wise-bio-others-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .wise-bio-head h2 { font-size: 40px; }
  .wise-bio-lead { font-size: 22px; }
  .wise-bio-section h3 { font-size: 28px; }
  .wise-bio-callout { padding: 28px 22px; }
  .wise-bio-callout p { padding-left: 24px; }
}
