/* Bosh sahifadagi asosiy slayder.
   Konteyner o'lchamini layout.css dagi `.n-136-4871` beradi (desktop 1160x639);
   bu fayl faqat slaydlar almashinuvi, strelkalar va indikatorni qo'shadi.
   Moslashuvchan rejimda balandlik home-responsive.css qoidalari orqali
   kontentga moslashadi (`.has-img[class*="card-"]` -> min-height). */

.hero-slider.n-136-4871 {
  padding: 0;
  display: block;          /* ichki tartibni `.hero-slider-track` boshqaradi */
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  perspective: 1600px;
  box-shadow:
    0 24px 48px -20px rgba(9, 16, 31, .45),
    0 2px 0 rgba(255, 255, 255, .06) inset;
}

.hero-slider-track {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-slide > .fig-bg {
  z-index: 0;
  overflow: hidden;
}
.hero-slide .fig-img {
  object-fit: cover;
  /* Muqovaning o'z masshtabi (--cover-zoom) Ken-Burns effekti ustiga
     ko'paytiriladi — base.css dagi umumiy `transform: scale()` qoidasini
     shu yerda ataylab qayta yozamiz (bir xil selektor aniqligi bo'lgani
     uchun fayl tartibi hal qiladi). */
  transform: scale(calc(1.06 * var(--cover-zoom, 100) / 100));
  transform-origin: var(--cover-focus-x, 50%) var(--cover-focus-y, 50%);
  transition: transform 6s cubic-bezier(.25, .1, .25, 1);
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
/* Aktiv slaydda sekin "Ken Burns" zoom — ekranga chuqurlik/3D hissi beradi. */
.hero-slide.is-active .fig-img { transform: scale(calc(var(--cover-zoom, 100) / 100)); }

/* Ixtiyoriy muqova rasmida ham oq matn/indikator o'qilishi uchun yumshoq qoraytma
   + nozik yorug'lik urishi (shaffof qatlam) — "shisha" chuqurligi hissi uchun. */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(9, 16, 31, .22) 0%,
      rgba(9, 16, 31, 0) 30%,
      rgba(9, 16, 31, .62) 100%
    ),
    linear-gradient(
      120deg,
      rgba(255, 255, 255, .10) 0%,
      rgba(255, 255, 255, 0) 22%
    );
  pointer-events: none;
}

.hero-slide > .tags,
.hero-slide > .frame-294 { position: relative; z-index: 2; }

/* Sarlavha va kontent bloki — aktivlashganda yumshoq pastdan ko'tarilib chiqadi. */
.hero-slide > .frame-294 {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease .1s, transform .55s cubic-bezier(.2, .7, .3, 1) .1s;
}
.hero-slide.is-active > .frame-294 {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide .txt.article-title {
  text-shadow: 0 2px 16px rgba(9, 16, 31, .35);
}

/* Kategoriya nishoni — shaffof-shisha (glassmorphism) uslubi. */
.hero-slide .tags {
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(9, 16, 31, .32);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 6px 16px -8px rgba(9, 16, 31, .5);
  width: fit-content;
}
.hero-slide .tags .category-icon {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
/* Nishon yonidagi rang "jonli" signal kabi yonib-o'chib turadi. */
.hero-slide .tags .category-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: hero-tag-pulse 1.8s cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes hero-tag-pulse {
  0% { transform: scale(1); opacity: .65; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* Sudrab (mouse/touch) o'tkazish uchun kursor holatlari. */
.hero-slider.is-multi .hero-slider-track { cursor: grab; }
.hero-slider.is-multi .hero-slider-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* --- Boshqaruv: strelkalar + indikator --- */
.hero-slider-ui {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;            /* faqat tugmalar bosiladigan bo'lsin */
}
.hero-slider-ui > * { pointer-events: auto; }

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(9, 16, 31, .32);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 8px 20px -10px rgba(9, 16, 31, .6);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero-slider-nav:hover {
  background: rgba(9, 16, 31, .58);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 24px -8px rgba(9, 16, 31, .7);
  text-decoration: none;
}
.hero-slider-nav:active { transform: translateY(-50%) scale(.96); }
.hero-slider-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-slider-prev { left: 18px; }
.hero-slider-next { right: 18px; }

.hero-slider-dots {
  position: absolute;
  left: 50px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(9, 16, 31, .28);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: background .2s ease, width .25s cubic-bezier(.4, 0, .2, 1), box-shadow .2s ease;
}
.hero-slider-dot:hover { background: rgba(255, 255, 255, .7); }
.hero-slider-dot.is-active {
  background: #fff;
  width: 24px;
  border-radius: 20px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}
.hero-slider-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hero-slider-track { transition: none; }
  .hero-slide .fig-img { transition: none; transform: scale(calc(var(--cover-zoom, 100) / 100)); }
  .hero-slide > .frame-294 { transition: none; opacity: 1; transform: none; }
  .hero-slide .tags .category-icon::before { animation: none; display: none; }
}

/* Planshet/telefon: strelkalar kichrayadi, ichki bo'shliq kamayadi. */
@media (max-width: 767.98px) {
  .hero-slider.n-136-4871 { border-radius: 16px; }
  .hero-slide { padding: 20px !important; }
  .hero-slider-nav { width: 36px; height: 36px; font-size: 20px; }
  .hero-slider-prev { left: 10px; }
  .hero-slider-next { right: 10px; }
  .hero-slider-dots { left: 20px; bottom: 16px; }
  /* Sarlavha desktop kadr (1920px) uchun qat'iy 28px — tor ekranda
     torroq karta eniga moslashtiriladi. */
  .hero-slide .txt.article-title {
    font-size: clamp(18px, 5.5vw, 24px) !important;
    line-height: 1.3 !important;
  }
}
