/* ==========================================================================
   Oxford College — heritage identity
   Oxford blue · parchment · antique gold. Cormorant Garamond (lining figures)
   for text headings, Cinzel (Roman inscriptional capitals) for numerals,
   labels and the wordmark. Square corners, hairline gold rules, framed photos.
   ========================================================================== */
:root {
  --navy-950: #000f24; --navy-900: #001834; --navy-800: #002147; --navy-700: #0d3263; --navy-600: #1b4480;
  --gold: #b0894a; --gold-2: #d4b97e; --gold-3: #efe3c6; --gold-ink: #85652c;
  --ivory: #f7f2e8; --ivory-2: #efe7d7; --paper: #fffdf8;
  --ink: #0f1a2e; --text: #2a3346; --muted: #5c6475; --line: #e3d9c4; --line-2: #d3c6aa;
  --inscribe: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --r: 2px; --r-lg: 2px;
  --shadow: 0 1px 0 rgba(0,24,52,.04), 0 10px 30px rgba(0,24,52,.06);
  --shadow-lg: 0 24px 60px rgba(0,24,52,.16);
}
body { background: var(--ivory); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1 { font-weight: 500; }
.num, .price, .hero-facts b, .stat b, .kpi b, .steps li::before, .module .n, .fees td b { font-family: var(--inscribe) !important; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; letter-spacing: .02em; }

/* ---------- Labels: inscriptional small capitals ---------- */
.kicker { font: 600 .74rem/1 var(--inscribe); letter-spacing: .32em; color: var(--gold-ink); gap: 14px; }
.kicker::before { width: 28px; background: linear-gradient(90deg, transparent, currentColor); }
.sec-head.center .kicker::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }

/* Ornament: rule · crest · rule */
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 auto 22px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament img { width: 34px; height: auto; opacity: .95; }
.ornament.light::before { background: linear-gradient(90deg, transparent, var(--gold-2)); } .ornament.light::after { background: linear-gradient(90deg, var(--gold-2), transparent); }

/* ---------- Buttons: rectangular, engraved ---------- */
.btn { border-radius: 0; font: 600 .78rem/1 var(--inscribe); letter-spacing: .18em; text-transform: uppercase; padding: 17px 30px; border-width: 1px; }
.btn:hover { transform: none; box-shadow: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-ghost-light { border-color: rgba(212,185,126,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(212,185,126,.12); border-color: var(--gold-2); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: .7rem; }
.btn-lg { padding: 19px 34px; font-size: .82rem; }
.link-arrow { font: 600 .74rem/1 var(--inscribe); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-800); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); border-bottom: 1px solid rgba(176,137,74,.35); font-size: .8rem; letter-spacing: .02em; }
.site-header { background: rgba(247,242,232,.97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(176,137,74,.25); }
.site-header .wrap { min-height: 92px; }
.brand img { height: 60px; }
.brand b { font: 600 1.42rem/1 var(--inscribe); letter-spacing: .14em; color: var(--navy-800); white-space: nowrap; }
.brand small { font: 600 .6rem/1 var(--inscribe); letter-spacing: .42em; color: var(--gold-ink); margin-top: 8px; }
.mainnav > .item > a { font: 600 .74rem/1 var(--inscribe); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); border-radius: 0; padding: 14px 13px; }
.mega { border-radius: 0; border-top: 2px solid var(--gold); }
.mega a { border-radius: 0; } .mega .mi { border-radius: 0; background: transparent; border: 1px solid var(--line-2); }
.mega a b { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--navy-800); }
.header-cta .btn { padding: 13px 18px; font-size: .7rem; }

/* ---------- Home hero: the quad at dusk ---------- */
.hero.heritage { text-align: center; min-height: min(92vh, 860px); display: grid; align-items: center; }
.hero.heritage::before { background: linear-gradient(180deg, rgba(0,15,36,.72) 0%, rgba(0,15,36,.55) 40%, rgba(0,15,36,.9) 100%); }
.hero.heritage .bg { background-position: center 35%; }
.hero.heritage .wrap { padding-block: clamp(70px, 10vw, 120px) clamp(56px, 7vw, 90px); display: flex; flex-direction: column; align-items: center; }
.hero.heritage .crest { width: clamp(84px, 9vw, 112px); height: auto; margin-bottom: 22px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.hero.heritage .wordmark { font: 600 clamp(.82rem, 1.2vw, .95rem)/1 var(--inscribe); letter-spacing: .5em; color: var(--gold-2); margin: 0 0 26px; padding-inline-start: .5em; }
.hero.heritage h1 { max-width: 20ch; margin-inline: auto; font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.06; }
.hero.heritage h1 em { color: var(--gold-2); font-weight: 500; }
.hero.heritage .lead { margin-inline: auto; color: #dfe4ef; max-width: 60ch; }
.hero.heritage .actions { justify-content: center; }
.hero.heritage .hero-facts { justify-content: center; margin-top: 70px; border-top: 0; gap: 0; }
.hero.heritage .hero-facts div { padding: 4px clamp(18px, 3vw, 44px); margin: 0; border-inline-start: 1px solid rgba(212,185,126,.35); }
.hero.heritage .hero-facts div:first-child { border-inline-start: 0; }
.hero-facts b { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 500; color: #fff; }
.hero-facts span { font: 600 .66rem/1.3 var(--inscribe); letter-spacing: .26em; color: var(--gold-2); margin-top: 12px; }

/* ---------- Interior page heroes ---------- */
.page-hero::before { background: linear-gradient(100deg, rgba(0,15,36,.95), rgba(0,24,52,.86) 55%, rgba(0,33,71,.62)); }
.page-hero .bg { opacity: .62; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.page-hero h1 { font-weight: 500; }
.crumbs { font: 600 .66rem/1.4 var(--inscribe); letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Accreditation strip ---------- */
.marks-band { background: var(--paper); border-block: 1px solid var(--line); }
.marks { font: 600 .68rem/1.4 var(--inscribe); letter-spacing: .2em; color: var(--navy-800); gap: 14px 0; }
.marks span { padding: 4px 26px; border-inline-start: 1px solid var(--line-2); }
.marks span:first-child { border-inline-start: 0; }

/* ---------- Cards: square, hairline, framed ---------- */
.card, .college-card, .prog-card, .post-card, .form-card, .aside-box, .fees, .side, .kpi, .list { border-radius: 0; }
.card, .form-card { border-color: var(--line); }
.college-card { border: 0; box-shadow: none; background: transparent; }
.college-card:hover { transform: none; box-shadow: none; }
.college-card .img { aspect-ratio: 4/3; overflow: hidden; }
.college-card .img img, .college-card .img::after { border-radius: 0; }
.college-card .img::after { background: linear-gradient(180deg, transparent 50%, rgba(0,15,36,.5)); }
.college-card .img::before { content: ""; position: absolute; inset: 12px; z-index: 2; border: 1px solid rgba(212,185,126,.65); pointer-events: none; }
.college-card .badge-ic { display: none; }
.college-card .body { padding: 22px 2px 6px; background: transparent; }
.college-card h3 { font-size: 1.6rem; }
.college-card .foot { border-top: 1px solid var(--line-2); font: 600 .66rem/1 var(--inscribe); letter-spacing: .16em; text-transform: uppercase; }
.college-card.all { background: var(--navy-800) url("../img/pattern.svg"); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -8px; }
.college-card.all .body { padding: 40px 34px; }

.prog-card { padding: 40px 30px 32px; box-shadow: none; border: 1px solid var(--line-2); background: var(--paper); text-align: center; }
.prog-card:hover { transform: none; box-shadow: var(--shadow); }
.prog-card .lvl { font: 600 .66rem/1 var(--inscribe); letter-spacing: .3em; }
.prog-card h3 { font-size: 1.9rem; font-weight: 600; }
.prog-card .price { font-size: 2.1rem; font-weight: 500; margin: 14px 0 6px; }
.prog-card ul { text-align: start; }
.prog-card li { border-bottom: 1px solid var(--line); }
.prog-card.featured { background: var(--navy-800); border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: -8px; }
.prog-card.featured .lvl { color: var(--gold-2); }
.prog-card.featured .ribbon { left: 50%; right: auto; top: -13px; transform: translateX(-50%); border-radius: 0; font: 600 .62rem/1 var(--inscribe); letter-spacing: .22em; padding: 7px 14px; background: var(--gold); color: #fff; white-space: nowrap; }

.post-card { box-shadow: none; } .post-card:hover { transform: none; box-shadow: var(--shadow); }
.post-card .cat { font: 600 .64rem/1 var(--inscribe); letter-spacing: .22em; }

.frame-img { border-radius: 0; box-shadow: var(--shadow-lg); }
.frame-img::after { border-radius: 0; inset: 16px; border-color: rgba(212,185,126,.75); }
.feature .fi { border-radius: 0; }

/* Roman-numeral steps */
.steps { border-radius: 0; background: var(--paper); border-color: var(--line-2); }
.steps li { padding: 40px 30px; text-align: center; }
.steps li::before { content: counter(s, upper-roman); font-size: 1.9rem; font-weight: 500; color: var(--gold); margin-bottom: 18px; }
.steps li::after { content: ""; display: block; width: 26px; height: 1px; background: var(--gold); margin: 18px auto 0; order: -1; }
.steps h4 { font-size: 1.45rem; }

/* ---------- Heritage band: photo + story + figures ---------- */
.heritage-band { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; background: var(--navy-800); color: #d5dceb; }
.heritage-band .photo { position: relative; background-size: cover; background-position: center; min-height: 360px; }
.heritage-band .photo::after { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(212,185,126,.7); }
.heritage-band .text { padding: clamp(44px, 7vw, 96px) clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.heritage-band h2 { color: #fff; }
.heritage-band p { color: #c9d2e4; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid rgba(212,185,126,.35); }
.figures div { padding: 22px 12px 0 0; }
.figures b { display: block; font: 500 2.3rem/1 var(--inscribe); color: var(--gold-2); }
.figures span { display: block; margin-top: 10px; font: 600 .62rem/1.4 var(--inscribe); letter-spacing: .2em; color: #aebad3; text-transform: uppercase; }

/* Gallery strip */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212,185,126,.6); pointer-events: none; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px; background: linear-gradient(180deg, transparent, rgba(0,15,36,.85)); color: #fff; font: 600 .66rem/1.3 var(--inscribe); letter-spacing: .22em; text-transform: uppercase; }

/* Quote over the library */
.quote-band { border-radius: 0; background: var(--navy-900); isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px); }
.quote-band .bgimg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .28; }
.quote-band::after { content: none; }
.quote-band blockquote { margin-inline: auto; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 34ch; }
.quote-band .who { font: 600 .7rem/1.5 var(--inscribe); letter-spacing: .24em; text-transform: uppercase; }

.cta-band { border-radius: 0; background: var(--navy-800) url("../img/pattern.svg"); outline: 1px solid var(--gold); outline-offset: -10px; }
.note-box { border-radius: 0; }
.pill { border-radius: 0; font-family: var(--inscribe); letter-spacing: .1em; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], input[type=url], input[type=search], select, textarea { border-radius: 0; border-width: 1px; }
.choice, .alert, .pager a, .pager span, .mega .mi, .req .ri, .bubble, .topbar .lang-list, .topbar .lang-list a { border-radius: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 2px solid var(--gold); }
.site-footer h5 { font: 600 .68rem/1 var(--inscribe); letter-spacing: .26em; }
.site-footer .brand b { color: #fff; }
.social a { border-radius: 0; }

/* ---------- Arabic & Chinese: inscriptional Latin type has no Arabic/CJK glyphs ---------- */
html[lang="ar"], html[lang="zh-Hans"] { --inscribe: var(--serif); }
html[lang="ar"] .kicker, html[lang="ar"] .btn, html[lang="ar"] .mainnav > .item > a, html[lang="ar"] .hero-facts span, html[lang="ar"] .figures span,
html[lang="ar"] .marks, html[lang="ar"] .crumbs, html[lang="ar"] .gallery figcaption, html[lang="ar"] .quote-band .who, html[lang="ar"] .prog-card .lvl, html[lang="ar"] .link-arrow { letter-spacing: 0; font-family: var(--sans); font-weight: 600; }
html[lang="zh-Hans"] .kicker, html[lang="zh-Hans"] .btn, html[lang="zh-Hans"] .mainnav > .item > a, html[lang="zh-Hans"] .marks { letter-spacing: .08em; }
/* numerals stay in Cinzel in every language */
html[lang="ar"] .hero-facts b, html[lang="ar"] .figures b, html[lang="ar"] .price, html[lang="zh-Hans"] .hero-facts b, html[lang="zh-Hans"] .figures b, html[lang="zh-Hans"] .price { font-family: "Cinzel", Georgia, serif !important; }
html[lang="ar"] .brand b, html[lang="ar"] .brand small, html[lang="ar"] .hero.heritage .wordmark { font-family: "Cinzel", Georgia, serif; }

@media (max-width: 960px) {
  .heritage-band { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px 200px; } .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .mainnav > .item > a { font-size: .82rem; }
}
@media (max-width: 640px) {
  .hero.heritage { min-height: 0; }
  .hero.heritage .hero-facts { display: grid; grid-template-columns: 1fr 1fr; row-gap: 26px; width: 100%; }
  .hero.heritage .hero-facts div { border: 0; }
  .marks span { border: 0; padding: 4px 12px; }
  .figures { grid-template-columns: 1fr 1fr 1fr; } .figures b { font-size: 1.7rem; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; } .gallery figure { height: 220px; } .gallery figure:first-child { grid-column: auto; }
  .brand b { font-size: 1.1rem; letter-spacing: .1em; } .brand small { letter-spacing: .3em; }
}
@media (max-width: 640px) {
  .site-header .wrap { min-height: 74px; }
  .brand { gap: 10px; min-width: 0; } .brand img { height: 44px; }
  .brand b { font-size: .92rem; letter-spacing: .08em; } .brand small { font-size: .5rem; letter-spacing: .26em; margin-top: 6px; }
  .header-cta .btn { padding: 11px 12px; font-size: .6rem; letter-spacing: .12em; }
  .hero.heritage .wordmark { font-size: .68rem; letter-spacing: .3em; }
  .hero.heritage .crest { width: 76px; }
  .hero.heritage h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
}
@media (max-width: 380px) { .brand small { display: none; } }
/* header fit + no overflow */
@media (min-width: 961px) {
  .site-header .wrap { gap: 18px; }
  .brand b { font-size: 1.18rem; letter-spacing: .12em; } .brand small { letter-spacing: .36em; } .brand img { height: 56px; }
  .mainnav > .item > a { padding: 14px 9px; font-size: .7rem; letter-spacing: .12em; }
  .header-cta .btn { padding: 12px 14px; font-size: .66rem; letter-spacing: .14em; }
}
@media (min-width: 961px) and (max-width: 1240px) { .brand small { display: none; } .header-cta .btn-outline { display: none; } }
.prog-card .btn, .cta-band .btn, .fees .btn { white-space: normal; text-align: center; line-height: 1.35; }
/* Homepage announcements */
.announce-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.announce { display: block; position: relative; padding: 34px 34px 30px; background: var(--navy-800) url("../img/pattern.svg"); color: #d5dceb; outline: 1px solid var(--gold); outline-offset: -8px; transition: background-color .2s; }
.announce:hover { background-color: var(--navy-700); color: #d5dceb; }
.announce h3 { color: #fff; font-size: 1.9rem; margin-bottom: 8px; }
.announce p { color: #c9d2e4; margin-bottom: 18px; }
.announce .kicker { color: var(--gold-2); }
.announce .link-arrow { color: var(--gold-2); }
