/* Taj University — site styles. RTL (Dari/Pashto). No framework.
   Fonts come from Google Fonts (<link> in inc/layout.php). The @font-face rules below are the copies on this server, used only if Google Fonts cannot be reached. */

@font-face { font-family: "Vazirmatn Local"; font-weight: 300; font-display: swap; src: url("../vazirmatn/fonts/webfonts/Vazirmatn-Light.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn Local"; font-weight: 400; font-display: swap; src: url("../vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn Local"; font-weight: 500; font-display: swap; src: url("../vazirmatn/fonts/webfonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn Local"; font-weight: 700; font-display: swap; src: url("../vazirmatn/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2"); }


:root {
  --ink: #0d2145;         /* window trim on the main building */
  --ink-2: #14306b;
  --lapis: #1a4590;
  --glass: #2c8f9c;        /* the teal glass */
  --glass-soft: #e3f1f3;
  --gold: #c99a3a;         /* crown in the logo */
  --gold-deep: #9b7220;
  --gold-soft: #f6ecd3;
  --paper: #f3f6fa;
  --white: #ffffff;
  --text: #19212f;
  --muted: #576175;
  --line: #d9e0ea;
  --line-soft: #e8edf4;
  --radius: 6px;
  --wrap: 1180px;
  --font-body: "Vazirmatn", "Vazirmatn Local", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Vazirmatn", "Vazirmatn Local", "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 1px 2px rgba(13,33,69,.06), 0 8px 24px rgba(13,33,69,.08);
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.085' stroke-width='1'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='4'/%3E%3Cpath d='M0 0l8 8M72 0l-8 8M0 72l8-8M72 72l-8-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Per-language type: Latin text gets its own serif for headings and tighter leading. */
html[lang="en"] { --font-display: "Montserrat", "Segoe UI", Arial, sans-serif; }
html[lang="en"] body { line-height: 1.7; font-size: 16.5px; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.25; letter-spacing: -0.005em; }
html[lang="en"] .page-hero h1 { line-height: 1.15; }
html[lang="en"] .hero h1 { line-height: 1.1; }
html[lang="en"] .prose { font-size: 17px; }
html[lang="en"] .lead-feature blockquote { line-height: 1.6; }
html[lang="en"] .leader p, html[lang="en"] .fac p { line-height: 1.7; }
html[lang="en"] .brand .tag { font-size: 16px; line-height: 1.3; max-width: 24ch; }
html[lang="en"] details.fold > summary { font-size: 17px; line-height: 1.5; }
html[lang="en"] .fact b { font-family: var(--font-display); }
/* Pashto / Afghan Uzbek keep the Arabic-script rhythm; Pashto and Uzbek letters live in Vazirmatn + Amiri. */
html[lang="ps"] body, html[lang="uz-Arab"] body { line-height: 1.95; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.95; font-weight: 400;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.5; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1.1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 8px 16px; z-index: 100; border-radius: 0 0 var(--radius) var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #cdd7ea; font-size: 14px; line-height: 1; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: #e8eefb; text-decoration: none; padding: 12px 0; display: inline-block; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .contact, .topbar .quick { display: flex; align-items: center; gap: 22px; }
.topbar bdi { direction: ltr; unicode-bidi: isolate; }
.topbar .quick { gap: 18px; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.langs a { padding: 12px 8px; border-radius: 3px; color: #b9c6df; }
.langs a.on { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.topbar .quick a.reg { background: var(--gold); color: var(--ink); font-weight: 700; padding: 8px 16px; border-radius: 3px; }
.topbar .quick a.reg:hover { background: #ddb04f; text-decoration: none; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 62px; width: auto; }
.brand .tag { display: block; font: 700 17px/1.5 var(--font-display); color: var(--ink); padding-inline-start: 14px; border-inline-start: 2px solid var(--gold); }
.nav { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: flex; align-items: center; gap: 6px; padding: 30px 14px; background: none; border: 0;
  font: 500 15.5px/1 var(--font-body); color: var(--text); text-decoration: none; cursor: pointer;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button, .nav > li:focus-within > button { color: var(--lapis); }
.nav > li.current > a, .nav > li.current > button { color: var(--lapis); box-shadow: inset 0 -3px 0 var(--gold); }
.nav button::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.sub {
  position: absolute; inset-inline-start: 0; top: 100%; min-width: 290px; margin: 0; padding: 10px; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); display: none;
}
.nav li:hover > .sub, .nav li.open > .sub, .nav li:focus-within > .sub { display: block; }
.nav > li:nth-last-child(-n+2) > .sub { inset-inline-start: auto; inset-inline-end: 0; }   /* the last menus sit at the page edge: open them inwards, not off-screen */
.sub a { display: block; padding: 10px 14px; border-radius: 4px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.6; }
.sub a small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.sub a:hover, .sub a:focus-visible { background: var(--paper); color: var(--lapis); }
.menu-toggle { display: none; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: #fff; margin: auto; position: relative; transition: transform .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }

/* ---------- Home hero ---------- */
.hero { background: var(--ink) var(--tile); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(13,33,69,0) 40%, rgba(26,69,144,.45)); pointer-events: none; }
html[dir="ltr"] .hero::before { background: linear-gradient(to right, rgba(13,33,69,0) 40%, rgba(26,69,144,.45)); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; padding-top: 72px; }
.hero h1 { color: #fff; font-size: clamp(42px, 6vw, 76px); line-height: 1.25; margin: 0 0 18px; }
.hero .lede { font-size: 18.5px; line-height: 2.05; color: #d5deef; max-width: 52ch; margin-bottom: 32px; }
.hero .lede mark { background: none; color: #f2cf84; font-weight: 700; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 84px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 4px; font: 700 16px/1.4 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ddb04f; color: var(--ink); }
.btn-line { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; } .btn-ink:hover { background: var(--lapis); color: #fff; }
.arch {
  position: relative; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5; align-self: end;
  box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 11px rgba(201,154,58,.7);
  animation: arch-in 1.1s cubic-bezier(.2,.7,.2,1) backwards;   /* backwards: no clip-path left on afterwards, so the gold ring is not cut off */
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@keyframes arch-in { from { clip-path: inset(100% -14px 0 -14px); } to { clip-path: inset(-14px -14px 0 -14px); } }

/* ---------- Facts ---------- */
.facts { position: relative; z-index: 2; margin-top: -48px; }
.facts .wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px solid var(--gold); }
.fact { padding: 26px 28px; border-inline-start: 1px solid var(--line-soft); }
.fact:first-child { border-inline-start: 0; }
.fact b { display: block; font: 700 38px/1.4 var(--font-body); color: var(--ink); }
.fact span { color: var(--muted); font-size: 14.5px; line-height: 1.6; display: block; }

/* ---------- Generic sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--ink) var(--tile); color: #d5deef; }
.section.dark h2, .section.dark h3 { color: #fff; }
.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.dark .sec-head p { color: #b9c6df; }
.rule { width: 56px; height: 4px; background: var(--gold); border: 0; margin: 0 0 22px; }

/* Faculties */
.faculties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fac { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.fac .pic { border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 5 / 4; background: var(--ink); position: relative; }
.fac .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
/* faculty logo instead of a photo: light arch with the logo centred */
.fac .pic.logo { background: radial-gradient(120% 90% at 50% 100%, #dfe8f5 0%, #f6f9fd 60%, #fff 100%); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.fac .pic.logo img { width: 58%; height: auto; max-height: 82%; object-fit: contain; margin-top: 10%; filter: drop-shadow(0 8px 10px rgba(13,33,69,.18)); }
/* small faculty logo in the menu and the footer */
.fac-ico { width: 28px; height: 28px; object-fit: contain; flex: none; }
a.has-ico { display: flex; align-items: center; gap: 10px; }
a.has-ico .lbl { min-width: 0; }
.sub a.has-ico .fac-ico { width: 34px; height: 34px; }
.site-footer a.has-ico .fac-ico { width: 22px; height: 22px; background: #fff; border-radius: 50%; padding: 2px; }
/* page header of a faculty page: logo on a white disc with a gold ring */
.page-hero .wrap.has-logo { display: flex; align-items: center; gap: 36px; }
.hero-logo { flex: none; width: 168px; height: 168px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(201,154,58,.55), 0 14px 30px rgba(0,0,0,.28); }
.hero-logo img { width: 74%; height: 74%; object-fit: contain; }
.hero-text { min-width: 0; }
.fac:hover .pic img { transform: scale(1.05); }
.fac .body { padding: 22px 6px 0; border-top: 4px solid var(--gold); margin-top: 0; }
.fac h3 { font-size: 28px; margin: 0 0 6px; }
.fac p { color: var(--muted); margin: 0 0 12px; font-size: 15.5px; line-height: 1.9; }
.fac .go { color: var(--lapis); font-weight: 700; font-size: 15px; }
.fac:hover .go { text-decoration: underline; }

/* Vision & mission */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.vm > div { padding: 44px 44px 40px; }
.vm > div + div { border-inline-start: 1px solid var(--line); background: var(--glass-soft); }
.vm h3 { font-size: 30px; margin-bottom: 14px; }
.vm p { font-size: 17px; margin: 0; }

/* Programmes & fees */
.shifts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.shifts .note { color: #b9c6df; }
.shift-list { list-style: none; margin: 0; padding: 0; }
.shift-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.shift-list li:first-child { border-top: 1px solid rgba(255,255,255,.16); }
.shift-list h3 { font-size: 24px; margin: 0; }
.shift-list .sub-t { grid-column: 1; color: #b9c6df; font-size: 15px; line-height: 1.7; }
.shift-list .price { grid-row: 1 / span 2; grid-column: 2; font: 700 28px/1.3 var(--font-body); color: #f2cf84; white-space: nowrap; }
.shift-list .price small { font: 400 14px var(--font-body); color: #b9c6df; margin-inline-start: 4px; }
.shift-tag { display: inline-block; font-size: 13.5px; font-weight: 500; background: rgba(255,255,255,.1); color: #e8eefb; padding: 2px 12px; border-radius: 99px; margin-inline-end: 8px; vertical-align: middle; }

/* Leadership */
.lead-feature { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.portrait { border-radius: 999px 999px 4px 4px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lead-feature blockquote { margin: 0; font: 400 clamp(22px, 2.6vw, 30px)/1.9 var(--font-display); color: var(--ink); }
.who { margin-top: 20px; display: block; font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.who b { display: block; color: var(--ink); font-size: 18px; }
.who span { color: var(--muted); }
.leaders { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.leader { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.leader .portrait { aspect-ratio: 1; border-radius: 999px; }
.leader h4 { font: 500 15px/1.6 var(--font-body); color: var(--glass); margin: 0 0 6px; }
.leader p { font-size: 15.5px; line-height: 1.95; margin: 0 0 8px; color: var(--text); }
.leader .nm { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.6; }
.leader .nm span { color: var(--muted); font-weight: 400; display: block; }

/* Admissions band */
.join { background: var(--gold-soft); border-top: 1px solid #ecd9a8; border-bottom: 1px solid #ecd9a8; }
.join .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 0; flex-wrap: wrap; }
.join h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 4px; }
.join p { margin: 0; color: #5b4a1e; font-size: 17px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--ink) var(--tile); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 420px; height: 420px; border: 1px solid rgba(201,154,58,.45); border-radius: 50%; box-shadow: 0 0 0 28px rgba(201,154,58,.07); pointer-events: none; }
.page-hero .wrap { padding: 56px 0 60px; position: relative; z-index: 1; }
.crumbs { font-size: 14px; color: #b9c6df; margin-bottom: 18px; line-height: 1.6; }
.crumbs a { color: #d9e3f6; text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs i { font-style: normal; margin: 0 8px; opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 0 0 10px; max-width: 24ch; }
.page-hero p { color: #d5deef; font-size: 18px; max-width: 64ch; margin: 0; }

.dari-note { margin: 28px 0 0; padding: 12px 18px; background: var(--gold-soft); border: 1px solid #ecd9a8; border-radius: var(--radius); color: #5b4a1e; font-size: 15px; line-height: 1.7; }
.dari-note a { color: var(--ink); font-weight: 700; }
.band { padding: 56px 0; }
.band:nth-of-type(even) { background: var(--paper); }
.prose { font-size: 17px; }
.prose > * { max-width: 78ch; }
.prose > table, .prose > details, .prose > img, .prose > .float { max-width: none; }
.prose h2 { font-size: clamp(27px, 3.4vw, 38px); margin: 1.4em 0 .5em; padding-top: .2em; position: relative; }
.prose h2:first-child { margin-top: 0; }
.prose h2::before { content: ""; display: block; width: 48px; height: 4px; background: var(--gold); margin-bottom: 16px; }
.prose h3 { font-size: 26px; margin: 1.3em 0 .4em; }
.prose h4, .prose h5, .prose h6 { font: 700 18px/1.7 var(--font-body); color: var(--ink); margin: 1.2em 0 .3em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold-deep); }
.prose img { border-radius: var(--radius); margin: 8px 0 22px; box-shadow: var(--shadow); max-width: min(100%, 760px); }
.prose img.float { float: inline-start; margin: 4px 0 18px; margin-inline-end: 36px; width: min(38%, 360px); }
.prose::after { content: ""; display: block; clear: both; }
.prose a.doc {
  display: inline-flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 16px; margin: 4px 0 8px; margin-inline-end: 8px; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.6; color: var(--ink);
}
.prose a.doc::before { content: "PDF"; font: 700 11px/1 var(--font-body); background: #b6402f; color: #fff; padding: 5px 6px; border-radius: 2px; letter-spacing: .04em; }
.prose a.doc:hover { border-color: var(--gold); background: var(--gold-soft); }

.prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: 14px 0 28px; font-size: 15px; line-height: 1.8; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: 10px 16px; vertical-align: top; text-align: start; }
.prose thead th, .prose thead td { background: var(--ink); color: #fff; font-weight: 700; border-color: #1c3a74; white-space: nowrap; }
.prose thead th strong, .prose thead th p { color: inherit; }
.prose thead th p { font-weight: 400; font-size: 13.5px; opacity: .8; }
.prose tbody tr:nth-child(even) { background: #f8fafc; }
.prose tbody tr:hover { background: var(--glass-soft); }
.prose td p, .prose th p { margin: 0; }
.prose td ul { margin: 0; }

details.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin: 0 0 12px; }
details.fold > summary { cursor: pointer; list-style: none; padding: 16px 22px; font: 700 18px/1.7 var(--font-display); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; font: 400 26px/1 var(--font-body); color: var(--gold-deep); transition: transform .2s; }
details.fold[open] > summary { border-bottom: 1px solid var(--line); background: var(--paper); }
details.fold[open] > summary::after { content: "−"; }
details.fold > summary:hover { background: var(--paper); }
.fold-body { padding: 8px 22px 18px; }
.fold-body > * { max-width: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list b { display: block; font-size: 14.5px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.contact-list bdi { direction: ltr; unicode-bidi: isolate; font-size: 18px; color: var(--ink); }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; color: var(--ink); }
.form input, .form textarea { font: 400 16px/1.7 var(--font-body); padding: 12px 14px; border: 1px solid #b8c3d4; border-radius: 4px; background: #fff; color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(44,143,156,.35); border-color: var(--glass); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-msg { padding: 14px 18px; border-radius: 4px; font-weight: 500; display: none; }
.form-msg.ok { display: block; background: #e5f4ea; color: #1d5b33; border: 1px solid #b9dfc7; }
.form-msg.err { display: block; background: #fbe9e6; color: #8a2b1f; border: 1px solid #efc3bc; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
/* events */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.event:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event .pic { aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; }
.event .pic img { width: 100%; height: 100%; object-fit: cover; }
.event .body { padding: 18px 22px 22px; border-top: 3px solid var(--gold); }
.event time { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.event h3 { font-size: 22px; line-height: 1.45; margin: 0 0 8px; }
.event p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.more { margin: 36px 0 0; text-align: center; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.article { max-width: 820px; }
.article .cover { width: 100%; max-width: none; border-radius: var(--radius); margin: 0 0 28px; box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.article .back { margin-top: 36px; }
.empty { text-align: center; padding: 72px 20px; border: 1px dashed #b8c3d4; border-radius: var(--radius); background: var(--paper); }
.empty h2 { font-size: 30px; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink) var(--tile); color: #b9c6df; padding-top: 64px; font-size: 15px; line-height: 1.9; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.site-footer h3 { font: 700 18px/1.6 var(--font-body); color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #d9e3f6; text-decoration: none; display: inline-block; padding: 2px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { height: 84px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; margin: 0 0 12px; }
.foot-brand bdi { direction: ltr; unicode-bidi: isolate; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 18px; border-top: 1px solid var(--line); order: 3; }
  .nav.show { display: flex; }
  .nav > li > a, .nav > li > button { padding: 14px 4px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
  .nav > li.current > a, .nav > li.current > button { box-shadow: none; }
  .sub { position: static; display: none; min-width: 0; border: 0; box-shadow: none; padding: 0 12px 8px; background: var(--paper); border-radius: 0; }
  .nav li:hover > .sub { display: none; }
  .nav li.open > .sub { display: block; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero .cta { padding-bottom: 0; }
  .arch { max-width: 420px; width: 100%; margin-inline: auto; aspect-ratio: 5/4; }
  .facts { margin-top: 0; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); width: 100%; border-radius: 0; }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .faculties { grid-template-columns: 1fr; max-width: 520px; }
  .page-hero .wrap.has-logo { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-logo { width: 120px; height: 120px; }
  .events { grid-template-columns: repeat(2, 1fr); }
  .shifts, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .vm { grid-template-columns: 1fr; }
  .vm > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .leaders { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .contact, .topbar .quick a.mehrin { display: none; }
  .topbar .wrap { justify-content: space-between; }
  .topbar .quick { width: 100%; justify-content: space-between; gap: 8px; }
  .brand .tag { display: none; } .brand img { height: 48px; }
  .section { padding: 60px 0; }
  .lead-feature { grid-template-columns: 1fr; gap: 24px; } .lead-feature .portrait { max-width: 220px; }
  .fact { padding: 20px 18px; } .fact b { font-size: 32px; }
  .prose img.float { float: none; width: 100%; margin: 0 0 20px; }
  .form .two { grid-template-columns: 1fr; }
  .events { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .vm > div { padding: 30px 24px; }
  .shift-list .price { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arch { animation: none; }
  .fac .pic img { transition: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .join { display: none; }
  .page-hero { background: none; color: #000; } .page-hero h1, .page-hero p { color: #000; }
}
