/* Django versiyasi uchun qo'shimcha stillar.
   Ranglar va shriftlar universitet-sayt.webflow.css dagi o'zgaruvchilardan olinadi. */

/* ================================================================
   Umumiy
   ================================================================ */

/* Bo'sh ro'yxatlar uchun xabar */
.empty-state {
  grid-column: 1 / -1;
  width: 100%;
  padding: 32px 24px;
  border: 1px dashed var(--color--strock-color);
  border-radius: 16px;
  background-color: var(--color--white-color);
  color: var(--color--gray-color);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.empty-state a {
  color: var(--color--secondary-color);
  font-weight: var(--font-weight--font-weight-semibold);
}

/* Forma yuborilgandan keyingi xabarlar */
.form-alert {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
}

.form-alert.is-success {
  background-color: var(--color--secondary-color);
  color: var(--color--white-color);
}

.form-alert.is-error {
  background-color: #ffdede;
  color: #8a1f1f;
}

/* Sarlavha ichidagi havolalar dizaynni buzmasligi uchun */
.featured-course-title-link,
.speaker-name-link,
.skill-point-text,
a.required-skill-text {
  color: inherit;
  text-decoration: none;
}

.featured-course-title-link:hover,
.speaker-name-link:hover {
  color: var(--color--secondary-color);
}

/* Bosh sahifa "Ta'lim yo'li": yo'nalish chiplari havola */
a.required-skill-text:hover {
  border-color: var(--color--secondary-color);
  color: var(--color--secondary-color);
}

/* Webflow xarita vidjeti o'rniga Google Maps iframe */
.event-map-frame,
.contact-map-frame {
  display: block;
  width: 100%;
  min-height: 300px;
  border: 0;
}

/* Kategoriya sahifasidagi qisqa tavsif */
.breadcrumb-summary {
  max-width: 710px;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--color--white-color);
  opacity: 0.85;
}

/* Mobil: shablonda konteyner chetlari 0 edi — matnlar ekran chetiga tegmasin */
@media screen and (max-width: 767px) {
  .container-default {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ================================================================
   Universitet logosi: gerb + to'liq nom + shior (uriu.uz dagidek)
   ================================================================ */

.navbar-brand,
.footer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.uriu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color--white-color);
  text-decoration: none;
}

.uriu-brand-emblem {
  display: block;
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  flex: none;
  padding: 2px;
  border-radius: 50%;
  background-color: var(--color--white-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  object-fit: contain;
}

.uriu-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uriu-brand-name {
  color: var(--color--white-color);
  font-family: var(--font-family--heading-font-family);
  font-size: 15px;
  font-weight: var(--font-weight--font-weight-semibold);
  line-height: 18px;
  white-space: nowrap;
}

.uriu-brand-sub {
  margin-top: 3px;
  color: var(--color--primary-color);
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.uriu-brand.is-footer .uriu-brand-emblem {
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
}

.uriu-brand.is-footer .uriu-brand-name {
  font-size: 17px;
  line-height: 21px;
}

/* Mobil menyu ochilganda fon oq bo'ladi — logo matni ko'rinishi uchun */
.nav-mobile-brand .uriu-brand-name {
  color: var(--color--heading-color);
}

.nav-mobile-brand .uriu-brand-sub {
  color: var(--color--secondary-color);
}

@media screen and (max-width: 767px) {
  /* HTML'dagi inline o'lchamdan ustun turishi uchun !important */
  .uriu-brand-emblem {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
  }

  .uriu-brand-name {
    font-size: 13px;
    line-height: 16px;
  }

  .uriu-brand-sub {
    display: none;
  }
}

/* ================================================================
   Footer
   ================================================================ */

/* Uzun telefon/manzil ekrandan chiqib ketmasin */
.footer-column.is-3 {
  flex: 0 1 300px;
  min-width: 0;
}

.footer-column.is-3 .footer-link,
.footer-column.is-3 .email-block,
.footer-column.is-3 .phone-block {
  white-space: normal;
  overflow-wrap: anywhere;
}

.footer-column.is-3 .phone-block {
  flex-wrap: wrap;
  row-gap: 4px;
}

.footer-column.is-3 .footer-link.hover {
  flex: 1 1 auto;
  min-width: 0;
}

/* Sayt dasturchisi haqida ma'lumot */
.footer-developer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 20px;
  margin-top: 10px;
  color: var(--color--white-color);
  font-size: 14px;
  line-height: 20px;
  opacity: 0.75;
}

.footer-developer a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

.footer-developer a:hover {
  color: var(--color--primary-color);
  opacity: 1;
}

/* ================================================================
   Kurslar (yo'nalishlar)
   ================================================================ */

/* Narx belgisi: "16 000 000 so'm" kabi uzun summalar sig'ishi uchun.
   Qisqa matnda dumaloq qoladi, uzunida kengayadi. */
/* Yo'nalish kartochkasidagi narx: saytning yashil rangi + oltin.
   Oltin hoshiya aylanib turadi, oltin matn ustidan yaltiroq o'tadi,
   kartochkaga sichqoncha olib borilganda belgi ko'tarilib yorishadi. */
@property --price-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.course-pricing-block:not(.is-3) {
  --gold-1: #ffb91d;
  --gold-2: #ffe08a;
  --gold-3: #c98a00;
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 14px 0 12px;
  gap: 7px;
  border-radius: 999px;
  isolation: isolate;
  background: linear-gradient(135deg, #0e6b54 0%, var(--color--secondary-color) 55%, #073a2e 100%);
  box-shadow: 0 6px 18px rgba(7, 58, 46, .35), 0 0 0 0 rgba(255, 185, 29, 0);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}

/* Aylanib turuvchi oltin hoshiya */
.course-pricing-block:not(.is-3)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--price-angle),
    var(--gold-3), var(--gold-1) 20%, var(--gold-2) 30%, var(--gold-1) 40%,
    rgba(255, 185, 29, .25) 60%, var(--gold-3) 80%, var(--gold-3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: price-border-spin 4s linear infinite;
}

/* Chapdagi kichik oltin nuqta — sekin "nafas oladi" */
.course-pricing-block:not(.is-3)::after {
  content: "";
  order: -1;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-2), var(--gold-1) 60%, var(--gold-3));
  box-shadow: 0 0 0 0 rgba(255, 185, 29, .6);
  animation: price-dot-pulse 2.4s ease-out infinite;
}

.price-text {
  white-space: nowrap;
}

/* Oltin matn, ustidan yorug'lik o'tib turadi */
.course-pricing-block:not(.is-3) .price-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--gold-1);
  background: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-1) 40%, #fff6d6 50%, var(--gold-1) 60%, var(--gold-1) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: price-text-shine 3.6s ease-in-out infinite;
}

.course-item-block:hover .course-pricing-block:not(.is-3) {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(7, 58, 46, .45), 0 0 0 4px rgba(255, 185, 29, .18);
}

.course-item-block:hover .course-pricing-block:not(.is-3)::before {
  animation-duration: 1.6s;
}

@keyframes price-border-spin {
  to { --price-angle: 360deg; }
}

@keyframes price-text-shine {
  0% { background-position: 100% 0; }
  55%, 100% { background-position: 0% 0; }
}

@keyframes price-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 185, 29, .65); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(255, 185, 29, 0); }
}

/* Harakatni kamaytirishni so'ragan foydalanuvchilarga — animatsiyasiz, statik oltin */
@media (prefers-reduced-motion: reduce) {
  .course-pricing-block:not(.is-3),
  .course-pricing-block:not(.is-3)::before,
  .course-pricing-block:not(.is-3)::after,
  .course-pricing-block:not(.is-3) .price-text {
    animation: none;
    transition: none;
  }
}

/* Kurs kartasida reyting o'rniga yo'nalish shifri */
.course-code,
.featured-course-certificate-text {
  color: var(--color--gray-color);
  font-size: 14px;
  line-height: 20px;
}

/* Kurslar sahifasidagi filtr: tanlangan yo'nalish */
.category-filter-item.w--current {
  background-color: var(--color--secondary-color);
  color: var(--color--white-color);
}

/* Kurs sahifasi: "Kim bo'lib ishlaysiz" ro'yxati uzun matnlar uchun bitta ustunda */
.highlights-skill-point-block.is-list {
  grid-template-columns: 1fr;
}

.highlights-skill-single-point {
  min-width: 0;
}

.highlights-skill-point-icon-block {
  flex: none;
}

.highlights-skill-point-text {
  overflow-wrap: anywhere;
}

/* Kurs sahifasi sidebar: uzun qiymatlar yorliq ustiga chiqmasin */
.course-details-info-pointer-block {
  flex: none;
  align-items: center;
}

.course-details-info-content-block {
  min-width: 0;
  margin-left: 16px;
  text-align: right;
}

/* ================================================================
   Qidiruv sahifasi
   ================================================================ */

.search-page-form {
  max-width: 720px;
  margin: 0 auto 32px;
}

.search-summary {
  margin-bottom: 32px;
  color: var(--color--gray-color);
  text-align: center;
}

.search-group {
  margin-bottom: 56px;
}

.search-group .section-subtitle {
  margin-bottom: 24px;
}

.search-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================================================================
   Bazadan keladigan rasmlar: asl fayl qanday o'lchamda bo'lmasin,
   sahifada bir xil proporsiyada chiqadi (ortiqcha qismi kesiladi).
   ================================================================ */

/* Kurs, blog va tadbir kartalari — 4:3 */
.course-thumbnail,
.slider-course-thumbnail,
.blog-thumbnail,
.event-item-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Katta (featured) rasmlar */
.featured-course-image,
.featured-blog-image,
.upcoming-event-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Sahifa ichidagi asosiy rasmlar — 16:9 */
.course-details-hero-image,
.course-video-thumbnail,
.blog-main-image,
.event-main-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* O'qituvchi portretlari — 4:5, yuz qismi ko'rinsin */
.tutor-item-image,
.featured-tutor-image,
.tutor-details-image,
.speakers-image,
.speaker-image,
.tutor-skill-photo,
.instructor-card-image-block img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
}

/* O'qituvchi sahifasi: radar-diagramma o'rniga o'qituvchi rasmi */
.tutor-skill-photo {
  display: block;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 16px;
}

/* Kichik dumaloq avatarlar */
.featured-course-tutor-image,
.featured-blog-authore-image {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 15%;
}

.course-tutor-image {
  width: 150px;
  height: 160px;
  object-fit: cover;
  object-position: 50% 15%;
}

.blog-author-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Yo'nalish (kategoriya) ikonkalari — hammasi bir xil kvadrat */
.category-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

/* ---------- Til almashtirgich (UZ / RU / EN) ---------- */
.lang-switch {
  position: relative;
  flex: none;
  font-family: var(--font-family--heading-font-family);
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--color--white-color);
  border-radius: 30px;
  color: var(--color--white-color);
  font-size: 15px;
  font-weight: var(--font-weight--font-weight-semibold);
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .3s, border-color .3s;
}

.lang-switch-toggle::-webkit-details-marker {
  display: none;
}

.lang-switch-toggle:hover,
.lang-switch[open] .lang-switch-toggle {
  color: var(--color--primary-color);
  border-color: var(--color--primary-color);
}

.lang-switch-icon {
  transition: transform .3s;
}

.lang-switch[open] .lang-switch-icon {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 8px;
  border-radius: 12px;
  background-color: #054132;
  box-shadow: 0 13px 48px #0003;
}

.lang-switch-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color--white-color);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s, background-color .3s;
}

.lang-switch-link:hover {
  background-color: rgba(255, 255, 255, .08);
  color: var(--color--primary-color);
}

.lang-switch-link.is-active {
  color: var(--color--primary-color);
}

.lang-switch-code {
  min-width: 22px;
  font-size: 12px;
  font-weight: var(--font-weight--font-weight-semibold);
  opacity: .7;
}

.nav-button-block {
  gap: 12px;
}

.nav-menu-link {
  white-space: nowrap;
}

.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch.is-mobile {
  display: none;
}

@media screen and (max-width: 991px) {
  .lang-switch.is-desktop {
    display: none;
  }

  .lang-switch.is-mobile {
    display: block;
  }

  .lang-switch.is-mobile .lang-switch-toggle {
    padding: 12px 12px;
  }
}

/* Til tugmasi qo'shilgach tor ekranlarda header sig'ishi uchun */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .navbar-wrapper {
    grid-column-gap: 28px;
  }

  .nav-menu {
    grid-column-gap: 6px;
  }

  .nav-menu-link {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media screen and (max-width: 479px) {
  .navbar-wrapper {
    grid-column-gap: 10px;
  }

  .nav-mobile-actions {
    gap: 8px;
  }

  .lang-switch.is-mobile .lang-switch-toggle {
    gap: 6px;
    padding: 12px 10px;
  }
}

/* ===== "Biz haqimizda" menyusi va universitet sahifalari ===== */
.nav-dropdown-toggle.is-current {
  color: var(--color--primary-color);
}

.nav-dropdown-list.mega-menu.about-menu {
  left: -60px;
  min-width: 600px;
}

/* "Yo'nalishlar" va "Sahifalar" menyulari: bitta ustun */
.nav-dropdown-list.mega-menu.level-menu {
  min-width: 240px;
}

/* Havolalar ikki ustunda (5 + 4), sarlavha ikkala ustun ustida */
.about-menu .nav-dropdown-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 40px;
  width: 100%;
}

.about-menu .nav-heading {
  grid-column: 1 / -1;
}

.about-menu .nav-dropdown-link-text {
  line-height: 1.3;
}

.uni-section {
  background-color: var(--color--background-color);
}

.uni-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.uni-content {
  min-width: 0;
}

.uni-sidebar {
  position: sticky;
  top: 120px;
  border: 1px solid var(--color--primary-color);
  background-color: var(--color--secondary-color);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 2px 4px 20px #ffb91d26;
}

.uni-sidebar-heading {
  color: var(--color--white-color);
  font-family: var(--font-family--heading-font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

.uni-sidebar-list {
  display: flex;
  flex-direction: column;
}

.uni-sidebar-link {
  color: var(--color--white-color);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff1f;
  transition: color .4s;
}

.uni-sidebar-link:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.uni-sidebar-link:hover,
.uni-sidebar-link.w--current {
  color: var(--color--primary-color);
}

.uni-subheading {
  font-size: var(--font-size--heading-4);
  line-height: var(--font-line-hight--h4-line-hight);
  margin: 48px 0 20px;
}

.uni-subheading.is-first {
  margin-top: 0;
}

.uni-richtext {
  color: var(--color--gray-color);
  font-size: 17px;
  line-height: 1.65;
}

.uni-richtext p {
  margin: 0 0 16px;
}

.uni-richtext h3 {
  color: var(--color--heading-color);
  font-size: var(--font-size--heading-5);
  line-height: var(--font-line-hight--h5-line-hight);
  margin: 28px 0 12px;
}

.uni-richtext ul {
  margin: 0;
  padding-left: 22px;
}

.uni-richtext li {
  margin-bottom: 8px;
}

.uni-richtext li::marker {
  color: var(--color--secondary-color);
}

/* Xodim kartochkasi */
.uni-person-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uni-person-list + .uni-richtext {
  margin-top: 28px;
}

.uni-person {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
}

.uni-person-list .uni-person {
  margin-bottom: 0;
}

.uni-person-photo,
.uni-unit-photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uni-person-photo img,
.uni-unit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.uni-person-initials {
  color: var(--color--secondary-color);
  font-family: var(--font-family--heading-font-family);
  font-size: 48px;
  font-weight: 700;
  opacity: .5;
}

.uni-person-body {
  align-self: center;
}

.uni-person-position {
  color: var(--color--secondary-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.uni-person-degree {
  color: var(--color--gray-color);
  font-size: 15px;
  line-height: 1.4;
  margin-top: 6px;
}

.uni-person-name {
  font-size: var(--font-size--heading-5);
  line-height: var(--font-line-hight--h5-line-hight);
  margin: 14px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color--strock-color);
}

.uni-person-name a {
  color: inherit;
  text-decoration: none;
}

.uni-person-name a:hover {
  color: var(--color--secondary-color);
}

.uni-person-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color--gray-color);
  font-size: 16px;
  line-height: 1.5;
}

.uni-person-contacts li + li {
  margin-top: 4px;
}

.uni-person-contacts a {
  color: var(--color--heading-color);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.uni-person-contacts a:hover {
  color: var(--color--secondary-color);
}

.uni-person-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--color--secondary-color);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.uni-person-more:hover {
  color: var(--color--heading-color);
}

/* Xodimlar jadvali */
.uni-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  background-color: var(--color--white-color);
}

.uni-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.uni-table th {
  background-color: var(--color--secondary-color);
  color: var(--color--white-color);
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
}

.uni-table td {
  color: var(--color--heading-color);
  padding: 14px 20px;
  border-top: 1px solid var(--color--strock-color);
  vertical-align: top;
}

.uni-table td + td {
  color: var(--color--gray-color);
}

/* Registrator xizmatlari */
.uni-service-list {
  counter-reset: uni-service;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.uni-service-list li {
  counter-increment: uni-service;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--color--heading-color);
  font-size: 16px;
  line-height: 1.45;
}

.uni-service-list li::before {
  content: counter(uni-service);
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color--primary-color);
  color: var(--color--heading-color);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tuzilma */
.uni-figure {
  margin: 0;
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  padding: 16px;
}

.uni-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.uni-figure figcaption {
  color: var(--color--gray-color);
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

/* Tuzilma: tashkiliy tuzilma matn ko'rinishida */
.uni-org {
  margin-bottom: 8px;
}

.uni-org-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.uni-org-rector {
  background-color: var(--color--secondary-color);
  color: var(--color--white-color);
  border-radius: 12px;
  padding: 14px 48px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uni-org-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uni-org-side li {
  background-color: var(--color--background-color);
  border: 1px solid var(--color--primary-color);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 15px;
}

.uni-org-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.uni-org-branch {
  --org-tone: var(--color--secondary-color);
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-top: 4px solid var(--org-tone);
  border-radius: 16px;
  padding: 18px 20px 20px;
}

.uni-org-branch.is-youth { --org-tone: #8e6bbf; }
.uni-org-branch.is-study { --org-tone: #4f9a5a; }
.uni-org-branch.is-science { --org-tone: #d0605e; }
.uni-org-branch.is-rector { --org-tone: #2c9fae; }

.uni-org-branch-title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.uni-org-units {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uni-org-units li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-top: 1px solid var(--color--light-gray);
  color: var(--color--gray-color);
  font-size: 15px;
  line-height: 1.4;
}

.uni-org-units li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--org-tone);
}

@media screen and (max-width: 767px) {
  .uni-org-branches {
    grid-template-columns: minmax(0, 1fr);
  }

  .uni-org-rector {
    padding: 12px 32px;
  }
}

/* Kafedralar */
.uni-kafedra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.uni-kafedra-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  padding: 32px 24px;
  color: var(--color--heading-color);
  text-decoration: none;
  transition: border-color .4s, transform .4s;
}

.uni-kafedra-card:hover {
  border-color: var(--color--primary-color);
  transform: translateY(-4px);
}

.uni-kafedra-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color--light-gray);
}

.uni-kafedra-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uni-kafedra-name {
  font-family: var(--font-family--heading-font-family);
  font-size: var(--font-size--heading-5);
  font-weight: 700;
  line-height: 1.3;
}

.uni-kafedra-count {
  color: var(--color--secondary-color);
  font-size: 15px;
  font-weight: 600;
}

/* Markazlar va bo'limlar */
.uni-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.uni-unit {
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.uni-unit-body {
  padding: 16px 8px 8px;
}

/* Bo'lim kartochkasida: qaysi markaz tarkibida ekani */
.uni-unit-center {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(11, 81, 64, .08);
  color: var(--color--secondary-color);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}

.uni-unit-center:hover {
  background-color: var(--color--primary-color);
  color: var(--color--heading-color);
}

.uni-unit-title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.uni-unit-name {
  color: var(--color--gray-color);
  font-size: 15px;
  line-height: 1.4;
}

/* Markaz kartochkasi va uning ichidagi bo'limlar */
.uni-center-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.uni-center {
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  padding: 20px;
  scroll-margin-top: 120px;
}

.uni-center-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.uni-center-photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uni-center-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.uni-center-label {
  color: var(--color--secondary-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.uni-center-title {
  font-size: var(--font-size--heading-5);
  line-height: var(--font-line-hight--h5-line-hight);
  margin: 0 0 8px;
}

/* Tarkibida bo'limi bor markaz: sarlavha bosiladi, bo'limlar animatsiya bilan ochiladi */
.uni-center.has-divisions {
  transition: border-color .3s, box-shadow .3s;
}

.uni-center.has-divisions:hover,
.uni-center.is-open {
  border-color: var(--color--secondary-color);
  box-shadow: 0 18px 36px -24px rgba(11, 81, 64, .45);
}

.uni-center-head[role="button"] {
  cursor: pointer;
  border-radius: 12px;
  outline-offset: 6px;
}

.uni-center-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px 8px 16px;
  border-radius: 999px;
  background-color: rgba(11, 81, 64, .08);
  color: var(--color--secondary-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .3s, color .3s;
}

.uni-center-head:hover .uni-center-more,
.uni-center.is-open .uni-center-more {
  background-color: var(--color--secondary-color);
  color: var(--color--white-color);
}

.uni-center-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--color--primary-color);
  color: var(--color--heading-color);
  font-size: 12px;
}

.uni-center-chevron {
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.uni-center.is-open .uni-center-chevron {
  transform: rotate(180deg);
}

/* Balandlik 0 dan o'z bo'yigacha silliq ochiladi (grid 0fr -> 1fr) */
.uni-center-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.2, .8, .2, 1);
}

.uni-center.is-open .uni-center-panel {
  grid-template-rows: 1fr;
}

.uni-center-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.uni-center-panel .uni-unit-grid {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--color--strock-color);
}

/* Markaz ichidagi ro'yxat: har bir kartochka butun eniga cho'zilgan gorizontal qator */
.uni-center-panel .uni-unit-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.uni-center-panel .uni-unit {
  position: relative;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 28px 20px 22px;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 20px;
  /* Oq fon ustida sekin oqib turadigan oltin-yashil hoshiya */
  background:
    linear-gradient(105deg, #fff 0%, #fff 55%, #f1f8f5 100%) padding-box,
    linear-gradient(110deg, #ffb91d, #0b5140 30%, #7fd1b9 50%, #0b5140 70%, #ffb91d) border-box;
  background-size: 100% 100%, 300% 100%;
  animation: unit-border-flow 7s linear infinite;
  box-shadow: 0 14px 30px -22px rgba(11, 81, 64, .55);
}

/* O'ng tomonda sekin "nafas oladigan" yorug'lik dog'i */
.uni-center-panel .uni-unit::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 29, .28), transparent 65%);
  transform: translateY(-50%);
  animation: unit-glow-breathe 5s ease-in-out infinite;
  pointer-events: none;
}

/* Sichqoncha ustiga kelganda kartochka bo'ylab o'tadigan yaltiroq chiziq */
.uni-center-panel .uni-unit::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.uni-center.is-open .uni-center-panel .uni-unit:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px -24px rgba(11, 81, 64, .65);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  transition-delay: 0s;
}

.uni-center-panel .uni-unit:hover::after {
  animation: unit-sheen 1.1s ease-out;
}

/* Dumaloq avatar, atrofida aylanib turadigan halqa */
.uni-center-panel .uni-unit-photo {
  position: relative;
  flex: none;
  width: 96px;
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 50%;
  background-color: transparent;
}

.uni-center-panel .uni-unit-photo::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(#ffb91d, #0b5140, #7fd1b9, rgba(255, 185, 29, 0) 75%, #ffb91d);
  animation: unit-ring-spin 4.5s linear infinite;
}

.uni-center-panel .uni-unit-photo img,
.uni-center-panel .uni-unit-photo .uni-person-initials {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.uni-center-panel .uni-unit-photo .uni-person-initials {
  background: linear-gradient(140deg, #0b5140, #063328);
  color: #ffd778;
  font-size: 30px;
  letter-spacing: .04em;
  opacity: 1;
}

.uni-center-panel .uni-unit-body {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0;
}

.uni-center-panel .uni-unit-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.uni-center-panel .uni-unit-name {
  font-size: 16px;
}

/* Lavozim: pulsatsiya qiluvchi nuqtali chip */
.uni-center-panel .uni-unit-name.is-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background-color: rgba(11, 81, 64, .08);
  color: var(--color--secondary-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.uni-center-panel .uni-unit-name.is-role::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1fae7a;
  animation: unit-dot-pulse 1.8s ease-out infinite;
}

@keyframes unit-border-flow {
  from { background-position: 0 0, 0% 0; }
  to { background-position: 0 0, 300% 0; }
}

@keyframes unit-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes unit-glow-breathe {
  0%, 100% { opacity: .55; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.18); }
}

@keyframes unit-sheen {
  from { left: -40%; opacity: 1; }
  to { left: 120%; opacity: 0; }
}

@keyframes unit-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 174, 122, .55); }
  100% { box-shadow: 0 0 0 9px rgba(31, 174, 122, 0); }
}

@media screen and (max-width: 767px) {
  .uni-center-panel .uni-unit {
    gap: 16px;
    padding: 16px;
  }

  .uni-center-panel .uni-unit-photo {
    width: 68px;
  }

  .uni-center-panel .uni-unit-photo .uni-person-initials {
    font-size: 22px;
  }

  .uni-center-panel .uni-unit-title {
    font-size: 18px;
  }
}

/* Kartochkalar birin-ketin pastdan ko'tarilib chiqadi */
.uni-center-panel .uni-unit {
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .3s, transform .3s;
}

.uni-center.is-open .uni-center-panel .uni-unit {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease-out, transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(.12s + var(--i, 1) * .09s);
}

@media (prefers-reduced-motion: reduce) {
  .uni-center-panel,
  .uni-center-panel .uni-unit,
  .uni-center-chevron {
    transition: none !important;
  }

  .uni-center-panel .uni-unit,
  .uni-center-panel .uni-unit::before,
  .uni-center-panel .uni-unit::after,
  .uni-center-panel .uni-unit-photo::before,
  .uni-center-panel .uni-unit-name.is-role::before {
    animation: none !important;
  }
}

/* Departamentlar ("Markazlar va bo'limlar" sahifasi tepasida) */
.uni-department {
  scroll-margin-top: 120px;
}

.uni-department + .uni-department {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color--strock-color);
}

.uni-department-title {
  margin-bottom: 24px;
}

/* "Universitet haqida" to'liq matni */
.uni-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.uni-about-grid.is-single {
  grid-template-columns: 1fr;
}

.uni-license-list {
  display: grid;
  gap: 16px;
}

.uni-license-item {
  display: block;
  border: 1px solid var(--color--strock-color);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color--white-color);
  transition: border-color .4s;
}

.uni-license-item:hover {
  border-color: var(--color--primary-color);
}

.uni-license-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .uni-layout,
  .uni-about-grid {
    grid-template-columns: 1fr;
  }

  .uni-sidebar {
    position: static;
  }

  .uni-license-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-dropdown-list.mega-menu.about-menu {
    left: auto;
    min-width: 260px;
  }

  /* Mobil menyu tor: yana bitta ustun */
  .about-menu .nav-dropdown-column {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .uni-person {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .uni-center-head {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
  }

  .uni-person-photo {
    max-width: 260px;
  }

  .uni-service-list,
  .uni-kafedra-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 479px) {
  .nav-dropdown-list.mega-menu.about-menu {
    min-width: 220px;
  }

  .uni-unit-grid {
    grid-template-columns: 1fr;
  }

  .uni-table th,
  .uni-table td {
    padding: 12px 14px;
  }
}

/* Footer ustidagi 4 ta afzallik qatori: webflow'da max-width 1920px bor, lekin markazlanmagan,
   shuning uchun katta ekranda o'ngda bo'sh joy qolardi. Qator to'liq kenglikda, mazmuni markazda. */
@media screen and (min-width: 1920px) {
  .footer-top-block {
    max-width: none;
    padding-left: max(80px, calc((100% - 1760px) / 2));
    padding-right: max(80px, calc((100% - 1760px) / 2));
  }
}

/* Bosh sahifa banneri: orqa fonda video */
.hero-section.has-video {
  background-image: url('../videos/uriu-hero-poster.jpg');
  background-position: 50%;
  background-size: cover;
  isolation: isolate;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Matn o'qilishi uchun: chapda (matn tomoni) to'qroq, o'ngga ochilib boradi */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 40, 31, .88) 0%, rgba(6, 50, 39, .72) 45%, rgba(11, 81, 64, .45) 100%),
    linear-gradient(0deg, rgba(4, 40, 31, .6) 0%, rgba(4, 40, 31, 0) 35%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
}

/* Yo'nalishlar sahifasi: kafedralar va ularning yo'nalishlari */
/* Sarlavha Webflow animatsiyasida pastdan ko'tariladi (translateY ~80px) — izoh matni
   uning ostida qolib ketmasligi uchun sarlavha ustki qatlamda, izoh esa yetarli masofada */
.kafedra-overview .section-heading-block {
  margin-bottom: 0;
}

.kafedra-overview .section-title-block {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.kafedra-overview-summary {
  color: var(--color--gray-color);
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
  margin: 10px auto 0;
  text-align: center;
}

.kafedra-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* Toq sondagi oxirgi kafedra yolg'iz qolmasin — butun qatorni egallaydi */
.kafedra-overview-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.kafedra-overview-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .4s;
}

.kafedra-overview-card:hover {
  border-color: var(--color--primary-color);
}

.kafedra-overview-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kafedra-overview-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color--secondary-color);
  color: var(--color--primary-color);
  font-family: var(--font-family--heading-font-family);
  font-size: 24px;
  font-weight: 700;
}

.kafedra-overview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kafedra-overview-name {
  font-size: var(--font-size--heading-5);
  line-height: 1.3;
  margin: 0 0 4px;
}

.kafedra-overview-count {
  color: var(--color--secondary-color);
  font-size: 15px;
  font-weight: 600;
}

.kafedra-overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.kafedra-overview-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color--strock-color);
  font-size: 16px;
  line-height: 1.4;
}

.kafedra-overview-item:last-child {
  border-bottom: 0;
}

.kafedra-overview-item.is-empty {
  color: var(--color--gray-color);
}

.kafedra-overview-item-title {
  color: var(--color--heading-color);
  font-weight: 500;
}

.kafedra-overview-item-meta {
  flex: none;
  color: var(--color--gray-color);
  font-size: 14px;
  white-space: nowrap;
}

.kafedra-overview-link {
  align-self: flex-start;
  margin-top: auto;
  color: var(--color--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color .4s;
}

.kafedra-overview-link:hover {
  color: var(--color--primary-color);
}

@media screen and (max-width: 991px) {
  .kafedra-overview-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

@media screen and (max-width: 767px) {
  .kafedra-overview-summary {
    font-size: 16px;
  }

  .kafedra-overview-card {
    padding: 20px;
  }

  .kafedra-overview-name {
    font-size: 19px;
  }

  .kafedra-overview-icon {
    width: 52px;
    height: 52px;
  }

  .kafedra-overview-item {
    flex-direction: column;
    gap: 2px;
  }

  .kafedra-overview-item-meta {
    white-space: normal;
  }
}

/* Kafedralar sahifasi: blok o'ng tomondagi menyu yonidagi torroq ustunda turadi */
.uni-content .kafedra-overview-grid {
  margin-top: 36px;
  gap: 20px;
}

.uni-content .kafedra-overview-card {
  padding: 24px;
}

.uni-content .kafedra-overview-item {
  flex-direction: column;
  gap: 2px;
}

.uni-content .kafedra-overview-item-meta {
  white-space: normal;
}


/* ================================================================
   Yo'nalish kartochkalari ortidagi animatsion fon
   Ranglar: yashil rgb(11, 81, 64), oltin rgb(255, 185, 29)
   ================================================================ */
.cards-bg {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 12% 18%, rgba(11, 81, 64, .07), transparent 70%),
    radial-gradient(45% 40% at 88% 78%, rgba(255, 185, 29, .09), transparent 70%),
    rgb(255, 255, 255);
}

.cards-bg > .section-gap {
  position: relative;
  z-index: 1;
}

.cards-bg-canvas,
.cards-bg-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Yuqori va pastki chetlarda fon yumshoq so'nadi */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.cards-bg-canvas {
  width: 100%;
  height: 100%;
}

/* Turli burchak ostidagi ingichka chiziqlar to'ri, sekin siljiydi */
.cards-bg-lines {
  background:
    repeating-linear-gradient(32deg, rgba(11, 81, 64, .07) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(-58deg, rgba(255, 185, 29, .10) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(75deg, rgba(11, 81, 64, .03) 0 1px, transparent 1px 130px);
  background-size: 400px 400px, 520px 520px, 700px 700px;
  animation: cards-bg-drift 38s linear infinite;
  overflow: hidden;
}

/* Fon bo'ylab qiya yo'nalishda o'tib turadigan nur chiziqlari */
.cards-bg-lines::before,
.cards-bg-lines::after {
  content: "";
  position: absolute;
  left: -50%;
  width: 200%;
  height: 2px;
  border-radius: 2px;
}

.cards-bg-lines::before {
  top: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 185, 29, .55), rgba(255, 185, 29, .9), rgba(255, 185, 29, .55), transparent);
  background-size: 35% 100%;
  background-repeat: no-repeat;
  transform: rotate(-14deg);
  animation: cards-bg-beam 9s ease-in-out infinite;
}

.cards-bg-lines::after {
  top: 68%;
  background: linear-gradient(90deg, transparent, rgba(11, 81, 64, .35), rgba(11, 81, 64, .6), rgba(11, 81, 64, .35), transparent);
  background-size: 30% 100%;
  background-repeat: no-repeat;
  transform: rotate(22deg);
  animation: cards-bg-beam 12s ease-in-out -4s infinite reverse;
}

@keyframes cards-bg-drift {
  to { background-position: 400px 400px, -520px 520px, 700px -700px; }
}

@keyframes cards-bg-beam {
  0% { background-position: -40% 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { background-position: 140% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cards-bg-lines,
  .cards-bg-lines::before,
  .cards-bg-lines::after {
    animation: none;
  }

  .cards-bg-lines::before,
  .cards-bg-lines::after {
    display: none;
  }
}

/* ================================================================
   Yo'nalish kartochkasi: rasm ostidagi tavsif qismiga "zarli yashil" animatsiya
   Faqat .course-item-content-block ichida — rasm ustiga chiqmaydi.
   Ranglar: yashil rgb(11, 81, 64), rgb(14, 107, 84); oltin rgb(255, 185, 29), rgb(255, 215, 110)
   ================================================================ */
.course-item-block .course-item-content-block:not(.is-3) {
  flex: 1;
  isolation: isolate;
}

/* 1-qatlam: yashil va oltin ranglar sekin oqib turadigan fon */
.course-item-block .course-item-content-block:not(.is-3)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg,
    rgba(11, 81, 64, .10) 0%,
    rgba(255, 185, 29, .16) 22%,
    rgba(14, 107, 84, .07) 45%,
    rgba(255, 215, 110, .15) 68%,
    rgba(11, 81, 64, .10) 100%);
  background-size: 300% 300%;
  animation: zarli-yashil-flow 12s ease-in-out infinite;
  opacity: .85;
  transition: opacity .5s ease, filter .5s ease;
}

/* 2-qatlam: yuqoridan o'tuvchi oltin-yashil nur chizig'i va yuqoriga suzuvchi oltin zarralar */
.course-item-block .course-item-content-block:not(.is-3)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 185, 29, .95), rgba(14, 107, 84, .9), transparent) no-repeat,
    radial-gradient(circle, rgba(255, 185, 29, .55) 0 1.6px, transparent 2.4px),
    radial-gradient(circle, rgba(11, 81, 64, .35) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(255, 215, 110, .6) 0 1px, transparent 1.8px);
  background-size: 45% 2px, 70px 70px, 95px 95px, 130px 130px;
  background-position: -50% 0, 0 0, 30px 40px, 60px 15px;
  animation: zarli-yashil-sparkle 9s linear infinite, zarli-yashil-twinkle 3s ease-in-out infinite;
}

/* Sichqoncha olib borilganda animatsiya yorqinlashadi */
.course-item-block:hover .course-item-content-block:not(.is-3)::before {
  opacity: 1;
  animation-duration: 5s;
  filter: saturate(1.4);
}

.course-item-block:hover .course-item-content-block:not(.is-3)::after {
  animation-duration: 4s, 1.6s;
}

@keyframes zarli-yashil-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes zarli-yashil-sparkle {
  0% { background-position: -50% 0, 0 0, 30px 40px, 60px 15px; }
  100% { background-position: 160% 0, 0 -70px, 30px -55px, 60px -115px; }
}

@keyframes zarli-yashil-twinkle {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .course-item-block .course-item-content-block:not(.is-3)::before,
  .course-item-block .course-item-content-block:not(.is-3)::after {
    animation: none;
  }
}

/* ================================================================
   Bosh sahifa: .section-gap bo'limlariga bezak
   Yashil rgb(11, 81, 64) va oltin rgb(255, 185, 29) — saytning asosiy ranglari.
   Hero va CTA bo'limlarida o'z foni bor, ularga tegilmaydi.
   ================================================================ */
.home-page > section:not(.hero-section):not(.cta-section) {
  position: relative;
}

.home-page > section:not(.hero-section):not(.cta-section) > .section-gap:not(.bottom) {
  position: relative;
  isolation: isolate;
}

/* Burchaklardagi yumshoq yashil va oltin yorug'lik dog'lari (sekin suzadi) */
.home-page > section:not(.hero-section):not(.cta-section) > .section-gap:not(.bottom)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(520px 240px at 4% 35%, rgba(11, 81, 64, .13), transparent 70%),
    radial-gradient(460px 230px at 98% 62%, rgba(255, 185, 29, .17), transparent 70%);
  background-repeat: no-repeat;
  animation: home-glow-breathe 7s ease-in-out infinite alternate;
}

/* Juft bo'limlarda dog'lar teskari tomonda — sahifa bir xil ko'rinmaydi */
.home-page > section:nth-of-type(even):not(.hero-section):not(.cta-section) > .section-gap:not(.bottom)::before {
  background:
    radial-gradient(520px 240px at 96% 35%, rgba(11, 81, 64, .13), transparent 70%),
    radial-gradient(460px 230px at 2% 62%, rgba(255, 185, 29, .17), transparent 70%);
  background-repeat: no-repeat;
  animation-delay: -3.5s;
}

/* Slayderli bo'limda chap tomonni oq .course-slider-overlay-block yopadi — dog'lar faqat o'ngda */
.home-page > section.courses-section.white-color > .section-gap:not(.bottom)::before {
  background:
    radial-gradient(520px 240px at 96% 35%, rgba(11, 81, 64, .12), transparent 70%),
    radial-gradient(460px 230px at 80% 65%, rgba(255, 185, 29, .16), transparent 70%);
  background-repeat: no-repeat;
}

/* Bo'limlar orasidagi ajratuvchi: o'rtada oltin romb, yonlarida yaltiroq chiziq */
.home-page > section:not(.hero-section):not(.cta-section) > .section-gap:not(.bottom)::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 60%);
  height: 12px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(45deg, transparent 38%, rgb(255, 185, 29) 38% 62%, transparent 62%) center / 12px 12px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent) -40% 50% / 30% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(11, 81, 64, .45) 30%, rgba(255, 185, 29, .9) 50%, rgba(11, 81, 64, .45) 70%, transparent) center / 100% 1px no-repeat;
  animation: home-divider-shine 5s ease-in-out infinite;
}

@keyframes home-glow-breathe {
  0% { opacity: .55; }
  100% { opacity: 1; }
}

@keyframes home-divider-shine {
  0% { background-position: center, -40% 50%, center; }
  60%, 100% { background-position: center, 140% 50%, center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page > section > .section-gap::before,
  .home-page > section > .section-gap::after {
    animation: none;
  }
}

/* ================================================================
   Bosh sahifa: "Universitetimiz kafedralari" kartochkalari
   ================================================================ */
.kaf-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.kaf-home-grid.is-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kaf-home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 18px;
  background: rgb(255, 255, 255);
  border: 1px solid rgba(11, 81, 64, .12);
  box-shadow: 0 14px 40px rgba(11, 81, 64, .07);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, border-color .45s ease;
}

/* Yuqoridagi yashil-oltin chiziq: hover'da to'liq ochiladi */
.kaf-home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(11, 81, 64), rgb(255, 185, 29));
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.kaf-home-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 185, 29, .55);
  box-shadow: 0 22px 50px rgba(11, 81, 64, .14);
}

.kaf-home-card:hover::before {
  transform: scaleX(1);
}

.kaf-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kaf-home-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: rgb(247, 243, 236);
  box-shadow: 0 0 0 3px rgb(255, 255, 255), 0 0 0 5px rgba(255, 185, 29, .55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kaf-home-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kaf-home-index {
  font-family: var(--font-family--heading-font-family);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 81, 64, .22);
  transition: -webkit-text-stroke-color .45s ease;
}

.kaf-home-card:hover .kaf-home-index {
  -webkit-text-stroke-color: rgb(255, 185, 29);
}

.kaf-home-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.kaf-home-desc {
  margin: -8px 0 0;
  color: var(--color--gray-color);
  font-size: 15px;
  line-height: 1.5;
}

.kaf-home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 12px;
  background: rgba(11, 81, 64, .05);
  overflow: hidden;
}

.kaf-home-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  text-align: center;
}

.kaf-home-stat + .kaf-home-stat {
  border-left: 1px solid rgba(11, 81, 64, .1);
}

.kaf-home-stat strong {
  color: var(--color--secondary-color);
  font-family: var(--font-family--heading-font-family);
  font-size: 24px;
  line-height: 1.1;
}

.kaf-home-stat span {
  color: var(--color--gray-color);
  font-size: 12px;
  line-height: 1.3;
}

.kaf-home-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kaf-home-course {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(11, 81, 64, .15);
  color: var(--color--heading-color);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .3s, padding-left .3s;
}

.kaf-home-course:hover {
  color: var(--color--secondary-color);
  padding-left: 6px;
}

.kaf-home-course em {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 185, 29, .16);
  color: rgb(122, 86, 0);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.kaf-home-more,
.kaf-home-empty {
  padding-top: 9px;
  color: var(--color--gray-color);
  font-size: 14px;
}

.kaf-home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kaf-home-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 81, 64, .25);
  color: var(--color--secondary-color);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s;
}

.kaf-home-btn:hover {
  border-color: rgb(11, 81, 64);
  background: rgba(11, 81, 64, .06);
}

.kaf-home-btn.is-primary {
  background: rgb(11, 81, 64);
  border-color: rgb(11, 81, 64);
  color: rgb(255, 255, 255);
}

.kaf-home-btn.is-primary:hover {
  background: rgb(255, 185, 29);
  border-color: rgb(255, 185, 29);
  color: var(--color--heading-color);
}

@media screen and (max-width: 991px) {
  .kaf-home-grid,
  .kaf-home-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .kaf-home-grid,
  .kaf-home-grid.is-four {
    grid-template-columns: 1fr;
  }

  .kaf-home-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kaf-home-card,
  .kaf-home-card::before {
    transition: none;
  }
}

/* Rasmli bannerlar (Bakalavriat, Magistratura, Yo'nalishlar, Biz haqimizda, Yangiliklar, Aloqa, Tadbirlar).
   Banner ekran balandligining 70% ini egallaydi; rasm qirqilmaydi va nisbati saqlanadi
   (object-fit: contain), bo'sh qolgan chetlarni shu rasmning xira nusxasi to'ldiradi.
   Menyu rasm ustini yopmasligi uchun tepada alohida tasma (--photo-banner-top). */
.breadcrumb-section.is-photo-banner {
  --photo-banner-top: 96px;
  position: relative;
  height: 70vh;
  height: 70svh;
  min-height: calc(var(--photo-banner-top) + 200px);
  padding: 0;
}

.breadcrumb-section.course.is-bakalavriat {
  background-color: #0b2e27;
  background-image: none;
}

.breadcrumb-section.course.is-magistratura {
  background-color: #4a0a0c;
  background-image: none;
}

.breadcrumb-section.about.is-about-photo {
  background-color: var(--color--secondary-color);
  background-image: none;
}

/* Barcha yo'nalishlar, Yangiliklar, Aloqa, Tadbirlar: rangi rasmning chetiga mos fon */
.breadcrumb-section.course.is-all-courses {
  background-color: #0b2e27;
  background-image: none;
}

.breadcrumb-section.blog.is-photo-banner {
  background-color: #14130f;
  background-image: none;
}

.breadcrumb-section.contact.is-photo-banner {
  background-color: #101410;
  background-image: none;
}

.breadcrumb-section.event.is-photo-banner {
  background-color: #3a2410;
  background-image: none;
}

.breadcrumb-section.is-photo-banner > .w-container {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.photo-banner {
  position: absolute;
  inset: var(--photo-banner-top) 0 0;
  overflow: hidden;
}

.photo-banner-slide {
  position: absolute;
  inset: 0;
}

.photo-banner-slide::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: var(--banner) center / cover no-repeat;
  filter: blur(28px) brightness(.7);
}

.photo-banner-slide img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

/* Bakalavriatda ikkita rasm navbatma-navbat almashadi */
.photo-banner-slide.is-next {
  opacity: 0;
  animation: photo-banner-fade 14s ease-in-out infinite;
}

@keyframes photo-banner-fade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

@media screen and (max-width: 767px) {
  .breadcrumb-section.is-photo-banner {
    --photo-banner-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-banner-slide.is-next {
    animation: none;
  }
}

/* "Biz haqimizda" ichki sahifalari: sahifa nomi banner tagida, mazmun tepasida */
.uni-page-title {
  margin: 0 0 40px;
  font-size: var(--font-size--heading-2);
  line-height: 1.2;
}

.uni-page-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background-color: var(--color--primary-color);
}

@media screen and (max-width: 767px) {
  .uni-page-title {
    margin-bottom: 28px;
    font-size: 30px;
  }
}

/* Banner ostidagi bo'lim yuqoriga yaqinlashadi — kontent birinchi ekrandayoq ko'rinsin */
.breadcrumb-section.is-photo-banner + section .section-gap,
.breadcrumb-section.is-photo-banner + section.section-gap {
  padding-top: 60px;
}

@media screen and (max-width: 767px) {
  .breadcrumb-section.is-photo-banner + section .section-gap,
  .breadcrumb-section.is-photo-banner + section.section-gap {
    padding-top: 40px;
  }
}

/* Bosh sahifa: dumaloq ramkadagi rasm — universitet binosi va bitiruvchi.
   Rasm gorizontal, doirani to'liq qoplashi va nom + bitiruvchi markazda turishi uchun */
.hero-image.is-graduate {
  height: 100%;
  object-position: 66% 42%;
}

/* Xalqaro aloqalar sahifasi: hamkorlar kartochkalari */
.intl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.intl-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color--white-color);
  border: 1px solid var(--color--strock-color);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .4s;
}

.intl-card:hover {
  border-color: var(--color--primary-color);
}

/* Logotiplar oq rangda yuklanadi — to'q fonda ko'rsatamiz */
.intl-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 24px;
  background-color: var(--color--secondary-color);
}

.intl-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.intl-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 24px;
}

.intl-card-text {
  color: var(--color--gray-color);
  font-size: 16px;
  line-height: 1.6;
  margin: 4px 0 8px;
}

.brand-logo-title-block a.brand-logo-title {
  text-decoration: none;
  transition: color .4s;
}

.brand-logo-title-block a.brand-logo-title:hover {
  color: var(--color--primary-color);
}

@media screen and (max-width: 767px) {
  .intl-grid {
    grid-template-columns: 1fr;
  }

  .intl-card-body {
    padding: 20px;
  }
}

.intl-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intl-area {
  background-color: var(--color--background-color);
  border-left: 4px solid var(--color--secondary-color);
  border-radius: 12px;
  padding: 20px 22px;
}

.intl-area h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.intl-area p {
  color: var(--color--gray-color);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.intl-grid.is-tight {
  margin-top: 0;
}

.intl-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  border-radius: 16px;
  background-color: var(--color--secondary-color);
  color: var(--color--white-color);
}

.intl-contact h3 {
  color: var(--color--white-color);
  font-size: var(--font-size--heading-5);
  line-height: 1.3;
  margin: 0 0 6px;
}

.intl-contact p {
  margin: 0;
  opacity: .85;
}

.intl-contact-btn {
  flex: none;
  padding: 12px 24px;
  border-radius: 999px;
  background-color: var(--color--primary-color);
  color: var(--color--heading-color);
  font-weight: 600;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .intl-areas {
    grid-template-columns: 1fr;
  }

  .intl-contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
}

/* --- hujjatlar/json dan import qilingan sahifalar (Missiya va qadriyatlar, Qabul, Ilmiy faoliyat, Xalqaro) --- */
.uni-richtext h4 {
  color: var(--color--heading-color);
  font-size: 18px;
  line-height: 1.35;
  margin: 22px 0 10px;
}

.uni-richtext ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.uni-richtext a {
  color: var(--color--secondary-color);
}

.uni-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 8px 0 20px;
}

.uni-card {
  background-color: var(--color--background-color);
  border-left: 4px solid var(--color--secondary-color);
  border-radius: 12px;
  padding: 18px 20px;
}

.uni-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.uni-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.uni-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 8px 0 18px;
}

.uni-stat {
  background-color: var(--color--background-color);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.uni-stat strong {
  color: var(--color--secondary-color);
  font-size: 28px;
  line-height: 1.15;
}

.uni-stat span {
  font-size: 14px;
  line-height: 1.35;
}

.uni-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.uni-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  background-color: var(--color--background-color);
  border-radius: 10px;
  padding: 12px 14px;
}

.uni-steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color--secondary-color);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.uni-table-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
}

.uni-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.uni-table th,
.uni-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.uni-table th {
  color: var(--color--heading-color);
  font-weight: 700;
}

.uni-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uni-faq details {
  background-color: var(--color--background-color);
  border-radius: 10px;
  padding: 0 18px;
}

.uni-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 28px 14px 0;
  position: relative;
  color: var(--color--heading-color);
  font-weight: 600;
}

.uni-faq summary::-webkit-details-marker {
  display: none;
}

.uni-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 10px;
  font-size: 22px;
  color: var(--color--secondary-color);
}

.uni-faq details[open] summary::after {
  content: "−";
}

.uni-faq details p {
  margin: 0 0 16px;
}

.kafedra-overview-head-person {
  font-size: 15px;
  margin: 10px 0 0;
}

.kafedra-overview-description {
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
}

.kafedra-overview-description p {
  margin: 0 0 8px;
}

.kafedra-description p {
  margin: 0 0 10px;
}

/* Hamkorlar lentasi (bosh sahifa): logosi yo'q hamkorlar nomi yirik yozuvda, orasida oltin yulduzcha */
.brand-logo.brand-logo-name {
  display: inline-flex;
  align-items: center;
  gap: var(--partner-gap);
  height: 56px;
  color: #fdf8ec;
  font-family: var(--font-family--heading-font-family);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .3s;
}

.brand-logo.brand-logo-name::before {
  content: "✦";
  color: var(--color--primary-color);
  font-size: 18px;
  line-height: 1;
}

.brand-logo-row a:hover .brand-logo-name {
  color: var(--color--primary-color);
}

.brand-logo-wrapper {
  --partner-gap: 28px;
}

.brand-logo-wrapper .brand-logo-block,
.brand-logo-wrapper .brand-logo-row {
  gap: var(--partner-gap);
  align-items: center;
}

/* Sekin, uzluksiz aylanish (Webflow animatsiyasi o'rniga); sichqoncha ustiga kelganda to'xtaydi */
.brand-logo-wrapper .brand-logo-row {
  animation: partner-marquee 150s linear infinite;
}

.brand-logo-wrapper .brand-logo-block:hover .brand-logo-row {
  animation-play-state: paused;
}

@keyframes partner-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--partner-gap))); }
}

@media screen and (max-width: 767px) {
  .brand-logo-wrapper {
    --partner-gap: 20px;
  }

  .brand-logo.brand-logo-name {
    height: 44px;
    font-size: 20px;
  }

  .brand-logo.brand-logo-name::before {
    font-size: 14px;
  }

  .brand-logo-wrapper .brand-logo-row {
    animation-duration: 190s;
  }
}

.uni-table th {
  color: #fff;
}

/* Yo'nalishlar, Yangiliklar, Aloqa, Tadbirlar: sahifa nomi banner tagida */
.page-title-section {
  padding-top: 60px;
}

.page-title-label {
  margin-bottom: 12px;
  color: var(--color--primary-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title-section .uni-page-title {
  margin-bottom: 0;
}

.page-title-section + section .section-gap,
.page-title-section + section.section-gap {
  padding-top: 60px;
}

@media screen and (max-width: 767px) {
  .page-title-section {
    padding-top: 40px;
  }

  .page-title-section + section .section-gap,
  .page-title-section + section.section-gap {
    padding-top: 40px;
  }
}

/* ===== "Biz haqimizda": rektor bo'limi ===== */
.rector-section .section-gap {
  padding-top: 60px;
  padding-bottom: 80px;
}

.rector-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 64px 72px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--color--white-color);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 185, 29, .20), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .07), transparent 46%),
    linear-gradient(135deg, #0b5140 0%, #063328 100%);
  box-shadow: 0 30px 60px -30px rgba(1, 24, 20, .55);
}

.rector-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 185, 29, .28);
  border-radius: 18px;
  pointer-events: none;
}

.rector-photo-block {
  position: relative;
  z-index: 1;
}

/* Arka shaklidagi ramka, orqasida siljigan oltin chiziq */
.rector-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px;
}

.rector-photo-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 2px solid var(--color--primary-color);
  border-radius: 999px 999px 26px 26px;
  opacity: .85;
}

.rector-photo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: inherit;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6);
}

.rector-content {
  position: relative;
  z-index: 1;
}

.rector-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color--primary-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.rector-label::before {
  content: "";
  width: 44px;
  height: 1px;
  background-color: currentColor;
}

.rector-name {
  margin: 14px 0 0;
  color: var(--color--white-color);
  font-family: "Marck Script", "Segoe Script", cursive;
  font-size: 68px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .005em;
  text-wrap: balance;
}

.rector-flourish {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  margin: 22px 0 24px;
  color: var(--color--primary-color);
}

.rector-flourish span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.rector-flourish span:last-child {
  background: linear-gradient(90deg, currentColor, transparent);
}

.rector-summary {
  max-width: 640px;
  margin: 0;
  color: #f3ede0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

.rector-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.rector-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .06);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.rector-fact-icon {
  flex: none;
  margin-top: 2px;
  color: var(--color--primary-color);
}

.rector-button-block {
  margin-top: 36px;
}

@media screen and (max-width: 991px) {
  .rector-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 56px 40px 48px;
  }

  .rector-photo-block {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .rector-name {
    font-size: 56px;
  }
}

@media screen and (max-width: 767px) {
  .rector-section .section-gap {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .rector-card {
    padding: 48px 24px 36px;
    border-radius: 22px;
  }

  .rector-card::after {
    inset: 8px;
  }

  .rector-photo-block {
    max-width: 260px;
  }

  .rector-name {
    font-size: 44px;
  }

  .rector-summary {
    font-size: 21px;
  }

  .rector-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Dasturchi kartochkasi (UniversityStaff.card_style = "developer", _dev_card.html) ===== */
.uni-unit.dev-card,
.uni-center-panel .uni-unit.dev-card {
  --dev-gold: #ffb91d;
  --dev-mint: #7fe3c4;
  --dev-cyan: #5ad1ff;
  --dev-pink: #ff7ab6;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: 210px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 22px;
  color: #e6f4ef;
  /* To'q "terminal" foni, chetida oqib turadigan neon hoshiya */
  background:
    radial-gradient(circle at 12% 50%, rgba(127, 227, 196, .16), transparent 38%) padding-box,
    linear-gradient(120deg, #04100d 0%, #0a2a22 55%, #06171b 100%) padding-box,
    linear-gradient(110deg, var(--dev-gold), var(--dev-mint) 25%, var(--dev-cyan) 50%, var(--dev-pink) 75%, var(--dev-gold)) border-box;
  background-size: 100% 100%, 100% 100%, 300% 100%;
  animation: dev-border-flow 8s linear infinite;
  box-shadow: 0 0 0 1px rgba(127, 227, 196, .06) inset;
}

/* Mustaqil bo'limlar katakchasida chiqsa ham butun qatorni egallaydi */
.uni-unit-grid > .dev-card {
  grid-column: 1 / -1;
}

/* Ekran bo'ylab sekin tushadigan "skaner" chizig'i */
.uni-center-panel .uni-unit.dev-card::before,
.uni-unit.dev-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  top: -30%;
  right: auto;
  width: 100%;
  height: 30%;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(127, 227, 196, .10) 70%, rgba(127, 227, 196, .28));
  transform: none;
  animation: dev-scan 5.5s linear infinite;
  pointer-events: none;
}

.dev-card > * {
  position: relative;
  z-index: 1;
}

/* --- Plata yo'laklari va signallar --- */
.dev-card .dev-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
}

.dev-traces path {
  stroke: rgba(127, 227, 196, .13);
  stroke-width: 1.5;
}

.dev-pulses path {
  stroke: var(--dev-mint);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 5px var(--dev-mint));
  animation: dev-pulse-run 4.2s linear infinite;
}

.dev-pulses .p2 { stroke: var(--dev-gold); filter: drop-shadow(0 0 5px var(--dev-gold)); animation-duration: 5.4s; animation-delay: -1.3s; }
.dev-pulses .p3 { stroke: var(--dev-cyan); filter: drop-shadow(0 0 5px var(--dev-cyan)); animation-duration: 3.1s; animation-delay: -.6s; }
.dev-pulses .p4 { animation-duration: 3.6s; animation-delay: -2s; animation-direction: reverse; }
.dev-pulses .p5 { stroke: var(--dev-pink); filter: drop-shadow(0 0 5px var(--dev-pink)); animation-duration: 2.8s; animation-delay: -1s; }
.dev-pulses .p6 { stroke: var(--dev-gold); filter: drop-shadow(0 0 5px var(--dev-gold)); animation-duration: 3.3s; animation-delay: -2.4s; }

.dev-nodes circle {
  fill: #0a2a22;
  stroke: rgba(127, 227, 196, .55);
  stroke-width: 1.5;
  animation: dev-node-blink 2.6s ease-in-out infinite;
}

.dev-nodes circle:nth-child(3n) { animation-delay: -.9s; }
.dev-nodes circle:nth-child(3n + 1) { animation-delay: -1.7s; }

/* --- Suzib chiqadigan kod belgilari --- */
.dev-card .dev-symbols {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dev-symbols span {
  position: absolute;
  bottom: -30px;
  color: var(--dev-mint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  animation: dev-symbol-float 9s linear infinite;
}

.dev-symbols span:nth-child(1) { left: 52%; animation-delay: -1s; }
.dev-symbols span:nth-child(2) { left: 58%; animation-delay: -5s; color: var(--dev-gold); font-size: 18px; }
.dev-symbols span:nth-child(3) { left: 63%; animation-delay: -3s; animation-duration: 11s; color: var(--dev-cyan); }
.dev-symbols span:nth-child(4) { left: 55%; animation-delay: -7s; }
.dev-symbols span:nth-child(5) { left: 66%; animation-delay: -2s; animation-duration: 12s; color: var(--dev-pink); }
.dev-symbols span:nth-child(6) { left: 60%; animation-delay: -8s; animation-duration: 7s; font-size: 20px; color: var(--dev-gold); }
.dev-symbols span:nth-child(7) { left: 69%; animation-delay: -4s; color: var(--dev-cyan); }
.dev-symbols span:nth-child(8) { left: 50%; animation-delay: -6.5s; animation-duration: 10s; }
.dev-symbols span:nth-child(9) { left: 64%; animation-delay: -.5s; animation-duration: 8s; color: var(--dev-pink); }
.dev-symbols span:nth-child(10) { left: 57%; animation-delay: -3.7s; animation-duration: 13s; color: var(--dev-gold); }

/* --- Avatar --- */
.dev-avatar {
  flex: none;
  width: 132px;
  aspect-ratio: 1;
}

.dev-avatar .dev-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dev-orbit {
  fill: none;
  stroke-linecap: round;
  transform-origin: 60px 60px;
}

.dev-orbit.o1 {
  stroke: var(--dev-mint);
  stroke-width: 1.6;
  stroke-dasharray: 3 9 26 9;
  animation: dev-spin 14s linear infinite;
}

.dev-orbit.o2 {
  stroke: var(--dev-gold);
  stroke-width: 2;
  stroke-dasharray: 60 22 8 22;
  animation: dev-spin 9s linear infinite reverse;
}

.dev-sat {
  transform-origin: 60px 60px;
  animation: dev-spin 6s linear infinite;
}

.dev-sat.s1 circle { fill: var(--dev-gold); filter: drop-shadow(0 0 4px var(--dev-gold)); }
.dev-sat.s2 { animation-duration: 9s; animation-direction: reverse; }
.dev-sat.s2 rect { fill: var(--dev-cyan); filter: drop-shadow(0 0 4px var(--dev-cyan)); }
.dev-sat.s3 { animation-duration: 4s; animation-delay: -2s; }
.dev-sat.s3 circle { fill: var(--dev-pink); filter: drop-shadow(0 0 4px var(--dev-pink)); }

.dev-avatar-core {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #17705a, #062a22 70%);
  box-shadow: 0 0 0 2px rgba(127, 227, 196, .25), 0 0 26px rgba(127, 227, 196, .35);
  animation: dev-core-glow 3.4s ease-in-out infinite;
}

.dev-avatar-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.dev-avatar-initials {
  background: linear-gradient(120deg, #ffe7a8, var(--dev-gold), var(--dev-mint), #ffe7a8);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .02em;
  animation: dev-text-shine 4s linear infinite;
}

.dev-avatar-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #062a22;
  border-radius: 50%;
  background-color: var(--dev-gold);
  color: #062a22;
  animation: dev-badge-pop 3s ease-in-out infinite;
}

.dev-badge-slash {
  transform-box: fill-box;
  transform-origin: center;
  animation: dev-slash-tilt 3s ease-in-out infinite;
}

/* --- Matn qismi --- */
.dev-body {
  flex: 1;
  min-width: 0;
}

.dev-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(127, 227, 196, .2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .05);
  color: rgba(230, 244, 239, .7);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1;
}

.dev-file i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff5f57;
}

.dev-file i:nth-child(2) { background-color: #febc2e; }
.dev-file i:nth-child(3) { background-color: #28c840; margin-right: 6px; }

.uni-center-panel .uni-unit-title.dev-name,
.dev-name {
  margin: 0 0 12px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

/* Ismdan keyin miltillab turadigan kursor */
.dev-caret {
  display: inline-block;
  width: 12px;
  height: .9em;
  margin-left: 8px;
  vertical-align: -.08em;
  border-radius: 2px;
  background-color: var(--dev-gold);
  box-shadow: 0 0 12px var(--dev-gold);
  animation: dev-blink 1.05s steps(1) infinite;
}

.dev-role {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(255, 185, 29, .35);
  border-radius: 10px;
  background-color: rgba(255, 185, 29, .08);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.dev-tok-p { color: var(--dev-cyan); }
.dev-tok-t { color: var(--dev-gold); }

.dev-terminal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--dev-mint);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 22px;
  white-space: nowrap;
}

.dev-prompt {
  color: var(--dev-pink);
  animation: dev-prompt-nudge 1.6s ease-in-out infinite;
}

.dev-typed {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 22px;
}

/* Har bir buyruq 12 soniyalik aylanishning o'z 4 soniyasida teriladi va o'chiriladi */
.dev-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  max-width: 100%;
  overflow: hidden;
  border-right: 2px solid transparent;
  animation: dev-type 12s infinite;
  animation-timing-function: steps(var(--n, 20), end);
}

.dev-line.l2 { animation-delay: 4s; color: var(--dev-cyan); }
.dev-line.l3 { animation-delay: 8s; color: var(--dev-gold); }

/* --- Kod muharriri oynasi --- */
.dev-card .dev-editor {
  flex: none;
  width: 290px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
  animation: dev-editor-float 6s ease-in-out infinite;
}

.dev-ed-window { fill: #071a16; stroke: rgba(127, 227, 196, .28); stroke-width: 1.2; }
.dev-ed-bar { fill: #0d2b24; }
.dev-ed-tab { fill: rgba(127, 227, 196, .16); }
.dev-ed-gutter rect { fill: rgba(230, 244, 239, .18); }
.dev-ed-progress-bg { fill: rgba(230, 244, 239, .1); }

.dev-ed-code rect {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: dev-code-type 9s infinite;
  animation-timing-function: steps(8, end);
}

.dev-ed-code .k { fill: var(--dev-pink); }
.dev-ed-code .f { fill: var(--dev-cyan); }
.dev-ed-code .s { fill: var(--dev-mint); }
.dev-ed-code .v { fill: #dbe9e4; }
.dev-ed-code .n { fill: var(--dev-gold); }

.dev-ed-code .c1 { --d: 0; } .dev-ed-code .c2 { --d: 1; } .dev-ed-code .c3 { --d: 2; } .dev-ed-code .c4 { --d: 3; }
.dev-ed-code .c5 { --d: 4; } .dev-ed-code .c6 { --d: 5; } .dev-ed-code .c7 { --d: 6; } .dev-ed-code .c8 { --d: 7; }
.dev-ed-code .c9 { --d: 8; } .dev-ed-code .c10 { --d: 9; } .dev-ed-code .c11 { --d: 10; } .dev-ed-code .c12 { --d: 11; }
.dev-ed-code rect { animation-delay: calc(var(--d) * .42s); }

.dev-ed-cursor {
  fill: var(--dev-gold);
  filter: drop-shadow(0 0 4px var(--dev-gold));
  animation: dev-blink .9s steps(1) infinite;
}

.dev-ed-progress {
  fill: var(--dev-mint);
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: dev-progress 9s linear infinite;
}

.dev-ed-ok-ring {
  fill: none;
  stroke: var(--dev-mint);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: dev-ok-ring 9s ease-out infinite;
}

.dev-ed-ok {
  fill: none;
  stroke: var(--dev-mint);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dev-ok-draw 9s ease-out infinite;
}

/* Sichqoncha ustida: hoshiya tezlashadi, oyna yaqinlashadi */
.uni-center.is-open .uni-center-panel .uni-unit.dev-card:hover,
.uni-unit.dev-card:hover {
  animation-duration: 3s;
  box-shadow: 0 0 0 1px rgba(127, 227, 196, .25) inset, 0 0 60px -10px rgba(127, 227, 196, .35) inset;
  transform: none;
}

.dev-card:hover .dev-editor {
  animation-play-state: paused;
  transform: translateY(-6px) rotate(-1.5deg) scale(1.03);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

@keyframes dev-border-flow {
  from { background-position: 0 0, 0 0, 0% 0; }
  to { background-position: 0 0, 0 0, 300% 0; }
}

@keyframes dev-scan {
  from { top: -30%; }
  to { top: 100%; }
}

@keyframes dev-pulse-run {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes dev-node-blink {
  0%, 100% { stroke: rgba(127, 227, 196, .35); fill: #0a2a22; }
  50% { stroke: var(--dev-mint); fill: rgba(127, 227, 196, .55); }
}

@keyframes dev-symbol-float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  12% { opacity: .5; }
  80% { opacity: .22; }
  100% { transform: translateY(-270px) rotate(22deg); opacity: 0; }
}

@keyframes dev-spin {
  to { transform: rotate(360deg); }
}

@keyframes dev-core-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(127, 227, 196, .25), 0 0 18px rgba(127, 227, 196, .25); }
  50% { box-shadow: 0 0 0 2px rgba(255, 185, 29, .45), 0 0 34px rgba(255, 185, 29, .4); }
}

@keyframes dev-text-shine {
  to { background-position: -250% 0; }
}

@keyframes dev-badge-pop {
  0%, 82%, 100% { transform: scale(1); }
  88% { transform: scale(1.22) rotate(-8deg); }
  94% { transform: scale(.94) rotate(4deg); }
}

@keyframes dev-slash-tilt {
  0%, 60%, 100% { transform: rotate(0deg); }
  75% { transform: rotate(180deg); }
}

@keyframes dev-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@keyframes dev-prompt-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* 0–13%: teriladi, 27% gacha turadi, 32% gacha o'chiriladi, qolgan vaqt yashirin */
@keyframes dev-type {
  0% { width: 0; border-right-color: currentColor; }
  13%, 27% { width: calc(var(--n, 20) * 1ch); border-right-color: currentColor; }
  32% { width: 0; border-right-color: currentColor; }
  33%, 100% { width: 0; border-right-color: transparent; }
}

@keyframes dev-code-type {
  0% { transform: scaleX(0); }
  4%, 88% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}

@keyframes dev-progress {
  0% { transform: scaleX(0); }
  62% { transform: scaleX(1); }
  88% { transform: scaleX(1); opacity: 1; }
  94%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes dev-ok-draw {
  0%, 62% { stroke-dashoffset: 100; }
  70%, 88% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes dev-ok-ring {
  0%, 62% { opacity: 0; transform: scale(.4); }
  70% { opacity: 1; transform: scale(1); }
  80% { opacity: 0; transform: scale(1.7); }
  100% { opacity: 0; transform: scale(1.7); }
}

@keyframes dev-editor-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(.8deg); }
}

@media screen and (max-width: 1199px) {
  .dev-card .dev-editor {
    width: 230px;
  }
}

@media screen and (max-width: 767px) {
  .uni-unit.dev-card,
  .uni-center-panel .uni-unit.dev-card {
    flex-wrap: wrap;
    gap: 16px;
    min-height: 0;
    padding: 20px 18px 22px;
  }

  .dev-avatar {
    width: 96px;
  }

  .dev-avatar-core {
    inset: 15px;
  }

  .dev-avatar-initials {
    font-size: 22px;
  }

  .dev-avatar-badge {
    right: 2px;
    bottom: 2px;
    width: 28px;
    height: 28px;
  }

  .uni-center-panel .uni-unit-title.dev-name,
  .dev-name {
    font-size: 21px;
  }

  .dev-terminal {
    font-size: 12px;
  }

  .dev-card .dev-editor {
    width: 100%;
    max-width: 320px;
    margin: 4px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dev-card,
  .dev-card *,
  .dev-card::before {
    animation: none !important;
  }

  .dev-ed-code rect,
  .dev-ed-progress {
    transform: none;
  }

  .dev-ed-ok {
    stroke-dashoffset: 0;
  }

  .dev-line.l1 {
    width: auto;
  }
}

/* ===== Tarmoq administratori kartochkasi (UniversityStaff.card_style = "network", _net_card.html) ===== */
.uni-unit.net-card,
.uni-center-panel .uni-unit.net-card {
  --net-cyan: #4cc9ff;
  --net-green: #3ddc97;
  --net-gold: #ffb91d;
  --net-violet: #a497ff;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: 210px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 22px;
  color: #e3eefb;
  /* Tungi ko'k fon (nuqtali to'r), chetida oqib turadigan hoshiya */
  background:
    radial-gradient(rgba(76, 201, 255, .16) 1px, transparent 1.6px) padding-box,
    radial-gradient(circle at 10% 50%, rgba(76, 201, 255, .18), transparent 40%) padding-box,
    linear-gradient(120deg, #050d1c 0%, #0a2340 55%, #071626 100%) padding-box,
    linear-gradient(110deg, var(--net-cyan), var(--net-green) 25%, var(--net-violet) 50%, var(--net-gold) 75%, var(--net-cyan)) border-box;
  background-size: 22px 22px, 100% 100%, 100% 100%, 300% 100%;
  animation: net-border-flow 9s linear infinite;
  box-shadow: 0 0 0 1px rgba(76, 201, 255, .07) inset;
}

.uni-unit-grid > .net-card {
  grid-column: 1 / -1;
}

/* Chapdan o'ngga o'tadigan "signal" nuri */
.uni-center-panel .uni-unit.net-card::before,
.uni-unit.net-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: auto;
  bottom: 0;
  left: -25%;
  width: 25%;
  height: auto;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(76, 201, 255, .16) 70%, transparent);
  transform: none;
  animation: net-beam 6.5s linear infinite;
  pointer-events: none;
}

.net-card > * {
  position: relative;
  z-index: 1;
}

/* --- Topologiya --- */
.net-card .net-topology {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
}

/* Aloqa chiziqlari: "yuguruvchi" punktir */
.net-links path {
  stroke: rgba(76, 201, 255, .22);
  stroke-width: 1.4;
  stroke-dasharray: 5 9;
  animation: net-march 1.6s linear infinite;
}

.net-links path:nth-child(2n) { animation-direction: reverse; animation-duration: 2.2s; }
.net-links path:nth-child(3n) { stroke: rgba(61, 220, 151, .2); animation-duration: 2.8s; }

.net-packets path {
  stroke: var(--net-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1.6 98.4;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px var(--net-cyan));
  animation: net-packet 5s linear infinite;
}

.net-packets .k2 { stroke: var(--net-green); filter: drop-shadow(0 0 6px var(--net-green)); animation-duration: 6.2s; animation-delay: -2s; }
.net-packets .k3 { stroke: var(--net-gold); filter: drop-shadow(0 0 6px var(--net-gold)); animation-duration: 7s; animation-delay: -3.5s; }
.net-packets .k4 { stroke: var(--net-violet); filter: drop-shadow(0 0 6px var(--net-violet)); animation-duration: 4.4s; animation-delay: -1s; }
.net-packets .k5 { stroke: var(--net-green); filter: drop-shadow(0 0 6px var(--net-green)); animation-duration: 3.8s; animation-delay: -.4s; }

.net-node-dot {
  fill: #0a2340;
  stroke: var(--net-cyan);
  stroke-width: 1.8;
}

.net-node-ring {
  stroke: var(--net-cyan);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: net-ripple 3s ease-out infinite;
}

.net-node:nth-child(2n) .net-node-ring { animation-delay: -1s; stroke: var(--net-green); }
.net-node:nth-child(2n) .net-node-dot { stroke: var(--net-green); }
.net-node:nth-child(3n) .net-node-ring { animation-delay: -2s; }
.net-node.n3 .net-node-dot,
.net-node.n5 .net-node-dot { fill: var(--net-gold); stroke: var(--net-gold); }

/* --- Avatar: radar --- */
.net-avatar {
  flex: none;
  width: 132px;
  aspect-ratio: 1;
}

.net-avatar .net-radar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}

.net-radar-ring {
  stroke: rgba(76, 201, 255, .45);
  stroke-width: 1.4;
}

.net-radar-ticks {
  stroke: rgba(76, 201, 255, .6);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.net-sweep {
  transform-origin: 60px 60px;
  animation: dev-spin 3.6s linear infinite;
}

.net-sweep path {
  fill: rgba(61, 220, 151, .22);
}

.net-sweep .net-sweep-edge {
  fill: none;
  stroke: var(--net-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--net-green));
}

.net-wave {
  stroke: var(--net-cyan);
  stroke-width: 1.6;
  transform-origin: 60px 60px;
  opacity: 0;
  animation: net-wave 3.6s ease-out infinite;
}

.net-wave.w2 { animation-delay: 1.2s; }
.net-wave.w3 { animation-delay: 2.4s; }

.net-blip {
  fill: var(--net-gold);
  filter: drop-shadow(0 0 5px var(--net-gold));
  opacity: 0;
  animation: net-blip 3.6s ease-out infinite;
}

.net-blip.b1 { animation-delay: .35s; }
.net-blip.b2 { animation-delay: 2.45s; fill: var(--net-green); filter: drop-shadow(0 0 5px var(--net-green)); }
.net-blip.b3 { animation-delay: 1.45s; }

.net-avatar-core {
  position: absolute;
  inset: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #17508a, #06203c 72%);
  box-shadow: 0 0 0 2px rgba(76, 201, 255, .35), 0 0 26px rgba(76, 201, 255, .4);
}

.net-avatar-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.net-avatar-initials {
  background: linear-gradient(120deg, #d9f3ff, var(--net-cyan), var(--net-green), #d9f3ff);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  animation: dev-text-shine 4s linear infinite;
}

.net-avatar-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #06203c;
  border-radius: 50%;
  background-color: var(--net-green);
  color: #06203c;
}

/* Wi-Fi yoylari pastdan yuqoriga navbat bilan yonadi */
.net-wifi {
  opacity: .25;
  animation: net-wifi 1.8s ease-in-out infinite;
}

.net-wifi.f2 { animation-delay: .25s; }
.net-wifi.f3 { animation-delay: .5s; }

/* --- Matn qismi --- */
.net-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgba(76, 201, 255, .25);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .05);
  color: rgba(227, 238, 251, .8);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.net-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--net-green);
  animation: net-status-pulse 1.6s ease-out infinite;
}

.net-status b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: rgba(227, 238, 251, .4);
}

/* Ism yonida signal kuchi ustunchalari */
.net-bars {
  margin-left: 12px;
  vertical-align: -.02em;
  fill: var(--net-green);
  overflow: visible;
}

.net-bars rect {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: net-bar 1.6s ease-in-out infinite;
}

.net-bars rect:nth-child(2) { animation-delay: .15s; }
.net-bars rect:nth-child(3) { animation-delay: .3s; }
.net-bars rect:nth-child(4) { animation-delay: .45s; }

.net-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(76, 201, 255, .4);
  border-radius: 10px;
  background-color: rgba(76, 201, 255, .1);
  color: #d9f3ff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.net-role svg {
  flex: none;
  color: var(--net-cyan);
}

.net-card .dev-terminal { color: var(--net-green); }
.net-card .dev-prompt { color: var(--net-gold); }
.net-card .dev-line.l2 { color: #b9c8dc; }
.net-card .dev-line.l3 { color: var(--net-cyan); }

/* --- Server stoykasi --- */
.net-card .net-rack {
  flex: none;
  width: 290px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
  animation: dev-editor-float 7s ease-in-out infinite;
}

.net-rack-frame { fill: #06162a; stroke: rgba(76, 201, 255, .32); stroke-width: 1.2; }
.net-rack-rail { stroke: rgba(76, 201, 255, .2); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.net-unit { fill: #0b2543; stroke: rgba(76, 201, 255, .22); stroke-width: 1; }
.net-unit.is-screen { fill: #04101f; }
.net-bay { fill: #071b33; stroke: rgba(227, 238, 251, .12); stroke-width: 1; }
.net-vent { stroke: rgba(227, 238, 251, .22); stroke-width: 1.6; stroke-linecap: round; }

.net-rack-label {
  fill: rgba(227, 238, 251, .55);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: .1em;
}

.net-rack-label.is-right { text-anchor: end; fill: var(--net-green); }

.net-led { fill: var(--net-green); filter: drop-shadow(0 0 4px var(--net-green)); animation: net-led 1.1s steps(1) infinite; }
.net-led.y1, .net-led.y2 { fill: var(--net-gold); filter: drop-shadow(0 0 4px var(--net-gold)); animation-duration: .7s; }
.net-led.y2 { animation-delay: -.3s; }
.net-led.g2 { animation-duration: 1.7s; animation-delay: -.5s; }

/* Kommutator portlari: har xil ritmda miltillaydi */
.net-port { fill: #0e3a2c; animation: net-port .9s steps(1) infinite; }
.net-port.p2 { animation-duration: 1.3s; animation-delay: -.2s; }
.net-port.p3 { animation-duration: .6s; animation-delay: -.4s; }
.net-port.p4 { animation-duration: 1.9s; animation-delay: -.9s; }
.net-port.p5 { animation-duration: 1.1s; animation-delay: -.6s; }
.net-port.p6 { animation-duration: .75s; animation-delay: -.1s; }

/* Disk faolligi chiziqchalari */
.net-act {
  fill: var(--net-cyan);
  transform-box: fill-box;
  transform-origin: left center;
  animation: net-act 1.4s ease-in-out infinite;
}

.net-act.a2 { animation-delay: -.3s; animation-duration: 1.9s; }
.net-act.a3 { animation-delay: -.7s; fill: var(--net-green); }
.net-act.a4 { animation-delay: -1s; animation-duration: 2.3s; }
.net-act.a5 { animation-delay: -.5s; fill: var(--net-violet); }

.net-graph-grid { stroke: rgba(227, 238, 251, .12); stroke-width: 1; stroke-dasharray: 3 5; }

.net-graph {
  fill: none;
  stroke: var(--net-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px var(--net-green));
  animation: net-graph 5s ease-in-out infinite;
}

.net-graph.is-2 {
  stroke: var(--net-cyan);
  stroke-width: 1.5;
  opacity: .8;
  filter: none;
  animation-delay: .5s;
}

.uni-center.is-open .uni-center-panel .uni-unit.net-card:hover,
.uni-unit.net-card:hover {
  animation-duration: 3s;
  box-shadow: 0 0 0 1px rgba(76, 201, 255, .3) inset, 0 0 60px -10px rgba(76, 201, 255, .4) inset;
  transform: none;
}

.net-card:hover .net-rack {
  animation-play-state: paused;
  transform: translateY(-6px) rotate(1.5deg) scale(1.03);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.net-card:hover .net-sweep { animation-duration: 1.4s; }

@keyframes net-border-flow {
  from { background-position: 0 0, 0 0, 0 0, 0% 0; }
  to { background-position: 22px 22px, 0 0, 0 0, 300% 0; }
}

@keyframes net-beam {
  from { left: -25%; }
  to { left: 100%; }
}

@keyframes net-march {
  to { stroke-dashoffset: -14; }
}

@keyframes net-packet {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes net-ripple {
  0% { transform: scale(.6); opacity: .9; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes net-wave {
  0% { transform: scale(.75); opacity: .8; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes net-blip {
  0%, 100% { opacity: 0; }
  4% { opacity: 1; }
  45% { opacity: 0; }
}

@keyframes net-wifi {
  0%, 100% { opacity: .25; }
  40%, 60% { opacity: 1; }
}

@keyframes net-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); }
  100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); }
}

@keyframes net-bar {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.45); opacity: .55; }
}

@keyframes net-led {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: .2; }
}

@keyframes net-port {
  0%, 45% { fill: var(--net-green); }
  46%, 70% { fill: #0e3a2c; }
  71%, 85% { fill: var(--net-gold); }
  86%, 100% { fill: #0e3a2c; }
}

@keyframes net-act {
  0%, 100% { transform: scaleX(.25); opacity: .5; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes net-graph {
  0% { stroke-dashoffset: 100; opacity: 1; }
  60%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@media screen and (max-width: 1199px) {
  .net-card .net-rack {
    width: 230px;
  }
}

@media screen and (max-width: 767px) {
  .uni-unit.net-card,
  .uni-center-panel .uni-unit.net-card {
    flex-wrap: wrap;
    gap: 16px;
    min-height: 0;
    padding: 20px 18px 22px;
  }

  .net-avatar {
    width: 96px;
  }

  .net-avatar-core {
    inset: 16px;
  }

  .net-avatar-initials {
    font-size: 22px;
  }

  .net-avatar-badge {
    right: 0;
    bottom: 0;
    width: 30px;
    height: 30px;
  }

  .net-status {
    font-size: 10px;
    gap: 6px;
    white-space: nowrap;
  }

  /* Tor ekranda uchinchi yozuv sig'maydi */
  .net-status b:last-of-type,
  .net-status span:last-child {
    display: none;
  }

  .net-bars {
    width: 20px;
    margin-left: 8px;
  }

  .net-card .net-rack {
    width: 100%;
    max-width: 320px;
    margin: 4px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .net-card,
  .net-card *,
  .net-card::before {
    animation: none !important;
  }

  .net-graph {
    stroke-dashoffset: 0;
  }

  .net-wifi {
    opacity: 1;
  }
}
