/* ==========================================================================
   BITU public landing — "Clinical warmth meets Bukhara heritage".
   Scoped under .bx-* so it never collides with style.css. Reuses the :root
   tokens from style.css (BITU red, radii, Inter) and adds a local palette:
   medical red + Bukhara dome teal + warm sand neutrals + a single gold accent
   reserved for the girih lattice signature.
   ========================================================================== */

.bx-body {
  /* Pure red + white identity. The former teal/gold secondary tokens are kept as
     names but repointed onto the red family so every accent stays on-brand. */
  --bx-red: #DC2626;
  --bx-red-d: #B91C1C;
  --bx-red-ink: #7F1D1D;
  --bx-teal: var(--bx-red);
  --bx-teal-d: var(--bx-red-d);
  --bx-teal-soft: #FEF2F2;     /* soft red tint (was teal) */
  --bx-gold: #FCA5A5;          /* faint red used only for the girih lattice texture */
  --bx-ink: #1A1A1A;           /* near-black */
  --bx-stone: #6B7280;         /* neutral body text */
  --bx-faint: #9AA0A6;
  --bx-line: #EFE3E3;          /* soft red-tinted hairline */
  --bx-sand: #FEF5F4;          /* faint red-white section background */
  --bx-cream: #FDECEC;
  --bx-white: #FFFFFF;
  --bx-shadow: 0 18px 50px -28px rgba(28, 26, 23, .45);
  --bx-shadow-sm: 0 8px 24px -16px rgba(28, 26, 23, .4);

  font-size: 16px;
  line-height: 1.6;
  color: var(--bx-ink);
  background: var(--bx-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bx-body * { box-sizing: border-box; }

/* Red applies to PLAIN links inside <main> content only — never buttons, and never
   the nav/header or footer (which live outside <main> and set their own colors).
   Scoping to `main` keeps this rule (0,1,2) from bleeding into the footer links,
   the social icons or the language-dropdown options. */
.bx-body main a:not(.bx-btn) { color: var(--bx-red); text-decoration: none; }
.bx-body h1, .bx-body h2, .bx-body h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
.bx-body p { margin: 0; }

.bx-shell { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- focus + skip-link (a11y) --------------------------------------------- */
.bx-body :focus-visible {
  outline: 3px solid var(--bx-teal);
  outline-offset: 2px;
  border-radius: 6px;
}
.bx-skip {
  position: fixed; top: -60px; left: 16px; z-index: 1200;
  background: var(--bx-ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; font-weight: 600; transition: top .2s ease;
}
.bx-skip:focus { top: 16px; }

/* --- eyebrow labels (structural device, encode the section's theme) -------- */
.bx-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.18em; margin-bottom: 16px;
}
.bx-eyebrow-red  { color: var(--bx-red); }
.bx-eyebrow-teal { color: var(--bx-teal); }
.bx-eyebrow-light { color: rgba(255,255,255,.85); }

/* --- buttons -------------------------------------------------------------- */
.bx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.bx-btn:hover { opacity: 1; transform: translateY(-1px); }
.bx-btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.bx-btn-primary { background: var(--bx-red); color: #fff; box-shadow: 0 12px 24px -12px rgba(220,38,38,.7); }
.bx-btn-primary:hover { background: var(--bx-red-d); color: #fff; }
.bx-btn-ghost { background: transparent; color: var(--bx-ink); border-color: var(--bx-line); }
.bx-btn-ghost:hover { border-color: var(--bx-ink); color: var(--bx-ink); }
.bx-btn-line { background: transparent; color: var(--bx-ink); border-color: rgba(28,26,23,.22); }
.bx-btn-line:hover { border-color: var(--bx-ink); color: var(--bx-ink); }
.bx-btn-white { background: #fff; color: var(--bx-red-ink); }
.bx-btn-white:hover { background: #fff; color: var(--bx-red); }
.bx-btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.bx-btn-line-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

.bx-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   NAV
   ========================================================================== */
.bx-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.bx-nav.scrolled { border-bottom-color: var(--bx-line); box-shadow: 0 6px 24px -20px rgba(28,26,23,.6); }
.bx-nav-inner { display: flex; align-items: center; gap: 20px; height: 70px; }

.bx-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--bx-ink); }
.bx-brand-mark {
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 4px;
  box-shadow: inset 0 0 0 1px var(--bx-line);
}
.bx-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bx-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.bx-brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.bx-brand-text small { font-size: 10.5px; font-weight: 600; color: var(--bx-faint); text-transform: uppercase; letter-spacing: .08em; }

.bx-nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.bx-nav-item { position: relative; }
.bx-nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14.5px; font-weight: 600; color: var(--bx-stone);
  padding: 8px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: none; border: none; font-family: inherit;
  transition: color .2s ease, background .2s ease;
}
.bx-nav-link:hover, .bx-nav-item:hover > .bx-nav-link, .bx-nav-item.is-open > .bx-nav-link {
  color: var(--bx-red); background: var(--bx-teal-soft);
}
.bx-nav-caret { font-size: 10px; opacity: .65; transition: transform .2s ease; }
.bx-nav-item:hover .bx-nav-caret, .bx-nav-item.is-open .bx-nav-caret { transform: rotate(180deg); }

/* Level-2 dropdown panel (opens on hover / .is-open) */
.bx-nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 1100;
  min-width: 232px; padding: 8px;
  background: #fff; border: 1px solid var(--bx-line); border-radius: 14px;
  box-shadow: var(--bx-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.bx-nav-drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.bx-nav-item.has-drop:hover > .bx-nav-drop,
.bx-nav-item.is-open > .bx-nav-drop { opacity: 1; visibility: visible; transform: none; }

.bx-nav-cat { position: relative; }
.bx-nav-cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600;
  color: var(--bx-ink); white-space: nowrap;
}
a.bx-nav-cat-link:hover { background: var(--bx-sand); color: var(--bx-red); }
.bx-nav-arrow { opacity: .55; font-size: 16px; line-height: 1; }

/* Level-3 flyout (opens to the side) */
.bx-nav-flyout {
  position: absolute; top: -8px; left: calc(100% + 6px); z-index: 1110;
  min-width: 210px; padding: 8px;
  background: #fff; border: 1px solid var(--bx-line); border-radius: 14px;
  box-shadow: var(--bx-shadow);
  opacity: 0; visibility: hidden; transform: translateX(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.bx-nav-flyout::before { content: ""; position: absolute; top: 0; left: -8px; width: 8px; height: 100%; }
.bx-nav-cat.has-flyout:hover > .bx-nav-flyout { opacity: 1; visibility: visible; transform: none; }
.bx-nav-leaf {
  display: block; padding: 8px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--bx-stone); white-space: nowrap;
}
.bx-nav-leaf:hover { background: var(--bx-sand); color: var(--bx-red); }
.bx-nav-mobile-cta { display: none; }

.bx-nav-actions { display: flex; align-items: center; gap: 12px; }
.bx-burger { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; padding: 10px; }
.bx-burger span { display: block; height: 2px; border-radius: 2px; background: var(--bx-ink); margin: 4px 0; transition: transform .25s ease, opacity .2s ease; }
.bx-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bx-burger.open span:nth-child(2) { opacity: 0; }
.bx-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.bx-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 84px;
  background:
    radial-gradient(120% 100% at 100% 0%, var(--bx-teal-soft) 0%, rgba(233,244,243,0) 55%),
    linear-gradient(180deg, var(--bx-sand) 0%, var(--bx-white) 100%);
}
.bx-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 12% 8%, rgba(220,38,38,.10) 0%, rgba(220,38,38,0) 60%);
}

/* --- full-screen hero background slideshow (admin-managed HeroSlide) -------- */
.bx-hero.has-bg {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px 0; color: #fff; background: var(--bx-ink);
}
.bx-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bx-hero-bg-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.bx-hero-bg-slide.is-on { opacity: 1; }
.bx-hero-scrim {
  position: absolute; inset: 0;
  /* Left-weighted: dark behind the text (left), clearing toward the right so the
     carousel image stays visible. Plus a soft bottom fade. */
  background:
    linear-gradient(90deg, rgba(8,6,6,.72) 0%, rgba(8,6,6,.46) 38%, rgba(8,6,6,.18) 68%, rgba(8,6,6,.05) 100%),
    linear-gradient(180deg, rgba(8,6,6,0) 58%, rgba(8,6,6,.42) 100%);
}
.bx-hero.has-bg .bx-hero-inner { position: relative; z-index: 1; grid-template-columns: 1fr; }
.bx-hero.has-bg .bx-hero-text { max-width: 760px; }
.bx-hero.has-bg .bx-hero-name { color: #fff; font-size: clamp(34px, 5.2vw, 64px); text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.bx-hero.has-bg .bx-hero-slogan { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.bx-hero.has-bg .bx-eyebrow-red { color: #FCA5A5; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.bx-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; gap: 10px; justify-content: center;
}
.bx-hero-dot {
  width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.bx-hero-dot.is-on { background: #fff; transform: scale(1.3); }
.bx-hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.bx-hero-name {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.04; color: var(--bx-ink); max-width: 16ch;
}
.bx-hero-slogan {
  margin-top: 22px; font-size: clamp(20px, 2.6vw, 30px); font-weight: 800;
  letter-spacing: -0.02em; color: var(--bx-red);
}
.bx-hero-slogan-tr { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--bx-stone); }
.bx-hero-lead { margin-top: 18px; max-width: 52ch; font-size: 16.5px; color: var(--bx-stone); }
.bx-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.bx-trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bx-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--bx-stone);
}
.bx-trust li .bx-ic { color: var(--bx-teal); }

/* hero visual: logo card on a soft, contained "stage" (girih neatly clipped
   inside a rounded panel) + credential chips that frame it. */
.bx-hero-visual { position: relative; min-height: 400px; display: grid; place-items: center; }
.bx-hero-stage {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(360px, 100%); aspect-ratio: 1; border-radius: 48px; overflow: hidden;
  background:
    radial-gradient(78% 78% at 50% 36%, rgba(220,38,38,.07), transparent 72%),
    linear-gradient(158deg, var(--bx-cream) 0%, var(--bx-white) 70%);
  box-shadow: inset 0 0 0 1px rgba(220,38,38,.08), 0 34px 70px -42px rgba(127,29,29,.34);
}
.bx-hero-lattice {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: var(--bx-red); opacity: .08;
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
}
.bx-hero-card {
  position: relative; z-index: 2;
  width: 236px; padding: 30px 26px 26px; border-radius: 28px;
  background: linear-gradient(160deg, var(--bx-red) 0%, var(--bx-red-d) 100%);
  box-shadow: 0 34px 64px -30px rgba(185,28,28,.75), inset 0 1px 0 rgba(255,255,255,.18);
  display: grid; justify-items: center; gap: 16px;
}
.bx-hero-card-logo {
  width: 128px; height: 128px; border-radius: 26px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 26px -14px rgba(0,0,0,.4);
}
.bx-hero-card-logo img { width: 92px; height: 92px; object-fit: contain; }
.bx-hero-card-name { font-size: 22px; font-weight: 900; letter-spacing: .01em; color: #fff; text-align: center; line-height: 1.15; }
.bx-chip {
  position: absolute; z-index: 3;
  background: var(--bx-white); border: 1px solid var(--bx-line);
  border-radius: 999px; padding: 8px 14px; font-size: 12.5px; font-weight: 700;
  color: var(--bx-ink); box-shadow: var(--bx-shadow-sm); white-space: nowrap;
}
.bx-chip-1 { top: 9%; left: 1%; color: var(--bx-red-ink); }
.bx-chip-2 { top: 26%; right: -1%; color: var(--bx-teal-d); }
.bx-chip-3 { bottom: 9%; left: 7%; }

/* ==========================================================================
   STATS — a museum-plaque strip, not gradient cards
   ========================================================================== */
.bx-stats { background: var(--bx-ink); color: #fff; padding: 48px 0; }
.bx-stats .bx-eyebrow-teal { color: #FCA5A5; }
.bx-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden;
}
.bx-stat { background: var(--bx-ink); padding: 24px 22px; display: flex; flex-direction: column; gap: 6px; }
.bx-stat-num { font-size: clamp(30px, 4vw, 42px); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.bx-stat-num::after { content: "+"; color: var(--bx-gold); font-weight: 800; }
.bx-stat-lbl { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.66); }

/* ==========================================================================
   SECTION shell + heads
   ========================================================================== */
.bx-section { padding: 84px 0; }
.bx-section-soft { background: var(--bx-sand); }
.bx-section-teal { background: linear-gradient(180deg, var(--bx-teal-soft) 0%, var(--bx-white) 100%); padding-bottom: 0; }
.bx-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.bx-h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; color: var(--bx-ink); }
.bx-lead { margin-top: 14px; font-size: 16.5px; color: var(--bx-stone); }

/* --- programs ------------------------------------------------------------- */
.bx-prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.bx-prog {
  position: relative; background: var(--bx-white); border: 1px solid var(--bx-line);
  border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bx-prog:hover { transform: translateY(-4px); box-shadow: var(--bx-shadow); border-color: transparent; }
.bx-prog-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bx-primary-light, #FEE2E2); color: var(--bx-red); }
.bx-prog-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bx-prog-dur {
  position: absolute; top: 24px; inset-inline-end: 24px;
  font-size: 12px; font-weight: 800; color: var(--bx-teal-d);
  background: var(--bx-teal-soft); padding: 5px 11px; border-radius: 999px;
}
.bx-prog-t { font-size: 20px; font-weight: 800; color: var(--bx-ink); }
.bx-prog-d { font-size: 14.5px; color: var(--bx-stone); flex: 1; }
.bx-prog-lang { font-size: 12.5px; font-weight: 600; color: var(--bx-faint); padding-top: 12px; border-top: 1px dashed var(--bx-line); }

/* --- international + facilities ------------------------------------------- */
.bx-intl { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.bx-intl-aside .bx-h2 { margin-top: 4px; }
.bx-visa {
  margin-top: 26px; display: flex; gap: 16px; align-items: flex-start;
  background: var(--bx-white); border: 1px solid var(--bx-line);
  border-radius: 18px; padding: 20px; box-shadow: var(--bx-shadow-sm);
}
.bx-visa-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bx-teal); color: #fff; }
.bx-visa-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bx-visa-t { font-size: 17px; font-weight: 800; color: var(--bx-ink); }
.bx-visa-d { font-size: 14px; color: var(--bx-stone); margin: 6px 0 10px; }
.bx-link-arrow { font-weight: 700; color: var(--bx-teal-d); }

.bx-fac-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bx-fac { background: var(--bx-white); border: 1px solid var(--bx-line); border-radius: 18px; padding: 24px 22px; }
.bx-fac-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bx-teal-soft); color: var(--bx-teal-d); margin-bottom: 14px; }
.bx-fac-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bx-fac-t { font-size: 16.5px; font-weight: 800; color: var(--bx-ink); }
.bx-fac-d { font-size: 14px; color: var(--bx-stone); margin-top: 6px; }

/* --- girih divider (signature, second use) -------------------------------- */
.bx-divider { margin: 72px 0 0; height: 32px; color: var(--bx-gold); opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.bx-divider-svg { display: block; width: 100%; height: 32px; }

/* --- life in Bukhara ------------------------------------------------------ */
.bx-life { padding: 64px 0 84px; }
.bx-life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.bx-life-card { text-align: center; padding: 8px; }
.bx-life-ic {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bx-white); border: 1px solid var(--bx-line);
  color: var(--bx-teal-d); box-shadow: var(--bx-shadow-sm);
}
.bx-life-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bx-life-t { font-size: 16px; font-weight: 800; color: var(--bx-ink); }
.bx-life-d { font-size: 13.5px; color: var(--bx-stone); margin-top: 6px; }

/* --- why BITU ------------------------------------------------------------- */
.bx-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bx-why { display: flex; gap: 16px; padding: 24px; border-radius: 18px; background: var(--bx-sand); border: 1px solid transparent; transition: border-color .2s ease, background .2s ease; }
.bx-why:hover { background: var(--bx-white); border-color: var(--bx-line); }
.bx-why-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bx-white); border: 1px solid var(--bx-line); color: var(--bx-red); }
.bx-why-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bx-why-t { font-size: 16.5px; font-weight: 800; color: var(--bx-ink); }
.bx-why-d { font-size: 14px; color: var(--bx-stone); margin-top: 5px; }

/* --- how it works --------------------------------------------------------- */
.bx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: bxstep; }
.bx-step { position: relative; padding-top: 12px; }
.bx-step::before {
  content: ""; position: absolute; top: 31px; inset-inline-start: 56px; inset-inline-end: -11px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--bx-line) 0 8px, transparent 8px 14px);
}
.bx-step:last-child::before { display: none; }
.bx-step-n {
  position: relative; z-index: 1;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bx-red); color: #fff; font-size: 19px; font-weight: 900;
  box-shadow: 0 12px 22px -12px rgba(220,38,38,.7);
}
.bx-step-t { font-size: 16.5px; font-weight: 800; color: var(--bx-ink); margin-top: 18px; }
.bx-step-d { font-size: 14px; color: var(--bx-stone); margin-top: 6px; }

/* --- scholarships & financing --------------------------------------------- */
.bx-fin-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.bx-fin { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: var(--bx-sand); border-radius: 16px; }
.bx-fin-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--bx-teal); color: #fff; }
.bx-fin-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bx-fin-t { font-size: 16px; font-weight: 800; color: var(--bx-ink); }
.bx-fin-d { font-size: 14px; color: var(--bx-stone); margin-top: 4px; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.bx-final {
  position: relative; overflow: hidden; padding: 84px 0; text-align: center;
  background: linear-gradient(135deg, var(--bx-red-ink) 0%, var(--bx-red) 55%, #E1492C 100%);
  color: #fff;
}
.bx-final-lattice { position: absolute; inset: 0; color: #fff; opacity: .12; }
.bx-final-lattice svg { width: 100%; height: 100%; }
.bx-final-inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.bx-final-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -0.02em; max-width: 18ch; }
.bx-final-lead { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,.9); max-width: 46ch; }
.bx-final .bx-hero-actions { justify-content: center; margin-top: 30px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* Signature: a single restrained brand moment — a red gradient hairline where the
   light page meets the ink footer. Everything else stays quiet and monochrome. */
.bx-footer { background: var(--bx-ink); color: rgba(255,255,255,.72); padding-top: 38px;
  border-top: 3px solid; border-image: linear-gradient(90deg, var(--bx-red), #E1492C) 1; }
.bx-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-start; gap: 24px 48px; padding-bottom: 24px; }
.bx-footer-brand { flex: 1 1 260px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.bx-brand-foot { color: #fff; }
.bx-brand-foot .bx-brand-text, .bx-brand-foot strong { color: #fff; }
.bx-footer-about { margin-top: 16px; font-size: 14px; max-width: 38ch; }
.bx-footer-motto { margin-top: 14px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92);
  padding-inline-start: 12px; border-inline-start: 2px solid var(--bx-red); }
.bx-footer-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 16px; }
.bx-footer-h-social { margin-top: 14px; }
.bx-footer-col { display: flex; flex-direction: column; flex: 0 1 auto; min-width: 150px; }
.bx-footer-col > a { color: rgba(255,255,255,.72); font-size: 14.5px; padding: 6px 0; }
.bx-footer-col > a:hover { color: #fff; }

/* footer brand now shows the FULL university name; let it wrap on two lines */
.bx-brand-foot strong { font-size: 15px; line-height: 1.25; }
/* footer location map (Google Maps embed) */
.bx-footer-map { width: 100%; max-width: 360px; height: 188px; margin-top: 2px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; display: block; }

/* ==========================================================================
   STUDENT REVIEWS — text testimonial carousel (frosted cards, auto-rotating)
   3 cards on desktop, 2 on tablet, 1 on phone; slides one card per dot.
   ========================================================================== */
.bx-reviews { position: relative; overflow: hidden; padding: 84px 0 76px;
  background: linear-gradient(135deg, #4a4f57 0%, #2b2f36 100%); color: #fff; }
.bx-reviews-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(220,38,38,.16), transparent 60%),
    radial-gradient(85% 95% at 50% 0%, rgba(0,0,0,.08), rgba(0,0,0,.42)); }
.bx-reviews > .bx-shell { position: relative; z-index: 1; }
.bx-reviews-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.bx-reviews-title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; color: #fff; margin-top: 6px; }
.bx-reviews-rule { display: block; width: 64px; height: 4px; border-radius: 99px; margin: 16px auto 0; background: #fff; opacity: .92; }
.bx-reviews-lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); }

.bx-reviews-viewport { overflow: hidden; }
.bx-reviews-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.bx-review { flex: 0 0 25%; max-width: 25%; padding: 14px; box-sizing: border-box; }
.bx-review-card { display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 100%; padding: 34px 26px 28px; border-radius: 18px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 26px 54px -30px rgba(0, 0, 0, .7); color: #2a3340; }
.bx-review-photo { width: 112px; height: 112px; border-radius: 50%; flex: none;
  background: #e8edf2 center/cover no-repeat; border: 4px solid #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); display: grid; place-items: center;
  color: #9aa6b2; margin-bottom: 18px; }
.bx-review-photo svg { width: 52px; height: 52px; }
.bx-review-quote { font-size: 14.5px; line-height: 1.7; font-style: italic; color: #3a4654; margin-bottom: 18px; }
.bx-review-name { margin-top: auto; font-size: 16px; font-weight: 800; color: #1f3550; }
.bx-review-country { margin-top: 4px; font-size: 13px; font-weight: 600; color: #6b7280; }

.bx-reviews-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.bx-reviews-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .4); transition: background .2s ease, transform .2s ease; }
.bx-reviews-dot:hover { background: rgba(255, 255, 255, .7); }
.bx-reviews-dot.is-on { background: #fff; transform: scale(1.3); }

@media (max-width: 1160px) { .bx-review { flex-basis: 33.333%; max-width: 33.333%; } }
@media (max-width: 920px) { .bx-review { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 600px) { .bx-reviews { padding: 60px 0 54px; } .bx-review { flex-basis: 100%; max-width: 100%; } }

/* ==========================================================================
   IMAGE CAROUSEL band — admin "Karusel slaydlar" shown as a visible slider
   (full images, prev/next arrows, dots, autoplay). Separate from the hero bg.
   ========================================================================== */
.bx-cband { position: relative; background: #f5f6f7; padding: 44px 0; }
.bx-cband-viewport { position: relative; overflow: hidden; margin: 0 56px; }
.bx-cband-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.bx-cband-slide { flex: 0 0 25%; max-width: 25%; padding: 8px; box-sizing: border-box; }
.bx-cband-img {
  display: block; width: 100%; height: clamp(150px, 17vw, 220px); object-fit: contain;
  background: #fff; border: 1px solid #e7e7ea; border-radius: 14px;
}
.bx-cband-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--bx-red); font-size: 24px; line-height: 1;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); border: 1px solid #e7e7ea;
  display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.bx-cband-arrow:hover { background: var(--bx-red); color: #fff; }
.bx-cband-prev { left: 8px; }
.bx-cband-next { right: 8px; }
.bx-cband-dots { margin-top: 18px; display: flex; justify-content: center; gap: 9px; }
.bx-cband-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(0, 0, 0, .22); transition: background .2s ease, transform .2s ease; }
.bx-cband-dot:hover { background: rgba(0, 0, 0, .4); }
.bx-cband-dot.is-on { background: var(--bx-red); transform: scale(1.3); }
@media (max-width: 640px) {
  .bx-cband { padding: 32px 0; }
  .bx-cband-viewport { margin: 0 40px; }
  .bx-cband-arrow { width: 38px; height: 38px; font-size: 22px; }
}
/* Single slide per view (matches the carousel JS: perView = 1 under 560px).
   On phones the old clamp floored the image at 150px (17vw ~= 66px), so the photo
   looked tiny and letterboxed. Here the slide fills the width and grows much taller
   so the image is large; the arrows float over the edges (standard mobile carousel). */
@media (max-width: 560px) {
  .bx-cband { padding: 24px 0; }
  .bx-cband-viewport { margin: 0 12px; }
  .bx-cband-img { height: clamp(300px, 82vw, 460px); }
  .bx-cband-prev { left: 6px; }
  .bx-cband-next { right: 6px; }
}

/* ==========================================================================
   FAQ (savol-javob) — public landing. Centered red title + a bordered card that
   wraps the shared core/_faq_accordion.html partial (native <details>, click to
   open). Questions are red to match the admission-page FAQ reference.
   ========================================================================== */
.bx-faq { padding: 66px 0 82px; background: #fff; }
.bx-faq-head { text-align: center; margin-bottom: 30px; }
.bx-faq-title { margin: 0; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800;
  color: var(--bx-red); letter-spacing: -.02em; }
.bx-faq-panel { max-width: 860px; margin: 0 auto; background: #fff;
  border: 1px solid #F3D6D6; border-radius: 18px; padding: 4px 22px;
  box-shadow: 0 22px 55px -34px rgba(220, 38, 38, .38);
  /* ~10 savol bitta ekranda ko'rinadi; qolgani panel ICHIDA scroll bo'ladi
     (reference rasmdagi kabi). Balandlik ekran balandligiga ham bog'lanib,
     bitta ekrandan oshib ketmaydi. */
  max-height: min(76vh, 660px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #E7A9A9 transparent; }
.bx-faq-panel::-webkit-scrollbar { width: 8px; }
.bx-faq-panel::-webkit-scrollbar-track { background: transparent; }
.bx-faq-panel::-webkit-scrollbar-thumb { background: #E7A9A9; border-radius: 8px; }
.bx-faq-panel::-webkit-scrollbar-thumb:hover { background: var(--bx-red); }
.bx-faq-panel .faq-item { border-top-color: #FBE3E3; }
.bx-faq-panel .faq-q { color: var(--bx-red); padding-top: 17px; padding-bottom: 17px; }
.bx-faq-panel .faq-q::before { background: #FCE7E7; }
@media (max-width: 560px) {
  .bx-faq { padding: 44px 0 56px; }
  .bx-faq-panel { padding: 2px 14px; border-radius: 14px; max-height: 72vh; }
}

/* full-screen hero background VIDEO (admin can choose video instead of images) */
.bx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* video-testimonial card: when there's no poster, the uploaded video's first frame
   is shown as the cover (an inline muted <video> filling the media area). */
.bx-voice-media { position: relative; }
.bx-voice-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; background: #000; }

.bx-contact { font-style: normal; display: flex; flex-direction: column; gap: 10px; }
.bx-contact-row { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.78); font-size: 14px; }
.bx-contact-row:hover { color: #fff; }
.bx-contact-row .bx-ic { color: rgba(255,255,255,.5); margin-top: 1px; }
.bx-contact-row small { display: block; font-size: 11px; color: var(--bx-faint); }

/* Social: its own centered row below the columns. White circle chips with red
   icons (clean red+white) — hover fills red with a white icon, never fades out. */
.bx-footer-social { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 0 22px; }
.bx-social { display: flex; gap: 14px; justify-content: center; }
.bx-social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--bx-red);
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.bx-social a:hover { background: var(--bx-red); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px -10px rgba(220,38,38,.75); }
.bx-social svg { width: 22px; height: 22px; fill: currentColor; }

.bx-app-badges { margin-top: 24px; }
.bx-app-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bx-app { border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 8px 14px; color: #fff; font-size: 13px; font-weight: 600; }
.bx-app:hover { border-color: #fff; }

/* Only the bottom copyright is centered; the columns stay left-aligned. */
.bx-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; text-align: center; }
.bx-footer-bottom small { color: var(--bx-faint); font-size: 12.5px; }
.bx-footer-privacy { display: inline-block; margin-inline-start: 12px; color: var(--bx-faint); font-size: 12.5px; text-decoration: underline; }
.bx-footer-privacy:hover { color: #fff; }

/* ==========================================================================
   Scroll-reveal (disabled by prefers-reduced-motion via the JS guard)
   ========================================================================== */
.bx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.bx-reveal.bx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bx-body * { animation: none !important; transition: none !important; }
  .bx-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RTL (Arabic) — flip the asymmetric decorative bits
   ========================================================================== */
.bx-body.rtl .bx-link-arrow { unicode-bidi: plaintext; }
.bx-body.rtl .bx-chip-1 { left: auto; right: 1%; }
.bx-body.rtl .bx-chip-2 { right: auto; left: -1%; }
.bx-body.rtl .bx-chip-3 { left: auto; right: 7%; }
.bx-body.rtl .bx-step::before { background: repeating-linear-gradient(270deg, var(--bx-line) 0 8px, transparent 8px 14px); }
.bx-body.rtl .bx-nav-links > a::after { transform-origin: right; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .bx-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .bx-hero-visual { order: -1; min-height: 400px; }
  .bx-intl { grid-template-columns: 1fr; gap: 36px; }
  .bx-steps { grid-template-columns: 1fr 1fr; }
  .bx-step::before { display: none; }
  .bx-footer-grid { gap: 28px 32px; }
}

@media (max-width: 760px) {
  .bx-nav-links {
    position: fixed; inset: 70px 0 auto; margin: 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--bx-line);
    box-shadow: 0 24px 40px -24px rgba(28,26,23,.5);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .bx-nav-links.open { transform: none; opacity: 1; pointer-events: auto; max-height: calc(100vh - 90px); overflow-y: auto; }
  .bx-nav-item { width: 100%; }
  .bx-nav-link {
    width: 100%; justify-content: space-between; padding: 12px 4px;
    border-radius: 0; border-bottom: 1px solid var(--bx-line);
  }
  /* In the burger menu the dropdowns become static, indented, always-open lists. */
  .bx-nav-drop, .bx-nav-flyout {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 2px 0 6px 16px; border: none; box-shadow: none; background: none;
  }
  .bx-nav-cat-link, .bx-nav-leaf { padding: 9px 4px; white-space: normal; }
  .bx-nav-caret, .bx-nav-arrow { display: none; }
  .bx-nav-mobile-cta { display: flex; gap: 10px; padding-top: 14px; }
  .bx-nav-mobile-cta .bx-btn { flex: 1; }
  .bx-nav-actions .bx-btn { display: none; }
  .bx-burger { display: block; }
  .bx-nav-links { margin-inline-start: 0; }

  .bx-section { padding: 60px 0; }
  .bx-hero { padding: 48px 0 60px; }
  .bx-hero-visual { min-height: 340px; }
  .bx-hero-stage { width: min(300px, 84%); }
  .bx-fac-grid { grid-template-columns: 1fr; }
  /* Steps become tidy cards: number badge on the left, title+desc stacked beside it. */
  .bx-steps { grid-template-columns: 1fr; gap: 12px; }
  .bx-step {
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px;
    align-items: center; padding: 16px 18px;
    background: var(--bx-white, #fff); border: 1px solid var(--bx-line); border-radius: 16px;
  }
  .bx-step-n { grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; }
  .bx-step-t { grid-column: 2; margin-top: 0; }
  .bx-step-d { grid-column: 2; }
  .bx-footer-brand, .bx-footer-col { flex-basis: 100%; max-width: none; }
  .bx-footer-map { max-width: 420px; }
  .bx-chip { display: none; }
}

/* ==========================================================================
   Content pages (admin-authored CKEditor pages — core/page.html)
   ========================================================================== */
.bx-page {
  padding: 56px 0 80px; min-height: 62vh;
  background: linear-gradient(180deg, var(--bx-sand) 0%, var(--bx-white) 240px);
}
.bx-page-card {
  width: 85%; max-width: 1400px; margin: 0 auto; background: #fff;
  border: 1px solid var(--bx-line); border-radius: 22px; padding: 42px 46px;
  box-shadow: var(--bx-shadow-sm);
}
@media (max-width: 980px) { .bx-page-card { width: 92%; } }
.bx-page-title {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em;
  color: var(--bx-ink); margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--bx-line);
}
.bx-page-content { font-size: 16.5px; line-height: 1.75; color: var(--bx-ink); }
.bx-page-content h2 { font-size: 24px; font-weight: 800; margin: 28px 0 12px; color: var(--bx-ink); }
.bx-page-content h3 { font-size: 20px; font-weight: 700; margin: 22px 0 10px; color: var(--bx-ink); }
.bx-page-content p { margin: 0 0 14px; }
.bx-page-content ul, .bx-page-content ol { margin: 0 0 14px; padding-inline-start: 26px; }
.bx-page-content li { margin: 5px 0; }
.bx-page-content a { color: var(--bx-red); text-decoration: underline; }
.bx-page-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.bx-page-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.bx-page-content td, .bx-page-content th { border: 1px solid var(--bx-line); padding: 9px 12px; text-align: start; }
.bx-page-content th { background: var(--bx-sand); font-weight: 700; }
.bx-page-content blockquote {
  margin: 16px 0; padding: 10px 20px; border-inline-start: 3px solid var(--bx-red);
  color: var(--bx-stone); background: var(--bx-sand); border-radius: 8px;
}
@media (max-width: 760px) { .bx-page-card { padding: 26px 20px; } }

@media (max-width: 400px) {
  .bx-brand-text small { display: none; }
}

/* ==========================================================================
   Homepage carousel — admin-managed slides (image + optional caption).
   Near full-width (98%), MULTIPLE slides per view: 3 on desktop, 2 on tablet,
   1 on phone. The track steps by one slide-width (JS measures it in px so the
   gap is accounted for). Two caption modes: overlay (default) and `.is-below`.
   ========================================================================== */
.bx-carousel-sec { padding: 48px 0 8px; }
.bx-carousel {
  --bx-car-gap: 18px;
  position: relative; width: 90%; max-width: 90%; margin: 0 auto;
}
.bx-carousel-viewport { position: relative; overflow: hidden; }
.bx-carousel-track {
  display: flex; gap: var(--bx-car-gap);
  transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.bx-slide {
  position: relative; flex: 0 0 calc((100% - 2 * var(--bx-car-gap)) / 3);
  height: 380px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: var(--bx-ink);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.bx-slide[data-link] { cursor: pointer; }
.bx-slide-media { background-size: cover; background-position: center; }

/* Overlay mode (default): image fills the slide, caption sits at the bottom
   over a dark gradient for legible white text. */
.bx-slide:not(.is-below) { justify-content: flex-end; }
.bx-slide:not(.is-below) .bx-slide-media { position: absolute; inset: 0; z-index: 0; }
.bx-slide:not(.is-below) .bx-slide-cap {
  position: relative; z-index: 1; color: #fff; padding: 22px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.80), rgba(0,0,0,.35) 55%, rgba(0,0,0,0));
}
.bx-slide:not(.is-below) .bx-slide-sub { color: rgba(255,255,255,.92); }

/* Below mode: image on top, caption in a white panel underneath. */
.bx-slide.is-below .bx-slide-media { flex: 1 1 auto; }
.bx-slide.is-below .bx-slide-cap {
  background: var(--bx-white); color: var(--bx-ink); padding: 18px 22px;
}
.bx-slide.is-below .bx-slide-sub { color: var(--bx-stone); }

.bx-slide-title { font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; }
.bx-slide-sub { margin-top: 7px; font-size: 14.5px; line-height: 1.5; }

/* Arrows — over the image, vertically centered. */
.bx-arr {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--bx-ink);
  font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--bx-shadow-sm); transition: background .2s ease, transform .2s ease;
}
.bx-arr:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.bx-arr-prev { left: 10px; }
.bx-arr-next { right: 10px; }

/* Dots — below the viewport, on the page background. */
.bx-dots { display: flex; gap: 9px; justify-content: center; margin-top: 16px; }
.bx-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: var(--bx-line); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.bx-dot.is-on { background: var(--bx-red); transform: scale(1.35); }

/* When every slide already fits (nothing to scroll), hide the controls. */
.bx-carousel.is-static .bx-arr,
.bx-carousel.is-static .bx-dots { display: none; }

@media (max-width: 1024px) {
  .bx-slide { flex-basis: calc((100% - var(--bx-car-gap)) / 2); height: 340px; }
}
@media (max-width: 640px) {
  .bx-carousel-sec { padding: 32px 0 4px; }
  .bx-slide { flex-basis: 100%; height: 280px; }
  .bx-slide-cap { padding: 16px 18px !important; }
  .bx-arr { width: 38px; height: 38px; font-size: 23px; }
}

/* ==========================================================================
   STUDENT VOICES — admin-managed video testimonials ("Talabalar fikri").
   A grid of poster cards; clicking one opens a 16:9 lightbox that plays the
   YouTube/Vimeo embed or the uploaded MP4. Posters auto-use the YouTube
   thumbnail when none is uploaded (see StudentTestimonial.public_list).
   ========================================================================== */
.bx-voices { padding: 80px 0; background: var(--bx-sand); }
.bx-voices-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.bx-voices-title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; color: var(--bx-ink); }
.bx-voices-lead { margin-top: 14px; font-size: 16.5px; color: var(--bx-stone); }
.bx-voices-more { text-align: center; margin-top: 36px; }
.bx-voices-empty { text-align: center; color: var(--bx-stone); font-size: 16px; padding: 30px 0; }

.bx-voices-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px;
}
.bx-voice {
  display: flex; flex-direction: column; text-align: start; padding: 0;
  background: var(--bx-white); border: 1px solid var(--bx-line); border-radius: 20px;
  overflow: hidden; cursor: pointer; font-family: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bx-voice:hover { transform: translateY(-4px); box-shadow: var(--bx-shadow); border-color: transparent; }

/* Poster: a default red gradient that an inline background-image (poster / YouTube
   thumbnail) overrides. A dark veil keeps the play button legible on any image. */
.bx-voice-media {
  position: relative; aspect-ratio: 16 / 9;
  background-color: #2a0e0e; background-size: cover; background-position: center;
  background-image: linear-gradient(150deg, var(--bx-red) 0%, var(--bx-red-ink) 100%);
  display: grid; place-items: center;
}
.bx-voice-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0) 55%);
  transition: background .2s ease;
}
.bx-voice:hover .bx-voice-media::after { background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,.08) 60%); }
.bx-voice-play {
  position: relative; z-index: 1;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--bx-red);
  display: grid; place-items: center; padding-inline-start: 3px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.55);
  transition: transform .2s ease, background .2s ease;
}
.bx-voice:hover .bx-voice-play { transform: scale(1.1); background: #fff; }

.bx-voice-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bx-voice-quote {
  position: relative; font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--bx-ink);
  padding-inline-start: 18px;
}
.bx-voice-quote::before {
  content: "\201C"; position: absolute; inset-inline-start: -2px; top: -6px;
  font-size: 30px; line-height: 1; font-weight: 900; color: var(--bx-red);
}
.bx-voice-who { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.bx-voice-name { font-size: 15px; font-weight: 800; color: var(--bx-ink); }
.bx-voice-role { font-size: 13px; font-weight: 600; color: var(--bx-red); }

/* --- video lightbox ------------------------------------------------------- */
.bx-vmodal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; }
.bx-vmodal[hidden] { display: none; }
.bx-vmodal-backdrop { position: absolute; inset: 0; background: rgba(10,8,8,.82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bx-vmodal-box { position: relative; z-index: 1; width: min(960px, 100%); }
.bx-vmodal-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.85);
}
.bx-vmodal-frame iframe, .bx-vmodal-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.bx-vmodal-x {
  position: absolute; top: -48px; inset-inline-end: 0;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .2s ease;
}
.bx-vmodal-x:hover { background: rgba(255,255,255,.32); }
@media (max-width: 640px) {
  .bx-voices { padding: 56px 0; }
  .bx-vmodal { padding: 16px; }
  .bx-vmodal-x { top: -44px; }
}

/* ==========================================================================
   ADMISSION ROADMAP — "O'qishga qabul uchun 5 qadam".
   A rounded hero panel: title + lead, a wavy red route with 5 numbered cards
   anchored along it, over a faint Silk-Road scene (Uzbekistan skyline + dune +
   plane). Desktop = wave layout (cards absolutely placed by --x/--y in a fixed
   360px track, the wave SVG uses preserveAspectRatio=none so x stretches with
   width while y stays 1:1 px — cards & wave stay aligned at every width).
   Below 980px it collapses to a clean vertical list of numbered cards.
   ========================================================================== */
.bx-roadmap { padding: 64px 0 16px; }
/* The panel spans 85% of the viewport (like the CKEditor content pages), so the
   shell's 1200px cap is lifted just for this section. */
.bx-roadmap > .bx-shell { max-width: none; padding: 0; }
.bx-roadmap-panel {
  position: relative;
  width: 85%; max-width: 1100px; margin: 0 auto;
  border-radius: 28px; padding: 48px 44px 40px;
  background: #fff;
  border: 1px solid var(--bx-line); box-shadow: 0 24px 60px -36px rgba(28,26,23,.3);
}

.bx-roadmap-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.bx-roadmap-badge {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 999px;
  background: var(--bx-teal-soft); color: var(--bx-red-d);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.bx-roadmap-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--bx-ink);
}
.bx-roadmap-lead { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--bx-stone); }

/* ---- vertical timeline: a centred rail with cards alternating left / right ---- */
.bx-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.bx-tl::before {
  content: ""; position: absolute; top: 40px; bottom: 40px; left: 50%;
  width: 2px; transform: translateX(-50%); background: var(--bx-line);
}
.bx-tl-row {
  position: relative; display: grid; grid-template-columns: 1fr 64px 1fr;
  align-items: center; column-gap: 8px; padding: 24px 0;
}
.bx-tl-text { grid-column: 1; text-align: right; padding-inline-end: 14px; }
.bx-tl-visual { grid-column: 3; display: flex; padding-inline-start: 14px; }
.bx-tl-row--alt .bx-tl-text { grid-column: 3; text-align: left; padding-inline: 14px 0; }
.bx-tl-row--alt .bx-tl-visual { grid-column: 1; justify-content: flex-end; padding-inline: 0 14px; }

.bx-tl-t { font-size: 18px; font-weight: 800; color: var(--bx-ink); transition: color .25s ease; }
.bx-tl-row--first .bx-tl-t { color: var(--bx-red-d); }
.bx-tl-row:hover .bx-tl-t { color: var(--bx-red-d); }
.bx-tl-d { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--bx-stone); }

/* numbered node on the rail (step 1 = active red, others grey → red on hover) */
.bx-tl-node {
  grid-column: 2; justify-self: center; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; font-weight: 900; background: #fff; color: var(--bx-stone);
  border: 1px solid var(--bx-line); box-shadow: 0 0 0 6px #fff;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bx-tl-node--active {
  background: var(--bx-red); color: #fff; border-color: var(--bx-red);
  box-shadow: 0 0 0 6px #fff, 0 8px 18px -6px rgba(220,38,38,.6);
}
.bx-tl-row:hover .bx-tl-node {
  transform: scale(1.1); background: var(--bx-teal-soft); color: var(--bx-red-d); border-color: #F3C9C9;
}
.bx-tl-row:hover .bx-tl-node--active { background: var(--bx-red-d); color: #fff; border-color: var(--bx-red-d); }

/* visual UI cards */
.bx-tl-card {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px; padding: 18px;
  border-radius: 18px; background: #fff; border: 1px solid var(--bx-line);
  box-shadow: 0 14px 34px -24px rgba(28,26,23,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bx-tl-row:hover .bx-tl-card { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(28,26,23,.45); }
.bx-tl-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.bx-tl-ic svg { width: 22px; height: 22px; }
.bx-tl-ic--red { background: var(--bx-teal-soft); color: var(--bx-red); }
.bx-tl-card-tx { min-width: 0; text-align: left; }
.bx-tl-card-t { font-size: 15px; font-weight: 800; color: var(--bx-ink); }
.bx-tl-card-s { margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--bx-stone); }

/* checklist card (step 2) */
.bx-tl-card--list { display: block; }
.bx-tl-card-h {
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bx-faint); margin-bottom: 12px; text-align: left;
}
.bx-tl-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bx-tl-checks li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: var(--bx-ink); text-align: left; }
.bx-tl-checks svg { flex: none; width: 18px; height: 18px; color: var(--bx-red); }

/* win card (step 5) */
.bx-tl-card--win {
  background: linear-gradient(150deg, var(--bx-red) 0%, var(--bx-red-ink) 100%);
  border-color: transparent; color: #fff;
}
.bx-tl-win-ic {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff;
}
.bx-tl-win-ic svg { width: 24px; height: 24px; }
.bx-tl-win-tx { min-width: 0; text-align: left; }
.bx-tl-win-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.bx-tl-win-t { margin-top: 4px; font-size: 16px; font-weight: 800; line-height: 1.2; }
.bx-tl-win-s { margin-top: 4px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.78); }

.bx-roadmap-note {
  position: relative; z-index: 2; margin: 28px auto 0; text-align: center;
  font-size: 12.5px; font-weight: 600; color: var(--bx-faint); max-width: 52ch;
}

/* mobile: collapse to a single left-rail vertical list */
@media (max-width: 860px) {
  .bx-roadmap-panel { width: 92%; padding: 32px 20px 28px; border-radius: 22px; }
  .bx-roadmap-head { margin-bottom: 30px; }
  .bx-tl::before { left: 26px; }
  .bx-tl-row, .bx-tl-row--alt {
    grid-template-columns: 52px 1fr; grid-template-rows: auto auto;
    align-items: start; row-gap: 14px; column-gap: 12px; padding: 16px 0;
  }
  .bx-tl-row .bx-tl-node, .bx-tl-row--alt .bx-tl-node {
    grid-column: 1; grid-row: 1; justify-self: center; width: 46px; height: 46px; font-size: 16px;
  }
  .bx-tl-row .bx-tl-text, .bx-tl-row--alt .bx-tl-text {
    grid-column: 2; grid-row: 1; text-align: left; padding: 0;
  }
  .bx-tl-row .bx-tl-visual, .bx-tl-row--alt .bx-tl-visual {
    grid-column: 2; grid-row: 2; justify-content: flex-start; padding: 0;
  }
  .bx-tl-card, .bx-tl-card--win { max-width: 100%; }
}
@media (max-width: 640px) {
  .bx-roadmap { padding: 44px 0 8px; }
}
