.hnt-w-lise-1-testimonials-section {
  --hnt-w-lise-1-bg-color: transparent;
  --hnt-w-lise-1-primary-color: #6d1d0e;
  --hnt-w-lise-1-text-muted: #666666;
  --hnt-w-lise-1-card-width: 360px;
  --hnt-w-lise-1-card-height: 520px;
  --hnt-w-lise-1-card-gap: 20px;
  --hnt-w-lise-1-aspect-ratio: 9 / 16;

  width: 100%;
  background-color: transparent;
  box-sizing: border-box;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hnt-w-lise-1-testimonials-section::-webkit-scrollbar,
.hnt-w-lise-1-carousel-outer::-webkit-scrollbar,
.hnt-w-lise-1-carousel-main-container::-webkit-scrollbar,
.hnt-w-lise-1-carousel-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.hnt-w-lise-1-testimonials-section *,
.hnt-w-lise-1-testimonials-section *::before,
.hnt-w-lise-1-testimonials-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hnt-w-lise-1-carousel-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  cursor: grab;
  padding: 10px 0 20px;
  mask-image: none;
  -webkit-mask-image: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hnt-w-lise-1-carousel-outer:active {
  cursor: grabbing;
}

.hnt-w-lise-1-carousel-main-container {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hnt-w-lise-1-carousel-track {
  display: flex;
  gap: var(--hnt-w-lise-1-card-gap);
  padding-right: var(--hnt-w-lise-1-card-gap);
  flex-shrink: 0;
}

/* 1. Card tổng: Chuẩn kiến trúc v14 - Nền #F4F4F4 chống nháy subpixel hoàn toàn */
.hnt-w-lise-1-carousel-card {
  position: relative;
  width: var(--hnt-w-lise-1-card-width);
  height: var(--hnt-w-lise-1-card-height, 520px);
  border-radius: 20px;
  background-color: #f4f4f4;
  user-select: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  flex-shrink: 0;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: transform, opacity;
}

/* Chế độ thông minh tự động tỉ lệ video: Tự động co giãn chiều dài/cao card chuẩn xác theo tỉ lệ video */
.hnt-w-lise-1-testimonials-section.hnt-auto-video-ratio
  .hnt-w-lise-1-carousel-card,
.hnt-w-lise-1-testimonials-section[data-hnt-w-lise-1-auto-ratio="yes"]
  .hnt-w-lise-1-carousel-card {
  height: auto !important;
  aspect-ratio: var(--hnt-w-lise-1-aspect-ratio, 9 / 16);
}

/* Khung media: Phủ kín 100% chiều cao toàn bộ card */
.hnt-w-lise-1-card-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hnt-w-lise-1-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #00000066;
  pointer-events: none;
  z-index: 2;
  border-radius: 20px 20px 28px 28px !important;
  transition: opacity 0.3s ease;
}

.hnt-w-lise-1-carousel-card.hnt-is-playing .hnt-w-lise-1-card-media {
  height: 100%;
}

.hnt-w-lise-1-carousel-card.hnt-is-playing .hnt-w-lise-1-card-media::after {
  opacity: 0;
}

.hnt-w-lise-1-card-thumb {
  width: 100%;
  height: 99% !important;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 20px 20px 28px 28px !important;
}

.hnt-w-lise-1-inline-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 3;
  border-radius: 20px 20px 28px 28px !important;
}

/* Nút Phóng to [] (Fullscreen Modal) & Nút Tạm dừng (Pause Button) */
.hnt-w-lise-1-expand-btn,
.hnt-w-lise-1-pause-btn {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.hnt-w-lise-1-expand-btn {
  top: 14px;
  right: 14px;
}

.hnt-w-lise-1-pause-btn {
  bottom: 14px;
  left: 14px;
}

.hnt-w-lise-1-expand-btn:hover,
.hnt-w-lise-1-expand-btn:focus,
.hnt-w-lise-1-expand-btn:focus-visible,
.hnt-w-lise-1-pause-btn:hover,
.hnt-w-lise-1-pause-btn:focus,
.hnt-w-lise-1-pause-btn:focus-visible {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.8);
  outline: none !important;
  box-shadow: none !important;
}

.hnt-w-lise-1-expand-btn:active,
.hnt-w-lise-1-pause-btn:active {
  transform: scale(0.95);
  outline: none !important;
  box-shadow: none !important;
}

.hnt-w-lise-1-expand-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.hnt-w-lise-1-pause-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Nút Play */
.hnt-w-lise-1-play-badge {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 8px 14px;
  background-color: #ffffff33;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.hnt-w-lise-1-play-badge:hover,
.hnt-w-lise-1-play-badge:focus,
.hnt-w-lise-1-play-badge:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: #ffffff55;
  outline: none;
}

.hnt-w-lise-1-play-badge:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.hnt-w-lise-1-carousel-card.hnt-is-playing .hnt-w-lise-1-inline-video,
.hnt-w-lise-1-carousel-card.hnt-is-playing .hnt-w-lise-1-expand-btn,
.hnt-w-lise-1-carousel-card.hnt-is-playing .hnt-w-lise-1-pause-btn {
  display: flex;
}
.hnt-w-lise-1-carousel-card.hnt-is-playing .hnt-w-lise-1-play-badge {
  display: none;
}

/* 3. Card thông tin chuẩn v14: Viền 2px solid #FFFFFF, bo góc 20px 20px 0 0, khớp hoàn hảo */
.hnt-w-lise-1-card-info {
  position: relative;
  z-index: 4;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 24px;
  border-radius: 20px;
  background-color: #f4f4f4;
  border-top: 2px solid #ffffff;
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  will-change: transform, opacity;
}

.hnt-w-lise-1-card-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-style: italic;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-align: center;
  color: #111;
  margin: 0;
}

.hnt-w-lise-1-card-meta {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: var(--hnt-w-lise-1-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .hnt-w-lise-1-testimonials-section {
    --hnt-w-lise-1-card-width: 300px !important;
    --hnt-w-lise-1-card-gap: 12px !important;
  }
  .hnt-w-lise-1-carousel-card {
    height: 440px;
  }
  .hnt-w-lise-1-testimonials-section.hnt-auto-video-ratio
    .hnt-w-lise-1-carousel-card,
  .hnt-w-lise-1-testimonials-section[data-hnt-w-lise-1-auto-ratio="yes"]
    .hnt-w-lise-1-carousel-card {
    height: auto !important;
    aspect-ratio: var(--hnt-w-lise-1-aspect-ratio, 9 / 16);
  }
  .hnt-w-lise-1-card-info {
    padding: 20px 16px;
    gap: 6px;
  }
  .hnt-w-lise-1-card-title {
    font-size: 24px;
  }
  .hnt-w-lise-1-card-meta {
    font-size: 12px;
    vertical-align: middle;
  }
}

/* Controls Bar */
.hnt-w-lise-1-controls-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
  padding-bottom: 20px;
}
.hnt-w-lise-1-testimonials-section.hnt-is-playing-video
  .hnt-w-lise-1-controls-wrapper {
  pointer-events: none !important;
}
.hnt-w-lise-1-testimonials-section.hnt-is-playing-video
  .hnt-w-lise-1-carousel-outer,
.hnt-w-lise-1-testimonials-section.hnt-is-playing-video
  .hnt-w-lise-1-carousel-main-container,
.hnt-w-lise-1-testimonials-section.hnt-is-playing-video
  .hnt-w-lise-1-carousel-track {
  cursor: default !important;
  touch-action: pan-y !important;
}
.hnt-w-lise-1-testimonials-section.hnt-is-playing-video
  .hnt-w-lise-1-carousel-card:not(.hnt-is-playing) {
  pointer-events: none !important;
  user-select: none !important;
}
@media (max-width: 768px) {
  .hnt-w-lise-1-controls-wrapper {
    margin-top: 16px;
  }
}

.hnt-w-lise-1-segmented-indicators {
  width: 160px;
  height: 36px;
  border-radius: 9999px;
  padding: 6px 10px;
  background-color: #e8e6e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.hnt-w-lise-1-indicator-bar {
  flex: 1;
  height: 4px;
  background-color: #c7c4bc;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  outline: none;
}

.hnt-w-lise-1-indicator-bar:hover,
.hnt-w-lise-1-indicator-bar:focus,
.hnt-w-lise-1-indicator-bar:focus-visible {
  background-color: #a8a59d;
  outline: none;
}

.hnt-w-lise-1-indicator-bar.hnt-w-lise-1-active {
  background-color: var(--hnt-w-lise-1-primary-color);
}

.hnt-w-lise-1-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hnt-w-lise-1-nav-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: none !important;
  background-color: var(--hnt-w-lise-1-primary-color, #6d1d0e);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition:
    opacity 0.2s ease,
    transform 0.15s ease;
}

.hnt-w-lise-1-nav-btn:hover,
.hnt-w-lise-1-nav-btn:focus,
.hnt-w-lise-1-nav-btn:focus-visible,
.hnt-w-lise-1-nav-btn:focus-within {
  opacity: 0.9;
  outline: none !important;
  box-shadow: none !important;
  background-color: var(--hnt-w-lise-1-primary-color, #6d1d0e);
}

.hnt-w-lise-1-nav-btn:active {
  transform: scale(0.92);
  outline: none !important;
  box-shadow: none !important;
}

.hnt-w-lise-1-nav-btn svg {
  width: 11px;
  height: 8px;
  display: block;
  pointer-events: none;
}

.hnt-w-lise-1-nav-btn svg path {
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* MODAL LIGHTBOX */
.hnt-w-lise-1-video-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
  box-sizing: border-box;
  overflow: hidden;
}

.hnt-w-lise-1-video-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.hnt-w-lise-1-video-container {
  position: relative;
  z-index: 2;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 88vh;
  max-height: 88dvh;
  transition:
    max-width 0.3s ease,
    aspect-ratio 0.3s ease;
}

.hnt-w-lise-1-video-container[data-ratio="portrait"] {
  width: auto;
  max-width: 440px;
  height: min(85vh, 760px);
  height: min(85dvh, 760px);
  aspect-ratio: 9 / 16;
}

.hnt-w-lise-1-video-container[data-ratio="landscape"] {
  width: min(90vw, 960px);
  height: auto;
  max-height: min(85vh, 600px);
  max-height: min(85dvh, 600px);
  aspect-ratio: 16 / 9;
}

.hnt-w-lise-1-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: #000;
  border-radius: inherit;
}

.hnt-w-lise-1-video-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  outline: none;
  opacity: 0;
  padding: 0;
  margin: 0;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.hnt-w-lise-1-video-close-btn:hover,
.hnt-w-lise-1-video-close-btn:focus,
.hnt-w-lise-1-video-close-btn:focus-visible {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.5);
  outline: none !important;
}

.hnt-w-lise-1-video-close-btn:active {
  transform: scale(0.92);
  outline: none !important;
}

.hnt-w-lise-1-video-close-btn svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
}

@media (max-width: 768px) {
  .hnt-w-lise-1-video-modal {
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .hnt-w-lise-1-video-container {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  }
  .hnt-w-lise-1-video-container[data-ratio="portrait"] {
    width: auto;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100dvh - 90px);
    aspect-ratio: 9 / 16;
  }
  .hnt-w-lise-1-video-container[data-ratio="landscape"] {
    width: 100%;
    max-width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100dvh - 90px);
    aspect-ratio: 16 / 9;
  }
  .hnt-w-lise-1-video-close-btn {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }
  .hnt-w-lise-1-video-close-btn svg {
    width: 20px;
    height: 20px;
  }
}
