/* Layout shim: lets the Oxfordia header/footer (style.css) run without Bootstrap on inner pages. */
.site-header .container,
.footer .container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 12px; }
.site-header .d-none { display: none; }
.footer .row { display: flex; flex-wrap: wrap; gap: 48px 24px; }
.footer .row > div { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) { .footer .row > div { flex: 1 1 calc(50% - 24px); } }@media (min-width: 992px) {
  .footer .row > .col-lg-4 { flex: 0 0 calc(33.333% - 24px); }
  .footer .row > .col-lg-2 { flex: 0 0 calc(16.666% - 24px); }
  .footer .row > .col-lg-3 { flex: 0 0 calc(25% - 24px); }
}
.nav-main { gap: 30px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .login-link { font-size: var(--btn-fs); font-weight: 600; color: var(--ink); }
.header-actions .login-link:hover { color: var(--gold-deep); }
.menu-toggle { cursor: pointer; }
.d-none-lg { display: none; }
.hide-lg { display: inline-flex; }
.show-md { display: none; }
@media (min-width: 768px) { .show-md { display: inline-flex; } }
.mobile-only { display: grid; }
.menu-toggle.mobile-only { display: flex; }
.desktop-only { display: none; }
@media (min-width: 992px) {
  .mobile-only,
  .menu-toggle.mobile-only { display: none; }
  .desktop-only { display: flex; }
  .topbar.desktop-only { display: block; }
}
.site-header.is-scrolled .topbar { display: none !important; }

/* Mobile off-canvas without Bootstrap */
.offcanvas-oxf { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1060; display: flex; flex-direction: column; transform: translateX(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
.offcanvas-oxf.is-open { transform: none; visibility: visible; }
.offcanvas-oxf .offcanvas-header { display: flex; align-items: center; justify-content: space-between; }
.offcanvas-oxf .offcanvas-body { overflow-y: auto; flex: 1; }
.offcanvas-backdrop-oxf { position: fixed; inset: 0; z-index: 1055; background: rgba(8, 18, 54, .6); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.offcanvas-backdrop-oxf.is-open { opacity: 1; visibility: visible; }

.oxf-body a.brand, .oxf-body .nav-main a, .oxf-body .mobile-nav a, .oxf-body .footer a { text-decoration: none; }

/* ==========================================================
   Inner page building blocks (about, contact)
   ========================================================== */
.oxf-wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .oxf-wrap { padding-inline: 24px; } }

/* Page banner */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 60px); background: var(--navy-900); color: rgba(255, 255, 255, .75); }
.page-hero--overlap { padding-bottom: clamp(80px, 8vw, 104px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: oxf-hero-zoom 14s var(--ease) both; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 18, 54, .97) 0%, rgba(8, 18, 54, .86) 48%, rgba(8, 18, 54, .55) 100%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), rgba(197, 160, 70, 0) 70%); }
.page-hero .label { margin-bottom: 12px; color: var(--gold-light); }
.page-hero__title { max-width: 24ch; margin: 0 0 14px; font-family: var(--ff-head); font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; color: var(--white); }
.page-hero__title em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.page-hero__lead { max-width: 600px; margin: 0; font-size: clamp(.93rem, 1.2vw, 1.02rem); line-height: 1.7; color: rgba(255, 255, 255, .72); }
.page-hero__ring { position: absolute; z-index: -1; right: -100px; top: 50%; width: 380px; height: 380px; border: 1px solid rgba(197, 160, 70, .25); border-radius: 50%; transform: translateY(-50%); animation: oxf-spin 40s linear infinite; }
.page-hero__ring::before { content: ""; position: absolute; top: 8%; left: 14%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(197, 160, 70, .2); }
@media (max-width: 767.98px) { .page-hero__ring { width: 240px; height: 240px; right: -120px; } }

.breadcrumb-oxf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .55); }
.breadcrumb-oxf a { color: rgba(255, 255, 255, .85); }
.breadcrumb-oxf a:hover { color: var(--gold-light); }
.breadcrumb-oxf li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }

@keyframes oxf-hero-zoom { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes oxf-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Our story — text with pillar cards, framed photo with a quote */
.story { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.story__text .section-lead + .section-lead { margin-top: 14px; }
.story__pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.pillar { display: flex; align-items: flex-start; gap: 14px; padding: 20px 18px; background: var(--ivory); border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.pillar:hover { background: var(--white); border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-4px); }
.pillar__icon { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-deep); color: var(--gold-light); font-size: 1.1rem; transition: background .4s, color .4s, transform .4s var(--ease); }
.pillar:hover .pillar__icon { background: var(--gold); color: var(--navy-900); transform: rotate(-8deg); }
.pillar strong { display: block; font-family: var(--ff-head); font-weight: 500; font-size: 1.02rem; line-height: 1.3; color: var(--navy-deep); }
.pillar > div > span { display: block; margin-top: 4px; font-size: .85rem; line-height: 1.55; color: var(--muted); }

.story__visual { position: relative; padding: 0 0 28px 28px; }
.story__visual::before { content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 72%; border: 1px solid var(--gold); }
.story__visual::after { content: ""; position: absolute; top: -22px; right: -22px; width: 120px; height: 120px; background-image: radial-gradient(var(--gold) 1.5px, transparent 1.6px); background-size: 14px 14px; opacity: .55; }
.story__img { position: relative; z-index: 1; aspect-ratio: 5 / 5; overflow: hidden; background: var(--navy-deep); box-shadow: var(--shadow); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.story__visual:hover .story__img img { transform: scale(1.05); }
.story__quote { position: absolute; z-index: 2; left: 0; bottom: 64px; max-width: 270px; margin: 0; padding: 22px 24px; background: var(--navy-deep); border-left: 3px solid var(--gold); box-shadow: var(--shadow); font-family: var(--ff-head); font-style: italic; font-size: 1.15rem; line-height: 1.4; color: var(--white); }
.story__quote small { display: block; margin-top: 10px; font-family: var(--ff-body); font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
@media (max-width: 991.98px) {
  .story { grid-template-columns: 1fr; gap: 56px; }
  .story__visual { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .story__pillars { grid-template-columns: 1fr; }
  .story__visual { padding: 0 0 18px 18px; }
  .story__visual::after { top: -12px; right: -6px; width: 80px; height: 80px; }
  .story__quote { bottom: 36px; max-width: 220px; padding: 16px 18px; font-size: 1rem; }
}

/* Who we teach — photo cards */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.audience { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-bottom: 3px solid var(--line); color: var(--ink); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.audience:hover, .audience:focus-visible { transform: translateY(-8px); border-color: transparent; border-bottom-color: var(--gold); box-shadow: var(--shadow); color: var(--ink); }
.audience__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy-deep); }
.audience__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.audience__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 54, 0) 55%, rgba(8, 18, 54, .45)); }
.audience:hover .audience__media img { transform: scale(1.08); }
.audience__tag { position: absolute; z-index: 1; top: 18px; left: 18px; padding: 6px 12px; background: var(--white); color: var(--navy-deep); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.audience__body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 0 28px 26px; }
.audience__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 18px; border: 4px solid var(--white); border-radius: 50%; background: var(--navy-deep); color: var(--gold-light); font-size: 1.25rem; transition: background .5s, color .5s, transform .5s var(--ease); }
.audience:hover .audience__icon { background: var(--gold); color: var(--navy-900); transform: rotate(-8deg); }
.audience h3 { margin: 0 0 8px; font-size: 1.35rem; }
.audience p { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--muted); }
.audience__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .86rem; font-weight: 700; color: var(--navy); }
.audience__link i { transition: transform .4s var(--ease); }
.audience:hover .audience__link { color: var(--gold-deep); }
.audience:hover .audience__link i { transform: translateX(5px); }
@media (max-width: 991.98px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience:last-child { grid-column: 1 / -1; flex-direction: row; }
  .audience:last-child .audience__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 260px; }
  .audience:last-child .audience__body { padding: 28px; }
  .audience:last-child .audience__icon { margin-top: 0; }
}
@media (max-width: 767.98px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience:last-child { grid-column: auto; flex-direction: column; }
  .audience:last-child .audience__media { flex: none; aspect-ratio: 16 / 11; min-height: 0; }
  .audience:last-child .audience__body { padding: 0 22px 22px; }
  .audience:last-child .audience__icon { margin-top: -28px; }
  .audience__body { padding: 0 22px 22px; }
}

/* Timeline sitting on an ivory section */
.bg-ivory .process-step__num { background: var(--ivory); box-shadow: 0 0 0 8px var(--ivory); }
.bg-ivory .process-step:hover .process-step__num { background: var(--navy-deep); }

/* Closing call-to-action box (light) */
.section--compact { padding: clamp(40px, 5vw, 64px) 0; }
.cta-box { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 30px 40px; background: var(--ivory); }
.cta-box::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(197, 160, 70, .4); pointer-events: none; }
.cta-box__emblem { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--navy-deep); box-shadow: 0 0 0 6px rgba(197, 160, 70, .18); }
.cta-box__emblem img { width: 36px; }
.cta-box h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.cta-box h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.cta-box p { margin: 0; color: var(--muted); }
.cta-box__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-navy { background: transparent; color: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline-navy::before { background: var(--navy-deep); }
.btn-outline-navy:hover { color: var(--white); }
@media (max-width: 991.98px) {
  .cta-box { grid-template-columns: auto 1fr; padding: 30px 32px; }
  .cta-box__actions { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .cta-box { grid-template-columns: 1fr; justify-items: center; gap: 18px; padding: 32px 22px; text-align: center; }
  .cta-box__actions { justify-content: center; width: 100%; }
  .cta-box__actions .btn-oxf { width: 100%; }
}

/* Mission / vision / values */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.value-card { position: relative; overflow: hidden; padding: 46px 36px 40px; background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.value-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.value-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--shadow); }
.value-card:hover::before { transform: scaleX(1); }
.value-card__num { position: absolute; top: 14px; right: 24px; font-family: var(--ff-head); font-style: italic; font-size: 4.6rem; line-height: 1; color: var(--ivory); transition: color .5s; }
.value-card:hover .value-card__num { color: rgba(197, 160, 70, .16); }
.value-card__icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px; border-radius: 50%; background: var(--ivory); color: var(--gold-deep); font-size: 1.55rem; transition: background .5s, color .5s, transform .5s var(--ease); }
.value-card:hover .value-card__icon { background: var(--navy-deep); color: var(--gold-light); transform: rotate(-8deg); }
.value-card p { position: relative; margin: 0; font-size: var(--fs-small); color: var(--muted); }
.value-card--featured { background: var(--navy-deep); border-color: var(--navy-deep); }
.value-card--featured .title-md { color: var(--white); }
.value-card--featured p { color: rgba(255, 255, 255, .7); }
.value-card--featured .value-card__num { color: rgba(255, 255, 255, .05); }
.value-card--featured .value-card__icon { background: rgba(255, 255, 255, .08); color: var(--gold-light); }
.value-card--featured:hover .value-card__icon { background: var(--gold); color: var(--navy-900); }
@media (max-width: 991.98px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { padding: 36px 26px 32px; }
}

/* How we teach — numbered timeline */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.process::before { content: ""; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
.process-step { position: relative; padding: 0 10px; text-align: center; }
.process-step__num { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 26px; border: 1px solid var(--gold); border-radius: 50%; background: var(--white); box-shadow: 0 0 0 8px var(--white); font-family: var(--ff-head); font-size: 1.45rem; color: var(--navy-deep); transition: background .5s var(--ease), color .5s, transform .5s var(--ease); }
.process-step:hover .process-step__num { background: var(--navy-deep); color: var(--gold-light); transform: scale(1.08); }
.process-step p { margin: 0; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 991.98px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process::before { display: none; }
}
@media (max-width: 575.98px) {
  .process { grid-template-columns: 1fr; row-gap: 34px; }
  .process::before { display: block; top: 30px; bottom: 30px; left: 30px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); }
  .process-step { display: flex; gap: 20px; padding: 0; text-align: left; }
  .process-step__num { flex-shrink: 0; width: 60px; height: 60px; margin: 0; font-size: 1.2rem; }
}

/* Quick contact cards overlapping the banner */
.quick-contact { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: -56px; }
.qc-card { display: flex; flex-direction: column; padding: 30px 26px 26px; background: var(--white); border-bottom: 3px solid transparent; box-shadow: var(--shadow); color: var(--ink); transition: transform .5s var(--ease), border-color .5s; }
.qc-card:hover { transform: translateY(-8px); border-color: var(--gold); color: var(--ink); }
.qc-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%; background: var(--navy-deep); color: var(--gold-light); font-size: 1.3rem; transition: background .5s, color .5s, transform .5s var(--ease); }
.qc-card:hover .qc-card__icon { background: var(--gold); color: var(--navy-900); transform: rotate(-8deg) scale(1.05); }
.qc-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.qc-card p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.qc-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: .86rem; font-weight: 700; color: var(--navy); }
.qc-card__link i { transition: transform .4s var(--ease); }
.qc-card:hover .qc-card__link { color: var(--gold-deep); }
.qc-card:hover .qc-card__link i { transform: translateX(4px); }
@media (max-width: 991.98px) { .quick-contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .quick-contact { grid-template-columns: 1fr; margin-top: -44px; } .qc-card { padding: 24px 22px 22px; } }

/* Contact form in theme style */
.contact-form--accent { border-top: 3px solid var(--gold); }
.contact-form .form-label { margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-form .form-input { padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--ivory); box-shadow: none; font-size: .96rem; color: var(--ink); transition: border-color .3s, background .3s, box-shadow .3s; }
.contact-form .form-input:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(197, 160, 70, .18); outline: 0; }
.contact-form .btn-oxf:disabled { opacity: .6; cursor: not-allowed; }
.contact-form .btn-oxf { border: 0; cursor: pointer; }
@media (max-width: 575.98px) { .contact-form .btn-oxf { width: 100%; } }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.social-row a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy-deep); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.social-row a:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--gold-light); transform: translateY(-3px); }

.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 575.98px) { .cta__actions .btn-oxf { width: 100%; } }

/* Admissions */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 100px; background: rgba(255, 255, 255, .05); font-size: .85rem; font-weight: 600; color: var(--white); backdrop-filter: blur(4px); }
.hero-chips i { color: var(--gold-light); }

.admission-section { padding: clamp(48px, 6vw, 80px) 0; }
.admission-layout { display: grid; grid-template-columns: 7fr 5fr; align-items: start; gap: 40px; }
.admission-aside { display: grid; gap: var(--gap); }
@media (max-width: 991.98px) {
  .admission-layout { grid-template-columns: 1fr; }
  .admission-layout .contact-form { margin-top: 0; }
}
@media (max-width: 575.98px) { .admission-layout { gap: 24px; } }

.form-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 30px; padding: 14px 16px; background: var(--ivory); border-left: 3px solid var(--gold); font-size: .88rem; line-height: 1.6; color: var(--muted); }
.form-note i { margin-top: 2px; color: var(--gold-deep); }

.steps-card { padding: 38px 34px; background: var(--white); box-shadow: var(--shadow); }
.steps-v { position: relative; margin: 26px 0 0; padding: 0; list-style: none; }
.steps-v::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 20px; width: 1px; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px); }
.steps-v li { position: relative; display: flex; gap: 18px; padding-bottom: 24px; }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v__num { position: relative; z-index: 1; display: grid; flex-shrink: 0; place-items: center; width: 41px; height: 41px; border: 1px solid var(--gold); border-radius: 50%; background: var(--white); font-family: var(--ff-head); font-size: 1rem; color: var(--navy-deep); transition: background .4s, color .4s, transform .4s var(--ease); }
.steps-v li:hover .steps-v__num { background: var(--navy-deep); color: var(--gold-light); transform: scale(1.1); }
.steps-v strong { display: block; margin-top: 8px; font-family: var(--ff-head); font-weight: 500; font-size: 1.08rem; color: var(--navy-deep); }
.steps-v p { margin: 4px 0 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }

.talk-card { position: relative; overflow: hidden; padding: 38px 34px; background: var(--navy-deep); color: rgba(255, 255, 255, .72); }
.talk-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 200px; height: 200px; border: 1px solid rgba(197, 160, 70, .3); border-radius: 50%; }
.talk-card h3 { margin: 0 0 8px; font-size: 1.45rem; color: var(--white); }
.talk-card p { margin: 0; font-size: .92rem; }
.talk-card__list { margin: 22px 0 26px; padding: 0; list-style: none; }
.talk-card__list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: .92rem; overflow-wrap: anywhere; }
.talk-card__list i { color: var(--gold-light); }
.talk-card__list a { color: var(--white); }
.talk-card__list a:hover { color: var(--gold-light); }
.talk-card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.talk-card__actions .btn-oxf { flex: 1 1 auto; padding-inline: 20px; }
@media (max-width: 575.98px) { .steps-card, .talk-card { padding: 30px 22px; } }

.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--ff-head); font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--navy-deep); transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::after { content: "+"; display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--ff-body); font-size: 1.2rem; color: var(--gold-deep); transition: transform .4s var(--ease), background .4s, color .4s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--navy-deep); border-color: var(--navy-deep); color: var(--gold-light); }
.faq details p { margin: 0; padding: 0 56px 26px 0; color: var(--muted); animation: oxf-faq-in .45s var(--ease); }
@keyframes oxf-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-foot { margin-top: 36px; text-align: center; color: var(--muted); }
.faq-foot a { font-weight: 700; }
@media (max-width: 575.98px) { .faq details p { padding-right: 0; } }

/* Results lookup */
.lookup-section { padding: clamp(48px, 6vw, 80px) 0; }
.lookup-card { display: grid; grid-template-columns: 5fr 7fr; max-width: 1080px; margin-inline: auto; box-shadow: 0 30px 70px rgba(11, 26, 69, .14); }
.lookup-card__info { position: relative; overflow: hidden; padding: 48px 42px; background: var(--navy-deep); color: rgba(255, 255, 255, .72); }
.lookup-card__info::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border: 1px solid rgba(197, 160, 70, .3); border-radius: 50%; }
.lookup-card__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 50%; background: var(--gold); color: var(--navy-900); font-size: 1.5rem; }
.lookup-card__info h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); color: var(--white); }
.lookup-card__info p { margin: 0; font-size: .93rem; }
.lookup-card__info ul { position: relative; z-index: 1; margin: 28px 0 0; padding: 0; list-style: none; }
.lookup-card__info li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-dark); font-size: .88rem; line-height: 1.5; }
.lookup-card__info li i { margin-top: 2px; font-size: 1.1rem; color: var(--gold-light); }
.lookup-card__info li strong { display: block; color: var(--white); font-weight: 700; }
.lookup-card__form.contact-form { box-shadow: none; }
.dob-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.dob-field__selects { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.dob-field select { cursor: pointer; }
@media (max-width: 419.98px) { .dob-field__selects { grid-template-columns: 1fr 2fr; } .dob-field__selects #dob_year { grid-column: 1 / -1; } }
@media (max-width: 991.98px) { .lookup-card { grid-template-columns: 1fr; } .lookup-card__info { padding: 38px 32px; } }
@media (max-width: 575.98px) { .lookup-card__info { padding: 30px 22px; } .lookup-card__form .btn-oxf { width: 100%; } }

.result-section { padding: clamp(48px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.result-wrap { max-width: 1080px; }

/* Statement of result — the details table */
.result-sheet { overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.result-sheet__head { position: relative; display: flex; align-items: center; gap: 18px; padding: 24px 30px; background: var(--navy-deep); border-bottom: 3px solid var(--gold); overflow: hidden; }
.result-sheet__head::after { content: ""; position: absolute; right: -60px; top: -90px; width: 220px; height: 220px; border: 1px solid rgba(197, 160, 70, .25); border-radius: 50%; pointer-events: none; }
.result-sheet__emblem { width: 52px; flex-shrink: 0; }
.result-sheet__title { flex: 1; min-width: 0; }
.result-sheet__title span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.result-sheet__title h2 { margin: 2px 0 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--white); }
.result-sheet__print { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--btn-radius); background: transparent; font-size: .85rem; font-weight: 700; color: var(--white); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.result-sheet__print:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

.result-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.result-detail { display: flex; align-items: center; gap: 16px; padding: 22px 30px; border-bottom: 1px solid var(--line); transition: background .3s; }
.result-detail:nth-child(odd) { border-right: 1px solid var(--line); }
.result-detail:hover { background: rgba(250, 248, 243, .7); }
.result-detail__icon { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ivory); color: var(--gold-deep); font-size: 1.15rem; }
.result-detail > div { flex: 1; min-width: 0; }
.result-detail dt { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.result-detail dd { margin: 3px 0 0; font-family: var(--ff-head); font-size: 1.2rem; line-height: 1.3; color: var(--navy-deep); overflow-wrap: anywhere; }
.result-detail--grade { background: linear-gradient(90deg, rgba(197, 160, 70, .14), rgba(197, 160, 70, .04)); }
.result-detail--grade:hover { background: linear-gradient(90deg, rgba(197, 160, 70, .2), rgba(197, 160, 70, .06)); }
.result-detail--grade .result-detail__icon { background: var(--gold); color: var(--navy-900); }
.result-detail--grade dd { font-size: 1.7rem; font-weight: 500; }
.result-details > .result-detail:nth-last-child(-n + 2) { border-bottom: 0; }
@media (max-width: 767.98px) {
  .result-details { grid-template-columns: 1fr; }
  .result-detail:nth-child(odd) { border-right: 0; }
  .result-details > .result-detail:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .result-detail { padding: 18px 22px; }
  .result-sheet__head { flex-wrap: wrap; padding: 22px; }
  .result-sheet__print { width: 100%; justify-content: center; }
}

/* Uploaded result document */
.result-doc { margin-top: 28px; padding: 30px; background: var(--white); border: 1px solid var(--line); }
.result-doc__head { margin-bottom: 22px; text-align: center; }
.result-doc__head .title-lg { margin: 0; }
.result-doc__frame { max-width: 720px; margin-inline: auto; padding: 14px; background: var(--ivory); border: 1px solid var(--line); }
.result-doc__frame img { display: block; width: 100%; height: auto; min-height: 560px; max-height: 1020px; object-fit: contain; margin-inline: auto; background: var(--white); box-shadow: 0 10px 30px rgba(11, 26, 69, .12); }
.result-doc__pdf { display: block; width: 100%; height: 490px; border: 0; background: var(--white); }
.result-doc-note { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px 24px; background: var(--ivory); border: 1px dashed rgba(197, 160, 70, .6); color: var(--muted); }
.result-doc-note i { font-size: 1.4rem; color: var(--gold-deep); }
.result-doc-note p { margin: 0; font-size: .93rem; }
@media (max-width: 575.98px) {
  .result-doc { padding: 20px 16px; }
  .result-doc__frame { padding: 8px; }
  .result-doc__frame img { min-height: 0; }
}

.result-card { margin-top: 28px; background: var(--white); border: 1px solid var(--line); }
.result-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.result-card__code { display: block; margin-bottom: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-card__head h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.result-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 30px; background: var(--ivory); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.result-card__foot i { color: var(--gold-deep); }
.result-card__foot strong { color: var(--navy-deep); }

@media (max-width: 767.98px) {
  .result-card__head, .result-card__foot { padding-inline: 22px; }
}

.result-bar { display: block; width: 100%; max-width: 180px; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 6px; background: var(--line); }
.result-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.result-bar--sm { max-width: 220px; height: 4px; }

.result-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 100px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.result-chip--status { background: var(--navy-deep); color: var(--gold-light); }
.result-chip--pass { background: #e3f4ea; color: #157347; }
.result-chip--fail { background: #fbe4e4; color: #b42323; }
.result-chip--pending { background: #f7efd9; color: var(--gold-deep); }

.marks-table-wrap { overflow-x: auto; }
.marks-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .93rem; }
.marks-table th { padding: 14px 30px; background: var(--ivory); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-align: left; text-transform: uppercase; color: var(--muted); }
.marks-table td { padding: 16px 30px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.marks-table tbody tr { transition: background .3s; }
.marks-table tbody tr:hover { background: rgba(250, 248, 243, .7); }
.marks-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.marks-table strong { color: var(--navy-deep); }
.marks-table__module { font-weight: 600; color: var(--navy-deep); }
.marks-table__empty { text-align: center; color: var(--muted); }
@media (max-width: 767.98px) { .marks-table th, .marks-table td { padding-inline: 18px; } }

.result-empty { max-width: 640px; margin-inline: auto; padding: 44px 36px; text-align: center; background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.result-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: #fbe4e4; color: #b42323; font-size: 1.5rem; }
.result-empty__icon--info { background: #f7efd9; color: var(--gold-deep); }
.result-empty h3 { margin: 0 0 10px; font-size: 1.5rem; }
.result-empty p { margin: 0; color: var(--muted); }
.result-empty a { font-weight: 700; }

@media print {
  .site-header, .header-clearance, .page-hero, .footer, .whatsapp-btn, .back-to-top, .no-print, #mobileMenu, #mobileBackdrop { display: none !important; }
  .result-section { padding: 0; }
  .result-sheet, .result-card, .result-doc { box-shadow: none; break-inside: avoid; }
  .result-sheet__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .result-doc__pdf { display: none; }
  .oxf-body [data-animate] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__bg img, .page-hero__ring { animation: none; }
}
