/* hero.css - the full-width hero slider (the "Sliders (school)" element in a hero layout): pictures with a heading, text and button over them, modern transitions.
   Transitions: fade, slide, zoom (Ken Burns), rise (wipe up); the texts always rise in one after another when a slide becomes active. */
.hs { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; height: min(var(--hs-h, 520px), 78vh); overflow: hidden; background: #0b1b2b; isolation: isolate; }
.hs * { box-sizing: border-box; }
.hs-track { position: absolute; inset: 0; }
.hs-slide { position: absolute; inset: 0; z-index: 1; }
.hs-slide.is-active { z-index: 2; }
.hs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hs-ov { position: absolute; inset: 0; }
.hs-in { position: relative; z-index: 3; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 70px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }

/* the texts */
.hs-h { margin: 0; font: 800 clamp(1.7rem, 4.2vw, 3.4rem)/1.12 "Noto Serif Bengali", Georgia, serif; text-shadow: 0 2px 14px rgba(0,0,0,.35); max-width: 900px; }
.hs-b { margin: 0; font: 400 clamp(1rem, 1.7vw, 1.3rem)/1.6 "Noto Sans Bengali", system-ui, sans-serif; max-width: 720px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hs-btn { position: relative; display: inline-block; margin-top: 6px; padding: 7px 20px; border-radius: 999px; color: #fff; text-decoration: none; font: 600 1rem "Noto Sans Bengali", system-ui, sans-serif; overflow: hidden;
  /* glass: a frosted, see-through pane tinted by the slide's button colour (--bc) */
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.08)); background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.08)), color-mix(in srgb, var(--bc, #1b82c0) 38%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,.5); box-shadow: 0 8px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 0 rgba(255,255,255,.12); text-shadow: 0 1px 6px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.hs-btn::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.hs-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.75); }
.hs-btn:hover::before { left: 130%; }
.hs-h, .hs-b, .hs-btn { opacity: 0; }
.hs-slide.is-active .hs-h { animation: var(--k, hsRise) .85s .25s cubic-bezier(.2,.7,.2,1) both; }
.hs-slide.is-active .hs-b { animation: var(--k, hsRise) .85s .5s cubic-bezier(.2,.7,.2,1) both; }
.hs-slide.is-active .hs-btn { animation: hsPop .7s .8s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes hsRise { from { opacity: 0; transform: translateY(34px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hsPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* every slide: stacked; only the active one is clickable, the one leaving stays visible until its transition ends */
.hs-slide { visibility: hidden; pointer-events: none; }
.hs-slide.is-active { visibility: visible; pointer-events: auto; }
/* transition: fade */
.hs-a-fade .hs-slide, .hs-a-zoom .hs-slide { opacity: 0; transition: opacity var(--sp,1s) ease, visibility 0s var(--sp,1s); }
.hs-a-fade .hs-slide.is-active, .hs-a-zoom .hs-slide.is-active { opacity: 1; transition: opacity var(--sp,1s) ease, visibility 0s; }
/* transition: slide (hero.js marks the slides before / after the active one) */
.hs-slide { opacity: 1; }
.hs-slide { transition: transform var(--sp,1s) cubic-bezier(.65,0,.25,1), visibility 0s var(--sp,1s); }
.hs-slide.is-active { transition: transform var(--sp,1s) cubic-bezier(.65,0,.25,1), visibility 0s; }
.hs-slide.is-before { transform: translateX(-100%); }
.hs-slide.is-after { transform: translateX(100%); }
.hs-a-fade .hs-slide, .hs-a-zoom .hs-slide { transform: none; }
.hs-a-fade .hs-slide { transition: opacity var(--sp,1s) ease, visibility 0s var(--sp,1s); }
.hs-a-fade .hs-slide.is-active { transition: opacity var(--sp,1s) ease, visibility 0s; }
.hs-a-zoom .hs-slide { transition: opacity var(--sp,1s) ease, visibility 0s var(--sp,1s); }
.hs-a-zoom .hs-slide.is-active { transition: opacity var(--sp,1s) ease, visibility 0s; }
/* transition: zoom (the picture breathes in while it is shown) */
.hs-a-zoom .hs-slide.is-active .hs-bg { animation: hsKen 9s ease-out both; }
@keyframes hsKen { from { transform: scale(1.16); } to { transform: scale(1); } }
/* transition: rise (a wipe from the bottom) */
.hs-a-rise .hs-slide { transform: none; clip-path: inset(100% 0 0 0); transition: clip-path var(--sp,1s) cubic-bezier(.65,0,.25,1), visibility 0s var(--sp,1s); }
.hs-a-rise .hs-slide.is-active { clip-path: inset(0 0 0 0); transition: clip-path var(--sp,1s) cubic-bezier(.65,0,.25,1), visibility 0s; }

/* arrows + dots */
.hs-nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background .2s, transform .2s; }
.hs-nav:hover { background: rgba(255,255,255,.34); transform: scale(1.08); }
.hs-prev { left: 16px; } .hs-next { right: 16px; }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.hs-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.hs-dot.is-active { width: 28px; background: #fff; }
@media (max-width: 767px) { .hs-in { padding: 0 24px; } .hs-nav { width: 38px; height: 38px; margin-top: -19px; } .hs-prev { left: 8px; } .hs-next { right: 8px; } }
@media (prefers-reduced-motion: reduce) { .hs-slide, .hs-slide * { animation-duration: .01s !important; transition-duration: .01s !important; } }

/* half-width hero inside the two-slider layout: same height as the picture slider next to it, same rounded corner */
.hs.hs-half { height: auto; aspect-ratio: 16 / 8.95; max-height: none; width: 100%; }
.hs-half .hs-in { padding: 0 52px; gap: 10px; }
.hs-half .hs-h { font-size: clamp(1.2rem, 2.5vw, 2.3rem); }
.hs-half .hs-b { font-size: clamp(.85rem, 1.15vw, 1.05rem); }
.hs-half .hs-btn { padding: 6px 16px; font-size: .92rem; }
@media (max-width: 991px) { .hs-half .hs-in { padding: 0 44px; } }
/* phones: the sliders stack, so give them real height, keep the text close to the edges so it can be larger */
@media (max-width: 767px) {
  .hs { height: min(var(--hs-h, 520px), 82vh); min-height: 280px; }
  .hs.hs-half { aspect-ratio: 4 / 2.95; min-height: 0; }
  .hs-in, .hs-half .hs-in { padding: 0 14px; gap: 10px; }
  .hs-h { font-size: calc(clamp(1.9rem, 8.2vw, 2.6rem) - 1px); max-width: none; }
  .hs-b { font-size: calc(clamp(1.25rem, 5.4vw, 1.55rem) - 1px); line-height: 1.5; max-width: none; }
  .hs-half .hs-h { font-size: calc(clamp(1.8rem, 7.8vw, 2.4rem) - 1px); }
  .hs-half .hs-b { font-size: calc(clamp(1.2rem, 5.2vw, 1.5rem) - 1px); }
  .hs-half .hs-btn, .hs-btn { padding: 8px 20px; font-size: 1rem; }
  .hs-nav { width: 34px; height: 34px; margin-top: -17px; }
}

/* the arrows show only while the hero is paused by a click */
.hs-nav { opacity: 0; pointer-events: none; transition: opacity .25s ease, background .2s, transform .2s; }
.hs.is-paused .hs-nav { opacity: 1; pointer-events: auto; }

/* text animations: a slide's "Text animation" (class ta-<key> on .hs-in) picks how the heading and text come in; the button always pops in last */
.ta-fade { --k: hsFade; } .ta-left { --k: hsLeft; } .ta-right { --k: hsRight; } .ta-zoom { --k: hsZoom; } .ta-blur { --k: hsBlur; } .ta-flip { --k: hsFlip; } .ta-bounce { --k: hsBounce; } .ta-wipe { --k: hsWipe; }
.ta-flip .hs-h, .ta-flip .hs-b { transform-origin: 50% 100%; perspective: 600px; }
@keyframes hsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hsLeft { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes hsRight { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
@keyframes hsZoom { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes hsBlur { from { opacity: 0; filter: blur(16px); transform: scale(1.1); } to { opacity: 1; filter: none; transform: none; } }
@keyframes hsFlip { from { opacity: 0; transform: perspective(600px) rotateX(-80deg); } to { opacity: 1; transform: perspective(600px) rotateX(0); } }
@keyframes hsBounce { 0% { opacity: 0; transform: translateY(-60px); } 55% { opacity: 1; transform: translateY(14px); } 75% { transform: translateY(-7px); } 100% { opacity: 1; transform: none; } }
@keyframes hsWipe { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* a font size set on the slide (px); automatic when not set. Smaller on phones. */
.hs .hs-h[style*="--fs"], .hs .hs-b[style*="--fs"] { font-size: var(--fs); }
@media (max-width: 767px) { .hs .hs-h[style*="--fs"] { font-size: calc(var(--fs) * .68 - 1px); } .hs .hs-b[style*="--fs"] { font-size: max(15px, calc(var(--fs) * 1.05 - 1px)); } }

/* a line break typed in a slide's heading or text is shown */
.hs-h, .hs-b { white-space: pre-line; }
