/* ── হোমপেজ স্লাইডার: কম উচ্চতা, মোবাইলে ২:১, ট্যাবলেটে ৩:১, ডেস্কটপে ৩.৫:১ ── */
.hero-slider { padding: var(--space-3) var(--space-3) 0; }
.hero-slider .container { padding: 0; }
.hero-slider__frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--color-bg-alt); }
.hero-slider__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slider__track:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }

.hero-slide {
    position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
    aspect-ratio: 2 / 1; background: #111; overflow: hidden;
}
.hero-slide__media, .hero-slide__media picture { position: absolute; inset: 0; display: block; }
.hero-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide--overlay .hero-slide__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,0) 100%);
}

.hero-slide__text {
    position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 4px; max-width: 78%; padding: var(--space-3) var(--space-3) 28px; color: #fff;
}
.hero-slide__title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; text-shadow: 0 1px 6px rgba(0,0,0,.35); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide__sub { font-size: .8125rem; line-height: 1.35; opacity: .95; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,.35);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide__cta {
    display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; padding: 0 16px;
    border-radius: 999px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: .8125rem;
}
.hero-slide__cta:hover { background: var(--color-primary-dark); color: #fff; }
.hero-slide__cta--stretch::after { content: ""; position: absolute; inset: 0; }   /* পুরো স্লাইড ক্লিকযোগ্য */
.hero-slide__cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hero-slide__play {
    position: absolute; z-index: 2; right: 14px; bottom: 30px; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--color-primary);
    background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.hero-slide__play:hover { transform: scale(1.06); }
.hero-slide__play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-slide.is-playing .hero-slide__text, .hero-slide.is-playing .hero-slide__play { display: none; }
.hero-slide.is-playing .hero-slide__media::after { display: none; }
.hero-slide__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.hero-slider__nav {
    display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); color: var(--color-text); box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hero-slider__nav--prev { left: 10px; }
.hero-slider__nav--next { right: 10px; }
.hero-slider__nav:hover { background: #fff; color: var(--color-primary); }

.hero-slider__bar { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: none; }
.hero-slider__bar > * { pointer-events: auto; }
.hero-slider__dots { display: flex; gap: 2px; }
.hero-slider__dot { width: 24px; height: 24px; position: relative; background: none; }   /* ২৪px = আঙুলে চাপার জায়গা */
.hero-slider__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.18); transition: width .2s ease, margin .2s ease, background .2s ease; }
.hero-slider__dot.is-active::before { width: 20px; margin-left: -10px; background: #fff; }
.hero-slider__pause { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,.45); }
.hero-slider__pause .i-play { display: none; }
.hero-slider__pause[aria-pressed="true"] .i-play { display: block; }
.hero-slider__pause[aria-pressed="true"] .i-pause { display: none; }

@media (min-width: 768px) {
    .hero-slider { padding-top: var(--space-4); }
    .hero-slide { aspect-ratio: 3 / 1; }
    .hero-slide__text { max-width: 60%; padding: var(--space-4) 56px 32px; gap: 6px; }
    .hero-slide__title { font-size: 1.6rem; }
    .hero-slide__sub { font-size: 1rem; }
    .hero-slide__cta { min-height: 42px; padding: 0 22px; font-size: .9375rem; }
    .hero-slider__nav { display: flex; }
    .hero-slide__play { right: 24px; bottom: 36px; width: 60px; height: 60px; }
}
@media (min-width: 1024px) {
    .hero-slide { aspect-ratio: 3.5 / 1; }
    .hero-slide__text { max-width: 52%; }
    .hero-slide__title { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-slider__dot::before { transition: none; } }

/* ═══ ওভারলে হিরো: স্লাইডার হিরোর ব্যাকগ্রাউন্ড, H1 + এলাকা-বাটন স্থির স্তরে ওপরে ═══ */
.hero--over { position: relative; display: grid; padding: var(--space-2) var(--space-2) 0; background: none; color: #fff; }
.hero--over > * { grid-area: 1 / 1; }
.hero--over .hero-slider { padding: 0; }
.hero--over .hero-slider .container { max-width: 1120px; }
.hero--over .hero-slider__frame { border-radius: 14px; }
.hero--over .hero-slide .hero-slide__media::after {   /* স্থির লেখার জন্য ছায়া (স্লাইডের লেখা ও বাটনের নিচে) */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.38) 50%, rgba(0,0,0,.58) 100%);
}
.hero--over .hero-slide { aspect-ratio: 5 / 3; }

.hero--over > .container {
    z-index: 4; align-self: center; justify-self: center; width: 100%; max-width: 1120px;
    padding: 0 var(--space-3) 28px; pointer-events: none; text-align: center;
}
.hero--over > .container .hero__location { pointer-events: auto; }
.hero--over .hero__title, .hero--over .hero__subtitle { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.hero--over .hero__title { font-size: 1.3rem; }
.hero--over .hero__subtitle { font-size: .8125rem; margin-bottom: 10px; }
.hero--over .hero__trust { display: none; }

/* স্লাইডের নিজস্ব লেখা: নিচে বাঁয়ে ছোট অফার-লাইন; ডটস ডানে */
.hero--over .hero-slide__text {
    inset: auto auto 0 0; justify-content: flex-end; flex-direction: row; align-items: center;
    flex-wrap: nowrap; gap: 8px; max-width: 62%; padding: 0 0 8px 12px;
}
.hero--over .hero-slide__title { font-size: .8125rem; -webkit-line-clamp: 1; }
.hero--over .hero-slide__sub { display: none; }
.hero--over .hero-slide__cta { min-height: 28px; margin: 0; padding: 0 12px; font-size: .75rem; flex-shrink: 0; }
.hero--over .hero-slider__bar { justify-content: flex-end; padding-right: 10px; bottom: 6px; }
.hero--over .hero-slide__play { top: 10px; bottom: auto; right: 10px; width: 44px; height: 44px; }

/* ভিডিও চললে স্থির লেখা সরে যায় */
.hero--playing > .container { display: none; }

@media (min-width: 768px) {
    .hero--over { padding: var(--space-3) var(--space-3) 0; }
    .hero--over .hero-slide { aspect-ratio: 2.8 / 1; }
    .hero--over > .container { padding-bottom: 36px; }
    .hero--over .hero__title { font-size: 2rem; }
    .hero--over .hero__subtitle { font-size: 1rem; margin-bottom: 14px; }
    .hero--over .hero__trust { display: flex; margin-top: 12px; }
    .hero--over .hero-slide__text { padding: 0 0 12px 24px; }
    .hero--over .hero-slide__title { font-size: .9375rem; }
    .hero--over .hero-slide__cta { min-height: 32px; font-size: .8125rem; }
    .hero--over .hero-slider__bar { bottom: 10px; padding-right: 20px; }
    .hero--over .hero-slide__play { top: 16px; right: 16px; }
}
@media (min-width: 1024px) { .hero--over .hero-slide { aspect-ratio: 3.4 / 1; } }
