/*==========================================================
  #FULL-WIDTH BANNER SLIDER  (.fw-*)
  Design: Full-bleed image · rounded frame · Ken-Burns
  Vertical thumbnail strip · Animated progress line
  Prev/Next arrows · Counter · Pause/Play · Swipe
  Height: 78vh desktop  →  scales down on mobile
==========================================================*/

/* -------------------------------------------------------
   WRAPPER
------------------------------------------------------- */
.fw-slider {
  position: relative;
  width: 100%;             /* fill container width, no overflow */
  height: 68vh;
  min-height: 480px;
  max-height: 900px;
  overflow: hidden;
  background: hsl(152, 50%, 6%);

  /* subtle rounded bottom corners */
  border-radius: 0 0 32px 32px;

  /* drop shadow */
  box-shadow: 0 24px 70px hsla(0, 0%, 0%, 0.26);
}

/* -------------------------------------------------------
   SLIDE TRACK
------------------------------------------------------- */
.fw-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------
   INDIVIDUAL SLIDE
------------------------------------------------------- */
.fw-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fw-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* -------------------------------------------------------
   IMAGE  (Ken-Burns per slide)
------------------------------------------------------- */
.fw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  will-change: transform;
}

/* Slide 0 — zoom from top-left */
.fw-slide[data-index="0"].active .fw-img {
  animation: fwKB0 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fwKB0 {
  0%   { transform: scale(1.12) translate(-1.5%, 1%); }
  100% { transform: scale(1.0)  translate(0%,    0%); }
}

/* Slide 1 — zoom from center-right */
.fw-slide[data-index="1"].active .fw-img {
  animation: fwKB1 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fwKB1 {
  0%   { transform: scale(1.12) translate(2%, -0.5%); }
  100% { transform: scale(1.0)  translate(0%, 0%);    }
}

/* Slide 2 — zoom from bottom-right */
.fw-slide[data-index="2"].active .fw-img {
  animation: fwKB2 7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes fwKB2 {
  0%   { transform: scale(1.12) translate(-1%, -1.5%); }
  100% { transform: scale(1.0)  translate(0%,  0%);    }
}

/* -------------------------------------------------------
   SLIDE TRANSITIONS
   Enter slides in from the right (or left for prev)
------------------------------------------------------- */
.fw-slide.fw-enter-right {
  z-index: 2;
  animation: fwEnterR 0.75s cubic-bezier(0.33, 0.85, 0.4, 0.96) forwards;
}
@keyframes fwEnterR {
  0%   { opacity: 0; clip-path: inset(0 0 0 6%); }
  100% { opacity: 1; clip-path: inset(0 0 0 0%); }
}

.fw-slide.fw-enter-left {
  z-index: 2;
  animation: fwEnterL 0.75s cubic-bezier(0.33, 0.85, 0.4, 0.96) forwards;
}
@keyframes fwEnterL {
  0%   { opacity: 0; clip-path: inset(0 6% 0 0); }
  100% { opacity: 1; clip-path: inset(0 0%  0 0); }
}

.fw-slide.fw-leave {
  z-index: 3;
  animation: fwLeave 0.75s ease forwards;
}
@keyframes fwLeave {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* -------------------------------------------------------
   BOTTOM GRADIENT — readability for controls
------------------------------------------------------- */
.fw-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsla(0, 0%, 0%, 0.45) 0%,
    hsla(0, 0%, 0%, 0.10) 35%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 4;
  border-radius: 0 0 28px 28px;
}

/* -------------------------------------------------------
   THUMBNAIL STRIP  (right side, desktop only)
------------------------------------------------------- */
.fw-thumbs {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.fw-thumb {
  width: 62px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid rgba(255, 255, 255, 0.18);
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.fw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.fw-thumb.active {
  opacity: 1;
  border-color: hsl(46, 100%, 62%);
  box-shadow: 0 0 0 1px hsl(46, 100%, 62%), 0 6px 18px hsla(0, 0%, 0%, 0.4);
  transform: scale(1.06);
}

.fw-thumb:hover:not(.active) {
  opacity: 0.82;
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.04);
}

/* hide thumbs on smaller screens */
@media (max-width: 767px) {
  .fw-thumbs { display: none; }
}

/* -------------------------------------------------------
   PREV / NEXT ARROWS
------------------------------------------------------- */
.fw-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.25s, transform 0.25s, border-color 0.25s;
}

.fw-slider:hover .fw-arrow,
.fw-slider:focus-within .fw-arrow { opacity: 1; }

.fw-arrow:hover {
  background: hsl(152, 88%, 28%);
  border-color: hsl(152, 88%, 50%);
  transform: translateY(-50%) scale(1.08);
}

.fw-prev { left: 20px; }
.fw-next { right: 100px; } /* offset right to not overlap thumbs */

@media (max-width: 767px) {
  .fw-next { right: 20px; } /* thumbs hidden, use normal position */
}

@media (hover: none) {
  .fw-arrow { opacity: 1; }
}

/* -------------------------------------------------------
   DOT NAVIGATION  (bottom center)
------------------------------------------------------- */
.fw-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.fw-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: width 0.38s cubic-bezier(0.33, 0.85, 0.4, 0.96),
              background 0.28s;
}

.fw-dot.active {
  width: 32px;
  border-radius: 4px;
  background: hsl(46, 100%, 65%);
}

.fw-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------
   PROGRESS LINE  (very bottom edge)
------------------------------------------------------- */
.fw-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 11;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.fw-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    hsl(152, 95%, 44%),
    hsl(46, 100%, 62%));
  will-change: width;
}

/* -------------------------------------------------------
   SLIDE COUNTER  (bottom-left)
------------------------------------------------------- */
.fw-counter {
  position: absolute;
  bottom: 16px;
  left: 24px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  z-index: 10;
}

.fw-counter-cur {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: #fff;
  line-height: 1;
}

.fw-counter-sep {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.4);
  margin-inline: 2px;
  font-weight: 400;
}

.fw-counter-tot {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* -------------------------------------------------------
   PAUSE / PLAY  (bottom-right after counter)
------------------------------------------------------- */
.fw-pause-btn {
  position: absolute;
  bottom: 18px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s, background 0.25s;
}

.fw-slider:hover .fw-pause-btn { opacity: 1; }
@media (hover: none)            { .fw-pause-btn { opacity: 1; } }
.fw-pause-btn:hover             { background: hsl(152, 88%, 24%); }

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

/* Large desktop 1400px+ */
@media (min-width: 1400px) {
  .fw-slider { height: 82vh; max-height: 960px; }
  .fw-thumb  { width: 80px; height: 62px; }
}

/* Desktop 1200–1399 */
@media (min-width: 1200px) and (max-width: 1399px) {
  .fw-slider { height: 78vh; max-height: 900px; }
}

/* Desktop 992–1199 */
@media (min-width: 992px) and (max-width: 1199px) {
  .fw-slider { height: 72vh; min-height: 440px; }
  .fw-thumb  { width: 60px; height: 48px; border-radius: 8px; }
  .fw-next   { right: 92px; }
}

/* Tablet landscape 768–991 */
@media (min-width: 768px) and (max-width: 991px) {
  .fw-slider  { height: 60vh; min-height: 380px; border-radius: 0 0 24px 24px; }
  .fw-arrow   { width: 44px; height: 44px; font-size: 2rem; border-radius: 10px; }
  .fw-prev    { left: 16px; }
  .fw-next    { right: 16px; }
  .fw-counter { left: 20px; bottom: 16px; }
  .fw-counter-cur { font-size: 2rem; }
  .fw-pause-btn   { right: 20px; bottom: 18px; }
}

/* Tablet portrait 576–767 */
@media (min-width: 576px) and (max-width: 767px) {
  .fw-slider  { height: 55vw; min-height: 320px; max-height: 520px; border-radius: 0 0 18px 18px; }
  .fw-arrow   { width: 40px; height: 40px; font-size: 1.9rem; border-radius: 10px; opacity: 1; }
  .fw-prev    { left: 12px; }
  .fw-next    { right: 12px; }
  .fw-dots    { bottom: 16px; }
  .fw-counter { bottom: 14px; left: 14px; }
  .fw-counter-cur { font-size: 1.7rem; }
  .fw-pause-btn   { right: 14px; bottom: 14px; width: 30px; height: 30px; font-size: 1.3rem; }
  .fw-progress    { height: 2px; }
}

/* Mobile 360–575 */
@media (max-width: 575px) {
  .fw-slider  {
    height: 62vw;
    min-height: 240px;
    max-height: 420px;
    border-radius: 0 0 16px 16px;
  }
  .fw-arrow   { width: 36px; height: 36px; font-size: 1.7rem; border-radius: 9px; opacity: 1; }
  .fw-prev    { left: 8px; }
  .fw-next    { right: 8px; }
  .fw-dot     { width: 7px; height: 7px; }
  .fw-dot.active { width: 24px; }
  .fw-dots    { bottom: 12px; gap: 5px; }
  .fw-counter { bottom: 10px; left: 10px; }
  .fw-counter-cur { font-size: 1.5rem; }
  .fw-counter-sep,
  .fw-counter-tot { font-size: 1.1rem; }
  .fw-pause-btn   { right: 10px; bottom: 10px; width: 28px; height: 28px; font-size: 1.3rem; }
  .fw-progress    { height: 2px; }
}

/* Extra small < 360 */
@media (max-width: 359px) {
  .fw-slider  { height: 58vw; min-height: 200px; border-radius: 0 0 12px 12px; }
  .fw-counter { display: none; }
  .fw-pause-btn { display: none; }
  .fw-dot     { width: 6px; height: 6px; }
  .fw-dot.active { width: 20px; }
  .fw-dots    { bottom: 8px; }
  .fw-progress { height: 2px; }
}
