/* ==========================================================================
   BD College — "A Bridge to Your Future"
   Design system: ink + ivory + brand red, editorial serif, arch motif.
   ========================================================================== */
:root {
  --ink-950: #07101c;
  --ink-900: #0d1a2b;
  --ink-800: #142539;
  --ink-700: #1f3450;
  --ink-500: #4b6280;
  --ink-300: #9aabc0;
  --ivory: #f7f3ec;
  --ivory-2: #efe8dc;
  --sand: #e4d9c6;
  --paper: #fffdf9;
  --line: #e5ddcf;
  --line-2: #d3c7b2;
  --text: #17202b;
  --muted: #5f6975;
  --red: #c8392b;
  --red-600: #ad2e22;
  --red-soft: #f7e3df;
  --red-on-dark: #ec6a5c;
  /* status colours (portal) */
  --st-blue: #2457c5; --st-blue-bg: #e7eefc;
  --st-amber: #9a6106; --st-amber-bg: #fbf0d6;
  --st-orange: #b8430f; --st-orange-bg: #fce9df;
  --st-teal: #0f6f68; --st-teal-bg: #dcf1ee;
  --st-green: #17783d; --st-green-bg: #e0f2e6;
  --st-red: #b42318; --st-red-bg: #fbe4e2;
  --st-grey: #4b5563; --st-grey-bg: #ebebe8;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(13,26,43,.06);
  --shadow: 0 1px 2px rgba(13,26,43,.05), 0 12px 32px -18px rgba(13,26,43,.28);
  --shadow-lg: 0 2px 4px rgba(13,26,43,.06), 0 30px 60px -28px rgba(13,26,43,.45);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 84px;
  --wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink-900); line-height: 1.12; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.015em; font-variation-settings: "SOFT" 30, "opsz" 72; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; font-variation-settings: "SOFT" 30, "opsz" 24; }
h1 em, h2 em, .display em { font-style: italic; color: var(--red); font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: #fff; }
.icon { flex: none; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 900px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }

/* Eyebrow label */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 18px; height: 9px; border: 2px solid currentColor; border-bottom: 0; border-radius: 9px 9px 0 0; }
.on-dark .eyebrow, .eyebrow.light { color: var(--red-on-dark); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink-900); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: 700 .95rem/1.1 var(--sans); letter-spacing: .01em; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease), color .2s, border-color .2s; }
.btn:hover { color: var(--fg); background: var(--ink-700); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(13,26,43,.55); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-red, .btn-gold { --bg: var(--red); --fg: #fff; box-shadow: 0 8px 22px -12px rgba(200,57,43,.8); }
.btn-red:hover, .btn-gold:hover { background: var(--red-600); box-shadow: 0 14px 30px -12px rgba(200,57,43,.85); }
.btn-outline { --bg: transparent; --fg: var(--ink-900); border-color: var(--line-2); }
.btn-outline:hover { background: var(--paper); border-color: var(--ink-900); color: var(--ink-900); box-shadow: none; }
.btn-ghost-light, .btn-light-outline { --bg: rgba(255,255,255,.04); --fg: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-ghost-light:hover, .btn-light-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); color: #fff; }
.btn-light { --bg: #fff; --fg: var(--ink-900); }
.btn-light:hover { background: var(--ivory); color: var(--ink-900); }
.btn-danger { --bg: var(--st-red); }
.btn-danger:hover { background: #8f1c13; }
.btn-green { --bg: var(--st-green); }
.btn-green:hover { background: #115e30; }
.btn-sm { padding: 9px 15px; font-size: .85rem; gap: 7px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-700); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn.danger { color: var(--st-red); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-900); text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 3px; }
.link-arrow .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-900); font-size: .92rem; text-decoration: none; }
.more .icon { width: 16px; height: 16px; transition: transform .2s; color: var(--red); }
a:hover .more .icon, .more:hover .icon { transform: translateX(3px); }

/* ---------- Alerts, badges, tags ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-size: .95rem; }
.alert-success { background: var(--st-green-bg); border-color: #b4dfc2; color: #14532d; }
.alert-error { background: var(--st-red-bg); border-color: #f0b9b4; color: #7a1c14; }
.alert-info { background: #eef2f8; border-color: #cdd9ea; color: var(--ink-800); }
.alert-warn { background: var(--st-amber-bg); border-color: #efd699; color: #6b4304; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.flash-wrap { padding-top: calc(var(--header-h) + 18px); }
.page-hero + .flash-wrap, .hero + .flash-wrap { padding-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-blue { background: var(--st-blue-bg); color: var(--st-blue); }
.badge-amber { background: var(--st-amber-bg); color: var(--st-amber); }
.badge-orange { background: var(--st-orange-bg); color: var(--st-orange); }
.badge-teal { background: var(--st-teal-bg); color: var(--st-teal); }
.badge-green { background: var(--st-green-bg); color: var(--st-green); }
.badge-red { background: var(--st-red-bg); color: var(--st-red); }
.badge-grey { background: var(--st-grey-bg); color: var(--st-grey); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--ivory-2); color: var(--ink-700); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tag-red { background: var(--red-soft); color: var(--red-600); }
.tag-dark { background: var(--ink-900); color: #fff; }
.ribbon { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .02em; }
.ribbon .icon { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background .35s var(--ease), height .35s var(--ease), box-shadow .35s, color .35s; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; }
.site-header.is-solid, .solid-header .site-header { background: rgba(247,243,236,.86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); color: var(--ink-900); box-shadow: 0 1px 0 rgba(13,26,43,.08); }
.site-header.is-solid { --header-h: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; flex: none; }
.brand:hover { color: inherit; }
.brand-logo { height: 42px; width: auto; transition: height .35s var(--ease); }
.site-header.is-solid .brand-logo { height: 36px; }
.brand .on-light { display: none; }
.site-header.is-solid .brand .on-light, .solid-header .site-header .brand .on-light { display: block; }
.site-header.is-solid .brand .on-dark, .solid-header .site-header .brand .on-dark { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 12px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 25%, transparent); }
.brand-text strong { font: 600 1.05rem var(--serif); letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; margin-top: 3px; }
.logo-mark { width: 44px; height: 44px; object-fit: contain; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 10px 12px; color: inherit; text-decoration: none; font-weight: 600; font-size: .93rem; opacity: .88; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { opacity: 1; color: inherit; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.nav-login { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: inherit; text-decoration: none; padding: 10px 6px; }
.nav-login:hover { color: var(--red); }
.nav-login .icon { width: 17px; height: 17px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; cursor: pointer; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--ink-950); color: #fff; display: flex; flex-direction: column; padding: 22px 24px 30px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; overflow-y: auto; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; margin: 36px 0 24px; }
.mobile-menu nav a { font: 400 2rem/1.25 var(--serif); color: #fff; text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s; }
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--red-on-dark); }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 12px; }
.mobile-menu .mm-contact { color: var(--ink-300); font-size: .92rem; display: grid; gap: 6px; }
.mobile-menu .mm-contact a { color: #fff; text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ---------- Decorative arches ---------- */
.arches { position: absolute; pointer-events: none; }
.arches path { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1.2; }
.arches path.accent { stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--ink-900); color: #dfe6ef; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 88% 8%, rgba(200,57,43,.22), transparent 60%),
  radial-gradient(700px 600px at 0% 100%, rgba(31,52,80,.95), transparent 60%),
  linear-gradient(180deg, var(--ink-900), var(--ink-950)); }
.hero-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(7,16,28,.96) 0%, rgba(7,16,28,.85) 45%, rgba(7,16,28,.55) 100%); }
.hero .arches { right: -140px; bottom: -40px; width: 980px; height: auto; z-index: -1; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 64px; align-items: center; padding-top: calc(var(--header-h) + 72px); padding-bottom: 96px; min-height: min(100vh, 920px); }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 600; color: #e9eef5; margin-bottom: 28px; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fcf7c; box-shadow: 0 0 0 0 rgba(63,207,124,.6); animation: pulse 2.2s infinite; }
.hero-kicker.closed .dot { background: var(--red-on-dark); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(63,207,124,0); } 100% { box-shadow: 0 0 0 0 rgba(63,207,124,0); } }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.028em; margin-bottom: 26px; font-variation-settings: "SOFT" 40, "opsz" 144; }
.hero h1 em { color: var(--red-on-dark); }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #b9c6d6; max-width: 36em; margin-bottom: 34px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #c9d4e1; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 17px; height: 17px; color: var(--red-on-dark); }

/* Programme finder */
.finder { position: relative; background: var(--paper); color: var(--text); border-radius: 26px; padding: 30px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); }
.finder::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
.finder h2 { font-size: 1.55rem; margin-bottom: 4px; }
.finder > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--ivory-2); margin-bottom: 18px; }
.seg button { border: 0; background: transparent; padding: 10px 6px; border-radius: 10px; font: 700 .84rem var(--sans); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm), 0 4px 12px -6px rgba(13,26,43,.25); }
.finder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 372px; overflow-y: auto; }
.finder-list li { animation: rise .45s var(--ease) both; }
.finder-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.finder-list a:hover { border-color: var(--ink-900); transform: translateX(3px); box-shadow: var(--shadow); color: var(--text); }
.finder-list .code { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 .7rem var(--sans); letter-spacing: .04em; background: var(--ink-900); color: #fff; }
.finder-list .code.skill { background: var(--red-soft); color: var(--red-600); }
.finder-list strong { display: block; font-size: .93rem; line-height: 1.3; color: var(--ink-900); }
.finder-list small { color: var(--muted); font-size: .8rem; }
.finder-list .fee { font: 600 .95rem var(--serif); color: var(--ink-900); text-align: right; white-space: nowrap; }
.finder-list .fee small { display: block; font: 600 .7rem var(--sans); color: var(--muted); }
.finder-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Marquee */
.marquee { background: var(--ivory); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: slide 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: italic 400 clamp(1.25rem, 2.2vw, 1.8rem) var(--serif); color: var(--ink-900); white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: ""; width: 16px; height: 8px; border: 2px solid var(--red); border-bottom: 0; border-radius: 8px 8px 0 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Stats */
.stats { background: var(--ivory); }
.stats-in { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 42px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); color: var(--ink-900); letter-spacing: -.03em; margin-bottom: 10px; font-variation-settings: "SOFT" 50, "opsz" 144; }
.stat b sup { font-size: .45em; color: var(--red); margin-left: 2px; vertical-align: super; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--ivory-2); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink-900); color: #c3cedb; overflow: hidden; isolation: isolate; }
.section-dark h2, .section-dark h3 { color: #fff; }
.sec-head, .section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2, .section-head h2 { margin: 0; }
.sec-head > p, .section-head > p { color: var(--muted); margin: 0; font-size: 1.05rem; max-width: 34em; justify-self: end; }
.section-dark .sec-head > p { color: var(--ink-300); }
.sec-head.single { grid-template-columns: 1fr; }
.sec-head.single > p { justify-self: start; margin-top: 16px; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--ink-900); color: #b9c6d6; padding: calc(var(--header-h) + 76px) 0 84px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 400px at 90% 0%, rgba(200,57,43,.2), transparent 60%), linear-gradient(180deg, var(--ink-900), var(--ink-950)); }
.page-hero .arches { right: -120px; top: 40px; width: 640px; z-index: -1; }
.page-hero h1 { color: #fff; margin-bottom: 16px; max-width: 16em; }
.page-hero .lead { font-size: 1.12rem; max-width: 40em; margin: 0; color: #b9c6d6; }
.crumb { font-size: .82rem; margin-bottom: 22px; display: flex; align-items: center; gap: 6px; color: var(--ink-300); font-weight: 600; letter-spacing: .02em; }
.crumb a { color: #dbe3ed; text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb .icon { width: 14px; height: 14px; opacity: .6; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip-dark { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e6ecf3; font-size: .88rem; font-weight: 600; }
.chip-dark .icon { width: 16px; height: 16px; color: var(--red-on-dark); }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.2rem; }

/* Programme tabs */
.prog-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 36px; }
.prog-tabs button, .prog-tabs a { border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font: 700 .9rem var(--sans); color: var(--muted); cursor: pointer; text-decoration: none; transition: background .25s, color .25s; }
.prog-tabs [aria-selected="true"], .prog-tabs [aria-current] { background: var(--ink-900); color: #fff; }
.prog-tabs .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: .72rem; margin-left: 6px; background: rgba(0,0,0,.06); }
.prog-tabs [aria-selected="true"] .count, .prog-tabs [aria-current] .count { background: rgba(255,255,255,.16); }
[role="tabpanel"][hidden] { display: none; }

/* Degree card */
.degree-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.degree-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 36px; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.degree-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.degree-card .mono { position: absolute; right: -6px; bottom: -34px; font: italic 400 9rem/1 var(--serif); color: var(--ivory-2); letter-spacing: -.04em; pointer-events: none; transition: color .4s; z-index: 0; }
.degree-card:hover .mono { color: var(--red-soft); }
.degree-card > * { position: relative; z-index: 1; }
.degree-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 18px 0 10px; line-height: 1.08; }
.degree-card h3 a { color: inherit; text-decoration: none; }
.degree-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.degree-card p { color: var(--muted); margin-bottom: 22px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.meta { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-700); }
.meta .icon { width: 15px; height: 15px; color: var(--red); }
.fee-mini { width: 100%; border-collapse: collapse; margin-bottom: 26px; font-size: .93rem; }
.fee-mini td { padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.fee-mini td:last-child { text-align: right; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.fee-mini tr.total td { border-bottom: 0; padding-top: 14px; font-weight: 700; color: var(--ink-900); }
.fee-mini tr.total td:last-child { font: 500 1.5rem var(--serif); color: var(--red); letter-spacing: -.01em; }
.degree-card .btn-outline { background: var(--paper); }
.card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; position: relative; z-index: 2; }

/* Skill course card */
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.skill-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: var(--text); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; overflow: hidden; }
.skill-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--text); }
.skill-card:hover::before { transform: scale(1.25); border-color: var(--red); }
.skill-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.skill-card h3 { font-size: 1.32rem; margin: 4px 0 0; line-height: 1.18; }
.skill-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.skill-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); gap: 8px; }
.skill-card dt { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.skill-card dd { margin: 3px 0 0; font-weight: 700; color: var(--ink-900); font-size: .92rem; }
.skill-card dd.fee { font: 500 1.2rem var(--serif); color: var(--red); }
.skill-card .go { position: absolute; right: 22px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: #fff; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.skill-card:hover .go { opacity: 1; transform: none; }
.skill-card .go .icon { width: 18px; height: 18px; }

/* Bento (why BD) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); gap: 18px; }
.bento > div { position: relative; border-radius: 24px; padding: 32px; overflow: hidden; background: var(--ink-800); border: 1px solid rgba(255,255,255,.07); color: #c3cedb; }
.bento h3 { color: #fff; font-size: 1.45rem; margin: 0 0 10px; }
.bento p { margin: 0; font-size: .96rem; }
.bento .b1 { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--ink-700), var(--ink-800) 60%); }
.bento .b2 { grid-column: span 3; background: var(--red); border-color: transparent; color: #fde5e1; }
.bento .b2 h3 { color: #fff; }
.bento .b3 { grid-column: span 3; }
.bento .b4 { grid-column: span 2; }
.bento .b5 { grid-column: span 4; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ivory); color: var(--text); }
.bento .b5 h3 { color: var(--ink-900); }
.bento .big { font: 400 clamp(3.4rem, 6vw, 5.5rem)/1 var(--serif); color: #fff; letter-spacing: -.04em; margin-bottom: 14px; display: block; font-variation-settings: "SOFT" 60, "opsz" 144; }
.bento .b1 .big { color: var(--red-on-dark); }
.bento .bi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; margin-bottom: 22px; }
.bento .bi .icon { width: 22px; height: 22px; }
.bento .b1 .arch-deco { position: absolute; right: -50px; bottom: -80px; width: 360px; opacity: .9; }
.bento .b1 .arch-deco path { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1.4; }
.bento .b1 .arch-deco path:last-child { stroke: var(--red); stroke-width: 3; }
.section-dark .arches { left: -200px; top: -120px; width: 900px; z-index: -1; }

/* Principal */
.principal { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: center; }
.arch-frame { position: relative; max-width: 440px; }
.arch-frame .img { aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; background: var(--ink-800) center 18% / cover no-repeat; box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--red-on-dark); font: 400 5rem var(--serif); }
.arch-frame::before { content: ""; position: absolute; inset: -16px -16px 34px 16px; border: 1.5px solid var(--red); border-radius: 999px 999px 26px 26px; z-index: -1; }
.arch-frame .badge-float { position: absolute; left: -26px; bottom: 40px; background: var(--paper); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; }
.arch-frame .badge-float img { height: 30px; width: auto; }
.arch-frame .badge-float span { font-size: .78rem; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.principal blockquote { margin: 0 0 30px; font: 400 clamp(1.35rem, 2.3vw, 1.85rem)/1.45 var(--serif); color: var(--ink-900); letter-spacing: -.01em; font-variation-settings: "SOFT" 60, "opsz" 36; }
.principal blockquote p { margin: 0 0 .7em; }
.principal blockquote p:first-child::before { content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--red); margin-bottom: 18px; }
.principal cite { display: flex; gap: 16px; align-items: center; font-style: normal; }
.principal cite::before { content: ""; width: 44px; height: 1.5px; background: var(--red); }
.principal cite b { display: block; font-size: 1.05rem; color: var(--ink-900); }
.principal cite small { display: block; color: var(--muted); font-size: .88rem; }

/* Steps (horizontal) */
.steps-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps-h::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.steps-h li { counter-increment: s; position: relative; }
.steps-h li::before { content: counter(s, decimal-leading-zero); position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 28px 28px 10px 10px; background: var(--ink-900); color: #fff; font: 500 1.05rem var(--serif); margin-bottom: 22px; box-shadow: 0 0 0 8px var(--ivory); }
.section-alt .steps-h li::before { box-shadow: 0 0 0 8px var(--ivory-2); }
.steps-h li:first-child::before { background: var(--red); }
.steps-h h3 { font-size: 1.18rem; margin-bottom: 8px; }
.steps-h p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Vertical steps (admissions page) */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 34px 78px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 26px 26px 9px 9px; background: var(--ink-900); color: #fff; display: grid; place-items: center; font: 500 1rem var(--serif); }
.steps li::after { content: ""; position: absolute; left: 25px; top: 60px; bottom: 6px; width: 1.5px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-family: var(--sans); font-size: 1.05rem; margin: 4px 0 6px; font-weight: 800; letter-spacing: 0; }
.steps p { margin: 0; color: var(--muted); }

/* Notice list */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 18px 6px; text-decoration: none; color: var(--text); transition: background .2s, padding .3s var(--ease); border-radius: 12px; }
.notice-item:hover { color: var(--text); background: var(--ivory); padding-left: 14px; }
.date-chip { text-align: center; line-height: 1; padding: 10px 0; border-radius: 16px 16px 8px 8px; background: var(--ivory-2); }
.date-chip b { display: block; font: 500 1.6rem var(--serif); color: var(--ink-900); }
.date-chip span { display: block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-top: 5px; }
.notice-item h3 { font: 700 1.02rem/1.35 var(--sans); margin: 0 0 4px; color: var(--ink-900); letter-spacing: 0; }
.notice-item p { margin: 0; font-size: .86rem; color: var(--muted); }
.notice-item > .icon { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.notice-item:hover > .icon { transform: translateX(3px); color: var(--red); }
.pin { color: var(--red); font-size: .66rem; font-weight: 800; margin-left: 8px; letter-spacing: .14em; vertical-align: 2px; }

.contact-card { background: var(--ink-900); color: #c3cedb; border-radius: 24px; padding: 34px; position: relative; overflow: hidden; }
.contact-card h3 { color: #fff; font-size: 1.6rem; }
.contact-card .arches { right: -120px; bottom: -120px; width: 380px; }
.contact-card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 16px; }
.contact-card li { display: flex; gap: 14px; }
.contact-card li .icon { width: 20px; height: 20px; color: var(--red-on-dark); margin-top: 2px; }
.contact-card a:not(.btn) { color: #fff; text-decoration: none; }
.contact-card small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); font-weight: 700; }

/* Final CTA */
.cta-final { position: relative; background: var(--ink-900); color: #c3cedb; border-radius: 32px; padding: 80px 64px; overflow: hidden; isolation: isolate; text-align: center; }
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(600px 300px at 50% 120%, rgba(200,57,43,.35), transparent 70%); }
.cta-final .arches { left: 50%; bottom: -430px; transform: translateX(-50%); width: 1100px; z-index: -1; }
.cta-final h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 14em; margin: 0 auto 18px; }
.cta-final p { max-width: 34em; margin: 0 auto 34px; font-size: 1.08rem; }
.cta-final .row { justify-content: center; }
.cta-band { position: relative; background: var(--ink-900); color: #c3cedb; border-radius: 26px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* Features (generic) */
.feature { display: flex; gap: 16px; }
.feature .icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--ink-900); color: #fff; }
.feature h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 800; letter-spacing: 0; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Faculty */
.faculty-card { text-align: center; padding: 34px 24px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.faculty-photo { width: 124px; height: 150px; border-radius: 62px 62px 16px 16px; margin: 0 auto 18px; background: var(--ink-800) center 20% / cover; color: var(--red-on-dark); display: grid; place-items: center; font: 400 2.4rem var(--serif); }
.faculty-card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.faculty-card .role { color: var(--red); font-weight: 700; font-size: .84rem; letter-spacing: .02em; }
.faculty-card p { color: var(--muted); font-size: .88rem; margin: 8px 0 0; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--ivory-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(7,16,28,.8)); }
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-mosaic a { position: relative; border-radius: 18px; overflow: hidden; background: var(--ivory-2); }
.gallery-mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-mosaic a:hover img { transform: scale(1.06); }
.album-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.album-tabs a { padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-700); font-size: .88rem; font-weight: 600; background: var(--paper); transition: all .2s; }
.album-tabs a:hover { border-color: var(--ink-900); color: var(--ink-900); }
.album-tabs a[aria-current] { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.lightbox { position: fixed; inset: 0; background: rgba(7,16,28,.94); display: grid; place-items: center; z-index: 150; padding: 24px; animation: fade .25s; }
.lightbox img { max-height: 84vh; border-radius: 12px; }
.lightbox p { color: #dfe7f1; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
@keyframes fade { from { opacity: 0; } }

/* Prose + misc content */
.prose { max-width: 44em; }
.prose p, .prose li { color: #323c47; font-size: 1.04rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.lead-para { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.5 var(--serif); color: var(--ink-900); letter-spacing: -.01em; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--ivory-2); color: var(--red); }
.info-list b { display: block; color: var(--ink-900); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); filter: grayscale(.3) contrast(1.05); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; color: var(--ink-900); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink-700); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8392b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vm-card { padding: 40px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.vm-card.dark { background: var(--ink-900); border-color: var(--ink-900); color: #c3cedb; }
.vm-card.dark .lead-para { color: #fff; }

/* ---------- Course detail ---------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.course-main > section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.course-main > section:last-child { border-bottom: 0; margin-bottom: 0; }
.course-main h2 { font-size: 1.8rem; margin-bottom: 18px; }
.sticky-card { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.sticky-card .price { font: 400 2.6rem/1 var(--serif); color: var(--ink-900); letter-spacing: -.02em; margin: 6px 0 4px; }
.sticky-card .price-label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sticky-card .kv { margin: 22px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 10px 18px; }
.sticky-card .btn + .btn { margin-top: 10px; }
.fee-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.fee-table th, .fee-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--ivory); font-weight: 800; }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.fee-table td:last-child { font-weight: 700; color: var(--ink-900); }
.fee-table tfoot td { border-bottom: 0; background: var(--ink-900); color: #fff; font-weight: 700; }
.fee-table tfoot td:last-child { font: 500 1.4rem var(--serif); color: #fff; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pay-steps li { position: relative; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.pay-steps li small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pay-steps li b { font: 500 1.6rem var(--serif); color: var(--ink-900); }
.pay-steps li:first-child { background: var(--ink-900); border-color: var(--ink-900); }
.pay-steps li:first-child small { color: var(--ink-300); }
.pay-steps li:first-child b { color: #fff; }
.callout { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 20px; background: var(--red-soft); color: #6b1f17; margin-top: 18px; }
.callout .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--red); color: #fff; }
.callout b { color: #5a1810; display: block; font-size: 1.05rem; }

/* Compare table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; font-size: .94rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { background: var(--ink-900); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: var(--ivory); }
.compare .name { font-weight: 700; color: var(--ink-900); text-decoration: none; }
.compare .name:hover { color: var(--red); }
.compare .fee { font: 500 1.1rem var(--serif); color: var(--ink-900); white-space: nowrap; }
.compare-wrap { overflow-x: auto; border-radius: 20px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend { font: 500 1.45rem var(--serif); color: var(--ink-900); padding: 0; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; letter-spacing: -.01em; }
legend .num { width: 34px; height: 34px; border-radius: 17px 17px 6px 6px; background: var(--ink-900); color: #fff; font: 700 .85rem/34px var(--sans); text-align: center; flex: none; }
.legend-note { color: var(--muted); font-size: .92rem; margin: 0 0 20px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .label { font-weight: 700; font-size: .86rem; color: var(--ink-900); }
.req { color: var(--red); margin-left: 2px; }
.help { font-size: .82rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: #bfb19a; }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1a2b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-900); box-shadow: 0 0 0 4px rgba(13,26,43,.08); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--st-red); box-shadow: 0 0 0 4px rgba(180,35,24,.08); }
input[type=file] { font: inherit; font-size: .9rem; width: 100%; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--ivory); cursor: pointer; transition: border-color .2s, background .2s; }
input[type=file]:hover { border-color: var(--ink-900); background: #fff; }
input[type=file]::file-selector-button { font: 700 .84rem var(--sans); border: 0; background: var(--ink-900); color: #fff; padding: 9px 15px; border-radius: 999px; margin-right: 12px; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--red); flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.inline-form { display: inline; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 20px; }
.filters .field { min-width: 160px; flex: 1; max-width: 260px; }
.filters .grow { max-width: 340px; }
.preview-img { width: 92px; height: 116px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--ivory); }

/* Apply wizard */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.wizard-progress { display: none; margin-bottom: 28px; }
.js .wizard .wizard-progress { display: block; }
.wizard-steps { display: grid; grid-template-columns: repeat(var(--steps, 6), 1fr); gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.wizard-steps li { height: 5px; border-radius: 5px; background: var(--line); transition: background .4s var(--ease); }
.wizard-steps li.done, .wizard-steps li.current { background: var(--red); }
.wizard-label { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); font-weight: 600; }
.wizard-label b { color: var(--ink-900); }
.js .wizard fieldset.wiz-step { display: none; }
.js .wizard fieldset.wiz-step.active { display: block; animation: rise .4s var(--ease); }
.wizard-nav { display: none; gap: 12px; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.js .wizard .wizard-nav { display: flex; }
.js .wizard .final-submit { display: none; }
.js .wizard .final-submit.show { display: flex; }
.apply-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.summary-card { background: var(--ink-900); color: #c3cedb; border-radius: 22px; padding: 26px; }
.summary-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.summary-card .price { font: 400 2rem var(--serif); color: #fff; margin: 14px 0 2px; }
.summary-card .kv dt { color: var(--ink-300); }
.summary-card .kv dd { color: #fff; }
.summary-card .kv { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); gap: 8px 16px; font-size: .9rem; }
.summary-card .empty-sum { color: var(--ink-300); font-size: .92rem; }
.review { display: grid; gap: 10px; background: var(--ivory); border-radius: 16px; padding: 20px; margin-bottom: 22px; font-size: .92rem; }
.review div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 600; color: var(--ink-900); }

/* Auth (login) split */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ivory); }
.auth-brand { position: relative; background: var(--ink-900); color: #b9c6d6; padding: 44px 56px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.auth-brand .arches { left: -120px; bottom: -140px; width: 860px; z-index: -1; }
.auth-brand::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(600px 400px at 100% 0%, rgba(200,57,43,.25), transparent 60%); }
.auth-brand .brand { color: #fff; }
.auth-brand blockquote { margin: auto 0 0; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.2 var(--serif); color: #fff; max-width: 13em; letter-spacing: -.02em; }
.auth-brand blockquote em { color: var(--red-on-dark); }
.auth-brand .auth-note { margin-top: 24px; max-width: 30em; }
.auth-form { display: grid; place-items: center; padding: 48px 28px; }
.auth-form .inner { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 2.6rem; margin-bottom: 8px; }
.auth-form .back { display: flex; width: fit-content; gap: 8px; align-items: center; font-size: .88rem; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 40px; }
.auth-form .back:hover { color: var(--ink-900); }
.auth-form .back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.auth-roles { display: flex; gap: 8px; margin: 18px 0 28px; flex-wrap: wrap; }
.auth { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 20px 60px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 2.2rem; }

/* ---------- Tables (portal) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); background: var(--ivory); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: #fcfaf5; }
.table td.actions { white-space: nowrap; text-align: right; }
.table .strong { font-weight: 700; color: var(--ink-900); text-decoration: none; }
.table a.strong:hover { color: var(--red); }
.table .sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .icon { width: 42px; height: 42px; color: var(--line-2); margin: 0 auto 10px; display: block; }
.pager { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--text); }
.pager a:hover { border-color: var(--ink-900); }
.pager .current { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink-950); color: #8fa0b5; font-size: .94rem; overflow: hidden; isolation: isolate; }
.footer .arches { right: -160px; top: -60px; width: 760px; z-index: -1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-top: 88px; padding-bottom: 60px; }
.footer .brand { color: #fff; margin-bottom: 22px; }
.footer-about p { max-width: 24em; }
.footer h3 { color: #fff; font: 800 .72rem var(--sans); text-transform: uppercase; letter-spacing: .18em; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
.footer a { color: #c4d0de; text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 12px; }
.contact-list .icon { width: 17px; height: 17px; margin-top: 4px; color: var(--red-on-dark); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); transition: background .2s, border-color .2s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social .icon { width: 17px; height: 17px; }
.footer-mark { font: italic 400 clamp(2.6rem, 8vw, 7.5rem)/1 var(--serif); color: rgba(255,255,255,.06); letter-spacing: -.03em; white-space: nowrap; padding-bottom: 10px; user-select: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .84rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); z-index: 70; transition: transform .25s var(--ease); }
.wa-float:hover { color: #fff; transform: scale(1.07); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero [data-hero] { opacity: 0; transform: translateY(22px); animation: rise-in 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .hero [data-hero] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Status / timeline (portal) ---------- */
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 24px 0 8px; }
.progress div { height: 6px; border-radius: 3px; background: var(--line); }
.progress div.on { background: var(--red); }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.progress-labels span.on { color: var(--ink-900); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1.5px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 22px 18px; }
.timeline li::before { content: ""; position: absolute; left: -31px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3.5px solid var(--st-grey); }
.timeline li.tl-blue::before { border-color: var(--st-blue); }
.timeline li.tl-amber::before { border-color: #d19a0b; }
.timeline li.tl-orange::before { border-color: var(--st-orange); }
.timeline li.tl-teal::before { border-color: var(--st-teal); }
.timeline li.tl-green::before { border-color: var(--st-green); }
.timeline li.tl-red::before { border-color: var(--st-red); }
.timeline li > div { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.timeline time { font-size: .8rem; color: var(--muted); }
.timeline p { margin: 8px 0 0; font-size: .92rem; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.timeline small { color: var(--muted); font-size: .78rem; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: .92rem; }
.doc-list .icon { width: 18px; height: 18px; color: var(--ink-700); }
.doc-list li.missing { color: var(--muted); background: var(--ivory); }
.doc-list li.missing .icon { color: var(--st-orange); }
.doc-list em { font-size: .8rem; }
.quick-links { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.quick-links li { border-bottom: 1px solid var(--line); }
.quick-links a { display: flex; align-items: center; gap: 14px; padding: 14px 2px; text-decoration: none; color: var(--text); font-weight: 700; }
.quick-links a:hover { color: var(--red); }
.quick-links a .icon:first-child { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--ivory-2); color: var(--red); }
.quick-links a .icon:last-child { margin-left: auto; color: var(--muted); width: 18px; }
.quick-links small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }

/* ---------- Portal ---------- */
body.portal { background: #f3efe7; }
.side { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--ink-900); color: #b9c6d6; overflow-y: auto; z-index: 60; padding: 22px 14px 30px; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 8px; color: #fff; text-decoration: none; }
.side-brand img { height: 34px; width: auto; }
.side-brand .brand-text strong { font-size: 1rem; }
.side-group { margin: 22px 12px 8px; font-size: .66rem; text-transform: uppercase; letter-spacing: .18em; color: #6d8198; font-weight: 800; }
.side nav a, .side nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; color: #c4d0de; text-decoration: none; font: 600 .9rem var(--sans); background: none; border: 0; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.side nav a:hover, .side nav button:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
.side nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.side nav a[aria-current="page"] .icon { color: var(--red-on-dark); }
.side .icon { width: 18px; height: 18px; opacity: .92; }
.side .count { margin-left: auto; font-style: normal; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.portal-main { margin-left: 268px; min-height: 100vh; display: flex; flex-direction: column; }
.portal-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; background: rgba(243,239,231,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 16px 32px; border-bottom: 1px solid var(--line); }
.portal-top h1 { font-size: 1.55rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-toggle { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 9px; cursor: pointer; color: var(--ink-900); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 20px 20px 8px 8px; background: var(--ink-900); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none; }
.who-name { display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; line-height: 1.2; color: var(--ink-900); }
.who-name small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.portal-content { padding: 30px 32px 64px; max-width: 1280px; width: 100%; }
.portal .card { padding: 26px; }
.portal h2 { font-size: 1.25rem; }
.portal .section-title { font-size: .7rem; font-family: var(--sans); letter-spacing: .16em; }
.side-scrim { position: fixed; inset: 0; background: rgba(7,16,28,.5); z-index: 55; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 16px; margin-bottom: 26px; }
.tile { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--text); display: block; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; overflow: hidden; }
a.tile:hover { border-color: var(--line-2); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .label { font-size: .8rem; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tile .label .icon { width: 16px; height: 16px; color: var(--red); }
.tile b { display: block; font: 400 2.3rem/1.1 var(--serif); color: var(--ink-900); margin-top: 8px; letter-spacing: -.02em; }
.tile small { color: var(--muted); font-size: .8rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .9rem; }
.bar-list .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--ivory-2); overflow: hidden; }
.bar-list .bar i { display: block; height: 100%; background: var(--ink-900); border-radius: 4px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.section-title { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 26px 0 12px; font-weight: 800; }
.section-title:first-child { margin-top: 0; }
.applicant-head { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.applicant-head img, .applicant-head .ph { width: 88px; height: 110px; object-fit: cover; border-radius: 44px 44px 12px 12px; border: 1px solid var(--line); background: var(--ivory); display: grid; place-items: center; color: var(--muted); }
.applicant-head h2 { margin: 0 0 4px; font-size: 1.7rem; }
.material { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.material:last-child { border-bottom: 0; }
.material > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--ivory-2); color: var(--red); }
.material h3 { font-family: var(--sans); font-size: 1rem; font-weight: 800; margin: 0 0 3px; letter-spacing: 0; }
.material p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.material .grow { flex: 1; min-width: 0; }

/* ---------- Printables ---------- */
.certificate { background: #fff; max-width: 840px; margin: 30px auto; padding: 56px 64px; border: 1.5px solid var(--ink-900); outline: 6px solid #fff; box-shadow: 0 0 0 7px var(--ink-900), var(--shadow-lg); position: relative; }
.certificate .cert-head { text-align: center; border-bottom: 1.5px solid var(--ink-900); padding-bottom: 20px; margin-bottom: 30px; }
.certificate .cert-head img { height: 92px; width: auto; margin: 0 auto 8px; }
.certificate .cert-head h1 { font-size: 2rem; margin: 8px 0 2px; }
.certificate .cert-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.certificate h2 { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: 1.25rem; margin-bottom: 30px; color: var(--red); }
.certificate .cert-meta { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 26px; }
.certificate .cert-body { font-size: 1.08rem; line-height: 2; text-align: justify; }
.certificate .cert-sign { display: flex; justify-content: space-between; margin-top: 70px; font-size: .95rem; }
.certificate .cert-sign div:last-child { text-align: center; }
.print-bar { max-width: 840px; margin: 22px auto 0; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 0 16px; }
.fee-doc { max-width: 900px; margin: 0 auto; background: #fff; padding: 56px; border-radius: 6px; box-shadow: var(--shadow-lg); }
.fee-doc .fd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink-900); margin-bottom: 30px; }
.fee-doc .fd-head img { height: 96px; width: auto; }
.fee-doc h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.fee-doc table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 8px; }
.fee-doc th, .fee-doc td { border: 1px solid #cfc6b6; padding: 9px 12px; text-align: left; vertical-align: top; }
.fee-doc th { background: #f3eee5; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.fee-doc td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-doc .note { font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 9px; font-size: .9rem; }
  .brand-text { display: none; }
}
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .nav, .nav-actions { display: none; }
  .menu-toggle { display: grid; }
  .brand-text { display: flex; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; }
  .sec-head, .section-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head > p, .section-head > p { justify-self: start; }
  .degree-grid { grid-template-columns: 1fr; }
  .skill-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > div, .bento .b1, .bento .b2, .bento .b3, .bento .b4, .bento .b5 { grid-column: span 2; grid-row: auto; }
  .principal { grid-template-columns: 1fr; gap: 56px; }
  .arch-frame { max-width: 360px; margin-left: 20px; }
  .steps-h { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps-h::before { display: none; }
  .course-layout, .apply-layout { grid-template-columns: 1fr; }
  .sticky-card, .apply-aside { position: static; }
  .apply-aside { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { min-height: 280px; padding: 30px 28px; }
  .auth-brand blockquote { margin-top: 60px; }
  .split, .detail-grid { grid-template-columns: 1fr; }
  .side { transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; }
  .portal-main { margin-left: 0; }
  .side-toggle { display: inline-flex; }
  .portal-top { padding: 12px 18px; }
  .portal-content { padding: 22px 18px 50px; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .section { padding: 76px 0; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .finder { padding: 22px; border-radius: 22px; }
  .finder::before { left: 22px; right: 22px; }
  .seg button { font-size: .76rem; padding: 10px 2px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 18px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .skill-grid, .grid-2, .grid-3, .grid-4, .fields, .fields-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .degree-card { padding: 26px; }
  .degree-card .mono { font-size: 6.5rem; }
  .steps-h { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; padding-top: 64px; }
  .cta-final { padding: 56px 24px; border-radius: 24px; }
  .cta-band { padding: 32px 24px; }
  .form-card, .card { padding: 22px; }
  .notice-item { grid-template-columns: 58px 1fr; gap: 14px; }
  .notice-item > .icon { display: none; }
  .who-name { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .review div { grid-template-columns: 1fr; gap: 2px; }
  .certificate { padding: 30px 22px; margin: 16px; }
  .fee-doc { padding: 24px 18px; }
  .filters .field { max-width: none; }
  .page-hero { padding: calc(var(--header-h) + 44px) 0 56px; }
  .arch-frame .badge-float { left: -10px; }
  .prog-tabs { display: flex; width: 100%; }
  .prog-tabs button { flex: 1; padding: 11px 8px; font-size: .84rem; }
  .prog-tabs .count { display: none; }
  .bento > div { padding: 26px; }
  .bento .b5 { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-auto-rows: 150px; }
}
@media print {
  .site-header, .mobile-menu, .footer, .wa-float, .side, .portal-top, .print-bar, .no-print, .skip, .marquee { display: none !important; }
  body, body.portal { background: #fff; }
  .portal-main { margin: 0; }
  .portal-content { padding: 0; max-width: none; }
  .card, .table-wrap { box-shadow: none; border-color: #ccc; }
  .certificate { margin: 0; box-shadow: none; outline: 0; border: 3px double #000; }
  .fee-doc { box-shadow: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
