/* Доп. стили поверх Stadum: контент Django, прелоадер */

/* Фирменная палитра: #1A263C — основной тёмный, #D3985C — акцент (кнопки, ссылки, иконки) */
:root {
  --theme-color: #d3985c;
  --theme-color2: #1a263c;
  --title-color: #1a263c;
  --title-color2: #1a263c;
  --title-color3: #1a263c;
  --title-color4: #1a263c;
  --black-color: #1a263c;
  --black-color2: #243349;
  --black-color8: #1a263c;
}

.th-header.header-layout2 .menu-area::before {
  background-color: #1a263c;
}

body::-webkit-scrollbar-track {
  background: rgba(26, 38, 60, 0.08);
}

#django-main {
  min-height: 40vh;
}

.preloader .loader,
.preloader .loading-text {
  font-size: 0.75rem;
}

.django-prose .prose,
.prose {
  max-width: 100%;
}

.django-home-section {
  margin-bottom: 2rem;
}

.kaznu-header {
  position: relative;
  z-index: 99;
  background: #fff;
  box-shadow: 0 10px 32px rgba(26, 38, 60, 0.08);
}

.kaznu-header__utility {
  border-bottom: 1px solid rgba(26, 38, 60, 0.08);
  background: #f8fafc;
}

.kaznu-header__utility-inner,
.kaznu-header__contacts,
.kaznu-header__tools,
.kaznu-header__langs,
.kaznu-header__main,
.kaznu-header__actions {
  display: flex;
  align-items: center;
}

.kaznu-header__utility-inner {
  min-height: 42px;
  justify-content: space-between;
  gap: 1rem;
}

.kaznu-header__contacts,
.kaznu-header__tools {
  gap: 1rem;
  flex-wrap: wrap;
}

.kaznu-header__contacts a,
.kaznu-header__tool-link,
.kaznu-header__a11y button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #36435c;
  font-size: 14px;
  line-height: 1.2;
}

.kaznu-header__contacts i,
.kaznu-header__tool-link i,
.kaznu-header__a11y i {
  color: #d3985c;
}

.kaznu-header__langs {
  gap: 0.35rem;
}

.kaznu-header__langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 28px;
  border-radius: 999px;
  color: #4b5872;
  font-size: 13px;
  font-weight: 700;
}

.kaznu-header__langs a.is-active {
  color: #fff;
  background: #1a263c;
}

.kaznu-header__a11y button {
  border: 0;
  padding: 0;
  background: transparent;
}

.kaznu-header .menu-area {
  background: #fff;
}

.kaznu-header__main {
  min-height: 88px;
  justify-content: space-between;
  gap: 1.5rem;
}

.kaznu-header__logo {
  flex: 0 0 auto;
}

.kaznu-header__nav {
  flex: 1 1 auto;
}

.kaznu-header__nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.kaznu-header__nav > ul > li {
  margin: 0;
}

.kaznu-header__nav > ul > li > a {
  padding: 34px 12px;
  color: #1a263c;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.kaznu-header__nav > ul > li > a:hover {
  color: #d3985c;
}

.kaznu-header__actions {
  gap: 0.75rem;
  flex: 0 0 auto;
}

.kaznu-header .th-btn {
  min-width: 0;
  padding: 14px 20px;
  border-radius: 6px;
  white-space: nowrap;
}

.kaznu-header .th-menu-toggle {
  align-items: center;
  justify-content: center;
}

.kaznu-header .logo-pair--header .logo-pair__img--founder {
  max-height: 54px;
}

.kaznu-header .logo-pair--header .logo-pair__img--branch {
  max-height: 46px;
}

.hero-1 .hero-title {
  max-width: 820px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-1 .hero-text {
  max-width: 760px;
}

.hero-1 .btn-wrap {
  gap: 0.85rem;
}

.hero-1 .slider-pagination {
  bottom: 28px;
}

.site-sections {
  padding: 84px 0;
  background: #f7f9fc;
  border-top: 1px solid rgba(26, 38, 60, 0.06);
  border-bottom: 1px solid rgba(26, 38, 60, 0.06);
}

.site-sections__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 30px;
}

.site-sections__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: #d3985c;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-sections h2 {
  margin: 0;
  color: #1a263c;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.site-sections__header p {
  max-width: 470px;
  margin: 0;
  color: #5b667a;
  font-size: 17px;
  line-height: 1.6;
}

.site-sections__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.site-section-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 206px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(26, 38, 60, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(26, 38, 60, 0.06);
  color: #1a263c;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d3985c;
  opacity: 0;
  transition: opacity 180ms ease;
}

.site-section-card:hover {
  color: #1a263c;
  transform: translateY(-4px);
  border-color: rgba(211, 152, 92, 0.55);
  box-shadow: 0 22px 46px rgba(26, 38, 60, 0.11);
}

.site-section-card:hover::before {
  opacity: 1;
}

.site-section-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: rgba(211, 152, 92, 0.14);
  color: #d3985c;
  font-size: 23px;
}

.site-section-card__title {
  display: block;
  margin-bottom: 10px;
  color: #1a263c;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.site-section-card__text {
  display: block;
  max-width: 92%;
  color: #566175;
  font-size: 16px;
  line-height: 1.55;
}

.site-section-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: auto;
  align-self: flex-end;
  border-radius: 999px;
  background: #1a263c;
  color: #fff;
  transform: translateX(0);
  transition: transform 180ms ease, background-color 180ms ease;
}

.site-section-card:hover .site-section-card__arrow {
  background: #d3985c;
  transform: translateX(3px);
}

/* Два логотипа: слева — учредитель (logo.png), справа — филиал (omsk-logo.jpeg) */
.logo-pair {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}

.logo-pair__link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo-pair__sep {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 28px;
  margin: 0 10px;
  background: rgba(0, 0, 0, 0.14);
}

.footer-layout3 .logo-pair__sep {
  background: rgba(255, 255, 255, 0.28);
}

.logo-pair__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.th-header.header-layout2 .logo-pair--header .logo-pair__img--founder {
  max-height: 56px;
}

.th-header.header-layout2 .logo-pair--header .logo-pair__img--branch {
  max-height: 48px;
}

.preloader-inner .logo-pair--preloader {
  justify-content: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.preloader-inner .logo-pair--preloader .logo-pair__sep {
  min-height: 24px;
  margin: 0 8px;
}

.preloader-inner .logo-pair--preloader .logo-pair__img--founder {
  max-height: 48px;
}

.preloader-inner .logo-pair--preloader .logo-pair__img--branch {
  max-height: 40px;
}

.sidemenu-wrapper .logo-pair--sidemenu .logo-pair__img--founder {
  max-height: 88px;
}

.sidemenu-wrapper .logo-pair--sidemenu .logo-pair__img--branch {
  max-height: 72px;
}

.th-menu-wrapper .logo-pair--mobile {
  justify-content: center;
}

.th-menu-wrapper .logo-pair--mobile .logo-pair__sep {
  min-height: 22px;
  margin: 0 8px;
}

.th-menu-wrapper .logo-pair--mobile .logo-pair__img--founder {
  max-height: 44px;
}

.th-menu-wrapper .logo-pair--mobile .logo-pair__img--branch {
  max-height: 38px;
}

.footer-layout3 .logo-pair--footer .logo-pair__img--founder {
  max-height: 96px;
}

.footer-layout3 .logo-pair--footer .logo-pair__img--branch {
  max-height: 80px;
}

.kaznu-footer.footer-wrapper {
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 68%, rgba(211, 152, 92, 0.22), rgba(211, 152, 92, 0) 24%),
    linear-gradient(180deg, #ffffff 0%, #fdfcfb 56%, #ffffff 100%);
  color: #1a263c;
  padding: 74px 0 44px;
  font-family: Georgia, "Times New Roman", serif;
}

.kaznu-footer__inner {
  max-width: 1030px;
}

.kaznu-footer a {
  color: #3157ff;
  text-decoration: none;
}

.kaznu-footer a:hover {
  color: #1a263c;
  text-decoration: underline;
}

.kaznu-footer__anti {
  max-width: 900px;
  margin-bottom: 44px;
  font-size: 14px;
  line-height: 1.35;
}

.kaznu-footer__anti p {
  margin: 0 0 8px;
  color: #111827;
}

.kaznu-footer__anti ul {
  margin: 0;
  padding-left: 21px;
}

.kaznu-footer__anti li {
  margin: 2px 0;
  color: #111827;
}

.kaznu-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 34px;
  text-align: center;
}

.kaznu-footer__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
}

.kaznu-footer__brand-link img {
  display: block;
  max-width: 62px;
  max-height: 62px;
  object-fit: contain;
}

.kaznu-footer__brand p {
  margin: 12px 0 0;
  color: #1a263c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.kaznu-footer__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.kaznu-footer-card {
  min-height: 96px;
  padding: 22px 24px;
  border: 1px solid rgba(26, 38, 60, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(26, 38, 60, 0.11);
}

.kaznu-footer-card h2,
.kaznu-footer__links h2,
.kaznu-footer__contacts h2 {
  margin: 0;
  color: #1a263c;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.kaznu-footer-card h2 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.kaznu-footer-card > a {
  font-size: 14px;
  line-height: 1.3;
}

.kaznu-footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kaznu-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5d86ff 0%, #2c47ff 100%);
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(49, 87, 255, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.kaznu-footer__socials a:hover {
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(49, 87, 255, 0.28);
}

.kaznu-footer__links {
  margin-bottom: 34px;
}

.kaznu-footer__links h2 {
  margin-bottom: 12px;
  color: #3157ff;
  font-size: 22px;
  line-height: 1.25;
}

.kaznu-footer__links a {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  color: #1a263c;
  font-size: 14px;
}

.kaznu-footer__contacts {
  max-width: 580px;
}

.kaznu-footer__contacts h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.3;
}

.kaznu-footer__contacts h2::before {
  content: "\00a9";
  margin-right: 6px;
  font-weight: 400;
}

.kaznu-footer__branch-short {
  margin: 0 0 16px;
  color: #1a263c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.kaznu-footer__details {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.kaznu-footer__details div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
}

.kaznu-footer__details dt,
.kaznu-footer__details dd {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}

.kaznu-footer__details dt {
  font-weight: 700;
}

.kaznu-footer__contacts address,
.kaznu-footer__contacts p,
.kaznu-footer__contacts a {
  font-size: 14px;
  line-height: 1.35;
}

.kaznu-footer__contacts address {
  margin: 0 0 18px;
  color: #111827;
  font-style: normal;
}

.kaznu-footer__contacts p {
  margin: 0 0 8px;
  color: #111827;
}

.kaznu-footer__contacts p a {
  color: inherit;
}

@media (max-width: 991px) {
  .kaznu-footer.footer-wrapper {
    padding: 56px 0 38px;
  }

  .kaznu-footer__cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kaznu-footer-card {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .kaznu-footer.footer-wrapper {
    padding: 42px 0 32px;
  }

  .kaznu-footer__anti {
    margin-bottom: 34px;
    font-size: 13px;
  }

  .kaznu-footer__brand {
    margin-bottom: 28px;
  }

  .kaznu-footer__brand p {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .kaznu-footer-card {
    padding: 20px;
  }

  .kaznu-footer-card h2,
  .kaznu-footer__links h2,
  .kaznu-footer__contacts h2 {
    font-size: 19px;
  }

  .kaznu-footer__details div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Шапка: не ломается на средней ширине (напр. 1322px) и при низкой высоте окна */
@media (min-width: 1400px) and (max-width: 1699.98px) {
  .th-header.header-layout2 .main-menu {
    margin-left: 28px;
  }

  .th-header.header-layout2 .main-menu > ul > li {
    margin-left: 5px;
    margin-right: 5px;
  }

  .th-header.header-layout2 .main-menu > ul > li > a {
    font-size: 15px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
}

@media (max-width: 1399.98px) {
  .kaznu-header__utility-inner {
    justify-content: center;
  }

  .kaznu-header__contacts {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .site-sections {
    padding: 72px 0;
  }

  .site-sections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .kaznu-header__utility-inner {
    min-height: 38px;
  }

  .kaznu-header__tool-link span,
  .kaznu-header__a11y span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .kaznu-header__main {
    min-height: 74px;
  }

  .kaznu-header .logo-pair--header .logo-pair__img--founder {
    max-height: 44px;
  }

  .kaznu-header .logo-pair--header .logo-pair__img--branch {
    max-height: 38px;
  }

  .hero-1 .hero-title {
    font-size: 48px;
  }

  .site-sections__header {
    display: block;
  }

  .site-sections__header p {
    margin-top: 14px;
  }
}

@media (max-width: 575.98px) {
  .kaznu-header__tools {
    justify-content: center;
    gap: 0.65rem;
  }

  .kaznu-header__main {
    gap: 0.75rem;
  }

  .kaznu-header .logo-pair__sep {
    min-height: 22px;
    margin: 0 7px;
  }

  .kaznu-header .logo-pair--header .logo-pair__img--founder {
    max-height: 36px;
  }

  .kaznu-header .logo-pair--header .logo-pair__img--branch {
    max-height: 32px;
  }

  .hero-1 .hero-title {
    font-size: 34px;
  }

  .site-sections {
    padding: 56px 0;
  }

  .site-sections h2 {
    font-size: 34px;
  }

  .site-sections__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-section-card {
    min-height: 168px;
    padding: 22px;
  }

  .site-section-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
  }

  .site-section-card__title {
    font-size: 21px;
  }
}

@media (max-height: 480px) {
  .th-header.header-layout2 .header-top {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .th-header.header-layout2 .header-top .header-links li {
    font-size: 13px;
  }

  .th-header.header-layout2 .menu-area {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .th-header.header-layout2 .menu-area::before {
    height: 56px;
  }

  .th-header.header-layout2 .main-menu > ul > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .th-header.header-layout2 .logo-pair--header .logo-pair__img--founder {
    max-height: 36px;
  }

  .th-header.header-layout2 .logo-pair--header .logo-pair__img--branch {
    max-height: 32px;
  }

  .th-header.header-layout2 .logo-pair--header .logo-pair__sep {
    min-height: 20px;
    margin: 0 6px;
  }

  .th-header.header-layout2 .header-search {
    width: 44px;
    height: 44px;
    line-height: 42px;
    font-size: 16px;
  }
}

/* Farabi-inspired home layout */
.kaznu-header {
  background: #182338;
  box-shadow: none;
}

.kaznu-header__utility {
  border-bottom: 0;
  background: transparent;
}

.kaznu-header__utility-inner {
  min-height: 38px;
}

.kaznu-header__contacts a,
.kaznu-header__tool-link,
.kaznu-header__a11y button {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.kaznu-header__contacts i,
.kaznu-header__tool-link i,
.kaznu-header__a11y i {
  color: #dfa35d;
}

.kaznu-header__langs a {
  color: rgba(255, 255, 255, 0.72);
  border-radius: 4px;
}

.kaznu-header__langs a.is-active {
  color: #182338;
  background: #dfa35d;
}

.kaznu-header .menu-area {
  background: transparent;
}

.kaznu-header__main {
  min-height: 82px;
}

.kaznu-header__nav > ul {
  justify-content: flex-start;
  gap: 1.35rem;
}

.kaznu-header__nav > ul > li > a {
  padding: 26px 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.kaznu-header__nav > ul > li > a:hover {
  color: #dfa35d;
}

.kaznu-header .th-btn {
  background: #dfa35d;
  color: #182338;
  font-weight: 800;
}

.farabi-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #dfa35d;
}

.farabi-brand:hover {
  color: #dfa35d;
}

.farabi-brand__mark {
  display: block;
  width: auto;
  max-height: 64px;
}

.farabi-brand__text {
  display: grid;
  line-height: 1.02;
  letter-spacing: 2px;
}

.farabi-brand__text strong {
  color: #dfa35d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.farabi-brand__text small {
  max-width: 190px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0;
}

.farabi-hero {
  position: relative;
  overflow: hidden;
  margin-top: -1px;
  background: #182338;
}

.farabi-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 88px;
  background: #f1f1f1;
  clip-path: polygon(0 58%, 50% 100%, 100% 58%, 100% 100%, 0 100%);
}

.farabi-hero .th-slider {
  position: relative;
  z-index: 2;
}

.farabi-hero__slide {
  min-height: 660px;
  padding: 110px 0 180px;
}

.farabi-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.15fr);
  align-items: center;
  gap: 70px;
}

.farabi-hero__content {
  max-width: 620px;
}

.farabi-hero__label {
  margin-bottom: 16px;
  color: #dfa35d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}

.farabi-hero__title {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
}

.farabi-hero__text {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.65;
}

.farabi-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 54px;
  margin-top: 58px;
  border-radius: 999px;
  background: #dfa35d;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
}

.farabi-hero__button:hover {
  color: #182338;
  background: #f1b66c;
}

.farabi-hero__media {
  position: relative;
  margin: 0;
}

.farabi-hero__media::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  height: 100%;
  background: rgba(223, 163, 93, 0.55);
  pointer-events: none;
}

.farabi-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.farabi-hero .slider-pagination {
  position: absolute;
  bottom: 130px;
  left: 50%;
  z-index: 5;
  width: auto;
  transform: translateX(-50%);
}

.site-sections {
  position: relative;
  z-index: 8;
  margin-top: -122px;
  padding: 0 0 86px;
  border: 0;
  background: transparent;
}

.site-sections__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 42px rgba(24, 35, 56, 0.14);
}

.site-section-card {
  min-height: 136px;
  padding: 26px 26px 20px;
  border: 0;
  border-right: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.site-section-card:last-child {
  border-right: 0;
}

.site-section-card::before {
  width: 100%;
  height: 4px;
  inset: auto 0 0;
  background: #dfa35d;
}

.site-section-card__icon {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  color: #b7c2d5;
  font-size: 34px;
}

.site-section-card__title {
  max-width: 170px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 800;
}

.site-section-card__text,
.site-section-card__arrow {
  display: none;
}

.site-section-card:hover {
  transform: translateY(0);
  box-shadow: none;
  background: #fbfbfb;
}

.farabi-news-section {
  padding: 66px 0 84px;
  background: #f1f1f1;
}

.farabi-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 900px) minmax(320px, 360px);
  gap: 42px;
  align-items: start;
  justify-content: center;
}

.farabi-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(223, 163, 93, 0.65);
}

.farabi-section-heading h2,
.farabi-announcements h2,
.farabi-program-search h2 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.farabi-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dfa35d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
}

.farabi-news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 35, 56, 0.06);
}

.farabi-news-card:hover {
  border-color: rgba(223, 163, 93, 0.55);
  box-shadow: 0 18px 38px rgba(24, 35, 56, 0.09);
}

.farabi-news-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  background: #d8dde6;
}

.farabi-news-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.farabi-news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.farabi-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.farabi-news-card__meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(223, 163, 93, 0.16);
  color: #9f6330;
  font-size: 13px;
  font-weight: 800;
}

.farabi-news-card:hover .farabi-news-card__image img {
  transform: scale(1.025);
}

.farabi-date {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  border-radius: 0 8px 0 0;
  background: #dfa35d;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
}

.farabi-news-card h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.farabi-news-card h3 a {
  color: inherit;
}

.farabi-news-card h3 a:hover {
  color: #d4914d;
}

.farabi-news-card p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #566175;
  font-size: 15px;
  line-height: 1.6;
}

.farabi-news-card__link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: #d3985c;
  font-weight: 800;
}

.farabi-news-card__link:hover {
  color: #182338;
}

.farabi-news-card--lead {
  margin-bottom: 24px;
}

.farabi-news-card--lead .farabi-news-card__image img {
  aspect-ratio: 16 / 7.2;
}

.farabi-news-card--lead h3 {
  font-size: 25px;
}

.farabi-news-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.farabi-news-mini-grid .farabi-news-card h3 {
  font-size: 21px;
}

.farabi-news-mini-grid .farabi-news-card__body {
  min-height: 186px;
}

.farabi-announcements {
  padding: 30px 30px 28px;
  border: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 35, 56, 0.06);
}

.farabi-announcements h2 {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(223, 163, 93, 0.55);
  font-size: 28px;
}

.farabi-announcement {
  padding: 18px 0;
  border-bottom: 1px solid rgba(24, 35, 56, 0.1);
}

.farabi-announcement:first-child {
  padding-top: 0;
}

.farabi-announcement__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 14px;
  padding-right: 10px;
  overflow: hidden;
  border: 1px solid #dfa35d;
  border-radius: 6px;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
}

.farabi-announcement__date i {
  display: inline-flex;
  width: 34px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  background: #dfa35d;
  color: #fff;
  font-size: 14px;
}

.farabi-announcement h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: 0;
}

.farabi-announcement h3 a {
  color: inherit;
}

.farabi-announcement h3 a:hover {
  color: #d4914d;
}

.farabi-program-search {
  position: relative;
  padding: 76px 0 90px;
  border-top: 1px solid rgba(24, 35, 56, 0.08);
  background: #fff;
}

.farabi-program-search::before {
  content: "";
  position: absolute;
  top: -34px;
  right: 0;
  left: 0;
  height: 34px;
  background: linear-gradient(to bottom, rgba(241, 241, 241, 0), rgba(24, 35, 56, 0.04));
  pointer-events: none;
}

.farabi-program-search h2 {
  margin-bottom: 32px;
  font-size: 34px;
}

.farabi-program-search__results {
  margin-top: 48px;
}

.farabi-program-search__results .program-results-head h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
}

.farabi-program-search__tabs {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(24, 35, 56, 0.15);
}

.farabi-program-search__tabs a {
  position: relative;
  flex: 0 0 auto;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 800;
}

.farabi-program-search__tabs a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  height: 3px;
  background: #4264ff;
}

.farabi-program-search__form {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 35, 56, 0.08);
}

.farabi-program-search__form input {
  width: 100%;
  height: 58px;
  border: 0;
  padding: 0 24px;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.farabi-program-search__form button {
  width: 64px;
  height: 58px;
  border: 0;
  background: #fff;
  color: #4264ff;
  font-size: 22px;
}

@media (max-width: 1399.98px) {
  .farabi-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    gap: 46px;
  }

  .farabi-hero__title {
    font-size: 40px;
  }

  .farabi-news-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
  }
}

@media (max-width: 1199.98px) {
  .farabi-brand__text small {
    display: none;
  }

  .farabi-hero__slide {
    min-height: auto;
    padding: 72px 0 170px;
  }

  .farabi-hero__grid,
  .farabi-news-layout {
    grid-template-columns: 1fr;
  }

  .site-sections__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-section-card {
    border-bottom: 1px solid rgba(24, 35, 56, 0.08);
  }
}

@media (max-width: 767.98px) {
  .farabi-brand__text {
    display: none;
  }

  .farabi-brand__mark {
    max-height: 52px;
  }

  .farabi-hero__slide {
    padding: 48px 0 140px;
  }

  .farabi-hero__title {
    font-size: 31px;
  }

  .farabi-hero__button {
    margin-top: 30px;
  }

  .site-sections {
    margin-top: -92px;
    padding-bottom: 58px;
  }

  .site-sections__grid,
  .farabi-news-mini-grid {
    grid-template-columns: 1fr;
  }

  .site-section-card {
    min-height: 112px;
    border-right: 0;
  }

  .farabi-news-section,
  .farabi-program-search {
    padding: 54px 0;
  }

  .farabi-section-heading h2,
  .farabi-announcements h2,
  .farabi-program-search h2 {
    font-size: 30px;
  }

  .farabi-news-card h3,
  .farabi-news-mini-grid .farabi-news-card h3 {
    font-size: 23px;
  }

  .farabi-program-search__tabs {
    gap: 22px;
  }

  .farabi-program-search__tabs a {
    font-size: 18px;
  }
}

/* Information pages */
#django-main:has(.information-page) {
  background: #f1f1f1;
}

#django-main > .django-inner:has(.information-page) {
  padding-top: 72px !important;
}

.farabi-page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 100px;
  background: #182338;
  color: #fff;
}

.farabi-page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 54px;
  background: #f1f1f1;
  clip-path: polygon(0 58%, 50% 100%, 100% 58%, 100% 100%, 0 100%);
}

.farabi-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.farabi-breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.farabi-breadcrumb a:hover {
  color: #dfa35d;
}

.farabi-page-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.farabi-page-hero p,
.farabi-page-hero__intro {
  max-width: 820px;
  margin-top: 22px;
  color: #fff !important;
  font-size: 18px;
  line-height: 1.65;
}

.farabi-page-hero__intro p {
  color: #fff !important;
  margin: 0;
}

.information-page {
  margin-top: -38px;
  padding-bottom: 36px;
}

.information-page__head {
  margin-bottom: 28px;
}

.information-page__head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #d3985c;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.information-page__head h2 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.information-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.information-card {
  position: relative;
  display: flex;
  min-height: 188px;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(24, 35, 56, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 35, 56, 0.07);
  color: #182338;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.information-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #dfa35d;
  opacity: 0;
  transition: opacity 180ms ease;
}

.information-card:hover {
  color: #182338;
  transform: translateY(-4px);
  border-color: rgba(223, 163, 93, 0.55);
  box-shadow: 0 24px 52px rgba(24, 35, 56, 0.12);
}

.information-card:hover::before {
  opacity: 1;
}

.information-card__number {
  margin-bottom: 22px;
  color: #dfa35d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 800;
}

.information-card__title {
  display: block;
  max-width: 92%;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.information-card__text {
  display: block;
  margin-top: 12px;
  color: #5b667a;
  font-size: 15px;
  line-height: 1.55;
}

.information-card__arrow {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  align-self: flex-end;
  border-radius: 999px;
  background: #182338;
  color: #fff;
}

.information-card:hover .information-card__arrow {
  background: #dfa35d;
}

.information-panel {
  padding: 34px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 35, 56, 0.08);
}

.information-facts {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 35, 56, 0.1);
  border-radius: 10px;
}

.information-facts div {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  border-bottom: 1px solid rgba(24, 35, 56, 0.1);
}

.information-facts div:last-child {
  border-bottom: 0;
}

.information-facts dt,
.information-facts dd {
  margin: 0;
  padding: 18px 20px;
  line-height: 1.5;
}

.information-facts dt {
  background: #f6f7f9;
  color: #566175;
  font-weight: 800;
}

.information-facts dd {
  color: #182338;
}

.information-facts a {
  color: #2f50ff;
}

.management-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.management-card,
.document-card {
  border: 1px solid rgba(24, 35, 56, 0.1);
  border-radius: 10px;
  background: #fff;
}

.management-card {
  padding: 24px;
}

.management-card h3,
.document-card h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.management-card p {
  margin: 12px 0 0;
  color: #5b667a;
  line-height: 1.6;
}

.document-list {
  display: grid;
  gap: 14px;
}

.document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.document-card__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(223, 163, 93, 0.14);
  color: #d3985c;
  font-size: 22px;
}

.document-card__body span,
.document-card__muted {
  display: block;
  margin-top: 7px;
  color: #6b7485;
  font-size: 14px;
}

.document-card__download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #182338;
  color: #fff;
  font-weight: 800;
}

.document-card__download:hover {
  color: #182338;
  background: #dfa35d;
}

.information-empty {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(24, 35, 56, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #5b667a;
}

.farabi-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #d3985c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 800;
}

.farabi-back-link:hover {
  color: #182338;
}

@media (max-width: 1199.98px) {
  .information-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .farabi-page-hero {
    padding: 56px 0 78px;
  }

  .farabi-page-hero h1 {
    font-size: 34px;
  }

  .information-grid,
  .management-list {
    grid-template-columns: 1fr;
  }

  .information-panel {
    padding: 22px;
  }

  .information-facts div,
  .document-card {
    grid-template-columns: 1fr;
  }

  .document-card__download {
    justify-content: center;
  }
}

/* News and education program pages */
#django-main:has(.news-page),
#django-main:has(.news-detail-page),
#django-main:has(.program-search-page) {
  background: #f1f1f1;
}

.news-page-hero {
  padding-top: 92px;
}

.news-page,
.news-detail-page,
.program-search-page {
  margin-top: -38px;
  padding: 0 0 92px;
}

.news-page__head,
.program-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(223, 163, 93, 0.65);
}

.news-page__head span,
.program-results-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #d3985c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-page__head h2,
.program-results-head h2 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.news-page-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(24, 35, 56, 0.07);
}

.news-page-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d8dde6;
}

.news-page-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  transition: transform 220ms ease;
}

.news-page-card:hover .news-page-card__image img {
  transform: scale(1.025);
}

.news-page-card__body {
  display: flex;
  min-height: 230px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 24px 22px;
}

.news-page-card h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.news-page-card h3 a {
  color: inherit;
}

.news-page-card h3 a:hover {
  color: #d3985c;
}

.news-page-card p {
  margin: 14px 0 0;
  color: #5b667a;
  font-size: 15px;
  line-height: 1.65;
}

.news-page-card__link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
  color: #d3985c;
  font-weight: 800;
}

.news-page-card__link:hover {
  color: #182338;
}

.news-page-empty,
.program-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid rgba(24, 35, 56, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #5b667a;
}

.news-page-empty h3,
.program-empty h3 {
  margin: 0 0 8px;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.news-page-empty p,
.program-empty p {
  margin: 0;
}

.news-detail-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(24, 35, 56, 0.07);
}

.news-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 24px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(223, 163, 93, 0.16);
  color: #9f6330;
  font-weight: 800;
}

.news-detail-cover {
  overflow: hidden;
  margin: 0 0 30px;
  border-radius: 8px;
  background: #d8dde6;
}

.news-detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-detail-body {
  color: #182338;
}

.farabi-program-search__form {
  display: block;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.farabi-program-search__tabs label,
.program-stage-tabs label {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.farabi-program-search__tabs input,
.program-stage-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.farabi-program-search__tabs label span,
.program-stage-tabs label span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
}

.farabi-program-search__tabs label span::after,
.program-stage-tabs label span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -21px;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: #4264ff;
  transition: transform 160ms ease;
}

.farabi-program-search__tabs input:checked + span::after,
.program-stage-tabs input:checked + span::after {
  transform: scaleX(1);
}

.farabi-program-search__tabs input:checked + span,
.program-stage-tabs input:checked + span {
  color: #182338;
}

.farabi-program-search__form-row,
.program-search-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 35, 56, 0.08);
}

.farabi-program-search__form-row input,
.program-search-row input {
  width: 100%;
  height: 58px;
  border: 0;
  padding: 0 24px;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  background: #fff;
}

.farabi-program-search__form-row button,
.program-search-row button {
  width: 64px;
  min-width: 64px;
  height: 58px;
  border: 0;
  background: #fff;
  color: #4264ff;
  font-size: 22px;
}

.farabi-program-search__form-row button:hover,
.program-search-row button:hover {
  color: #182338;
}

.program-filter-form {
  margin-bottom: 54px;
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(24, 35, 56, 0.07);
}

.program-stage-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(24, 35, 56, 0.15);
}

.program-stage-tabs label span {
  font-size: 19px;
}

.program-results-head p {
  margin: 0;
  color: #5b667a;
  font-weight: 800;
}

.program-results-head--compact {
  margin-top: 64px;
}

.program-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.program-card {
  display: flex;
  min-height: 286px;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(24, 35, 56, 0.09);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 35, 56, 0.06);
}

.program-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.program-card__meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(223, 163, 93, 0.16);
  color: #9f6330;
  font-size: 13px;
  font-weight: 800;
}

.program-card h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}

.program-card h3 a {
  color: inherit;
}

.program-card h3 a:hover {
  color: #d3985c;
}

.program-card__faculty {
  margin: 12px 0 0;
  color: #4264ff;
  font-weight: 800;
}

.program-card__text {
  margin: 14px 0 0;
  color: #5b667a;
  line-height: 1.6;
}

.program-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  color: #6b7485;
  font-size: 14px;
}

.program-card__bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d3985c;
  font-weight: 800;
  white-space: nowrap;
}

.program-card__bottom a:hover {
  color: #182338;
}

.faculty-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.faculty-overview-card {
  display: grid;
  min-height: 150px;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #182338;
}

.faculty-overview-card:hover {
  color: #182338;
  border-color: rgba(223, 163, 93, 0.6);
  box-shadow: 0 14px 32px rgba(24, 35, 56, 0.06);
}

.faculty-overview-card span {
  color: #d3985c;
  font-size: 26px;
}

.faculty-overview-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.22;
}

.faculty-overview-card small {
  color: #6b7485;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .news-page-grid,
  .program-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faculty-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .news-page,
  .news-detail-page,
  .program-search-page {
    padding-bottom: 58px;
  }

  .news-page__head,
  .program-results-head {
    display: block;
  }

  .news-page__head h2,
  .program-results-head h2 {
    font-size: 31px;
  }

  .news-page-grid,
  .program-results-grid,
  .faculty-overview-grid {
    grid-template-columns: 1fr;
  }

  .news-page-card__body {
    min-height: 0;
  }

  .news-detail-card {
    padding: 22px;
  }

  .program-filter-form {
    padding: 22px;
  }

  .farabi-program-search__tabs,
  .program-stage-tabs {
    gap: 22px;
  }

  .farabi-program-search__tabs label span,
  .program-stage-tabs label span {
    font-size: 18px;
  }

  .program-card__bottom {
    display: block;
  }

  .program-card__bottom a {
    margin-top: 12px;
  }
}

/* Teaching staff */
#django-main:has(.teaching-staff-page) {
  background: #f1f1f1;
}

.teaching-staff-page {
  margin-top: -38px;
  padding: 0 0 92px;
}

.teaching-staff-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(223, 163, 93, 0.65);
}

.teaching-staff-page__head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #d3985c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.teaching-staff-page__head h2 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.teaching-staff-page__head p {
  margin: 0;
  color: #5b667a;
  font-weight: 800;
}

.teaching-staff-grid {
  display: grid;
  gap: 24px;
}

.teacher-card {
  overflow: hidden;
  border: 1px solid rgba(24, 35, 56, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(24, 35, 56, 0.07);
}

.teacher-card__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 28px 30px;
  border-bottom: 1px solid rgba(24, 35, 56, 0.08);
  background: linear-gradient(135deg, rgba(223, 163, 93, 0.14), rgba(66, 100, 255, 0.08));
}

.teacher-card__icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #182338;
  color: #fff;
  font-size: 24px;
}

.teacher-card__header span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #9f6330;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.teacher-card__header h3 {
  margin: 0;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.teacher-card__header p {
  margin: 8px 0 0;
  color: #4f5c72;
  font-weight: 800;
}

.teacher-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.teacher-card__facts div {
  min-width: 0;
  padding: 22px 24px;
  border-right: 1px solid rgba(24, 35, 56, 0.08);
  border-bottom: 1px solid rgba(24, 35, 56, 0.08);
}

.teacher-card__facts div:nth-child(2n) {
  border-right: 0;
}

.teacher-card__facts div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.teacher-card__facts dt {
  margin: 0 0 10px;
  color: #d3985c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-card__facts dd {
  margin: 0;
  color: #182338;
  line-height: 1.65;
}

.teaching-staff-empty {
  padding: 34px;
  border: 1px solid rgba(24, 35, 56, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #5b667a;
}

.teaching-staff-empty h3 {
  margin: 0 0 8px;
  color: #182338;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.teaching-staff-empty p {
  margin: 0;
}

@media (max-width: 767.98px) {
  .teaching-staff-page {
    padding-bottom: 58px;
  }

  .teaching-staff-page__head {
    display: block;
  }

  .teaching-staff-page__head h2 {
    font-size: 31px;
  }

  .teacher-card__header,
  .teacher-card__facts {
    grid-template-columns: 1fr;
  }

  .teacher-card__facts div,
  .teacher-card__facts div:nth-child(2n),
  .teacher-card__facts div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid rgba(24, 35, 56, 0.08);
  }

  .teacher-card__facts div:last-child {
    border-bottom: 0;
  }
}
