/* ============================================
   ATSO.UZ — Premium Design System
   Inspired by newuu.uz aesthetic
   ============================================ */

/* ═══════ GLOBAL PRELOADER ═══════ */
#global-loader {
  position: fixed;
  z-index: 50000;
  background: #fff;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#global-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#global-loader .loader-img {
  width: 80px;
  height: auto;
  animation: loaderPulse 0.6s ease-in-out infinite;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.6;
  }
}

/* ═══════ CSS VARIABLES ═══════ */
:root {
  --teal: #008080;
  --teal-light: #52b2bf;
  --teal-dark: #006666;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glass: 0 8px 32px rgba(0, 51, 102, 0.12);
  --shadow-lift: 0 30px 60px -12px rgba(0, 51, 102, 0.15);

  --primary: #0D122E;
  /* NewUU Deep Navy */
  --primary-dark: #070B1F;
  --primary-light: #1A234E;
  --white: #ffffff;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-tint: #F0F4F8;
  /* Light blue tint for sections */
  --accent: #D4A843;
  --accent-light: #E5C16B;
  --accent-dark: #B08A35;

  --container: 1280px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════ RESET & BASE ═══════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url('../images/pattern.png');
  background-size: 600px;
  background-repeat: repeat;
  background-attachment: fixed;
  background-blend-mode: overlay;
  overflow-x: hidden;
}

/* Mobile: fixed background causes jank */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: 420px;
  }
}

/* NewUU inspired typography */
h1,
h2,
h3,
.hero-title {
  font-family: 'Inter', sans-serif;
  /* Fallback since we don't have Museo Sans */
  letter-spacing: -0.02em;
}

.hero-title {
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title .highlight-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
  color: transparent;
}


/* Home sahifa: fonga faqat video ishlatiladi */
.layout-home {
  background-image: none;
  background-color: #020617;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  z-index: -1;
}

/* Bosh sahifa: bekshox.uz dagi yuqori ko'k fon */
body.layout-home {
  background: #f0f4f8;
}
body.layout-home::before {
  background: #f0f4f8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo va nomni o'ngga surish — 40px */
.main-nav .navbar-brand {
  margin-left: 40px !important;
  padding-left: 0 !important;
}

/* Mobile: brand should not be offset */
@media (max-width: 1024px) {
  .main-nav .navbar-brand {
    margin-left: 0 !important;
  }
}


/* ═══════ UTILITY CLASSES ═══════ */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glass);
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin-top: 12px;
}

/* ============================================
   HEADER & NAVBAR — Premium Enterprise
   ============================================ */

.site-header {
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border-bottom: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  transition: background 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes headerSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.site-header.scrolled {
  position: fixed;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.06);
  animation: headerSlideDown 0.35s cubic-bezier(.4,0,.2,1) forwards;
}
.site-header .main-nav { background: transparent; border-bottom: none; }
.site-header.scrolled .main-nav { background: transparent; }
.site-header .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; width: 100%; max-width: 100%; padding: 0 clamp(16px, 3vw, 48px); position: relative;
}

/* Brand */
.site-header .navbar-brand {
  display: flex; align-items: center; text-decoration: none;
  margin: 0; padding: 0; flex-shrink: 0; z-index: 10; gap: 10px;
  min-width: 0;
  max-width: 420px;
}
.site-header .navbar-brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; transition: transform 0.3s ease; }
.site-header .navbar-brand:hover img { transform: scale(1.05); }
.site-header .navbar-brand-text { line-height: 1.2; }
.site-header .brand-full-name {
  font-weight: 800; font-size: 13.5px; color: #fff; text-transform: uppercase;
  letter-spacing: 0.04em; display: block; transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
.site-header.scrolled .brand-full-name { color: var(--gray-800); }

/* Nav Menu — centered */
.site-header .nav-menu {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  margin: 0; padding: 0; gap: 4px; list-style: none;
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  pointer-events: auto;
}
.site-header .nav-menu .nav-item { margin: 0; padding: 0; pointer-events: auto; position: relative; }
.site-header .nav-menu .nav-item > a {
  color: rgba(255,255,255,0.92); font-weight: 600; font-size: 14px; text-decoration: none;
  padding: 8px 14px; display: flex; align-items: center; gap: 4px; border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease; position: relative;
}
.site-header .nav-menu .nav-item > a .nav-chevron { transition: transform 0.25s ease; opacity: 0.6; }
.site-header .nav-menu .nav-item:hover > a .nav-chevron,
.site-header .nav-menu .nav-item.open > a .nav-chevron { transform: rotate(180deg); opacity: 1; }
.site-header .nav-menu .nav-item > a:hover,
.site-header .nav-menu .nav-item:hover > a { color: #fff; background: rgba(255,255,255,0.1); }
.site-header.scrolled .nav-menu .nav-item > a { color: var(--gray-700); }
.site-header.scrolled .nav-menu .nav-item > a:hover,
.site-header.scrolled .nav-menu .nav-item:hover > a { color: var(--primary); background: var(--gray-50); }

/* Utils (til, telefon, BVI, ijtimoiy) */
.site-header .nav-header-utils {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0; z-index: 10; position: relative; overflow: visible;
}

/* Desktop tightening to prevent logo/menu overlap */
@media (max-width: 1360px) {
  .site-header .navbar-brand { max-width: 360px; }
  .site-header .brand-full-name { max-width: 280px; font-size: 12.5px; }
  .site-header .nav-menu .nav-item > a { padding: 8px 10px; font-size: 13.5px; }
}
.site-header .nav-action-btn,
.site-header .lang-switcher-btn-nav,
.site-header .social-trigger-btn {
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: rgba(255,255,255,0.9); cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease; border-radius: 8px;
}
.site-header .lang-switcher-btn-nav { padding: 6px 10px; gap: 6px; font-size: 13px; font-weight: 700; }
/* Faqat o'zbekcha ko'rsatish (til tanlovi yo'q) */
.site-header .nav-lang-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); border-radius: 8px;
}
.site-header.scrolled .nav-lang-badge { color: var(--gray-600); }
.site-header .nav-action-btn { width: 36px; height: 36px; padding: 0; }
.site-header .social-trigger-btn { width: 36px; height: 36px; padding: 0; font-size: 16px; }
.site-header .nav-action-btn:hover,
.site-header .lang-switcher-btn-nav:hover,
.site-header .social-trigger-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.site-header.scrolled .nav-action-btn,
.site-header.scrolled .lang-switcher-btn-nav,
.site-header.scrolled .social-trigger-btn { color: var(--gray-600); }
.site-header.scrolled .nav-action-btn:hover,
.site-header.scrolled .lang-switcher-btn-nav:hover,
.site-header.scrolled .social-trigger-btn:hover { background: var(--gray-100); color: var(--gray-800); }

/* Telefon: bosilganda ochiladigan popover */
.site-header .nav-phone-popover-wrap {
  position: relative;
}
.site-header .nav-phone-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 10002;
  display: none;
  transform: translateY(-4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-header .nav-phone-popover-wrap.open .nav-phone-popover {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.site-header .nav-phone-popover-link {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-header .nav-phone-popover-link:hover {
  text-decoration: underline;
}
.site-header .nav-phone-popover-wrap--mobile {
  display: none;
}
.site-header .nav-phone-btn .nav-phone-icon {
  flex-shrink: 0;
}

/* Lang Switcher — Desktop */
.lang-switcher-nav { position: relative; }
.lang-btn-flag { display: inline-flex; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.lang-btn-flag svg { width: 100%; height: 100%; display: block; }
.lang-btn-label { font-weight: 700; font-size: 13px; }
.lang-chevron { transition: transform 0.25s ease; opacity: 0.6; }
.lang-switcher-nav.open .lang-chevron { transform: rotate(180deg); opacity: 1; }
.lang-dropdown-nav {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 160px;
  background: #fff; border-radius: 12px; padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  display: none; z-index: 10001;
  transform: translateY(-4px); opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-switcher-nav.open .lang-dropdown-nav { display: block; transform: translateY(0); opacity: 1; }
.lang-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: var(--gray-700); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease; border-radius: 0;
}
.lang-dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.lang-dropdown-item.active { background: rgba(13,18,46,0.04); color: var(--primary); font-weight: 600; }
.lang-item-flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; flex-shrink: 0; display: flex; }
.lang-item-flag svg { width: 100%; height: 100%; display: block; }

/* Social Dropdown */
.social-dropdown-wrap { position: relative; }
.social-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px;
  background: #fff; border-radius: 12px; padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  display: none; z-index: 10001;
  transform: translateY(-4px); opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-dropdown-wrap.open .social-dropdown { display: block; transform: translateY(0); opacity: 1; }
.social-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: var(--gray-700); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.15s ease;
}
.social-dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.social-dropdown-item i { width: 18px; text-align: center; font-size: 16px; }

/* Legacy compat */
.fixed-header { position: fixed; top: 0; left: 0; right: 0; }
.relative-header { position: relative; }

/* Top Bar (hidden on home, shown on inner pages if needed) */
.top-bar { display: none; }

/* Legacy header compat — consolidated above */
.main-nav { transition: var(--transition); }
.fixed-header .main-nav { background: transparent; border-bottom: none; box-shadow: none; }
.fixed-header.is-sticky .main-nav { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,0.06); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.relative-header .main-nav { background: var(--white); box-shadow: var(--shadow-md); }
.fixed-header.is-sticky .brand-full-name, .relative-header .brand-full-name { color: var(--gray-800); text-shadow: none; }
.arrow { display: none !important; }

/* Dropdownlar to‘g‘ri joylashishi uchun (o‘chib qolgan qoida — sayt ishlamasligining sababi) */
.nav-item {
  position: relative;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  min-width: 240px;
  background: rgba(13, 18, 46, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.nav-dropdown::before,
.nav-dropdown::after,
.nav-subdropdown::before,
.nav-subdropdown::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}


.nav-dropdown a svg {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-dropdown a:hover svg {
  color: var(--accent);
}

/* Sub-dropdown (multi-level like afu.uz) */
.dropdown-parent {
  position: relative;
}

.dropdown-parent>a.has-submenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-parent>a.has-submenu svg {
  margin-left: auto;
}

.nav-subdropdown {
  position: absolute;
  left: calc(100% + 4px);
  top: 0;
  min-width: 240px;
  background: rgba(13, 18, 46, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 1001;
  transform: translateX(8px);
}

.dropdown-parent:hover>.nav-subdropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.dropdown-parent:hover>a.has-submenu {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 0;
}

.dropdown-parent:hover>a.has-submenu svg {
  color: var(--accent);
}

.nav-subdropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.nav-subdropdown a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ═══════ MEGAMENU ═══════ */
/* 1) Hover uzilmasin: dropdown menyuga yaqin (top kichik), 2) Kenglik: faqat 4 ustun sig‘adigan, markazda */
.nav-item.has-megamenu>.nav-dropdown.megamenu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  max-width: 95vw !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: rgba(13, 18, 46, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
}

.nav-item.has-megamenu:hover>.nav-dropdown.megamenu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

.nav-dropdown.megamenu {
  display: block !important;
  width: max-content !important;
  box-sizing: border-box !important;
}

.megamenu-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
  width: max-content !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.megamenu-col {
  min-width: max-content;
  padding: 24px 24px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  /* Light border on blue */
}

.megamenu-col:last-child {
  border-right: none;
}

.megamenu-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  /* Gold/Accent titles on blue */
  margin: 0 0 16px 0 !important;
  padding: 0 0 12px !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.megamenu-col a {
  display: block !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  /* Light text on blue */
  transition: all 0.2s ease !important;
  border-radius: 0 !important;
  background: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.megamenu-col a:hover {
  color: #fff !important;
  /* Pure white on hover */
  background: rgba(255, 255, 255, 0.05) !important;
  padding-left: 8px !important;
}

.megamenu-empty {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════ TABBED DETAIL PAGE ═══════ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(0, 82, 156, 0.1);
  margin-bottom: 0;
  overflow-x: auto;
}

.detail-tab {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  white-space: nowrap;
}

.detail-tab:hover {
  color: var(--primary);
}

.detail-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(0, 82, 156, 0.03);
}

.detail-tab-content {
  display: none;
  padding: 30px 0;
}

.detail-tab-content.active {
  display: block;
}

.head-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.head-card-header {
  background: var(--primary);
  color: white;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 700;
}

.head-card-body {
  padding: 24px;
  text-align: center;
}

.head-card-body img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid rgba(0, 82, 156, 0.1);
}

.head-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.head-card-position {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.head-card-info {
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
}

.head-card-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray-600);
}

.head-card-info-item i {
  width: 32px;
  height: 32px;
  background: rgba(0, 82, 156, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .head-card {
    position: static;
  }

  /* IMPORTANT: on mobile drawer we control megamenu visibility via .open */
  .nav-dropdown.megamenu { display: none !important; justify-content: center !important; box-sizing: border-box !important; padding: 0 24px !important; }
.megamenu-grid { width: 100% !important; max-width: 1200px !important; margin: 0 auto !important; box-sizing: border-box !important;
  display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* IMPORTANT: on mobile drawer we control megamenu visibility via .open */
  .nav-dropdown.megamenu { display: none !important; justify-content: center !important; box-sizing: border-box !important; padding: 0 24px !important; }
.megamenu-grid { width: 100% !important; max-width: 1200px !important; margin: 0 auto !important; box-sizing: border-box !important;
  display: grid !important;
    grid-template-columns: 1fr;
  }
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  transition: var(--transition);
}

.fixed-header .nav-toggle span {
  background: var(--white);
}

.fixed-header.is-sticky .nav-toggle span {
  background: var(--primary);
}

.relative-header .nav-toggle span {
  background: var(--gray-700);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #232747;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(35, 39, 71, 0.5) 0%, rgba(35, 39, 71, 0.4) 35%, rgba(35, 39, 71, 0.65) 100%);
  z-index: 1;
}

/* Bosh sahifa: video qismiga aniq #232747 rang */
body.layout-home .hero {
  background: #232747 !important;
}
body.layout-home .hero-overlay {
  background: linear-gradient(170deg, rgba(35, 39, 71, 0.75) 0%, rgba(35, 39, 71, 0.65) 50%, rgba(35, 39, 71, 0.85) 100%) !important;
}

.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.program-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  margin-bottom: 26px;
  overflow: hidden;
}

.program-strip-label span {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.9);
  white-space: nowrap;
}

.program-strip-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.program-strip-scroller::-webkit-scrollbar {
  display: none;
}

.program-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: rgba(15, 23, 42, 0.7);
  color: rgba(226, 232, 240, 0.95);
  font-size: 13px;
  white-space: nowrap;
  cursor: default;
}

.program-pill:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.7);
}

.hero-content {
  max-width: 700px;
  /* Karta olib tashlandi – faqat matn qoldi */
}

/* Float decorations */
.hero-float {
  display: none;
}

.hero-float-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation: float 20s ease-in-out infinite;
}

.hero-float-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-light);
  bottom: -50px;
  left: -50px;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(30px, -30px);
  }

  50% {
    transform: translate(-20px, 20px);
  }

  75% {
    transform: translate(20px, 10px);
  }
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* Hero Title */
.hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title .hero-title-inline {
  display: inline;
}
.hero-title .hero-title-inline + .hero-title-inline {
  margin-left: 12px;
}

.hero-title .hero-title-flat {
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 4px solid var(--teal);
}

.hero-title .teal-text {
  color: var(--teal-light);
}

.hero-text {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-hero-primary {
  background: linear-gradient(90deg, #3E7CB5 0%, #39A589 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0px 4px 0px 0px #29676A, 0px 8px 16px 0px rgba(255, 255, 255, 0.1) inset;
  font-weight: 600;
  text-transform: none;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0px 6px 0px 0px #29676A, 0px 12px 24px 0px rgba(255, 255, 255, 0.2) inset;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-hero-outline:hover {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

/* ═══════ ANIMATIONS ═══════ */
.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
  opacity: 0;
}

.delay-200 {
  animation-delay: 0.2s;
  opacity: 0;
}

.delay-300 {
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════ PAGE HEADER ═══════ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  color: #fff;
  padding: 100px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.page-header-breadcrumb {
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 14px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.page-header-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.page-header-breadcrumb a:hover {
  color: var(--accent-light);
}

.page-header-breadcrumb .current {
  color: var(--accent-light);
  font-weight: 500;
}

/* ═══════ PAGE SECTION ═══════ */
.page-section {
  padding: 60px 0 80px;
}

/* ═══════ STATS BAR ═══════ */
.stats-bar {
  padding: 0 0 80px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.stats-bar-inner {
  background: transparent;
  border-radius: var(--radius-3xl);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: url('../images/pattern.png') no-repeat center/contain;
  opacity: 0.1;
  transform: rotate(15deg);
}

.stat-item:nth-child(odd) {
  background: var(--primary);
  color: #fff;
}

.stat-item:nth-child(even) {
  background: var(--teal);
  color: #fff;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lift);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
}

/* ═══════ SECTION STYLES ═══════ */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--blue-tint);
}

.section-white {
  background: var(--white);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-line {
  margin-left: auto;
  margin-right: auto;
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-line {
  margin-left: auto;
  margin-right: auto;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.section-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ═══════ NEWS CARDS ═══════ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.news-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lift);
  border-color: var(--teal-light);
}

.news-card:hover .news-card-body h3 {
  color: var(--teal);
}

.news-card-image {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.news-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.news-card-body h3 a:hover {
  color: var(--primary);
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

.news-card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-more:hover {
  color: var(--accent);
}

/* ═══════ LEADERS GRID ═══════ */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Regular leader cards */
.leader-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  padding-bottom: 24px;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.leader-card-image {
  height: 300px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.leader-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.leader-card:hover .leader-card-image img {
  transform: scale(1.05);
}

.leader-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 51, 102, 0.85));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  opacity: 0;
  transition: var(--transition);
}

.leader-card:hover .leader-card-overlay {
  opacity: 1;
}

.leader-card-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  backdrop-filter: blur(5px);
}

.leader-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 20px 20px 6px;
}

.leader-card p {
  font-size: 13px;
  color: var(--gray-500);
  padding: 0 20px;
  font-weight: 500;
}

/* ═══════ CENTERS GRID ═══════ */
.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.center-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.center-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.center-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(212, 168, 67, 0.08));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.center-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.center-card-head {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.center-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ═══════ GALLERY TABS ═══════ */
.gallery-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 4px;
  display: inline-flex;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  color: var(--gray-700);
}

/* ═══════ DOCUMENT LISTS ═══════ */
.document-item {
  transition: var(--transition);
}

.document-item:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md) !important;
}

/* ═══════ CONTENT PAGES ═══════ */
.content-page .content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
}

.content-page .content h2,
.content-page .content h3,
.content-page .content h4 {
  color: var(--gray-900);
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-page .content p {
  margin-bottom: 16px;
}

.content-page .content ul,
.content-page .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-page .content li {
  margin-bottom: 8px;
  list-style: disc;
}

.content-page .content img {
  border-radius: var(--radius-xl);
  margin: 24px 0;
}

/* ═══════ FOOTER ═══════ */
.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.site-footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, #0a0f1a 100%);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 0;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.5);
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 24px;
  color: var(--accent-light);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  font-size: 16px;
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-links a:hover::before {
  color: var(--accent);
}

.footer-contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   MOBILE-ONLY ELEMENTS (hidden on desktop)
   ============================================ */
.mobile-menu-overlay,
.mobile-menu-close,
.mobile-nav-footer {
  display: none !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* ─── Tablets and below ─── */
@media (max-width: 1024px) {

  /* ── Nav Layout Fix ── */
  .nav-inner,
  .site-header .nav-inner {
    height: 70px;
    justify-content: space-between;
    padding: 0 16px;
  }

  .nav-header-utils,
  .site-header .nav-header-utils {
    display: none !important;
  }

  .site-header .nav-phone-popover-wrap--mobile {
    display: block;
    position: relative;
    flex-shrink: 0;
  }
  .site-header .nav-phone-btn--mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #0d122e;
  }
  .site-header:not(.scrolled) .nav-phone-btn--mobile {
    color: #fff;
  }
  .site-header .nav-phone-btn--mobile:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0d122e;
  }
  .site-header:not(.scrolled) .nav-phone-btn--mobile:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }
  .site-header .nav-phone-popover--mobile {
    right: 0;
    left: auto;
  }

  .navbar-brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .navbar-brand img {
    height: 48px;
  }

  .brand-full-name {
    font-size: 12px !important;
    line-height: 1.2;
  }

  .fixed-header.is-sticky .brand-full-name,
  .relative-header .brand-full-name {
    font-size: 12px !important;
  }

  /* ── Hamburger Toggle (o‘ng ustda, har doim ko‘rinadi) ── */
  .nav-toggle,
  .site-header .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }
  .site-header .nav-toggle span,
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: #0D122E;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .site-header:not(.scrolled) .nav-toggle span {
    background: #fff;
  }
  .site-header.scrolled .nav-toggle span {
    background: #0D122E;
  }
  .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
  }
  .site-header:not(.scrolled) .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ══════════════════════════════════════════
     SLIDE-IN DRAWER MENU (AFU style)
     ══════════════════════════════════════════ */

  /* ── Overlay: faqat drawer dan o‘ngda (menyu ichiga bosganda yopilmasin) ── */
  .mobile-menu-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(13, 18, 46, 0.5);
    z-index: 60000;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  .mobile-menu-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Yopish tugmasi (ekran o‘ng ustida) ── */
  .mobile-menu-close {
    display: none !important;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 60020;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  .mobile-menu-close.active {
    display: flex !important;
  }
  .mobile-menu-close:hover {
    background: #fff;
    transform: scale(1.05);
  }

  /* ── Header va drawer overlaydan ustda (Faoliyat va boshqalarga bosganda yopilmasin) ── */
  .site-header {
    z-index: 60005;
  }

  /* ── Drawer panel (chapdan slide) ── */
  .nav-menu,
  .site-header .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: auto !important;
    bottom: 0;
    width: min(320px, 88vw) !important;
    max-width: 88vw !important;
    margin: 0;
    padding: 16px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 60010;
    gap: 0;
    list-style: none;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    text-align: left;
    pointer-events: auto;
    touch-action: pan-y;
  }

  /* When drawer open, prevent background scroll (iOS-safe) */
  html.mobile-menu-open,
  body.mobile-menu-open {
    height: 100%;
    overflow: hidden !important;
  }
  body.mobile-menu-open {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
  }

  .site-header .nav-menu .nav-item > a,
  .nav-menu .nav-item > a {
    touch-action: manipulation;
  }
  .nav-menu.active,
  .site-header .nav-menu.active {
    transform: translateX(0);
  }

  /* ── Asosiy menyu elementlari ── */
  .site-header .nav-menu .nav-item,
  .nav-menu .nav-item {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }
  .site-header .nav-menu .nav-item > a,
  .nav-menu .nav-item > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #0D122E !important;
    background: transparent !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 0 !important;
    white-space: normal;
    text-align: left !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
    box-sizing: border-box;
  }
  .nav-menu .nav-item > a:hover,
  .nav-menu .nav-item > a:active {
    background: #f5f6fa !important;
  }
  .nav-menu .nav-item > a .arrow {
    display: inline-block !important;
    margin-left: 8px;
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }
  .nav-menu .nav-item.open > a .arrow {
    transform: rotate(180deg);
    color: #0D122E;
  }

  /* ── Mobil footer (til, BVI, ijtimoiy) ── */
  .mobile-nav-footer-wrap {
    margin-top: auto;
    width: 100%;
    list-style: none;
    padding: 0;
    border-top: 1px solid #eee;
    background: #f8fafc;
    flex-shrink: 0;
  }
  .mobile-nav-footer {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px calc(48px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-nav-footer .nav-lang-badge.mobile-lang-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 14px;
    background: var(--white);
    width: 100%;
    font-weight: 600;
    color: var(--primary);
    box-sizing: border-box;
  }

  .mobile-nav-footer .lang-switcher {
    position: relative;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 6px 12px;
    background: var(--white);
    width: 100%;
  }

  .mobile-nav-footer .lang-switcher-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: var(--primary);
    background: transparent;
    border: none;
    font-weight: 600;
  }

  .mobile-nav-footer .lang-btn-left {
    display: flex;
    align-items: center;
  }

  .mobile-nav-footer .lang-switcher-btn .lang-btn-flag {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
  }

  .mobile-nav-footer .lang-btn-flag svg,
  .mobile-nav-footer .lang-item-flag svg {
    width: 24px;
    height: 18px;
    border-radius: 2px;
  }

  .mobile-nav-footer .lang-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    left: 0;
    margin-bottom: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-footer .lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav-footer .lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    text-decoration: none;
  }

  .mobile-nav-footer .lang-dropdown-item:hover,
  .mobile-nav-footer .lang-dropdown-item.active {
    background: #f1f5f9;
    color: #0D122E;
  }

  .mobile-bvi-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-nav-footer .mobile-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #0D122E;
  }

  /* ═══ Mobil: dropdown (accordion) — to‘liq reset va tartibli ko‘rinish ═══ */
  .nav-menu .nav-dropdown,
  .site-header .nav-menu .nav-dropdown {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    display: none;
    min-width: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
  .nav-menu .nav-dropdown::before,
  .nav-menu .nav-dropdown::after,
  .nav-dropdown::before,
  .nav-dropdown::after {
    display: none !important;
  }
  .nav-menu .nav-item.open > .nav-dropdown,
  .site-header .nav-menu .nav-item.open > .nav-dropdown {
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
    max-height: none !important;
  }

  /* Dropdown ichidagi oddiy linklar */
  .nav-menu .nav-dropdown > a,
  .site-header .nav-menu .nav-dropdown > a {
    display: block !important;
    width: 100%;
    padding: 12px 20px 12px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.2s ease;
  }
  .nav-menu .nav-dropdown > a:last-of-type {
    border-bottom: none !important;
  }
  .nav-menu .nav-dropdown > a:hover {
    background: #e2e8f0 !important;
    color: #0D122E !important;
  }

  /* Dropdown ichidagi .dropdown-parent (submenu bilan) */
  .nav-menu .nav-dropdown .dropdown-parent,
  .site-header .nav-menu .nav-dropdown .dropdown-parent {
    position: static !important;
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0;
  }
  .nav-menu .nav-dropdown .dropdown-parent:last-child,
  .site-header .nav-menu .nav-dropdown .dropdown-parent:last-child {
    border-bottom: none !important;
  }
  .nav-menu .nav-dropdown .dropdown-parent > a.has-submenu,
  .site-header .nav-menu .nav-dropdown .dropdown-parent > a.has-submenu {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px 12px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box;
  }
  .nav-menu .nav-dropdown .dropdown-parent > a.has-submenu svg,
  .site-header .nav-menu .nav-dropdown .dropdown-parent > a.has-submenu svg {
    margin-left: auto;
  }
  .nav-menu .nav-dropdown .dropdown-parent > a.has-submenu:hover {
    background: #e2e8f0 !important;
    color: #0D122E !important;
  }
  .nav-menu .nav-dropdown .dropdown-parent > a.has-submenu svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    color: #64748b;
    transition: transform 0.2s ease;
  }
  .nav-menu .nav-dropdown .dropdown-parent.open > a.has-submenu svg {
    transform: rotate(90deg);
    color: #0D122E;
  }

  /* Ikkinchi daraja: .nav-subdropdown */
  .nav-menu .nav-subdropdown,
  .site-header .nav-menu .nav-subdropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    width: 100% !important;
    min-width: auto !important;
    background: #e2e8f0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .nav-menu .dropdown-parent.open > .nav-subdropdown,
  .site-header .nav-menu .dropdown-parent.open > .nav-subdropdown {
    display: block !important;
  }
  .nav-menu .nav-subdropdown a,
  .site-header .nav-menu .nav-subdropdown a {
    display: flex !important;
    align-items: center;
    padding: 10px 20px 10px 36px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    text-decoration: none !important;
  }
  .nav-menu .nav-subdropdown a:last-child {
    border-bottom: none !important;
  }
  .nav-menu .nav-subdropdown a:hover {
    background: #cbd5e1 !important;
    color: #0D122E !important;
  }
  /* Uchinchi daraja: subdropdown ichidagi dropdown-parent */
  .nav-menu .nav-subdropdown .dropdown-parent,
  .site-header .nav-menu .nav-subdropdown .dropdown-parent {
    position: static !important;
    display: block !important;
    border-bottom: 1px solid #cbd5e1;
  }
  .nav-menu .nav-subdropdown .dropdown-parent:last-child {
    border-bottom: none !important;
  }
  .nav-menu .nav-subdropdown .dropdown-parent > a.has-submenu {
    padding: 10px 20px 10px 36px !important;
    font-size: 13px !important;
  }
  .nav-menu .nav-subdropdown .dropdown-parent > .nav-subdropdown a {
    padding-left: 48px !important;
  }

  /* ═══ Megamenu mobil: bitta ustun, aniq bo‘limlar ═══ */
  .nav-menu .nav-item.has-megamenu > .nav-dropdown.megamenu,
  .site-header .nav-menu .nav-item.has-megamenu > .nav-dropdown.megamenu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
  }
  .nav-menu .nav-item.has-megamenu.open > .nav-dropdown.megamenu,
  .site-header .nav-menu .nav-item.has-megamenu.open > .nav-dropdown.megamenu {
    display: block !important;
  }
  .nav-menu .megamenu-grid,
  .site-header .nav-menu .megamenu-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .nav-menu .megamenu-col,
  .site-header .nav-menu .megamenu-col {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid #eef2f7 !important;
  }
  .nav-menu .megamenu-col:last-child,
  .site-header .nav-menu .megamenu-col:last-child {
    border-bottom: none !important;
  }
  .nav-menu .megamenu-title,
  .site-header .nav-menu .megamenu-title {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0D122E !important;
    margin: 0 0 6px 0 !important;
    padding: 0 0 6px 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    cursor: default;
  }
  /* Simplified: show all megamenu links when OTM tuzilma is open */
  .nav-menu .megamenu-col a.megamenu-link,
  .site-header .nav-menu .megamenu-col a.megamenu-link,
  .nav-menu .megamenu-col a,
  .site-header .nav-menu .megamenu-col a {
    display: block !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    line-height: 1.35;
  }
  .nav-menu .megamenu-col a:hover,
  .site-header .nav-menu .megamenu-col a:hover {
    color: #0D122E !important;
    background: transparent !important;
  }
  .nav-menu .megamenu-empty,
  .site-header .nav-menu .megamenu-empty {
    display: block !important;
    padding: 8px 0 !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
  }

  /* ── Side Social Bar ── */
  .side-social-bar {
    display: none;
  }
}

/* ─── Mobile Phones ─── */
@media (max-width: 768px) {

  /* ── Top Bar ── */
  .top-bar {
    display: none;
  }

  /* ── Container ── */
  .container {
    padding: 0 16px;
  }

  /* ── Hero Section ── */
  .hero {
    height: 100vh;
    min-height: 500px;
    padding: 0;
  }

  .hero-video {
    display: block;
    object-position: center;
  }

  .hero-overlay {
    background: linear-gradient(165deg, rgba(35, 39, 71, 0.85) 0%, rgba(35, 39, 71, 0.7) 45%, rgba(35, 39, 71, 0.9) 100%);
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    margin-bottom: 16px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 14px;
    margin-bottom: 20px;
  }

  .hero-text {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* ── Stats Bar ── */
  .stats-bar {
    margin-top: 0;
    padding: 24px 0;
  }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
  }

  .stat-item {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  /* ── Sections ── */
  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* ── News Grid ── */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card-image {
    height: 180px;
  }

  .news-card-body {
    padding: 18px;
  }

  .news-card-body h3 {
    font-size: 15px;
  }

  /* ── Leaders Grid ── */
  .leaders-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .leader-card-image {
    height: 200px;
  }

  .leader-card h3 {
    font-size: 14px;
    margin: 14px 12px 4px;
  }

  .leader-card p {
    font-size: 12px;
    padding: 0 12px;
  }

  .leader-card-featured {
    flex-direction: column;
  }

  .leader-card-featured .leader-featured-image {
    flex: none;
    height: 250px;
  }

  .leader-card-featured .leader-featured-info {
    padding: 24px 20px;
  }

  .leader-card-featured h3 {
    font-size: 20px;
  }

  /* ── Centers Grid ── */
  .centers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .center-card {
    padding: 22px;
  }

  /* ── Detail Layout ── */
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .head-card {
    position: static;
  }

  .detail-tabs {
    gap: 0;
    margin-bottom: 0;
  }

  .detail-tab {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* ── Page Header ── */
  .page-header {
    padding: 70px 0 36px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .page-section {
    padding: 32px 0 48px;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer {
    padding: 48px 0 32px;
  }

  .footer-brand img {
    height: 44px;
  }

  .footer-title {
    font-size: 12px;
    letter-spacing: 0.15em;
  }

  .footer-desc {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 12px;
    padding-top: 20px;
  }

  /* ── News Tabs ── */
  .news-tabs-header {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .news-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* ── Gallery Tabs ── */
  .gallery-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ─── Small phones ─── */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .nav-inner {
    height: 56px;
  }

  .navbar-brand img {
    height: 38px;
  }

  .brand-full-name {
    font-size: 10px !important;
  }

  .navbar-brand {
    gap: 8px;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }

  .leader-card-image {
    height: 240px;
  }

  .stats-bar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-item {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 10px;
  }

  .hero-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .hero {
    height: 100vh;
    min-height: 450px;
    padding: 0;
  }

  .section {
    padding: 32px 0;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .footer-grid {
    gap: 28px;
  }
}

/* ─── Extra small (320px) ─── */
@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }
}

/* ═══════ SCROLL ANIMATIONS (AOS-style) ═══════ */

/* Base state for all animated elements */
[data-animate] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

/* Default: fade-up */
[data-animate],
[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-down"] {
  transform: translateY(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(60px);
}

[data-animate="fade-right"] {
  transform: translateX(-60px);
}

[data-animate="fade-up-right"] {
  transform: translate(-40px, 40px);
}

[data-animate="fade-up-left"] {
  transform: translate(40px, 40px);
}

[data-animate="zoom-in"] {
  transform: scale(0.85);
}

[data-animate="zoom-in-up"] {
  transform: scale(0.85) translateY(40px);
}

[data-animate="flip-up"] {
  transform: perspective(2500px) rotateX(50deg);
  backface-visibility: hidden;
}

[data-animate="slide-up"] {
  transform: translateY(100%);
}

/* Animated state: reset all transforms */
[data-animate].animated {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotateX(0);
}

/* Stagger delays */
[data-animate][data-delay="100"] {
  transition-delay: 100ms;
}

[data-animate][data-delay="200"] {
  transition-delay: 200ms;
}

[data-animate][data-delay="300"] {
  transition-delay: 300ms;
}

[data-animate][data-delay="400"] {
  transition-delay: 400ms;
}

[data-animate][data-delay="500"] {
  transition-delay: 500ms;
}

[data-animate][data-delay="600"] {
  transition-delay: 600ms;
}

[data-animate][data-delay="700"] {
  transition-delay: 700ms;
}

[data-animate][data-delay="800"] {
  transition-delay: 800ms;
}

/* Duration variations */
[data-animate][data-duration="400"] {
  transition-duration: 0.4s;
}

[data-animate][data-duration="600"] {
  transition-duration: 0.6s;
}

[data-animate][data-duration="800"] {
  transition-duration: 0.8s;
}

[data-animate][data-duration="1000"] {
  transition-duration: 1s;
}

[data-animate][data-duration="1200"] {
  transition-duration: 1.2s;
}

[data-animate][data-duration="1500"] {
  transition-duration: 1.5s;
}

/* Easing variations */
[data-animate][data-easing="ease-in-out"] {
  transition-timing-function: ease-in-out;
}

[data-animate][data-easing="ease-out-back"] {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-animate][data-easing="ease-out-quart"] {
  transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Children stagger animation for grids */
[data-animate-children]>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate-children].animated>*:nth-child(1) {
  transition-delay: 0ms;
}

[data-animate-children].animated>*:nth-child(2) {
  transition-delay: 100ms;
}

[data-animate-children].animated>*:nth-child(3) {
  transition-delay: 200ms;
}

[data-animate-children].animated>*:nth-child(4) {
  transition-delay: 300ms;
}

[data-animate-children].animated>*:nth-child(5) {
  transition-delay: 400ms;
}

[data-animate-children].animated>*:nth-child(6) {
  transition-delay: 500ms;
}

[data-animate-children].animated>*:nth-child(7) {
  transition-delay: 600ms;
}

[data-animate-children].animated>*:nth-child(8) {
  transition-delay: 700ms;
}

[data-animate-children].animated>* {
  opacity: 1;
  transform: translateY(0);
}

/* Disable animations for reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  [data-animate],
  [data-animate-children]>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════ ADDITIONAL ACCESSORIES (newuu.uz style) ═══════ */
.top-bar-icon {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.top-bar-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.side-social-bar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

/* ═══════ TEST MODE NOTICE (bottom-right card) ═══════ */
.testmode-wrap{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100000;
  max-width: 420px;
  width: calc(100vw - 36px);
  display: block;
  opacity: 1;
  transition: opacity .25s ease;
}
.testmode-card{
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(2, 8, 23, .22);
  border: 1px solid rgba(15, 23, 42, .08);
  padding: 16px 16px 14px;
}
.testmode-title{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #0f172a;
}
.testmode-text{
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 12px;
}
.testmode-link{
  color: #1d4ed8;
  text-decoration: underline;
}
.testmode-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.testmode-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
}
.testmode-btn-primary{
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.testmode-btn-primary:hover{ filter: brightness(.98); }
.testmode-btn-secondary{
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
}
.testmode-btn-secondary:hover{ filter: brightness(.98); }

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  transition: all 0.4s ease;
  width: 44px;
  overflow: hidden;
  white-space: nowrap;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-bottom: 2px;
}

.social-item span {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
  font-size: 14px;
  font-weight: 600;
}

.social-item:hover {
  width: 140px;
}

.social-item:hover span {
  opacity: 1;
  transform: translateX(0);
}

.social-item.telegram {
  background: #0088cc;
}

.social-item.instagram {
  background: #e4405f;
}

@media (max-width: 1024px) {
  .side-social-bar {
    display: none;
  }
}

/* ══════════════════════════════════════════
   EXPANDED SECTIONS (AFU STYLE)
   ══════════════════════════════════════════ */

/* Useful Links Grid (afu.uz style) */
.useful-links-section {
  background: var(--blue-tint);
  padding: 60px 0;
}

.useful-links-section .section-header {
  text-align: center;
  margin-bottom: 8px;
}

.useful-links-section .section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
}

.useful-links-section .section-subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 32px;
}

.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.useful-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.useful-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.useful-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(0, 82, 156, 0.08);
  color: var(--primary);
}

.useful-link-info {
  min-width: 0;
}

.useful-link-info h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.useful-link-info p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
}

@media (max-width: 1024px) {
  .useful-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .useful-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .useful-link-card {
    padding: 14px 16px;
  }

  .useful-link-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .useful-link-info h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .useful-links-grid {
    grid-template-columns: 1fr;
  }
}

/* News Tabs */
.news-tabs-container {
  margin-top: 40px;
}

.news-tabs-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.news-tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}

.news-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.news-tab-pane {
  display: none;
}

.news-tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* Partners Carousel (Basic) */
.partners-carousel {
  overflow: hidden;
  padding: 40px 0;
}

.partners-track {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.partner-item img {
  height: 60px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}



/* ══════════════════════════════════════════
   VISION BANNER (NewUU Style — 50/50 split)
   ══════════════════════════════════════════ */
.vision-banner {
  display: flex;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 420px;
}

.vision-left {
  flex: 0 0 42%;
  min-height: 420px;
  background-color: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.vision-left img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.vision-right {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: stretch;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 18, 46, 0.88) 0%, rgba(13, 18, 46, 0.75) 100%);
  z-index: 1;
}

.vision-content {
  position: relative;
  z-index: 2;
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--accent);
}

.vision-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.vision-quote {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin-bottom: 32px;
}

.vision-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vision-author strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.vision-author span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

@media (max-width: 768px) {
  .vision-banner {
    flex-direction: column;
  }

  .vision-left {
    flex: none;
    height: 300px;
  }

  .vision-content {
    padding: 32px 24px;
  }

  .vision-title {
    font-size: 22px;
  }

  .vision-quote {
    font-size: 15px;
  }
}

/* ══════════════════════════════════════════
   ADMISSION CTA BANNER
   ══════════════════════════════════════════ */
.admission-cta-section {
  padding: 0 !important;
}

.admission-cta {
  display: flex;
  align-items: center;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #0D122E 0%, #1A234E 50%, #2D3A6E 100%);
  overflow: hidden;
  padding: 48px 56px;
  gap: 40px;
  position: relative;
}

.admission-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.08);
}

.admission-cta-content {
  flex: 1;
}

.admission-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.admission-cta-content h2 {
  color: var(--white);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.admission-cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.btn-admission {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-admission:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.35);
}

.admission-cta-visual {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admission-illustration {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admission-illustration i {
  font-size: 72px;
  color: var(--accent);
  position: relative;
  z-index: 2;
}

.admission-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(212, 168, 67, 0.2);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.2;
  }
}

/* ══════════════════════════════════════════
   ABOUT UNIVERSITY (Tarix + Video)
   ══════════════════════════════════════════ */
.about-university {
  display: flex;
  gap: 48px;
  align-items: center;
}

.about-video-side {
  flex: 1;
}

.about-video-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.about-video-container img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-video-container:hover img {
  transform: scale(1.05);
}

.about-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(13, 18, 46, 0.8);
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.about-play-btn i {
  color: var(--accent);
  font-size: 24px;
  margin-left: 4px;
}

.about-video-container:hover .about-play-btn {
  background: var(--accent);
}

.about-video-container:hover .about-play-btn i {
  color: var(--white);
}

.about-text-side {
  flex: 1;
}

.about-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.about-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-top: 20px;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 14px;
  margin-top: 24px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-about:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 18, 46, 0.25);
}

/* ══════════════════════════════════════════
   VIRTUAL TOUR
   ══════════════════════════════════════════ */
.virtual-tour-section {
  position: relative;
  background-image: url('../images/building2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  text-align: center;
}

.virtual-tour-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 18, 46, 0.88) 0%, rgba(13, 18, 46, 0.7) 100%);
}

.virtual-tour-content {
  position: relative;
  z-index: 2;
}

.virtual-tour-content h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.virtual-tour-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.btn-virtual-tour {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-virtual-tour:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 168, 67, 0.3);
}

/* ══════════════════════════════════════════
   APPLICANT RESOURCES
   ══════════════════════════════════════════ */
.applicant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.applicant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-2xl);
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.applicant-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.applicant-card-bachelor {
  background: linear-gradient(135deg, #0D122E, #1A234E);
}

.applicant-card-master {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.applicant-card-docs {
  background: linear-gradient(135deg, #059669, #10b981);
}

.applicant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.applicant-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.applicant-icon i {
  font-size: 28px;
  color: var(--white);
}

.applicant-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.applicant-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

.applicant-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.applicant-card:hover .applicant-arrow {
  background: var(--accent);
  color: var(--primary-dark);
}

/* ══════════════════════════════════════════
   GALLERY GRID
   ══════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

a.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 46, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-overlay i {
  color: var(--white);
  font-size: 28px;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(13, 18, 46, 0.5);
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════════ */
.newsletter-section {
  position: relative;
  background: linear-gradient(135deg, #0D122E 0%, #1A234E 100%);
  padding: 72px 0;
  text-align: center;
  overflow: hidden;
}

.newsletter-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../images/pattern.png');
  background-size: 400px;
  opacity: 0.03;
}

.newsletter-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.newsletter-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.btn-newsletter {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-newsletter:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   RESPONSIVE — New Sections
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .admission-cta {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }

  .admission-cta-visual {
    display: none;
  }

  .admission-cta-content h2 {
    font-size: 24px;
  }

  .about-university {
    flex-direction: column;
    gap: 32px;
  }

  .about-video-container img {
    height: 250px;
  }

  .applicant-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item-large {
    grid-column: span 2;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .virtual-tour-content h2 {
    font-size: 28px;
  }
}

/* ══════════════════════════════════════════
   LANGUAGE SWITCHER — afu.uz Style
   ══════════════════════════════════════════ */
.top-bar-right .lang-switcher {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: 1000 !important;
}

.top-bar-right .lang-switcher-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
}

.top-bar-right .lang-switcher-btn:hover {
  opacity: 0.8 !important;
}

.top-bar-right .lang-btn-flag {
  width: 22px !important;
  height: 15px !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.top-bar-right .lang-btn-flag svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.top-bar-right .lang-btn-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

/* ─── Dropdown ─── */
.top-bar-right .lang-dropdown {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  right: 0 !important;
  margin-right: 0 !important;
  min-width: 180px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  display: none !important;
  z-index: 9999 !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.top-bar-right .lang-dropdown.open {
  display: block !important;
}

.top-bar-right .lang-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 20px !important;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s ease !important;
  cursor: pointer !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
}

.top-bar-right .lang-dropdown-item:hover {
  background: #f1f3f5 !important;
  color: #000000 !important;
}

.top-bar-right .lang-dropdown-item.active {
  background: #e9ecef !important;
  color: #007bff !important;
}

.top-bar-right .lang-item-flag {
  width: 24px !important;
  height: 16px !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.top-bar-right .lang-item-flag svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .top-bar-right .lang-btn-label {
    display: none !important;
  }

  .top-bar-right .lang-switcher-btn {
    padding: 6px 8px !important;
  }

  .top-bar-right .lang-dropdown {
    right: 0 !important;
  margin-right: 0 !important;
    left: auto !important;
  }
}

/* ════════════════════════════════════════════════
   ACCESSIBILITY (BVI) DIRECT TOGGLE STYLES
   ════════════════════════════════════════════════ */

/* ============================================================
   PREMIUM BVI (ACCESSIBILITY) PANEL
   ============================================================ */

.bvi-panel {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 12px 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.bvi-active .bvi-panel {
  display: block;
}

.bvi-panel-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 768px) {
  .bvi-panel-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

.bvi-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (max-width: 768px) {
  .bvi-group {
    justify-content: space-between;
    width: 100%;
  }
}

.bvi-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.bvi-controls {
  display: flex;
  gap: 8px;
}

.bvi-btn {
  background: #ffffff;
  border: 2px solid #cecece;
  color: #333;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bvi-btn:hover {
  background: #f8f9fa;
  border-color: #003366;
  color: #003366;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bvi-btn.active {
  background: #003366 !important;
  color: #ffffff !important;
  border-color: #001a35 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Theme Switcher Buttons - Adding more definition */
.bvi-theme-white {
  background: #ffffff !important;
  border-color: #ddd !important;
}

.bvi-theme-black {
  background: #1a1a1a !important;
  color: #fff !important;
  border-color: #000 !important;
}

.bvi-theme-blue {
  background: #e3f2fd !important;
  color: #0d47a1 !important;
  border-color: #90caf9 !important;
}

.bvi-group-actions {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

@media (max-width: 768px) {
  .bvi-group-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }

  .bvi-group-actions .bvi-btn {
    flex: 1;
  }
}

.bvi-reset-btn {
  background: #f8f9fa;
  border: 2px solid #003366;
  padding: 8px 20px;
  gap: 10px;
  color: #003366;
}

.bvi-reset-btn:hover {
  background: #003366;
  color: #fff;
}

.bvi-close-btn {
  background: #fff5f5;
  border: 2px solid #ff4d4d;
  color: #d32f2f;
}

.bvi-close-btn:hover {
  background: #d32f2f;
  color: #fff;
  border-color: #b71c1c;
}

/* ────────── BVI THEMES ────────── */

/* Black Theme */
body.bvi-theme-black {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.bvi-theme-black *:not([class*="bvi-"]):not(.lang-switcher-btn):not(.top-bar-icon):not(svg):not(path):not(circle):not(rect):not(g):not(use):not(i):not(img):not(.hero-overlay):not(.mobile-menu-overlay) {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}

body.bvi-theme-black a:not([class*="bvi-"]) {
  color: #ffff00 !important;
}

/* Blue Theme */
body.bvi-theme-blue {
  background-color: #e3f2fd !important;
  color: #0d47a1 !important;
}

body.bvi-theme-blue *:not([class*="bvi-"]):not(.lang-switcher-btn):not(.top-bar-icon):not(svg):not(path):not(circle):not(rect):not(g):not(use):not(i):not(img):not(.hero-overlay):not(.mobile-menu-overlay) {
  background-color: #e3f2fd !important;
  color: #0d47a1 !important;
  border-color: #bbdefb !important;
}

/* ────────── BVI IMAGE MODES ────────── */
body.bvi-img-hide img:not(.bvi-panel *),
body.bvi-img-hide [style*="background-image"]:not(.bvi-panel *) {
  visibility: hidden !important;
  opacity: 0 !important;
}

body.bvi-img-grayscale img:not(.bvi-panel *),
body.bvi-img-grayscale [style*="background-image"]:not(.bvi-panel *) {
  filter: grayscale(100%) !important;
}

/* ────────── BVI FONT SCALING ────────── */
body.bvi-font-1 {
  font-size: 1.1em !important;
}

body.bvi-font-2 {
  font-size: 1.25em !important;
}

body.bvi-font-3 {
  font-size: 1.4em !important;
}

/* Responsive */
@media (max-width: 991px) {
  .bvi-panel-inner {
    justify-content: center;
    padding: 10px;
  }
}
/* About & Contact page extras */
.about-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 40px 0; }
.about-hero-image { flex: 1; min-width: 280px; }
.about-hero-image img { width: 100%; border-radius: var(--radius-xl); }
.about-hero-content { flex: 1; min-width: 280px; }
.about-hero-content h2 { margin-bottom: 16px; color: var(--primary); }
.info-box { padding: 24px; background: var(--gray-50); border-radius: var(--radius-lg); border-left: 4px solid var(--accent); margin-bottom: 20px; }
.info-box h4 { margin-bottom: 8px; color: var(--primary); }
.department-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.department-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.department-icon { font-size: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 16px; }
.contact-icon { font-size: 24px; }
.contact-form { background: white; padding: 32px; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--gray-700); }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 15px; }
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* Social icon colors */
.social-dropdown-item .fa-instagram { color: #e4405f; }
.social-dropdown-item .fa-telegram { color: #0088cc; }
.social-dropdown-item .fa-linkedin { color: #0a66c2; }
.social-dropdown-item .fa-facebook { color: #1877f2; }
