/* Goryeo University — Kazakh-style theme: sky blue + steppe gold, koshkar-muiz ornament, shanyrak motif */
:root {
  --sky: #00a5c6;        /* Kazakh flag blue */
  --sky-deep: #00708a;
  --sky-dark: #06324a;
  --night: #041f30;
  --gold: #fec50c;       /* Kazakh flag gold */
  --gold-deep: #c9930a;
  --felt: #f6efe1;       /* felt / kiiz tone */
  --paper: #fffdf8;
  --ink: #172330;
  --muted: #5a6877;
  --line: #e6dcc6;
  --radius: 12px;
  --sans: "Noto Sans", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Noto Serif", "Noto Serif KR", Georgia, serif;
}
html[lang="ko"] { --sans: "Noto Sans KR", "Noto Sans", system-ui, sans-serif; --serif: "Noto Serif KR", "Noto Serif", serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.7; -webkit-font-smoothing: antialiased; }
html[lang="ko"] body { word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: var(--sky-deep); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; margin: 0 0 .55em; color: var(--sky-dark); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px; }
.muted { color: var(--muted); }

.ornament-band { height: 20px; background: url("../img/ornament.svg") repeat-x center / 64px 20px; }
.shanyrak-bg { position: absolute; pointer-events: none; width: 560px; height: 560px; right: -140px; top: 50%; transform: translateY(-50%); background: url("../img/shanyrak.svg") no-repeat center / contain; opacity: .14; }

/* ---------- Top bar ---------- */
.topbar { background: var(--night); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 6px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; color: rgba(255,255,255,.75); cursor: pointer; font: 600 .75rem/1 var(--sans); padding: 7px 9px; border-radius: 4px; }
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--night); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--sky); box-shadow: 0 2px 14px rgba(0,0,0,.12); }
.site-header > .ornament-band { background-color: var(--sky-deep); height: 14px; background-size: 45px 14px; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.4rem; }
.brand-tag { font-size: .8rem; color: var(--gold); letter-spacing: .08em; margin-top: 4px; }
.header-apply { margin-left: auto; }

.main-nav { background: #fff; border-bottom: 3px solid var(--gold); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 14px 16px; font-weight: 600; font-size: .93rem; color: var(--sky-dark); text-decoration: none; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--sky-deep); box-shadow: inset 0 -3px 0 var(--sky); }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--sky); }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-top: 3px solid var(--sky); box-shadow: 0 12px 30px rgba(6,50,74,.18); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 70; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 20px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.sub a:hover { background: var(--felt); color: var(--sky-deep); }
.sub-toggle { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 24px; border-radius: 6px; transition: transform .15s, background .15s; border: 2px solid transparent; font-size: .95rem; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #ffd43f; }
.btn-blue { background: var(--sky-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline { border-color: var(--sky-deep); color: var(--sky-deep); }

/* ---------- Home ---------- */
.notice { background: var(--gold); color: var(--night); font-size: .9rem; font-weight: 600; padding: 9px 0; }
.notice a { color: var(--night); margin-left: 8px; }
.notice-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--night); margin-right: 10px; vertical-align: middle; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(70px, 10vw, 130px) 0; background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky-dark) 70%); }
.hero .shanyrak-bg { width: 680px; height: 680px; right: -120px; opacity: .2; }
.hero-inner { position: relative; max-width: 780px; }
.eyebrow { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin-bottom: .2em; }
.hero-names { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 1.4em; }
.hero-names span + span::before { content: "◆"; font-size: .6em; vertical-align: middle; margin-right: 16px; color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8em; }

.quicklinks { position: relative; margin-top: -44px; z-index: 2; }
.ql-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(6,50,74,.14); overflow: hidden; }
.ql { display: flex; gap: 14px; align-items: flex-start; padding: 24px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--line); transition: background .15s; }
.ql:last-child { border-right: 0; }
.ql:hover { background: var(--felt); }
.ql strong { display: block; font-family: var(--serif); color: var(--sky-dark); font-size: 1.05rem; }
.ql small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,165,198,.12); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--sky-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.section { padding: clamp(60px, 8vw, 100px) 0; position: relative; }
.section-tight { padding: 50px 0 80px; }
.kicker { color: var(--gold-deep); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-grid p { color: #334252; }
.proverb { margin: 0; position: relative; background: var(--sky-dark); color: #fff; border-radius: var(--radius); padding: 50px 36px 36px; overflow: hidden; }
.proverb-orn { position: absolute; left: 0; right: 0; top: 0; height: 20px; background: url("../img/ornament.svg") repeat-x / 64px 20px; }
.proverb figcaption { color: var(--gold); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.proverb blockquote { margin: .5em 0 .8em; font-family: var(--serif); font-size: 1.55rem; line-height: 1.4; }
.proverb-orig { color: rgba(255,255,255,.55); font-style: italic; margin: 0; font-size: .9rem; }
html[lang="kk"] .proverb-orig { display: none; }

.stats { background: var(--sky); color: #fff; padding: 36px 0; background-image: linear-gradient(90deg, var(--sky-deep), var(--sky)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.8rem; color: var(--gold); line-height: 1.1; }
.stats span { font-size: .95rem; }

.section-felt { background: var(--felt); }
.sec-head { max-width: 680px; margin-bottom: 2em; }
.sec-head p { color: var(--muted); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 1.2em; }
.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fac-card { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--sky); transition: transform .2s, box-shadow .2s, border-color .2s; }
.fac-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(6,50,74,.12); border-top-color: var(--gold); }
.fac-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.fac-num { font-family: var(--serif); font-weight: 700; color: var(--gold-deep); font-size: 1.1rem; margin-bottom: 8px; }
.more { color: var(--sky-deep); font-weight: 700; font-size: .88rem; }

.news-events { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card.big { grid-row: span 2; }
.news-img { height: 150px; background-color: var(--sky-deep); background-image: url("../img/shanyrak.svg"), linear-gradient(135deg, var(--sky), var(--sky-dark)); background-repeat: no-repeat; background-size: 220px, cover; background-position: 120% 40%, center; }
.news-card.big .news-img { height: 260px; }
.news-img.n2, .news-img.n5 { background-image: url("../img/ornament.svg"), linear-gradient(135deg, #0d4f6e, var(--night)); background-repeat: repeat-x, no-repeat; background-size: 64px 20px, cover; background-position: bottom 18px left, center; }
.news-img.n3, .news-img.n6 { background-image: url("../img/shanyrak.svg"), linear-gradient(135deg, var(--gold-deep), #8a5a00); }
.news-body { padding: 20px 22px 22px; }
.news-meta { font-size: .8rem; color: var(--gold-deep); font-weight: 700; margin-bottom: .5em; }
.news-body h3 { font-size: 1.05rem; }
.news-body p:last-child { color: var(--muted); font-size: .92rem; margin: 0; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.events { background: var(--felt); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--gold); }
.events h2 { font-size: 1.5rem; }
.events ul, .events-list { list-style: none; margin: 0; padding: 0; }
.event { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.event:last-child { border-bottom: 0; }
.event-date { flex: none; width: 96px; background: var(--sky-deep); color: #fff; border-radius: 8px; padding: 8px; text-align: center; font-weight: 700; font-size: .78rem; line-height: 1.35; align-self: flex-start; }
.event h3 { font-size: 1rem; margin-bottom: .2em; }
.event p { margin: 0; color: var(--muted); font-size: .88rem; }

.intl-band { position: relative; overflow: hidden; background: var(--sky-dark); color: #fff; padding: 64px 0; }
.intl-band .shanyrak-bg { left: -140px; right: auto; opacity: .12; }
.intl-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.intl-inner h2 { color: #fff; }
.intl-inner p { color: rgba(255,255,255,.82); max-width: 640px; margin: 0; }

.apply-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 40px; background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); }
.apply-inner p { margin: 0; color: var(--muted); }
.apply-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--sky-deep), var(--sky-dark)); color: #fff; padding: 56px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-lead { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 720px; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs span { margin: 0 6px; }

.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; padding: 50px 0 80px; align-items: start; }
.sidenav { position: sticky; top: 150px; background: var(--felt); border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--gold); }
.sidenav-title { font-weight: 700; color: var(--gold-deep); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6em; }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.sidenav a:hover, .sidenav a.current { background: #fff; color: var(--sky-deep); font-weight: 600; }
.block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.block:last-of-type { border-bottom: 0; }
.block > p { color: #334252; font-size: 1.03rem; }
.block h2 { position: relative; padding-left: 18px; }
.block h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: linear-gradient(var(--sky), var(--gold)); }

.letter { background: var(--felt); border-radius: var(--radius); padding: 30px 34px; font-family: var(--serif); font-size: 1.08rem; }
.letter-hi { font-weight: 700; color: var(--sky-dark); }
.sign { text-align: right; color: var(--gold-deep); font-style: italic; margin: 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.mv { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sky); }
.mv p { margin: 0; color: var(--muted); }
.h3-sub { margin-top: 8px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.values li { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: var(--sky-dark); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.person { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.person .avatar { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; background: var(--felt); display: grid; place-items: center; }
.person h3 { font-size: .98rem; margin: 0; align-self: end; }
.person p { margin: 0; color: var(--muted); font-size: .85rem; align-self: start; }
.symbol-row { display: flex; gap: 30px; align-items: center; }
.symbol-row p { margin: 0; color: #334252; }

.fac-row { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.fac-row:last-child { border-bottom: 0; }
.fac-row p { margin: 0 0 .4em; color: var(--muted); }
.fac-row .programs { color: var(--ink); font-size: .92rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 12px 16px 12px 46px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ticks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg); background: var(--gold); border-radius: 3px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th { background: var(--sky-dark); color: #fff; text-align: left; padding: 12px 16px; font-size: .88rem; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.table tr:nth-child(even) td { background: var(--felt); }
.note { color: var(--muted); font-size: .9rem; margin-top: 12px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--sky-deep); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }
.callout { background: rgba(254,197,12,.18); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 6px; font-weight: 600; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-grid.two { grid-template-columns: repeat(2, 1fr); }
.mini-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mini-card .ico { margin-bottom: 12px; }
.mini-card p { color: var(--muted); margin: 0 0 .3em; font-size: .94rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--sky-dark); }
.faq details p { padding: 0 18px 14px; margin: 0; color: var(--muted); }
.journal { display: flex; gap: 26px; align-items: center; }
.journal-cover { flex: none; width: 150px; height: 200px; border-radius: 6px; background: var(--sky-dark); color: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; font-family: var(--serif); font-weight: 700; padding: 12px; box-shadow: 6px 6px 0 var(--gold); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--sky); color: var(--sky-dark); font-weight: 600; font-size: .93rem; }
.events-list .event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.iconrow { display: flex; gap: 18px; align-items: flex-start; }
.iconrow p { margin: 0; color: #334252; }

.contact-wide { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; margin-top: 24px; }
.map-ph { position: relative; overflow: hidden; min-height: 240px; border-radius: var(--radius); background: var(--sky-dark); color: rgba(255,255,255,.8); display: grid; place-items: center; text-align: center; padding: 20px; }
.map-ph p { position: relative; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.72); font-size: .92rem; }
.site-footer > .ornament-band { background-color: var(--sky-dark); }
.footer-top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 50px; padding: 50px 0 40px; }
.footer-brand p { margin: 16px 0; }
.footer-contacts { margin: 0; display: grid; gap: 10px; }
.footer-contacts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.footer-contacts dd { margin: 0; }
.footer-contacts a { color: #fff; }
.footer-contacts.light { background: var(--felt); padding: 22px; border-radius: var(--radius); align-content: start; }
.footer-contacts.light dt { color: var(--gold-deep); }
.footer-contacts.light a { color: var(--sky-deep); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { font-size: 1rem; margin-bottom: .6em; }
.footer-cols h4 a { color: #fff; text-decoration: none; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li a { color: rgba(255,255,255,.65); text-decoration: none; line-height: 2; font-size: .88rem; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .header-apply { display: none; }
  .main-nav { display: none; max-height: calc(100vh - 140px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a { padding: 14px 4px; }
  .has-sub > a::after { display: none; }
  .sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
  .sub-toggle::before { content: "+"; font-size: 1.4rem; color: var(--sky-deep); }
  .has-sub.open .sub-toggle::before { content: "−"; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 0 10px 10px; }
  .has-sub.open .sub { display: block; }
  .ql-grid { grid-template-columns: repeat(2, 1fr); }
  .ql:nth-child(2) { border-right: 0; }
  .ql:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fac-grid, .news-list, .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .news-events, .about-grid { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidenav { position: static; }
  .sidenav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-links { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .tb-util { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand img { width: 42px; height: 42px; }
  .ql-grid, .fac-grid, .news-grid, .news-list, .mini-grid, .mini-grid.two, .mv-grid, .people, .contact-wide { grid-template-columns: 1fr; }
  .ql { border-right: 0; border-bottom: 1px solid var(--line); }
  .news-card.big { grid-row: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .intl-inner, .apply-inner, .symbol-row, .journal { flex-direction: column; align-items: flex-start; }
  .apply-inner { padding: 26px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero .shanyrak-bg, .page-hero .shanyrak-bg { width: 380px; height: 380px; right: -160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* =========================================================
   Mobile fixes & enhancements
   ========================================================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body { -webkit-tap-highlight-color: rgba(0,165,198,.15); }
h1, h2, h3, h4, p, a, li, dd { overflow-wrap: break-word; }
.news-events > *, .about-grid > *, .page-layout > *, .footer-top > *, .contact-wide > *,
.fac-grid > *, .news-grid > *, .mini-grid > *, .ql-grid > *, .intl-inner > *, .apply-inner > * { min-width: 0; }
.sec-head.row { flex-wrap: wrap; }
.mobile-lang { display: none; }

@media (max-width: 1080px) {
  html { scroll-padding-top: 100px; }
  body.menu-open { overflow: hidden; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 100px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
  .mobile-lang { display: flex; justify-content: center; padding: 14px 0 6px; }
  .mobile-lang .lang-switch { background: var(--sky-dark); }
  .sidenav { padding: 12px 14px; border-left: 0; border-top: 3px solid var(--gold); }
  .sidenav-title { display: none; }
  .sidenav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; }
  .sidenav ul::-webkit-scrollbar { display: none; }
  .sidenav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; line-height: 1.65; }
  .container { width: calc(100% - 32px); }
  .topbar-inner { min-height: 38px; justify-content: center; }
  .site-header > .ornament-band { height: 10px; background-size: 32px 10px; }
  .header-inner { padding: 8px 0; gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; }
  .brand-tag { font-size: .7rem; letter-spacing: .04em; }
  .nav-toggle { width: 42px; height: 42px; flex: none; }

  .notice { font-size: .82rem; padding: 8px 0; }
  .hero { padding: 44px 0 70px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
  .hero-names { font-size: .78rem; gap: 2px 10px; }
  .hero-names span + span::before { margin-right: 10px; }
  .lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .apply-actions .btn, .intl-inner .btn { width: 100%; text-align: center; }
  .apply-actions { width: 100%; flex-direction: column; }

  .quicklinks { margin-top: -36px; }
  .ql-grid { grid-template-columns: 1fr 1fr; }
  .ql { flex-direction: column; gap: 8px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
  .ql:nth-child(odd) { border-right: 1px solid var(--line); }
  .ql:nth-child(n+3) { border-bottom: 0; }
  .ql strong { font-size: .95rem; }
  .ql small { font-size: .78rem; }
  .ico { width: 38px; height: 38px; }
  .ico svg { width: 20px; height: 20px; }

  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0 56px; }
  h2 { font-size: 1.5rem; }
  .proverb { padding: 40px 22px 24px; }
  .proverb blockquote { font-size: 1.25rem; }
  .stats { padding: 26px 0; }
  .stats-grid { row-gap: 18px; }
  .stats strong { font-size: 2.2rem; }
  .stats span { font-size: .85rem; }
  .fac-card { padding: 20px; }
  .news-img, .news-card.big .news-img { height: 140px; }
  .events { padding: 20px; }
  .event-date { width: 84px; font-size: .72rem; }
  .intl-band { padding: 44px 0; }

  .page-hero { padding: 30px 0 34px; }
  .page-hero h1 { font-size: 1.9rem; }
  .page-lead { font-size: .98rem; }
  .page-layout { padding: 24px 0 56px; gap: 18px; }
  .block { padding-bottom: 28px; margin-bottom: 28px; }
  .block h2 { font-size: 1.35rem; padding-left: 14px; }
  .letter { padding: 20px; font-size: 1rem; }
  .steps li { padding: 14px 14px 14px 62px; }
  .steps li::before { left: 12px; top: 14px; width: 36px; height: 36px; }
  .fac-row { gap: 12px; }
  .table th, .table td { padding: 10px 12px; font-size: .9rem; }
  .journal-cover { width: 120px; height: 160px; }

  .footer-top { padding: 36px 0 28px; gap: 30px; }
  .footer-cols { gap: 20px; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 360px) {
  .brand-tag { display: none; }
  .lang-switch button { padding: 6px 7px; font-size: .7rem; }
  .ql-grid { grid-template-columns: 1fr; }
  .ql { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; flex-direction: row; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) { .tb-util { display: none; } .topbar-links { gap: 16px; } }
html[lang="zh"] { --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans", system-ui, sans-serif; --serif: "Noto Serif SC", "Songti SC", "Noto Serif", serif; }
html[lang="zh"] .eyebrow, html[lang="zh"] .kicker { letter-spacing: .12em; }
