/* Taste of Asia — Home Slider ([toa_home_slider])
   Desktop: text panel (left) + image (right). Mobile: image on top, panel below. */

.toa-hslider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.toa-hslider__viewport {
  overflow: hidden;
  width: 100%;
}

.toa-hslider__track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* One full-width slide = panel + media side by side */
.toa-hslider__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  min-height: 480px;
}

/* ---- Text panel ---- */
.toa-hslider__panel {
  flex: 0 0 42%;
  max-width: 42%;
  background-color: #4C0005;
  display: flex;
  align-items: center;
  padding: 56px 72px;
  box-sizing: border-box;
}

.toa-hslider__content {
  width: 100%;
  max-width: 520px;
}

.toa-hslider__title {
  /* Font comes from the .toa-font-cormorant utility class on the element. */
  margin: 0;
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
}
.toa-hslider__title p { margin: 0; }
.toa-hslider__title a { color: inherit; text-decoration: underline; }

.toa-hslider__subtitle {
  margin: 20px 0 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--toa-font-body, "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif); /* DM Sans */
  font-size: 18px;
  line-height: 1.5;
}
.toa-hslider__subtitle p { margin: 0 0 6px; }
.toa-hslider__subtitle p:last-child { margin-bottom: 0; }
.toa-hslider__subtitle a { color: #fff; text-decoration: underline; }

/* ---- Buttons ---- */
.toa-hslider__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.toa-hslider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 6px;
  font-family: var(--toa-font-body, "DM Sans", sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.toa-hslider__btn--primary {
  background: var(--toa-gold, #c9a227);
  color: #1a1a1a;
}
.toa-hslider__btn--primary:hover {
  background: #d8b43a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.toa-hslider__btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.toa-hslider__btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---- Media ---- */
.toa-hslider__media {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #1a0008;
}
.toa-hslider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Dots (bottom-left over the panel on desktop) ---- */
.toa-hslider__dots {
  position: absolute;
  bottom: 28px;
  left: 72px;
  z-index: 3;
  display: flex;
  gap: 9px;
}
.toa-hslider__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.toa-hslider__dot.is-active {
  background: var(--toa-gold, #c9a227);
  transform: scale(1.15);
}

/* ===================== Mobile: image on top, panel below ===================== */
@media (max-width: 860px) {
  .toa-hslider__slide {
    flex-direction: column-reverse; /* DOM is panel→media; reverse puts media on top */
    min-height: 0;
  }
  .toa-hslider__panel {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 32px 24px 60px; /* extra bottom space for the dots */
  }
  .toa-hslider__content { max-width: 100%; }
  .toa-hslider__title { font-size: 34px; }
  .toa-hslider__subtitle { font-size: 16px; margin-top: 14px; }

  .toa-hslider__btns {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .toa-hslider__btn { padding: 14px 24px; }

  .toa-hslider__media { flex: 0 0 auto; height: 300px; }

  /* Dots centered at the bottom of the panel */
  .toa-hslider__dots {
    left: 0;
    right: 0;
    bottom: 22px;
    justify-content: center;
  }
}
