/* Public website: an official-portal look. Loaded after site.css by layouts/plain only, so panels are untouched. */
:root {
    --navy: #003654;
    --blue: #01507c;
    --blue-dark: #013f68;
    --ink-bar: #012032;
    --sky: #e8f1f7;
    --amber: #ffd13f;
    --amber-dark: #e6b400;
    --ink: #222;
    --muted: #55606b;
    --line: #d5dde3;
    --bg: #fff;
    --radius: 4px;
    --shadow: 0 1px 3px rgba(0, 32, 50, .14);
    --gate-purple: #855ca6;
    --gate-orange: #ea9025;
    --gate-sky: #0a78a8;
    --gate-red: #c33b05;
    --font: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
html[data-text-size="small"] { font-size: 90%; }
html[data-text-size="large"] { font-size: 115%; }
body { font-size: 1rem; }
:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; }
.btn { border-radius: var(--radius); }
.btn-outline:hover { background: var(--sky); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; color: var(--navy); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Utility bar */
.topbar { position: relative; background: linear-gradient(90deg, #00131f, #012a42 50%, #00131f); color: #dbe7ef; font-size: .8rem; font-weight: 500; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, #e0a92c 25%, #ffe99a 50%, #e0a92c 75%, transparent); opacity: .55; }
.topbar .container { padding-top: 6px; padding-bottom: 6px; }
.topbar-info { display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-item + .topbar-item { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .18); }
.topbar-item .icon { width: 1em; height: 1em; color: #e0a92c; }
.topbar-clock time { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.topbar-live { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: clock-live 2s ease-out infinite; }
@keyframes clock-live { to { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .topbar-live { animation: none; } }
.topbar-tools { display: flex; align-items: center; gap: 2px; padding: 2px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; }
.topbar-tools button { min-width: 30px; height: 22px; padding: 0 6px; background: none; border: 0; border-radius: 99px; color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease; }
.topbar-tools button:hover, .topbar-tools button[aria-pressed="true"] { background: var(--amber); color: #111; }

/* Masthead */
.site-header { position: static; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z' fill='none' stroke='%23fff' stroke-opacity='.05'/%3E%3C/svg%3E"), radial-gradient(55% 150% at 50% 0, #01608f, transparent 70%), linear-gradient(90deg, #012032, #003654 50%, #012032); }
.site-header .container { min-height: 0; }
.site-header .masthead { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.site-header .brand { justify-self: start; }
.brand-mark { width: 74px; height: 74px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 2rem; overflow: hidden; box-shadow: 0 0 0 3px #e0a92c, 0 0 0 8px rgba(255, 209, 63, .16), 0 12px 24px -8px rgba(0, 0, 0, .6); transition: transform .3s ease; }
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.masthead-title { display: block; text-align: left; color: #fff; line-height: 1.2; }
.masthead-title:hover { text-decoration: none; }
.masthead-title strong { display: block; color: #fff; font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.masthead-title span { display: block; color: #fff; font-size: 2.2rem; font-weight: 700; line-height: 1.25; }
.masthead-title small { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 4px; color: #ffe7a3; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.masthead-title small::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, #e0a92c, transparent); }
.masthead .actions { justify-self: end; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.masthead .btn { border-radius: 99px; padding: .5em 1.1em; font-size: .84rem; white-space: nowrap; justify-content: center; }
.masthead .btn .icon { width: 1.1em; height: 1.1em; }
.masthead .btn-amber { background: linear-gradient(135deg, #ffe99a, #ffd13f 45%, #e0a92c); color: #2a1e00; }
.masthead .btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.masthead .btn-light:hover { background: #fff; color: var(--navy); }

/* Main navigation: stays in view while the page scrolls */
.nav-strip { position: sticky; top: 0; z-index: 50; background: #00131f; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7); }
.nav-strip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, #a97808, #ffe99a 30%, #d4a017 55%, #fff0b5 80%, #b8860b); }
.nav-row { position: relative; }
.nav { justify-content: center; flex-wrap: wrap; gap: 2px; padding: 3px 0; }
.nav a, .nav summary { position: relative; display: flex; align-items: center; gap: 6px; padding: .62em .72em; border-radius: 6px; color: #e8f0f5; font-weight: 600; font-size: .88rem; transition: background .2s ease, color .2s ease; }
.nav .icon { width: 1.05em; height: 1.05em; color: #e0a92c; }
.nav a:hover, .nav summary:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.active { background: rgba(255, 209, 63, .1); color: var(--amber); }
.nav > a::after, .nav-menu > a::after, .nav summary::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px; background: var(--amber); transition: left .22s ease, right .22s ease; }
.nav > a.active::after, .nav-menu > a.active::after { left: 12px; right: 12px; }
.nav .dropdown { z-index: 60; min-width: 230px; padding: 6px; border: 0; border-top: 3px solid var(--amber); border-radius: 0 0 8px 8px; box-shadow: 0 22px 40px -18px rgba(0, 32, 50, .6); }
.nav .dropdown a { color: var(--ink); font-weight: 500; }
.nav .dropdown a:hover { background: #fbf6e6; color: var(--navy); }
.nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .3); border-radius: var(--radius); }

/* Banner */
.slide { aspect-ratio: 16 / 5; overflow: hidden; }
.slide.active img { animation: banner-zoom 8s ease-out forwards; }
@keyframes banner-zoom { from { transform: scale(1); } to { transform: scale(1.035); } }
.slider-btn { width: 46px; height: 46px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); color: var(--navy); box-shadow: 0 10px 22px -10px rgba(0, 32, 50, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s ease, color .2s ease, transform .2s ease; }
.slider-btn:hover { background: var(--navy); color: var(--amber); transform: translateY(-50%) scale(1.08); }
.slider-dots { position: absolute; left: 50%; bottom: 12px; z-index: 3; display: flex; gap: 8px; transform: translateX(-50%); padding: 6px 10px; border-radius: 99px; background: rgba(0, 32, 50, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slider-dots button { position: relative; width: 34px; height: 4px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .4); cursor: pointer; }
.slider-dots button::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.slider-dots button.active::after { transform: scaleX(1); animation: banner-progress 5s linear; }
.slider:hover .slider-dots button.active::after, .slider:focus-within .slider-dots button.active::after { animation-play-state: paused; }
@keyframes banner-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slide.active img, .slider-dots button.active::after { animation: none; } }
.hero { background: var(--navy); }
.hero .container { padding-bottom: 96px; }
.hero h1 { font-weight: 700; }
.hero-panel { border-radius: var(--radius); }

/* Four coloured gateways under the banner, joined by arrow points */
.gateways { position: relative; z-index: 2; background: #fff; }
.gateways-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gateway { --from: #0a84b8; --to: #066a96; --shape: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 24px 50%); position: relative; isolation: isolate; padding: 58px 40px 26px 15%; color: #fff; transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s ease; }
.gateway:first-child { --shape: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }
.gateway:last-child { --shape: polygon(0 0, 100% 0, 100% 100%, 0 100%, 24px 50%); }
.gateway:nth-child(1) { --from: #8d62b3; --to: #684391; }
.gateway:nth-child(2) { --from: #f6a23a; --to: #e0801a; color: #1b1b1b; }
.gateway:nth-child(4) { --from: #d4450f; --to: #ad3208; }
.gateway::before, .gateway::after { content: ""; position: absolute; z-index: -1; inset: 0 -20px 0 0; clip-path: var(--shape); }
.gateway:last-child::before, .gateway:last-child::after { right: 0; }
.gateway::before { background: linear-gradient(90deg, #ffd13f, #ffe99a 50%, #ffd13f) top / 100% 3px no-repeat, radial-gradient(90% 120% at 12% 0, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(170deg, var(--from), var(--to)); transition: filter .3s ease; }
.gateway::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .3), transparent 70%); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.gateway-icon { position: absolute; left: 50%; top: -38px; margin-left: -38px; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 3px #e0a92c, 0 14px 26px -10px rgba(0, 32, 50, .6); color: var(--navy); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s ease, color .3s ease; }
.gateway-icon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: conic-gradient(#ffd13f, #fff 25%, #e0a92c 50%, #fff 75%, #ffd13f); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); opacity: 0; transition: opacity .3s ease; animation: icon-spin 3s linear infinite paused; }
.gateway-icon .icon { width: 2em; height: 2em; stroke-width: 1.6; transition: transform .3s ease; }
.gateway h2 { color: inherit; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; position: relative; display: inline-block; }
.gateway h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: currentColor; transition: width .3s ease; }
.gateway p { margin: 0 0 10px; font-size: .82rem; opacity: .85; }
.gateway ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.gateway li { transition: transform .22s ease; }
.gateway li::before { content: "\203A"; display: inline-block; width: 14px; font-weight: 700; opacity: .75; }
.gateway a { display: inline-block; padding: 2px 0; color: inherit; font-weight: 500; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .25s ease; }
.gateway a:hover { text-decoration: none; }

/* Notice strip: a floating bar with an arrow label, matching the gateways above */
.ticker { padding: 16px 0 4px; background: #fff; color: #a8300a; font-size: .93rem; font-weight: 600; }
.ticker .container { display: block; padding-top: 0; padding-bottom: 0; }
.ticker-bar { display: flex; align-items: stretch; overflow: hidden; background: linear-gradient(90deg, #fff, #fffaf0); border: 1px solid #ecdca8; border-radius: 10px; box-shadow: 0 16px 30px -22px rgba(0, 54, 84, .6); }
.ticker-label { display: flex; align-items: center; gap: 9px; padding: 10px 30px 10px 16px; background: linear-gradient(115deg, var(--ink-bar), var(--blue)); color: #fff; border-radius: 0; font-size: .8rem; letter-spacing: .7px; clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%); }
.ticker-label .icon { width: 1.25em; height: 1.25em; color: var(--amber); transform-origin: 50% 10%; animation: bell-ring 4s ease-in-out infinite; }
.ticker-label span { font-size: .78rem; letter-spacing: 0; text-transform: none; color: #ffe99a; }
@keyframes bell-ring { 0%, 76%, 100% { rotate: 0deg; } 80% { rotate: 14deg; } 86% { rotate: -11deg; } 92% { rotate: 6deg; } }
.ticker-track { align-self: center; padding: 9px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track span { padding-left: 25%; }
.ticker-track a { color: #a8300a; transition: color .2s ease; }
.ticker-track a:not(:last-child)::after { content: "\25C6"; margin-left: 3em; color: #d9a521; font-size: .6em; vertical-align: middle; }
.ticker-track a:hover { color: var(--navy); }
.ticker:hover .ticker-track span { animation-play-state: paused; }
.ticker-all { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 18px; border-left: 1px solid #ecdca8; background: #fbf3d9; color: var(--navy); font-size: .85rem; font-weight: 700; transition: background .2s ease, color .2s ease; }
.ticker-all:hover { background: var(--navy); color: var(--amber); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
    .ticker-label .icon, .gateway-icon::after { animation: none; }
}

/* Section headings */
.section { padding: 48px 0; }

/* Welcome and notice board */
.welcome-section { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z' fill='none' stroke='%23003654' stroke-opacity='.05'/%3E%3C/svg%3E"), linear-gradient(180deg, #fff, #eef3f7 120px); }
.welcome-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.welcome-grid > div:first-child { display: flex; flex-direction: column; }

/* Notice board */
.board { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); transition: transform .3s ease, box-shadow .3s ease; }
.board-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: var(--navy); border-bottom: 3px solid var(--amber); }
.board-head-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--navy); }
.board-head h2, .board-head h3 { color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.2; margin: 0; }
.board-head span[lang] { display: block; color: #cfe0ec; font-size: .8rem; line-height: 1.3; }
.board-head a { margin-left: auto; color: var(--amber); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.notice-list { flex: 1; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.notice-item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 15px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); transition: background .2s ease, border-color .2s ease; }
.notice-item:last-child { border-bottom: 0; }
.notice-item:nth-child(even) { background: #f8fafc; }
.notice-item:hover { background: #fbf6e6; border-left-color: var(--amber); }
.notice-item a { color: var(--navy); font-size: .95rem; font-weight: 600; line-height: 1.35; transition: color .2s ease; }
.notice-date { flex: none; width: 60px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.notice-date b { display: block; color: var(--navy); font-size: 1.25rem; line-height: 1.35; }
.notice-date span { display: block; background: var(--blue); color: #fff; font-size: .62rem; font-weight: 700; text-transform: uppercase; line-height: 1.6; }
.tag-new { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; vertical-align: middle; animation: tag-pulse 1.8s ease-in-out infinite; }
@keyframes tag-pulse { 50% { opacity: .55; } }
.date-badge { border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .tag-new { animation: none; } .notice-item { transition: none; } }

/* At a glance */
.glance { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z' fill='none' stroke='%23003654' stroke-opacity='.09'/%3E%3C/svg%3E"), linear-gradient(135deg, #ffdc5c, #ffcb2e 55%, #f6b91f); border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); }
.glance .container { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.glance-panel { padding: 0 24px 22px; background: var(--navy); color: #fff; border-radius: 8px; box-shadow: 0 22px 40px -22px rgba(60, 40, 0, .7); }
.glance-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 -24px 18px; padding: 14px 24px; background: #00263c; border-bottom: 3px solid var(--amber); border-radius: 8px 8px 0 0; }
.glance-panel-head h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0; }
.glance-panel-head span { color: #ffe7a3; font-size: .85rem; font-weight: 600; }
.admission-steps { counter-reset: step; list-style: none; margin: 0 0 18px; padding: 0; }
.admission-steps li { position: relative; counter-increment: step; display: flex; align-items: center; gap: 14px; padding-bottom: 14px; font-size: .95rem; font-weight: 500; }
.admission-steps li:last-child { padding-bottom: 0; }
.admission-steps li::before { content: counter(step); flex: none; position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--navy); font-size: .88rem; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.admission-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: rgba(255, 209, 63, .4); }
.glance-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; color: var(--navy); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.glance-kicker::before { content: ""; width: 34px; height: 3px; background: var(--navy); }
.glance-kicker span { letter-spacing: 0; text-transform: none; }
.glance h2 { color: var(--navy); font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 18px; }
.glance-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: center; }
.glance-stats > div { padding: 18px 10px 14px; background: #fff; border-top: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 16px 28px -20px rgba(60, 40, 0, .75); transition: transform .25s ease, box-shadow .25s ease; }
.glance-stats i { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 50%; background: var(--navy); color: var(--amber); transition: background .25s ease, color .25s ease; }
.glance-stats b { display: block; color: var(--navy); font-size: 2.3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.glance-stats strong { display: block; margin-top: 2px; color: var(--ink); font-size: .84rem; font-weight: 700; }
.glance-stats span { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .glance-stats > div:hover { transform: translateY(-5px); box-shadow: 0 24px 34px -20px rgba(60, 40, 0, .9); }
    .glance-stats > div:hover i { background: var(--amber); color: var(--navy); }
    .admission-steps li:hover::before { transform: scale(1.12); box-shadow: 0 0 0 4px rgba(255, 209, 63, .25); }
}

/* Course carousel */
.courses-band { background: #fff; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.band-head h2 { color: var(--navy); font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.band-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; color: var(--gate-red); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.band-kicker::before { content: ""; width: 34px; height: 3px; background: var(--amber); }
.band-kicker span { letter-spacing: 0; text-transform: none; }
.band-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.carousel-arrows { display: flex; gap: 6px; flex: none; }
.carousel-arrows button { width: 38px; height: 38px; border: 1px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.carousel-arrows button:hover { background: var(--navy); color: var(--amber); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 0 14px; }
.carousel-track::-webkit-scrollbar { display: none; }
.course-tile { scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.course-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--navy); border-bottom: 3px solid var(--amber); color: #ffe7a3; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.course-tile-head .icon { width: 1.3em; height: 1.3em; color: var(--amber); }
.course-tile-body { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.course-tile h3 { min-height: 2.6em; margin: 0 0 12px; color: var(--navy); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.course-tile dl { margin: auto 0 0; font-size: .84rem; }
.course-tile dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.course-tile dt { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.course-tile dt .icon { width: 1em; height: 1em; color: var(--blue); }
.course-tile dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.course-tile-foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.course-tile-foot a { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 6px; color: var(--navy); font-size: .85rem; font-weight: 700; transition: background .2s ease, color .2s ease; }
.course-tile-foot a:hover { text-decoration: none; background: var(--sky); }
.course-tile-foot a + a { background: #fbf3d9; border-left: 1px solid var(--line); }
.course-tile-foot a + a:hover { background: var(--navy); color: var(--amber); }
.course-tile-foot .icon { width: 1em; height: 1em; transition: transform .2s ease; }
.course-tile-foot a:hover .icon { transform: translateX(3px); }
.carousel-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.carousel-progress span { display: block; width: 25%; height: 100%; background: linear-gradient(90deg, var(--navy), #e0a92c); border-radius: 3px; transition: margin-left .15s linear; }

/* Course list */
.course-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); }
.course-toolbar .cat-filter { margin: 0; gap: 6px; }
.course-toolbar .cat-filter a { padding: .42em .95em; background: #f3f6f9; font-size: .88rem; transition: background .2s ease, color .2s ease; }
.course-toolbar .cat-filter a:hover { background: #fbf3d9; border-color: var(--line); color: var(--navy); }
.course-toolbar .cat-filter a.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: inset 0 -3px 0 var(--amber); }
.course-search { position: relative; flex: 0 1 300px; display: block; }
.course-search[hidden] { display: none; }
.course-search .icon { position: absolute; left: 12px; top: 50%; margin-top: -.6em; width: 1.2em; height: 1.2em; color: var(--muted); }
.course-search input { width: 100%; padding: .55em .8em .55em 38px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: var(--radius); color: var(--ink); font: inherit; font-size: .9rem; }
.course-search input:focus { outline: 0; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 209, 63, .45); }
.course-count { margin: 14px 2px 12px; color: var(--muted); font-size: .9rem; }
.course-count b { color: var(--navy); }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.course-grid .course-tile[hidden] { display: none; }
.course-none { padding: 30px; background: #fff; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; }
.course-none[hidden] { display: none; }

/* Course detail */
.course-detail { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.course-main { display: grid; gap: 18px; min-width: 0; }
.course-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); }
.course-facts > div { padding: 16px 12px; background: #fff; text-align: center; }
.course-facts i { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 50%; background: var(--navy); color: var(--amber); }
.course-facts span { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; }
.course-facts b { display: block; color: var(--navy); font-size: .96rem; font-weight: 700; line-height: 1.3; }
.course-lead { color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.course-soon { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fbf6e6; border: 1px solid #ecdca8; border-left: 4px solid #e0a92c; border-radius: 6px; }
.course-soon .icon { width: 1.7em; height: 1.7em; margin-top: 2px; color: #a97808; }
.course-soon strong { color: var(--navy); }
.course-soon p { margin: 2px 0 0; font-size: .94rem; }
.course-side { position: sticky; top: 66px; display: grid; gap: 18px; min-width: 0; }
.course-side .board-body { display: grid; gap: 10px; }
.course-side .board-body p { margin: 0; font-size: .92rem; }
.course-side .btn { justify-content: center; }
.course-main .board-body { padding: 18px 20px; }
.center-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.center-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.center-list li:last-child { border-bottom: 0; }
.center-list b { color: var(--navy); font-weight: 600; }
.center-list span { color: var(--muted); }
.course-related-head { margin: 34px 0 16px; }

/* Admission form */
.steps { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 0 0 20px; padding: 14px 8px 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); }
.step { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0; background: none; border-radius: 0; color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; }
.step:not(:last-child)::after { content: ""; position: absolute; left: calc(50% + 19px); right: calc(-50% + 19px); top: 15px; height: 2px; background: var(--line); }
.step b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eef2f6; color: var(--muted); font-size: .84rem; }
.step.now, .step.done { background: none; }
.step.now { color: var(--navy); font-weight: 700; }
.step.now b { background: var(--navy); color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 209, 63, .45); }
.step.done { color: var(--navy); }
.step.done b { background: var(--green); color: #fff; }
.step.done:not(:last-child)::after { background: var(--green); }
.form-errors { margin-bottom: 18px; padding: 14px 18px; background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid var(--red); border-radius: 6px; color: #7f1d1d; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; font-size: .92rem; }
.form-errors a { color: #991b1b; text-decoration: underline; }
.form-notice { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding: 14px 18px; background: #fbf6e6; border: 1px solid #ecdca8; border-left: 4px solid #e0a92c; border-radius: 6px; }
.form-notice .icon { width: 1.6em; height: 1.6em; color: #a97808; }
.form-notice strong { color: var(--navy); }
.form-notice p { margin: 2px 0 0; font-size: .94rem; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.apply-form { display: grid; gap: 18px; min-width: 0; }
.board-head-step { font-size: 1.1rem; font-weight: 800; }
.apply-form .board { overflow: visible; }
.apply-form .board-head { border-radius: 7px 7px 0 0; }
.apply-form .board:hover { transform: none; }
.apply-form .board-body { padding: 20px 20px 6px; }
.apply-form .form-grid { gap: 0 18px; }
.apply-form .field { margin-bottom: 18px; }
.apply-form .field > label { font-size: .88rem; }
.apply-form .field input { padding: .7em .85em; border: 1px solid #b6c3cf; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.apply-form .field input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 209, 63, .5); }
.apply-form .ss-btn { border-color: #b6c3cf; }
.apply-form .ss-btn:disabled { background: #eef2f6; color: var(--muted); }
.apply-form .field.has-error input, .apply-form .field.has-error .ss-btn { border-color: var(--red); background: #fff8f8; }
.apply-form .field.is-valid input, .apply-form .field.is-valid .ss-btn { border-color: var(--green); }
.apply-form .field-error { position: relative; padding-left: 20px; }
.apply-form .field-error::before { content: "!"; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; }
.apply-form .field.has-error .hint { display: none; }
.apply-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); }
.apply-submit .btn { padding: .8em 1.5em; font-size: 1.02rem; }
.apply-submit .btn:disabled { opacity: .65; cursor: wait; }
.apply-submit p { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: .88rem; }
.apply-side { position: sticky; top: 66px; display: grid; gap: 18px; min-width: 0; }
.apply-side .board:hover { transform: none; }
.apply-summary { margin: 0; font-size: .9rem; }
.apply-summary div { padding: 9px 18px; border-bottom: 1px solid var(--line); }
.apply-summary div:last-child { border-bottom: 0; }
.apply-summary dt { color: var(--muted); font-size: .76rem; font-weight: 600; }
.apply-summary dd { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.35; }
.apply-summary dd.empty { color: #94a3b8; font-weight: 500; }
.apply-checklist { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.apply-checklist li { position: relative; padding: 3px 0 3px 24px; }
.apply-checklist li::before { content: "\2713"; position: absolute; left: 2px; color: #b8860b; font-weight: 800; }
.apply-login { margin: 0; padding: 12px 16px; background: #fff; border: 1px dashed #c8d6ee; border-radius: 8px; color: var(--muted); font-size: .85rem; line-height: 1.5; }

/* Downloads */
.doc-board { margin-bottom: 20px; }
.doc-board .board-head h2 { color: #fff; }
.doc-board:hover { transform: none; }
.doc-board .dl-wrap { border: 0; border-radius: 0; }
.doc-board .dl-table th { background: #eef2f6; color: var(--navy); font-size: .84rem; }
.doc-board .dl-table td { border-top: 1px solid var(--line); }
.doc-board .dl-table tbody tr:nth-child(even) td { background: #f8fafc; }
.doc-board .dl-table tbody tr:hover td { background: #fbf6e6; }
.doc-board .dl-act { width: 230px; white-space: nowrap; }
.doc-type { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 3px; background: var(--gate-red); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.doc-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: #fff; font-size: .84rem; font-weight: 600; transition: background .2s ease, color .2s ease; }
.doc-btn:hover { background: #00263c; color: var(--amber); text-decoration: none; }
.doc-btn .icon { width: 1em; height: 1em; }
.doc-btn-save { background: #fff; color: var(--navy); }
.doc-btn-save:hover { background: #fbf3d9; color: var(--navy); }

/* News */
.news-list { display: grid; gap: 16px; min-width: 0; }
.news-card { display: flex; gap: 18px; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); transition: border-color .2s ease, box-shadow .2s ease; }
.news-card:hover { border-left-color: var(--amber); box-shadow: 0 16px 28px -20px rgba(0, 54, 84, .55); }
.news-thumb { flex: none; width: 190px; height: 130px; overflow: hidden; border-radius: 6px; background: var(--sky); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.news-meta .icon { width: 1em; height: 1em; color: #b8860b; }
.news-card h2 { margin: 0 0 4px; font-size: 1.14rem; font-weight: 700; }
.news-card h2 a { color: var(--navy); }
.news-card p:not(.news-meta) { margin: 0 0 6px; color: var(--ink); font-size: .94rem; line-height: 1.5; }
.news-more { display: inline-flex; align-items: center; gap: 5px; color: var(--gate-red); font-size: .88rem; font-weight: 700; }
.news-more .icon { width: 1em; height: 1em; }
.news-article { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; box-shadow: 0 18px 40px -28px rgba(0, 54, 84, .5); }
.news-article > img { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-bottom: 3px solid var(--amber); }
.news-article-body { padding: 22px 28px 8px; }
.news-article .news-meta { flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.news-kicker { margin-right: 8px; padding: 2px 10px; border-radius: 3px; background: var(--navy); color: var(--amber); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.news-kicker span { letter-spacing: 0; }
.news-text { font-size: 1.04rem; line-height: 1.8; }
.news-article-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 28px; margin-top: 14px; background: #f8fafc; border-top: 1px solid var(--line); }
.course-side .notice-item { padding: 10px 14px; gap: 12px; }
.course-side .notice-item a { font-size: .9rem; }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); }

/* Gallery */
.gallery-toolbar { margin-bottom: 16px; }
.gallery-toolbar[hidden] { display: none; }
.gallery-toolbar .course-count { margin: 0; }
.gallery-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-tile { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-bottom: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gallery-section { margin-bottom: 30px; }
.gallery-section[hidden] { display: none; }
.gallery-section:last-of-type { margin-bottom: 0; }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 16px; background: var(--navy); border-bottom: 3px solid var(--amber); border-radius: 8px 8px 0 0; }
.gallery-head h2 { margin: 0; color: #fff; font-size: 1.2rem; font-weight: 700; }
.gallery-head h2 span { margin-left: 6px; color: #ffe7a3; font-size: .9rem; font-weight: 600; }
.gallery-head > span { flex: none; color: #cfe0ec; font-size: .84rem; font-weight: 600; }
.gallery-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery-tile span { display: block; padding: 9px 12px 10px; line-height: 1.3; }
.gallery-view { width: min(980px, 94vw); padding: 0; overflow: visible; background: none; border: 0; }
.gallery-view::backdrop { background: rgba(0, 19, 31, .88); }
.gallery-view figure { margin: 0; overflow: hidden; background: #fff; border-bottom: 3px solid var(--amber); border-radius: 8px; }
.gallery-view img { display: block; width: 100%; max-height: 76vh; object-fit: contain; background: #00131f; }
.gallery-view figcaption { padding: 10px 16px; color: var(--navy); font-weight: 700; }
.gallery-close, .gallery-nav { position: absolute; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(0, 54, 84, .85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.gallery-close { right: 10px; top: 10px; }
.gallery-nav { top: 50%; margin-top: -22px; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-close:hover, .gallery-nav:hover { background: var(--amber); color: var(--navy); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .gallery-tile:hover { transform: translateY(-4px); border-bottom-color: var(--amber); box-shadow: 0 18px 28px -18px rgba(0, 54, 84, .6); }
    .gallery-tile:hover img { transform: scale(1.05); }
}

/* Sign-in page */
.login-center-mark { flex: none; width: 46px; height: 46px; font-size: 1.2rem; box-shadow: 0 0 0 2px #e0a92c; }
.login-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.login-label a { font-size: .8rem; font-weight: 600; }
.login-label label { display: block; margin-bottom: 5px; color: var(--navy); font-size: .88rem; font-weight: 600; }
.pw-box { position: relative; }
.pw-box input { padding-right: 70px !important; }
.pw-box button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 5px 10px; border: 0; border-radius: var(--radius); background: var(--sky); color: var(--navy); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.login-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: .88rem; }

/* Number picture on public forms */
.captcha-field .captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.captcha-row img { display: block; border: 1px solid #b6c3cf; border-radius: var(--radius); }
.captcha-row button { width: 44px; height: 44px; flex: none; border: 1px solid var(--navy); border-radius: var(--radius); background: #fff; color: var(--navy); font-size: 1.3rem; cursor: pointer; }
.captcha-row button:hover { background: var(--navy); color: var(--amber); }
.captcha-row input { flex: 1 1 130px; max-width: 200px; letter-spacing: .15em; }
.apply-form textarea { padding: .7em .85em; border: 1px solid #b6c3cf; }
.apply-form textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 209, 63, .5); }
.apply-form .field.has-error textarea { border-color: var(--red); background: #fff8f8; }
.apply-form .field.is-valid textarea { border-color: var(--green); }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.contact-list li { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { width: 1.2em; height: 1.2em; margin-top: 2px; color: #b8860b; }
.contact-list small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }

/* OTP and create login steps */
.otp-board:hover { transform: none; }
.otp-board .board-body { padding: 22px 24px 24px; }
.otp-board .apply-form { display: block; }
.otp-board .btn-amber { padding: .75em 1.4em; }
.otp-note { margin: 0 0 16px; }
.otp-input { max-width: 240px; font-size: 1.5rem !important; font-weight: 700; letter-spacing: .35em; text-align: center; }
.otp-resend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.otp-done { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 9px 12px; background: #ecfdf3; border: 1px solid #a7f3d0; border-radius: 6px; color: #065f46; font-weight: 600; font-size: .92rem; }
.login-as { margin: 0 0 16px; }
.login-as dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.login-as dd { margin: 0; color: var(--navy); font-weight: 700; word-break: break-word; }
.login-as dd span { color: var(--muted); font-weight: 500; }
.pw-check { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 0 0 16px; padding: 0; color: var(--muted); font-size: .84rem; }
.pw-check[hidden] { display: none; }
.pw-check li { position: relative; padding-left: 20px; }
.pw-check li::before { content: "\2022"; position: absolute; left: 5px; }
.pw-check li.ok { color: var(--green); font-weight: 600; }
.pw-check li.ok::before { content: "\2713"; left: 2px; font-weight: 800; }

/* Public verify pages */
.verify-main { display: grid; gap: 16px; min-width: 0; }
.verify-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.verify-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-bottom: 3px solid transparent; background: #f3f6f9; color: var(--muted); font-size: .92rem; font-weight: 700; transition: background .2s ease, color .2s ease; }
.verify-tabs a:hover { background: #fbf3d9; color: var(--navy); text-decoration: none; }
.verify-tabs a.active { background: #fff; border-bottom-color: var(--navy); color: var(--navy); }
.verify-tabs .icon { width: 1.1em; height: 1.1em; }
.verify-board:hover { transform: none; }
.verify-form label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .88rem; font-weight: 600; }
.verify-form > div { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-form input { flex: 1 1 220px; min-width: 0; padding: .7em .85em; border: 1px solid #b6c3cf; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.verify-form input::placeholder { font-weight: 400; color: #94a3b8; }
.verify-form input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 209, 63, .5); }
.verify-form .btn { justify-content: center; }
.verify-form .hint { display: block; margin-top: 6px; }
.verify-form .field.captcha-field { display: block; margin: 14px 0 0; }
.verify-form .captcha-row input { max-width: 200px; }
.verify-result { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); }
.verify-result.is-no { border-left-color: var(--red); }
.verify-result > div { flex: 1; min-width: 0; }
.verify-seal { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.verify-result.is-no .verify-seal { background: var(--red); }
.verify-seal .icon { width: 1.6em; height: 1.6em; }
.verify-tag { display: inline-block; padding: 2px 10px; border-radius: 3px; background: #dcfce7; color: #166534; font-size: .78rem; font-weight: 700; }
.verify-result h2 { margin: 6px 0 4px; color: var(--navy); font-size: 1.3rem; font-weight: 700; }
.verify-result p { margin: 0; color: var(--ink); font-size: .95rem; }
.verify-result dl { margin: 12px 0 0; font-size: .92rem; }
.verify-result dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); }
.verify-result dt { color: var(--muted); }
.verify-result dd { margin: 0; color: var(--navy); font-weight: 600; text-align: right; }

/* Welcome, student zone and links */
.welcome-lead { padding: 22px 26px 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 54, 84, .06); }
.welcome-lead h1 { color: var(--navy); font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 12px; }
.welcome-lead h1 span { display: block; color: var(--gate-red); font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.welcome-lead h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 10px; background: linear-gradient(90deg, var(--amber), #e0a92c); }
.welcome-lead p { font-size: 1rem; }
.zone-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zone-actions .btn { justify-content: center; }
.services-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.board-body { padding: 16px 18px; font-size: .93rem; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list li:nth-child(even) { background: #f8fafc; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 18px 9px 15px; border-left: 3px solid transparent; color: var(--navy); font-size: .9rem; font-weight: 500; line-height: 1.35; transition: background .2s ease, border-color .2s ease, padding .2s ease; }
.link-list a:hover { background: #fbf6e6; border-left-color: var(--amber); text-decoration: none; }
.link-list .icon { width: 1em; height: 1em; color: var(--muted); transition: transform .2s ease, color .2s ease; }

/* Inner pages: banner with the title, breadcrumb strip, floating sheet on a soft background */
.page-band { position: relative; padding: 54px 0; background: var(--navy) url(../images/page-banner.png) right center / cover no-repeat; text-align: center; }
.page-band h1 { display: inline-block; max-width: 44vw; color: #fff; font-size: 2.1rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 20, 32, .55); }
.page-band h1::after { content: ""; display: block; width: 64%; height: 3px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.crumb-bar { position: relative; z-index: 30; display: flex; align-items: stretch; min-height: 42px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.crumb-bar .container { display: flex; align-items: center; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--ink); font-weight: 600; }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--navy); }
.crumbs .icon { width: 1.05em; height: 1.05em; }
.crumbs i { color: var(--muted); font-style: normal; }
.sub-menu { position: relative; flex: none; }
.sub-menu summary { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 42px; padding: 0 26px 0 20px; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; list-style: none; cursor: pointer; }
.sub-menu summary::-webkit-details-marker { display: none; }
.sub-menu summary .icon { color: var(--amber); }
.sub-menu > div { position: absolute; left: 0; top: 100%; min-width: 260px; padding: 6px; background: #fff; border-top: 3px solid var(--amber); border-radius: 0 0 8px 8px; box-shadow: 0 22px 40px -18px rgba(0, 32, 50, .6); }
.sub-menu a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.sub-menu a:hover { background: #fbf6e6; color: var(--navy); text-decoration: none; }
.sub-menu a.active { background: var(--navy); color: #fff; }
.page-body { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z' fill='none' stroke='%23003654' stroke-opacity='.05'/%3E%3C/svg%3E"), linear-gradient(180deg, #fff, #eef3f7 120px); }
.page-content { padding: 30px 20px 56px; }
.page-body .page-sheet { padding: 32px 40px 34px; border-top: 3px solid var(--navy); border-radius: 10px; box-shadow: 0 18px 40px -28px rgba(0, 54, 84, .5); }
.page-sheet > h2:first-child { display: none; }
.page-sheet > :first-child { margin-top: 0; }
.page-sheet > :last-child { margin-bottom: 0; }
.page-sheet h3 { display: flex; align-items: center; gap: 10px; margin: 1.5em 0 .55em; padding-bottom: 7px; border-bottom: 1px solid var(--line); font-size: 1.14rem; font-weight: 700; }
.page-sheet h3::before { content: ""; flex: none; width: 4px; height: 1.05em; border-radius: 2px; background: var(--amber); }
.page-sheet ul { list-style: none; margin: 0 0 1em; padding: 0; }
.page-sheet ul li { position: relative; padding: 2px 0 2px 26px; }
.page-sheet ul li::before { content: "\2713"; position: absolute; left: 3px; top: 2px; color: #b8860b; font-weight: 800; }

/* Rounded panels from site.css, squared up to match */
.card, .table-wrap, .dl-wrap, .auth-card, fieldset, .alert, .reg-note, .reg-foot { border-radius: var(--radius); }
.cat-filter a, .badge, .step, .page-link, .dl-btn { border-radius: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input[type=url], input:not([type]), select, textarea, input[type=file], .ss-btn, .ss-panel, .ss-search { border-radius: var(--radius) !important; }
.reg-shell { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.reg-side { background: var(--navy); }
.reg-group span { background: var(--blue); }
.ss-item[aria-selected="true"] { color: var(--blue); }

/* Footer */
.site-footer { position: relative; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z' fill='none' stroke='%23fff' stroke-opacity='.04'/%3E%3C/svg%3E"), radial-gradient(60% 90% at 50% 0, #01507c, transparent 70%), linear-gradient(90deg, #00131f, #012a42 50%, #00131f); color: #cfe0ec; font-size: .92rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #a97808, #ffe99a 30%, #d4a017 55%, #fff0b5 80%, #b8860b); }
.site-footer .container { display: block; padding-top: 0; padding-bottom: 0; }
.site-footer a { color: #dbe7ef; transition: color .2s ease, transform .2s ease; }
.site-footer a:hover { color: var(--amber); text-decoration: none; }
.footer-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer a.footer-brand-name { display: flex; align-items: center; gap: 18px; color: #fff; }
.footer-brand-name strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.25; }
.footer-brand-name em { display: block; color: #ffe7a3; font-size: 1.2rem; font-style: normal; font-weight: 700; line-height: 1.3; }
.footer-brand-side { display: flex; align-items: center; gap: 18px; }
.footer-brand-side p { margin: 0; color: #ffe7a3; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a.btn, .site-footer a.btn:hover { display: inline-flex; padding: .5em 1.1em; color: #1b1b1b; white-space: nowrap; }
.footer-brand-side .btn .icon { width: 1em; height: 1em; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 26px 0 30px; }
.site-footer h4 { position: relative; margin-bottom: 14px; padding-bottom: 8px; color: #fff; font-size: 1.02rem; font-weight: 700; }
.site-footer h4 span { color: #ffe7a3; font-size: .8rem; font-weight: 600; margin-left: 4px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--amber); }
.footer-columns > div:not(.footer-contact) a { padding: 3px 0; }
.footer-columns > div:not(.footer-contact) a::before { content: "\203A"; display: inline-block; width: 13px; color: #e0a92c; font-weight: 700; }
.footer-contact a, .footer-contact p { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 4px 0; word-break: break-word; }
.footer-contact .icon { width: 1.1em; height: 1.1em; margin-top: .2em; color: #e0a92c; }
.footer-bottom { padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .28); color: #b9cbd8; font-size: .82rem; text-align: left; }
.footer-bottom a { flex: none; white-space: nowrap; }
.footer-bottom .container { flex-wrap: wrap; }
.site-footer a.footer-credit { display: inline; color: inherit; font-weight: 400; }
.site-footer a.footer-credit:hover { color: #fff; text-decoration: underline; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; padding-bottom: 11px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .footer-columns > div a:hover { transform: translateX(4px); }
}

/* Hover effects: mouse devices only, and never when motion is reduced */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .gateway:hover { z-index: 2; transform: translateY(-6px); filter: drop-shadow(0 16px 18px rgba(0, 32, 50, .38)); }
    .gateway:hover::after { opacity: 1; }
    .gateways-grid:hover .gateway:not(:hover)::before { filter: saturate(.72) brightness(.9); }
    .gateway:hover .gateway-icon { transform: translateY(-6px) scale(1.06); background: var(--to); color: #fff; }
    .gateway:hover .gateway-icon::after { opacity: 1; animation-play-state: running; }
    .gateway:hover .gateway-icon .icon { transform: scale(1.12); }
    .gateway:hover h2::after { width: 100%; }
    .gateway:hover li { transform: translateX(5px); }
    .gateway li:nth-child(2) { transition-delay: .04s; }
    .gateway li:nth-child(3) { transition-delay: .08s; }
    .gateway a:hover { background-size: 100% 1px; }

    .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(0, 32, 50, .6); }
    .btn:hover::after { left: 130%; }
    .nav > a:hover::after, .nav-menu > a:hover::after, .nav summary:hover::after { left: 12px; right: 12px; }

    .board:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(0, 54, 84, .5); }
    .board:hover .board-head-icon .icon { animation: icon-swing .7s ease; }
    .notice-item:hover .notice-date { transform: scale(1.07); border-color: var(--amber); box-shadow: 0 6px 12px -8px rgba(0, 32, 50, .5); }
    .notice-item:hover a { color: var(--gate-red); }
    .link-list a:hover { padding-left: 21px; }
    .link-list a:hover .icon { color: var(--gate-red); transform: translate(2px, -2px); }

    .course-tile:hover { transform: translateY(-5px); border-color: #e0a92c; box-shadow: 0 18px 28px -18px rgba(0, 54, 84, .55); }
}
@keyframes icon-spin { to { rotate: 360deg; } }
@keyframes icon-swing { 25% { rotate: 14deg; } 50% { rotate: -11deg; } 75% { rotate: 6deg; } }

@media print { .nav-strip { display: none !important; } }

/* High contrast: every surface black, text white, links yellow */
html[data-contrast="high"] *:not(img) { background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
html[data-contrast="high"] a, html[data-contrast="high"] a * { color: #ffe600 !important; }
html[data-contrast="high"] .btn { border: 1px solid #ffe600; }
html[data-contrast="high"] .gateway::before, html[data-contrast="high"] .gateway::after, html[data-contrast="high"] .btn::after { display: none; }

@media (max-width: 960px) {
    .masthead .actions { flex-direction: column; flex-wrap: nowrap; }
    .masthead-title strong { font-size: 1.5rem; }
    .masthead-title span { font-size: 1.83rem; }
    .gateways-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
    .gateway { padding-left: 28px; padding-right: 28px; }
    .gateway, .gateway:first-child, .gateway:last-child { --shape: none; }
    .gateway::before, .gateway::after { right: 0; }
    .gateway:nth-child(n+3) { padding-top: 58px; }
    .welcome-grid, .glance .container { grid-template-columns: 1fr; gap: 28px; }
    .carousel-track { grid-auto-columns: calc((100% - 16px) / 2); }
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-board { grid-template-columns: repeat(3, 1fr); }
    .course-detail, .apply-layout { grid-template-columns: 1fr; }
    .apply-side { position: static; }
    .course-side { position: static; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .gateways-grid { grid-template-columns: 1fr; }
    .gateway, .gateway:nth-child(n+3) { padding: 22px 96px 20px 22px; }
    .gateway-icon { top: 18px; left: auto; right: 22px; margin-left: 0; width: 60px; height: 60px; }
    .gateway-icon .icon { width: 1.6em; height: 1.6em; }
    .services-grid { grid-template-columns: 1fr; }
    .site-header .masthead { grid-template-columns: auto 1fr; gap: 12px; }
    .masthead .actions { flex-direction: row; }
    .site-header .brand { grid-row: 1; }
    .brand-mark { width: 56px; height: 56px; font-size: 1.5rem; }
    .masthead-title small { justify-content: flex-start; font-size: .64rem; letter-spacing: .08em; }
    .masthead-title small::after { display: none; }
    .masthead-title strong { font-size: min(3.95vw, 1.22rem); white-space: nowrap; }
    .masthead-title span { font-size: min(4.9vw, 1.49rem); white-space: nowrap; }
    .masthead .actions { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
    .site-header + .nav-strip .nav-row { padding-top: 6px; padding-bottom: 6px; }
    .nav-toggle { width: 100%; background: none; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; max-height: calc(100vh - 60px); overflow-y: auto; background: #00131f; border: 0; padding: 8px 20px; }
    .nav .dropdown { background: none; }
    .nav .dropdown a { color: #fff; }
    .slide { aspect-ratio: 16 / 7; }
    .page-band { padding: 34px 0; background-image: linear-gradient(rgba(0, 38, 60, .72), rgba(0, 38, 60, .72)), url(../images/page-banner.png); }
    .page-band h1 { max-width: none; font-size: 1.6rem; }
    .page-body .page-sheet { padding: 20px 18px 22px; }
    .sub-menu summary { padding: 0 14px; font-size: 0; gap: 0; }
    .sub-menu summary .icon { font-size: 1.1rem; }
    .slider-btn { display: none; }
    .ticker-all, .ticker-label span { display: none; }
    .topbar .container { row-gap: 6px; }
    .topbar-info { justify-content: center; }
    .topbar-contact { display: none !important; }
    .ticker-label { padding-right: 24px; }
    .carousel-track { grid-auto-columns: 82%; }
    .band-head { flex-wrap: wrap; align-items: center; }
    .course-grid { grid-template-columns: 1fr; }
    .verify-result { flex-direction: column; gap: 10px; padding: 16px; }
    .verify-form .btn { width: 100%; }
    .gallery-board { grid-template-columns: 1fr 1fr; gap: 10px; }
    .news-card { flex-direction: column; gap: 10px; }
    .news-thumb { width: 100%; height: 160px; }
    .doc-board .dl-table thead { display: none; }
    .doc-board .dl-table, .doc-board .dl-table tbody, .doc-board .dl-table tr, .doc-board .dl-table td { display: block; width: 100%; }
    .doc-board .dl-table tr { padding: 10px 14px; border-top: 1px solid var(--line); }
    .doc-board .dl-table td { padding: 2px 0; border: 0; background: none !important; text-align: left !important; }
    .doc-board .dl-table td.dl-no { display: none; }
    .doc-board .dl-act { padding-top: 8px !important; }
    .course-facts { grid-template-columns: 1fr 1fr; }
    .pw-check { grid-template-columns: 1fr; }
    .otp-board .btn-amber { width: 100%; justify-content: center; }
    .otp-input { max-width: none; }
    .steps { padding: 10px 2px 8px; }
    .step { font-size: 0; gap: 0; }
    .step.now { font-size: .72rem; gap: 3px; }
    .step b { width: 26px; height: 26px; font-size: .78rem; }
    .step:not(:last-child)::after { left: calc(50% + 15px); right: calc(-50% + 15px); top: 13px; }
    .apply-submit .btn { width: 100%; justify-content: center; }
    .apply-form .form-grid { display: block; }
    .course-search { flex-basis: 100%; }
    .glance-stats { gap: 8px; }
    .glance-stats > div { padding: 14px 4px 10px; }
    .glance-stats b { font-size: 1.7rem; }
    .glance-stats strong { font-size: .76rem; }
    .footer-brand, .footer-brand-side { flex-direction: column; align-items: flex-start; }
    .footer-columns { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-brand-name strong { font-size: 1.15rem; }
    .footer-brand-name em { font-size: 1.05rem; }
}
