/* ==========================================================================
   KirpiGlobal - olke.css
   «Xaricdə təhsil» mərkəzi və ölkə səhifələri (/xaricde-tehsil/...). Səhifələri data/db/to_pages.py yazır.
   Rənglər və ölçülər styles.css-dəki :root dəyişənlərindəndir: gecə rejimi əlavə qayda tələb etmir.
   Kartlar və xətlər bank.css və tarixler.css ilə eynidir (--mist fonda ağ kartlar).
   ========================================================================== */

.ol-body {
  background-color: var(--mist);
}

.ol-main {
  padding: 24px 0 72px;
}

.ol-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Səhifə yolu: Ana səhifə / Xaricdə təhsil / Ölkə */
.ol-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.ol-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
}

.ol-crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ol-head {
  max-width: 880px;
  margin: 4px 0 8px;
}

.ol-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.ol-lead {
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}

/* Hər bölmə ağ kartdır; başlıq üstündəki ümumi section boşluqları ləğv olunur */
.ol-sec {
  max-width: 880px;
  margin-top: 16px;
  padding: 28px 32px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.ol-sec h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.ol-sec p {
  margin-bottom: 10px;
}

.ol-sec p:last-child {
  margin-bottom: 0;
}

.ol-small {
  margin: 2px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* Viza üçün məbləğ: bank səhifəsindəki kimi iri */
.ol-sec .ol-amount {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}

.ol-sec .ol-annual {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--muted);
}

/* Universitetlər, proqramlar, təqaüdlər */
.ol-uni {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.ol-uni h3 {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ol-sec .ol-meta {
  margin: 2px 0 10px;
  font-size: 15px;
  color: var(--muted);
}

.ol-progs {
  display: grid;
  gap: 6px;
  list-style: none;
}

.ol-progs li {
  padding-left: 14px;
  border-left: 2px solid var(--line);
}

.ol-sec .ol-prog {
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ol-prog a {
  display: inline-block;
  padding: 9px 0;
}

/* Yaxın son tarixlər */
.ol-dates {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  list-style: none;
}

.ol-dates li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
}

.ol-date {
  min-width: 140px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

.ol-dl-title {
  flex: 1 1 240px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ol-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--blue);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
}

.ol-tag--confirmed {
  background-color: var(--blue);
  color: var(--white);
}

.ol-tag--estimated {
  background-color: transparent;
  color: var(--blue);
}

/* Sualın qalıb? */
.ol-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Mənbələr */
.ol-sources {
  list-style: none;
  margin-bottom: 10px;
  font-size: 14px;
}

.ol-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}

.ol-foot {
  max-width: 880px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Mərkəz: ölkələrin cədvəli. Dar ekranda cədvəl öz qutusunda sürüşür, səhifə yox. */
.ol-table-wrap {
  margin-bottom: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ol-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.ol-table th,
.ol-table td {
  padding: 6px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.ol-table thead th {
  padding: 12px 14px;
  background-color: var(--mist);
  font-weight: 600;
  white-space: nowrap;
}

.ol-table tbody tr:last-child th,
.ol-table tbody tr:last-child td {
  border-bottom: 0;
}

.ol-table tbody th {
  font-weight: 600;
}

.ol-table tbody th a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ol-table td .ol-small {
  display: block;
  margin: 0;
  font-size: 13px;
}

.ol-steps {
  padding-left: 1.4em;
}

.ol-steps li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.ol-steps li:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .ol-main {
    padding: 8px 0 48px;
  }

  .ol-lead {
    font-size: 16px;
  }

  .ol-sec {
    padding: 20px;
  }

  .ol-sec .ol-amount {
    font-size: 26px;
  }

  .ol-date {
    min-width: 0;
    flex-basis: 100%;
  }

  .ol-cta-btns .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Bakalavr / Magistr düymələri: radio düymələr və CSS, JavaScript yoxdur (JavaScript söndürülsə də işləyir).
   Radio düymələr gizlidir, amma klaviaturadan fokus alır: oxlarla seçim dəyişir.
   Bakalavr seçiləndə attestat və bakalavr proqramları, magistr seçiləndə diplomun tanınması və magistr proqramları görünür. */
.ol-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ol-tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background-color: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#lvl-bakalavr:checked ~ .ol-tabs label[for="lvl-bakalavr"],
#lvl-magistr:checked ~ .ol-tabs label[for="lvl-magistr"] {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

#lvl-bakalavr:focus-visible ~ .ol-tabs label[for="lvl-bakalavr"],
#lvl-magistr:focus-visible ~ .ol-tabs label[for="lvl-magistr"] {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

#lvl-bakalavr:checked ~ .ol-lvl-magistr,
#lvl-magistr:checked ~ .ol-lvl-bakalavr {
  display: none;
}
