/* ==========================================================================
   Universities: the list (pages/unis.php) and one university with its application (pages/uni.php),
   assets/js/unis.js. The homepage's student section at late morning: a clear Tbilisi sky, brand ink, Tbilisi State
   University's ochre for the marks, brand green for applying. Each university is a student card (the ID-1 shape, its
   gate on top, its code, its name in Georgian and in English, a chip), the same card the homepage hands out.
   ========================================================================== */
.page-unis, .page-uni {
  --sky-0: #A9B9D7; --sky-1: #BCC9DE; --sky-2: #D3DCE9; --sky-3: #EBF0F5;
  --u-ink: #0B1A33; --u-ink-2: #3C4B64; --u-ochre: #C98A1E; --u-ochre-ink: #6E4708; --u-line: rgb(11 26 51 / .13); --u-paper: #FBFCFD;
  --u-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 20px 44px -30px rgb(11 26 51 / .5);
  background: var(--sky-3); color: var(--u-ink);
}
.v-m .page-inner.page-unis, .v-m .page-inner.page-uni { background: var(--sky-3); color: var(--u-ink); }
.un {
  padding: calc(var(--header-h, 76px) + 26px) var(--gutter, 16px) 96px;
  background: linear-gradient(to bottom, var(--sky-0), var(--sky-1) 280px, var(--sky-2) 620px, var(--sky-3) 1100px);
}
.v-m .un { padding: calc(var(--m-bar) + 16px) 16px calc(var(--m-tabs) + 40px); }
.un > * { max-width: 1240px; margin-inline: auto; }
.un :focus-visible { outline: 2px solid var(--u-ink); outline-offset: 2px; }
.un .crumbs { color: var(--u-ink-2); }

.un-eyebrow { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--u-ochre-ink); font-size: 13px; font-weight: 800; }
.un-eyebrow .chap__no { font-family: var(--font-ka); font-size: 22px; font-weight: 300; line-height: 1; color: var(--u-ochre); }
.un-title { margin: 8px 0 0; font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; line-height: 1.2; text-wrap: balance; }
.un-lead { max-width: 46em; margin: 14px 0 0; color: var(--u-ink-2); font-size: 15.5px; line-height: 1.95; }
.un-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "crumbs crumbs" "eyebrow eyebrow" "title stats" "lead stats"; column-gap: 48px; align-items: end; }
.un-head .crumbs { grid-area: crumbs; }
.un-head .un-eyebrow { grid-area: eyebrow; }
.un-head .un-title { grid-area: title; }
.un-head .un-lead { grid-area: lead; }
.un-stats { grid-area: stats; display: flex; margin: 0; }
.un-stats div { display: flex; flex-direction: column-reverse; padding: 0 22px; border-inline-start: 1px solid var(--u-line); }
.un-stats div:first-child { padding-inline-start: 0; border: 0; }
.un-stats dt { color: var(--u-ink-2); font-size: 12.5px; }
.un-stats dd { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1.2; }

.un-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--u-ink); color: #fff; font: 700 14px var(--font-body); text-decoration: none; cursor: pointer;
}
.un-btn--go { background: var(--green, #83CD20); color: #0E1A07; }
.un-btn--go:hover { background: #95DD35; }
.un-btn:disabled { opacity: .6; cursor: progress; }
.un-link { color: var(--u-ink); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-decoration-color: rgb(11 26 51 / .3); text-underline-offset: 4px; }
.un-link:hover { text-decoration-color: currentColor; }

/* ---------- the student card ---------- */
.un-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; aspect-ratio: 1.586; padding: 0 0 12px; overflow: hidden;
  border-radius: 18px; background: var(--u-paper); box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 22px 40px -24px rgb(11 26 51 / .55), 0 0 0 1px var(--u-line);
  direction: ltr; text-align: left; container-type: inline-size;
}
.un-card__pic { grid-column: 1 / -1; position: relative; min-height: 0; overflow: hidden; background: var(--sky-1); }
.un-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.un-card__pic::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(rgb(251 252 253 / 0), var(--u-paper)); }
.un-card__code { grid-column: 1; padding: 0 14px; font: 800 clamp(22px, 13cqw, 44px)/1 var(--font-latin); letter-spacing: .02em; color: var(--u-ink); margin-top: -0.35em; position: relative; }
.un-card__ka { grid-column: 1 / -1; padding: 4px 14px 0; font: 400 clamp(9px, 4.2cqw, 14px)/1.3 var(--font-ka); color: var(--u-ochre-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-card__en { grid-column: 1 / -1; padding: 1px 14px 0; font: 600 clamp(8px, 3.4cqw, 12px)/1.3 var(--font-label); color: var(--u-ink-2); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un-card__chip {
  grid-column: 2; grid-row: 2; align-self: start; width: 12cqw; aspect-ratio: 1.3; margin: -0.6em 14px 0 0; border-radius: 4px; position: relative;
  background: linear-gradient(135deg, #E6C77A, #C98A1E 55%, #E9CF8C);
  box-shadow: inset 0 0 0 1px rgb(110 71 8 / .35);
}
.un-card__chip::before { content: ""; position: absolute; inset: 30% 0; border-block: 1px solid rgb(110 71 8 / .45); }
.un-card__chip::after { content: ""; position: absolute; inset: 0 40%; border-inline: 1px solid rgb(110 71 8 / .45); }

/* ---------- what do you want to study ---------- */
.un-pick { margin-top: 36px; padding: 20px 22px; border-radius: 24px; background: rgb(251 252 253 / .7); box-shadow: var(--u-shadow); }
html:not([data-tier="lite"]) .un-pick { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.un-pick h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.un-pick__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.un-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--u-line); color: var(--u-ink); font: 600 13.5px var(--font-body); cursor: pointer; transition: background-color .2s, color .2s;
}
.un-chip i { font-style: normal; font-size: 11.5px; opacity: .55; }
.un-chip:hover { box-shadow: inset 0 0 0 1px rgb(11 26 51 / .4); }
.un-chip[aria-pressed="true"] { background: var(--u-ink); color: #fff; box-shadow: none; }
.un-pick__n { min-height: 1.6em; margin: 10px 0 0; color: var(--u-ochre-ink); font-size: 13.5px; font-weight: 700; }

/* ---------- the universities ---------- */
.un-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 26px; padding: 0; list-style: none; }
.un-item { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px; border-radius: 26px; background: rgb(251 252 253 / .82); box-shadow: var(--u-shadow); transition: opacity .35s, filter .35s, translate .4s var(--ease-out); }
.un-item.is-dim { opacity: .38; filter: grayscale(.8); }
.un-item__card { display: block; rotate: -2deg; transition: rotate .4s var(--ease-out); }
.un-item:nth-child(even) .un-item__card { rotate: 1.5deg; }
.un-item:hover .un-item__card { rotate: 0deg; }
.un-item h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 800; line-height: 1.45; }
.un-item h2 a { color: inherit; text-decoration: none; }
.un-item h2 a:hover { text-decoration: underline; text-decoration-color: rgb(11 26 51 / .3); text-underline-offset: 5px; }
.un-item__tag { margin: 4px 0 0; color: var(--u-ochre-ink); font-size: 13.5px; font-weight: 700; }
.un-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; padding: 0; list-style: none; color: var(--u-ink-2); font-size: 13px; }
.un-facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px; border-radius: 50%; background: currentColor; opacity: .45; vertical-align: middle; }
.un-facts a { color: inherit; }
.un-fields { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 0; padding: 0; list-style: none; }
.un-fields li { padding: 4px 10px; border-radius: 999px; background: rgb(201 138 30 / .12); color: var(--u-ochre-ink); font-size: 12.5px; font-weight: 700; transition: background-color .2s, color .2s; }
.un-fields li.is-on { background: var(--u-ochre); color: #fff; }
.un-item__text { display: -webkit-box; margin: 12px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--u-ink-2); font-size: 14px; line-height: 1.9; }
.un-item__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }

/* ---------- how it goes, the questions ---------- */
.un-plan { margin-top: 64px; }
.un-plan h2, .un-faq h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.un-plan > ol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.un-plan > ol > li { position: relative; padding: 22px 24px; border-radius: 24px; background: var(--u-paper); box-shadow: var(--u-shadow); counter-increment: st; }
.un-plan > ol > li::before { content: counter(st, persian); position: absolute; top: 18px; inset-inline-end: 22px; font: 800 44px/1 var(--font-display); color: rgb(201 138 30 / .35); }
html:not([lang="fa"]) .un-plan > ol > li::before { content: counter(st); }
html[lang="ar"] .un-plan > ol > li::before { content: counter(st, arabic-indic); }
.un-plan h3 { margin: 0 0 12px; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.un-plan ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.un-plan ul li { display: flex; gap: 10px; color: var(--u-ink-2); font-size: 14.5px; line-height: 1.8; }
.un-plan ul li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .65em; border-radius: 2px; background: var(--u-ochre); rotate: 45deg; }
.un-faq { margin-top: 56px; }
.un-faq details { border-top: 1px solid var(--u-line); }
.un-faq details:last-of-type { border-bottom: 1px solid var(--u-line); }
.un-faq summary { position: relative; display: block; padding: 18px 0; padding-inline-end: 36px; font-weight: 800; font-size: 15.5px; line-height: 1.8; cursor: pointer; list-style: none; }
.un-faq summary::-webkit-details-marker { display: none; }
.un-faq summary::after { content: ""; position: absolute; top: 50%; inset-inline-end: 4px; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--u-ink), var(--u-ink)) center / 100% 2px no-repeat, linear-gradient(var(--u-ink), var(--u-ink)) center / 2px 100% no-repeat; transition: rotate .3s var(--ease-out); }
.un-faq details[open] summary::after { rotate: 45deg; }
.un-faq details p { margin: 0 0 18px; color: var(--u-ink-2); font-size: 15px; line-height: 1.95; }
.un-faq__wa { margin-top: 22px; }

/* ---------- one university ---------- */
.un-one__row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 26px; }
.un-card--big { rotate: -2.5deg; }
.un-one__txt .un-eyebrow { margin-top: 0; }
.un-one .un-facts { font-size: 14px; }
.un-one__body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; margin-top: 48px; }
.un-text { min-width: 0; padding: 28px 30px; border-radius: 26px; background: rgb(251 252 253 / .85); box-shadow: var(--u-shadow); font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.un-text h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.un-text h3, .un-text h4 { margin: 26px 0 8px; font-family: var(--font-display); font-weight: 800; line-height: 1.6; }
.un-text p { margin: 0 0 14px; }
.un-text ul, .un-text ol { margin: 0 0 14px; padding-inline-start: 22px; }
.un-text a { color: var(--u-ochre-ink); }
.un-text table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.un-text th, .un-text td { padding: 8px 10px; border-bottom: 1px solid var(--u-line); text-align: start; }
.un-side { position: sticky; top: calc(var(--header-h, 76px) + 18px); scroll-margin-top: calc(var(--header-h, 76px) + 18px); }
.un-form { display: grid; gap: 12px; padding: 24px; border-radius: 26px; background: var(--u-ink); color: #E8EEF7; box-shadow: 0 30px 60px -30px rgb(11 26 51 / .7); }
.un-form h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.5; }
.un-form__lead { margin: 0 0 4px; color: #B3C0D6; font-size: 13.5px; line-height: 1.85; }
.un-form label { display: grid; gap: 6px; color: #B3C0D6; font-size: 13px; }
.un-form input, .un-form select, .un-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 14px; background: rgb(255 255 255 / .07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); color: #fff; font: 500 14.5px/1.7 var(--font-body); resize: vertical;
}
.un-form select { -webkit-appearance: none; appearance: none; background: rgb(255 255 255 / .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8EEF7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 12px center / 16px; padding-inline-end: 36px; }
html[dir="ltr"] .un-form select { background-position: right 12px center; }
.un-form option { background: var(--u-ink); color: #fff; }
.un-form input::placeholder, .un-form textarea::placeholder { color: rgb(179 192 214 / .7); }
.un-form input:focus, .un-form select:focus, .un-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--green, #83CD20); background-color: rgb(255 255 255 / .1); }
.un-form input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #1C2A44 inset; }
.un-form [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #FF9A8A; }
.un-form .un-btn { margin-top: 4px; min-height: 52px; font-size: 15px; }
.un-form .un-link { justify-self: center; color: #DCE6F5; text-decoration-color: rgb(255 255 255 / .35); }
.un-form__msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgb(131 205 32 / .16); color: #C9F08F; font-size: 13.5px; line-height: 1.8; }
.un-form__msg.is-err { background: rgb(255 120 100 / .14); color: #FFB4A8; }
.un-form__msg[hidden] { display: none; }
.un-form .un-trap { position: absolute; padding: 0; min-height: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.un-others { margin-top: 64px; }
.un-others h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.un-others ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
.un-others a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.un-others .un-card { margin-bottom: 10px; transition: translate .4s var(--ease-out); }
.un-others a:hover .un-card { translate: 0 -4px; }
.un-others b { font-size: 14.5px; line-height: 1.6; }
.un-others span { color: var(--u-ink-2); font-size: 12.5px; }

/* ---------- narrower ---------- */
@media (max-width: 1099px) {
  .un-list { grid-template-columns: minmax(0, 1fr); }
  .un-one__body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .un-side { position: static; }
}
@media (max-width: 760px) {
  .un-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "eyebrow" "title" "lead" "stats"; }
  .un-stats { margin-top: 18px; }
  .un-stats dd { font-size: 26px; }
  .un-pick { padding: 16px; margin-inline: -4px; }
  .un-item { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .un-item__card { width: 78%; margin-inline: auto; }
  .un-plan > ol { grid-template-columns: minmax(0, 1fr); }
  .un-one__row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .un-card--big { width: 86%; margin-inline: auto; }
  .un-text { padding: 20px 18px; margin-inline: -4px; font-size: 15.5px; }
  .un-form { padding: 20px 18px; margin-inline: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .un *, .un *::before { transition-duration: 0s !important; }
}
.un-others .un-card__code { font-size: 26px; }
.un-others .un-card__chip { width: 30px; }

/* phones: no blur behind the field picker */
.v-m .un-pick { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(251 252 253 / .92); }
