/* ==========================================================
   NAQSHBAND XUSUSIY MAKTABI (INTERNATIONAL PRIVATE SCHOOL)
   Styles inspired by Thompson International School & Modern EdTech
   ========================================================== */

:root {
  --primary: #8B152B;
  --primary-hover: #700F21;
  --primary-light: #FDF2F4;
  --primary-glow: rgba(139, 21, 43, 0.25);
  
  --secondary: #0A2540;
  --secondary-light: #16365C;
  --secondary-dark: #06182B;
  
  --gold: #C8963E;
  --gold-light: #FDF8EE;
  --gold-hover: #B28332;
  
  --emerald: #059669;
  --emerald-light: #ECFDF5;
  
  --dark: #0F172A;
  --dark-soft: #1E293B;
  --gray: #64748B;
  --gray-light: #94A3B8;
  --gray-bg: #F8FAFC;
  --gray-border: #E2E8F0;
  --white: #FFFFFF;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.16);
  --shadow-primary: 0 8px 24px rgba(139, 21, 43, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
}

/* ==========================================================
   SCROLL PROGRESS BAR
   Sahifa pastga surilganda eng yuqorida to'lib boruvchi chiziq
   ========================================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 100000;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4F46E5 0%, #2563EB 35%, #06B6D4 75%, #22D3EE 100%);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8), 0 0 4px rgba(37, 99, 235, 0.6);
  border-radius: 0 3px 3px 0;
  transition: width 0.08s ease-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= UTILITY CLASSES ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(139, 21, 43, 0.15);
}
.badge-gold {
  background: var(--gold-light);
  color: #926618;
  border: 1px solid rgba(200, 150, 62, 0.25);
}
.badge-success {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.badge-white {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(139, 21, 43, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background-color: #F8FAFC;
  transform: translateY(-2px);
  color: var(--primary-hover);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.section {
  padding: 90px 0;
  position: relative;
}
.section-gray {
  background-color: var(--gray-bg);
}
.section-dark {
  background-color: var(--secondary);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}
.section-header .badge {
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-dark .section-header h2 {
  color: var(--white);
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
}
.section-dark .section-header p {
  color: var(--gray-light);
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-bar {
  background-color: var(--secondary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.top-bar-item svg {
  color: var(--gold);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-tg-link {
  color: #ffffff;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
}
.top-tg-link:hover {
  background: rgba(42, 171, 238, 0.22);
  border-color: #2AABEE;
  color: #ffffff;
  transform: translateY(-1px);
}
.top-tg-link img {
  width: 17px;
  height: 17px;
  display: block;
}
.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary);
  color: var(--white);
}
.portal-btn {
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}
.portal-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

.top-motto-tag {
  color: #FCD34D;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  background: rgba(200, 150, 62, 0.2);
  padding: 2px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

/* ================= MAIN NAVIGATION ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 2px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.nav-logo:hover img {
  transform: scale(1.02);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.nav-item {
  position: relative;
  white-space: nowrap;
}
.nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--dark);
  padding: 8px 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.phone-cta {
  display: flex;
  flex-direction: column;
  text-align: right;
  white-space: nowrap;
}
.phone-cta span {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 500;
  white-space: nowrap;
}
.phone-cta a {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--dark);
  white-space: nowrap;
}
.phone-cta a:hover {
  color: var(--primary);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  padding: 6px;
}

/* ================= HERO SECTION (SLIDER) ================= */
.hero {
  position: relative;
  background: var(--secondary);
  color: var(--white);
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 7s ease;
}
.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.82) 55%, rgba(10, 37, 64, 0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 70px 0;
}
.hero-content .badge {
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}
.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-title span {
  color: var(--gold);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-controls {
  position: absolute;
  bottom: 24px;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: var(--gold);
  width: 28px;
}

/* ================= FAST HIGHLIGHTS TICKER / CARDS ================= */
.highlights-ribbon {
  margin-top: -45px;
  position: relative;
  z-index: 20;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.highlight-card {
  background: var(--white);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(139, 21, 43, 0.2);
}
.highlight-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.highlight-card:nth-child(2) .highlight-icon {
  background: #EFF6FF;
  color: #2563EB;
}
.highlight-card:nth-child(3) .highlight-icon {
  background: var(--emerald-light);
  color: var(--emerald);
}
.highlight-card:nth-child(4) .highlight-icon {
  background: var(--gold-light);
  color: #B45309;
}
.highlight-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.highlight-info p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ================= DIAGNOSTIC TEST BANNER ================= */
.quiz-banner {
  background: linear-gradient(135deg, #8B152B 0%, #5E0D1C 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
  margin: 50px auto 0;
}
.quiz-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.quiz-banner-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}
.quiz-banner-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}
.quiz-banner-content p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
}
.quiz-banner-action {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ================= STATS COUNTER SECTION ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-card:hover::after {
  opacity: 1;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-heading), var(--font-main);
  line-height: 1;
}
.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.stat-desc {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.4;
}

/* ================= ABOUT SECTION ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
  perspective: 1100px;
  transform-style: preserve-3d;
  cursor: pointer;
}
.about-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -10px rgba(11, 22, 44, 0.22);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  will-change: transform;
}
.about-image-wrapper:hover .about-img-main {
  box-shadow: 0 28px 56px -12px rgba(11, 22, 44, 0.32);
}
.about-floating-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--secondary);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.4);
  border-left: 5px solid var(--gold);
  max-width: 280px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
  will-change: transform;
  z-index: 2;
}
.about-floating-badge h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.about-floating-badge p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

/* ==========================================================
   TICKER / RUNNING MARQUEE BANNER (Ta'lim Tarbiya Natija)
   ========================================================== */
.ticker-banner-wrap {
  width: 100%;
  overflow: hidden;
  background: #4EE1C6;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
  position: relative;
  z-index: 10;
  user-select: none;
  box-shadow: 0 6px 24px rgba(78, 225, 198, 0.28);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMarquee 32s linear infinite;
  will-change: transform;
}
.ticker-banner-wrap:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-content {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
}
.ticker-item {
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #071527;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.ticker-star {
  font-size: 1.6rem;
  color: #071527;
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
}
@keyframes tickerMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}
@media (max-width: 768px) {
  .ticker-banner-wrap {
    padding: 12px 0;
  }
  .ticker-item {
    font-size: 1.25rem;
    gap: 12px;
  }
  .ticker-content {
    gap: 22px;
    padding-right: 22px;
  }
  .ticker-star {
    font-size: 1.2rem;
  }
  .about-floating-badge {
    right: 0;
    bottom: -16px;
    max-width: 90%;
  }
}
.about-text h3 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 20px;
}
.about-quote {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-style: italic;
  font-size: 0.98rem;
  color: #78350F;
  line-height: 1.6;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
}
.about-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ================= EDUCATIONAL STAGES (TABS & CAROUSEL) ================= */
#programs {
  padding-top: 50px;
  padding-bottom: 25px;
}
#programs .section-header {
  margin-bottom: 28px;
}

#results {
  padding-top: 40px;
  padding-bottom: 60px;
}
#results .section-header {
  margin-bottom: 32px;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
.tab-content.active {
  display: block;
}

.stage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stage-image {
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}
.stage-info {
  padding: 32px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stage-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  width: fit-content;
}
.stage-info h3 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--dark);
}
.stage-info p {
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.55;
  font-size: 0.95rem;
}
.stage-perks {
  list-style: none;
  margin-bottom: 22px;
}
.stage-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}
.stage-perks li svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* ================= BRANCHES & CAMPUS ================= */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.branch-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139, 21, 43, 0.2);
}
.branch-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.branch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.branch-card:hover .branch-img {
  transform: scale(1.06);
}
.branch-status {
  position: absolute;
  top: 14px;
  left: 14px;
}
.branch-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.branch-city {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.branch-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.branch-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 10px;
}
.branch-detail svg {
  color: var(--gray-light);
  margin-top: 3px;
  flex-shrink: 0;
}
.branch-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= STUDENT ACHIEVEMENTS ================= */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.student-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.student-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.student-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.student-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary-light);
}
.student-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}
.student-info span {
  font-size: 0.82rem;
  color: var(--gray);
}
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: #854D0E;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
  width: fit-content;
  border: 1px solid rgba(200, 150, 62, 0.3);
}
.score-badge.ielts {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: rgba(30, 64, 175, 0.2);
}
.score-badge.grant {
  background: var(--emerald-light);
  color: #065F46;
  border-color: rgba(6, 95, 70, 0.2);
}
.student-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 12px;
}
.student-meta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ================= WHY PARENTS CHOOSE US ================= */
.why-header-editorial {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 55px;
}
.editorial-top-tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', var(--font-main), sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(139, 21, 43, 0.12);
}
.editorial-title {
  font-family: 'Plus Jakarta Sans', var(--font-main), -apple-system, sans-serif;
  font-size: 2.85rem;
  font-weight: 900;
  color: #071527;
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 0 auto 18px;
}
.editorial-title .editorial-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1E40AF; /* royal deep indigo-blue like in reference */
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #4338CA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 4px;
}
.editorial-subtitle {
  font-family: 'Plus Jakarta Sans', var(--font-main), sans-serif;
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .editorial-title {
    font-size: 2rem;
    line-height: 1.22;
  }
  .editorial-subtitle {
    font-size: 0.98rem;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  padding: 32px 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 28px -6px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Nozik jiloli tilla-yoqut ustki chiziq */
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #8B152B 0%, #C8963E 50%, #2563EB 100%);
  opacity: 0.35;
  transition: opacity 0.35s ease, height 0.35s ease;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(139, 21, 43, 0.14), 0 8px 20px -6px rgba(15, 23, 42, 0.06);
  border-color: rgba(139, 21, 43, 0.25);
}
.why-card:hover::before {
  opacity: 1;
  height: 4.5px;
}
.why-num {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, rgba(139, 21, 43, 0.24) 0%, rgba(200, 150, 62, 0.42) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  top: 18px;
  right: 22px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.08);
}
.why-card:hover .why-icon {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.12);
}

/* Mavzuga mos ranglar */
.why-icon-blue   { background: #EFF6FF; color: #2563EB; }
.why-icon-gold   { background: #FEF9C3; color: #CA8A04; }
.why-icon-purple { background: #F3E8FF; color: #9333EA; }
.why-icon-green  { background: #DCFCE7; color: #16A34A; }
.why-icon-red    { background: #FEE2E2; color: #DC2626; }
.why-icon-amber  { background: #FFEDD5; color: #EA580C; }

.why-card h4 {
  font-family: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

/* Chips / Tags */
.why-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.why-tag {
  font-family: 'Plus Jakarta Sans', var(--font-main), sans-serif;
  font-size: 0.76rem;
  font-weight: 650;
  background: #F8FAFC;
  color: #334155;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-family: 'Plus Jakarta Sans', var(--font-main), sans-serif;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.68;
  margin-bottom: 18px;
  flex: 1;
  font-weight: 450;
  letter-spacing: -0.01em;
}

/* Bottom Highlight Line */
.why-footer-highlight {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-family: 'Plus Jakarta Sans', var(--font-main), sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  color: #047857;
  margin-top: auto;
  letter-spacing: -0.01em;
}
.why-footer-highlight svg {
  color: #059669;
  flex-shrink: 0;
}

/* ================= MOBILE APP SHOWCASE ================= */
.app-section {
  background: linear-gradient(135deg, #0A2540 0%, #103B64 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.app-info h3 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.app-info p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.app-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.app-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}
.app-feature-item svg {
  color: var(--gold);
  flex-shrink: 0;
}
.app-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-frame {
  width: 300px;
  height: 590px;
  background: #111827;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #374151;
  position: relative;
}
.phone-notch {
  width: 100px;
  height: 18px;
  background: #111827;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 12px 12px;
  z-index: 10;
}
.phone-screen {
  background: #FAF7F2;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  color: var(--dark);
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar {
  display: none;
}

/* ================= APP SCREEN V2 (1-rasmdagi dizayn) ================= */
.app-v2-top {
  background: linear-gradient(180deg, #0B1E36 0%, #0F2B4D 100%);
  padding: 24px 14px 18px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 20px rgba(11, 30, 54, 0.25);
  text-align: center;
  color: #fff;
}
.app-v2-lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 4px;
  float: left;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}
.app-v2-lang-pill span {
  padding: 2px 6px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.app-v2-lang-pill span.active {
  background: #FFFFFF;
  color: #0B1E36;
}
.app-v2-logo-wrap {
  clear: both;
  margin-top: 12px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.app-v2-logo-img {
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.app-v2-logo-text {
  text-align: left;
}
.app-v2-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #E5A93C;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.app-v2-subbrand {
  font-size: 0.62rem;
  color: #E5A93C;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.app-v2-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #FFFFFF;
  line-height: 1.3;
}
.app-v2-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin: 0 0 14px 0;
  padding: 0 4px;
}
.app-v2-btn-login {
  width: 100%;
  padding: 10px;
  background: #E5A93C;
  color: #0B1E36;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(229, 169, 60, 0.35);
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: block;
  text-align: center;
}
.app-v2-btn-login:hover {
  background: #d49528;
  transform: translateY(-1px);
}
.app-v2-btn-register {
  width: 100%;
  padding: 9px;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: block;
  text-align: center;
}
.app-v2-btn-register:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-v2-bottom {
  padding: 12px 10px 16px;
  background: #FAF7F2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-v2-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.app-v2-feature-card {
  background: #FFFFFF;
  border: 1px solid #EFE9DE;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-v2-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 1rem;
}
.app-v2-feature-card h4 {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 3px 0;
  line-height: 1.2;
}
.app-v2-feature-card p {
  font-size: 0.58rem;
  color: #64748B;
  margin: 0;
  line-height: 1.3;
}
.app-v2-contact-card {
  background: #FFFFFF;
  border: 1px solid #EFE9DE;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.app-v2-contact-card h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
}
.app-v2-contact-btns {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.app-v2-cbtn {
  flex: 1;
  padding: 6px 2px;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.app-v2-cbtn.primary {
  background: #0B1E36;
  color: #fff;
}
.app-v2-cbtn.secondary {
  background: #64748B;
  color: #fff;
}
.app-v2-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-v2-phones a {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0B1E36;
  text-decoration: underline;
  letter-spacing: 0.02em;
}

.app-screen-header {
  background: var(--primary);
  color: var(--white);
  padding: 24px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-screen-body {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-card-mock {
  background: var(--white);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
}

/* ================= TUITION FEE CALCULATOR ================= */
.calc-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
}
.calc-form {
  padding: 44px;
}
.calc-group {
  margin-bottom: 24px;
}
.calc-group label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.calc-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}
.calc-radio-label:hover {
  border-color: var(--primary);
}
.calc-radio-label input:checked + span {
  color: var(--primary);
}
.calc-radio-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--dark);
  padding: 6px 0;
}
.calc-result-box {
  background: linear-gradient(135deg, #0A2540 0%, #16365C 100%);
  color: var(--white);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-result-box h4 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.calc-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: var(--font-heading), var(--font-main);
}
.calc-period {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.calc-summary-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  margin-bottom: 28px;
}
.calc-summary-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

/* ================= PARTNERS & ACCREDITATIONS ================= */
.partners-slider {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: var(--transition);
}
.partners-slider:hover {
  filter: grayscale(0%);
  opacity: 1;
}
.partner-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-border);
}

/* ================= REVIEWS / TESTIMONIALS ================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stars {
  color: #F59E0B;
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 0.94rem;
  color: var(--dark-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  font-style: italic;
}
.parent-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.parent-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.parent-details h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}
.parent-details span {
  font-size: 0.78rem;
  color: var(--gray);
}

/* ================= FAQ ACCORDION ================= */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-border);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--primary);
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--gray-bg);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary);
  color: var(--white);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px dashed var(--gray-border);
  padding-top: 14px;
}

/* ================= ADMISSION & TOUR FORM ================= */
.admission-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-border);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.admission-info {
  background: linear-gradient(135deg, #0A2540 0%, #06182B 100%);
  color: var(--white);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.admission-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.admission-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}
.admission-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admission-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-desc h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.step-desc p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}
.admission-form {
  padding: 50px;
}
.admission-form h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.admission-form p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  font-size: 0.92rem;
  color: var(--dark);
  background: #F8FAFC;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ================= PARENT REVIEW FORM ================= */
#reviews {
  padding: 40px 0 35px 0;
}
.reviews-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  gap: 20px;
  flex-wrap: wrap;
}
.reviews-bottom-cta {
  display: none;
}
.review-form-wrapper {
  max-width: 860px;
  margin: 0 auto 35px;
  background: #FFFFFF;
  border: 1.5px solid rgba(139, 21, 56, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 12px;
  margin-bottom: 12px;
}
.review-form textarea.form-control {
  resize: vertical;
  min-height: 60px;
  font-size: 0.88rem;
}
.review-form .form-group label {
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.review-form .form-control {
  padding: 10px 12px;
  font-size: 0.88rem;
}
.review-form .btn {
  margin-top: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
}

/* Star Rating Picker */
.star-rating {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.star-pick {
  font-size: 1.6rem;
  cursor: pointer;
  color: #CBD5E1;
  transition: color 0.15s, transform 0.15s;
  user-select: none;
  line-height: 1;
}
.star-pick.active,
.star-pick:hover {
  color: #F59E0B;
  transform: scale(1.15);
}

/* User Reviews */
#userReviewsContainer {
  margin-bottom: 20px;
}
.user-reviews-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  text-align: center;
}
.user-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.user-review-card {
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 0;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.user-review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-glow);
}
.user-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.user-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.user-review-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}
.user-review-grade {
  font-size: 0.82rem;
  color: var(--gray);
}
.user-review-stars {
  color: #F59E0B;
  font-size: 1rem;
}
.user-review-text {
  color: var(--dark-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}
.user-review-date {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 8px;
  text-align: right;
}

@media (max-width: 768px) {
  .review-form-row {
    grid-template-columns: 1fr;
  }
  .review-form-wrapper {
    padding: 20px 18px;
  }
}

/* ================= MAP SECTION ================= */
.map-section {
  padding-bottom: 0;
}
.map-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  border: 1.5px solid var(--gray-border);
  background: var(--white);
  min-height: 270px;
  max-height: 300px;
}
.map-card-left {
  min-height: 280px;
}
.map-card-left iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.map-card-right {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.map-card-right h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}
.map-card-address {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 16px;
}
.map-card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.map-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--dark-soft);
}
.map-detail-item a {
  color: var(--dark-soft);
  font-weight: 600;
  text-decoration: none;
}
.map-detail-item a:hover {
  color: var(--primary);
}
.map-card-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.map-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--gray-border);
  color: var(--dark);
  background: #F8FAFC;
  transition: var(--transition);
}
.map-link-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-1px);
}
.map-link-btn.map-link-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.map-link-btn.map-link-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

@media (max-width: 768px) {
  .map-card {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .map-card-left {
    min-height: 220px;
    max-height: 220px;
  }
  .map-card-right {
    padding: 20px 18px;
  }
}

/* ================= FOOTER ================= */
.footer {
  background-color: var(--secondary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 70px;
  padding-bottom: 25px;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.footer-motto-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  border: 1px solid rgba(200, 150, 62, 0.45);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  background: rgba(200, 150, 62, 0.12);
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}
.footer-contact-item svg {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ================= FLOATING ACTION WIDGETS ================= */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.float-telegram {
  background: #229ED9;
}
.float-telegram:hover {
  transform: scale(1.1);
  background: #1B8ABF;
}
.float-phone {
  background: var(--emerald);
}
.float-phone:hover {
  transform: scale(1.1);
  background: #047857;
}
.float-scroll-top {
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.float-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.float-scroll-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition);
  padding: 40px;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Diagnostic Quiz Modal Styling */
.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-border);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 20%;
  transition: width 0.3s ease;
}
.quiz-question-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 18px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.quiz-option {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  transition: var(--transition);
}
.quiz-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.quiz-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}
.quiz-result-score {
  text-align: center;
  padding: 20px 0;
}
.score-circle {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: var(--emerald-light);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 16px;
  border: 4px solid var(--emerald);
}
.grant-voucher {
  background: #FFFBEB;
  border: 2px dashed #F59E0B;
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 18px 0;
  text-align: center;
}
.grant-code {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #B45309;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESULTS HORIZONTAL CAROUSEL ================= */
/* ========== STAGES CAROUSEL (SINFLAR BO'YICHA) ========== */
.stages-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  margin-bottom: 0;
}

.stages-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.stage-scroll-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px;
}

/* ========== VIDEO LIGHTBOX MODAL & PLAY BUTTON ========== */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.video-modal-dialog {
  background: #0F172A;
  border-radius: 18px;
  width: 100%;
  max-width: 880px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #1E293B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
  color: #F8FAFC;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.video-modal-close {
  background: #EF4444;
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.video-modal-close:hover {
  background: #DC2626;
  transform: scale(1.1);
}

.video-modal-body {
  position: relative;
  width: 100%;
  background: #000;
}

.video-modal-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-modal-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video Card Thumbnail Play Button */
.video-card-thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0F172A;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
}

.video-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card-thumb-wrap:hover img {
  transform: scale(1.06);
}

.video-play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(220, 38, 38, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.6);
  transition: all 0.3s ease;
  pointer-events: none;
}

.video-card-thumb-wrap:hover .video-play-btn-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: #DC2626;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.8);
}

.results-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.results-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  /* transition yo'q — requestAnimationFrame boshqaradi */
}

.results-carousel-slide {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 8px 10px;
}

.results-carousel-btn {
  display: none; /* avtomatik rejimda yashirin */
}

.results-carousel-dots {
  display: none; /* avtomatik rejimda yashirin */
}

/* ==========================================================
   GOOGLE TRANSLATE TOZA INTEGRATSIYASI
   Ortiqcha banner va tooltiplarni to'liq yashirish
   ========================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}
body {
  top: 0px !important;
  position: static !important;
}
.skiptranslate:not(.lang-selector) {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
#google_translate_element {
  display: none !important;
}
