/* ===== Banner Section ===== */
.banner {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;   /* pt-24 */
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .banner {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 768px) {
  .banner {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

/* ---------- Mobile / Tablet ---------- */
.banner__mobile {
  display: block;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .banner__mobile {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .banner__mobile {
    display: none;
  }
}

.banner__mobile-track {
  position: relative;
  height: 55vh;
  min-height: 280px;
  max-height: 480px;
  width: 100%;
}

@media (min-width: 640px) {
  .banner__mobile-track {
    height: 60vh;
    min-height: 340px;
    max-height: 560px;
  }
}

.banner__mobile-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

@media (min-width: 640px) {
  .banner__mobile-slide {
    border-radius: 1rem;
  }
}

.banner__mobile-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.banner__mobile-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  image-rendering: -webkit-optimize-contrast; /* Safari */
  -ms-interpolation-mode: nearest-neighbor;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.banner__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.25rem 1.25rem 0;
  color: #fff;
  text-align: left;
}

@media (min-width: 640px) {
  .banner__content {
    padding: 2rem 2.5rem 0;
  }
}

.banner__content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 640px) {
  .banner__content h1 {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .banner__content h1 {
    font-size: 2.25rem;
  }
}

.banner__content p {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
  .banner__content p {
    margin-top: 1rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .banner__content p {
    font-size: 1.125rem;
  }
}

/* ---------- Desktop ---------- */
.banner__desktop {
  display: none;
  position: relative;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  height: 550px;
  transition: height 0.3s ease;
}

.banner__desktop.is-header-hidden {
  height: 620px;
}

@media (min-width: 1024px) {
  .banner__desktop {
    display: block;
  }
}

.banner__desktop-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner__desktop-slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.banner__desktop-slide.is-main {
  z-index: 20;
  cursor: default;
}

.banner__desktop-slide:not(.is-main) {
  z-index: 10;
  cursor: pointer;
}

.banner__desktop-inner {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.banner__desktop-slide.is-main .banner__desktop-inner {
  top: 0;
  height: 100%;
}

.banner__desktop-slide:not(.is-main) .banner__desktop-inner {
  top: 2rem; /* 32px */
  height: calc(100% - 64px);
}

.banner__desktop-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease-out;
}

.banner__desktop-slide.is-main:hover .banner__desktop-img-wrap {
  transform: scale(1.15);
}

.banner__desktop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.banner__desktop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
}

.banner__desktop-slide.is-main .banner__desktop-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.banner__desktop-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem 1.75rem 0;
  color: #fff;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.banner__desktop-slide.is-main .banner__desktop-content {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1280px) {
  .banner__desktop-content {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.banner__desktop-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

@media (min-width: 1280px) {
  .banner__desktop-content h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1536px) {
  .banner__desktop-content h1 {
    font-size: 3.75rem;
  }
}

.banner__desktop-content p {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.125rem;
}

@media (min-width: 1280px) {
  .banner__desktop-content p {
    margin-top: 1.5rem;
    font-size: 1.25rem;
  }
}

/* ---------- Dots ---------- */
.banner__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.banner__dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: #cbd5e1; /* slate-300 */
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.banner__dot:hover {
  background: #94a3b8; /* slate-400 */
}

.banner__dot.is-active {
  width: 1.5rem;
  background: #2563eb; /* blue-600 */
}

@media (min-width: 640px) {
  .banner__dot {
    height: 0.625rem;
    width: 0.625rem;
  }
  .banner__dot.is-active {
    width: 2rem;
  }
}