/* Banner chỉ chuyển ảnh nền; nội dung và biểu mẫu luôn đứng yên để dễ thao tác. */
.hero-background {
  background-image: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.15s ease,
    visibility 1.15s;
  overflow: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.025);
  transform-origin: 70% 70%;
  transition: transform 6.5s linear;
}
.hero-slide.is-active img {
  transform: scale(1);
}
.hero-background::before {
  z-index: 2;
  pointer-events: none;
}
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.slider-controls button {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--blue);
  border: 1px solid #d7e5f7;
  background: #fff;
  border-radius: 50%;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.slider-controls button:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.slider-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}
.slider-controls .slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.slider-dots button {
  width: 24px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 4px;
}
.slider-dots button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 8px;
  background: #a7c0e1;
  transition:
    width 0.25s,
    background-color 0.25s;
}
.slider-dots button.is-active::before {
  width: 20px;
  background: var(--red);
}
.slider-dots button:hover {
  background: #eaf3ff;
}
.hero-controls {
  position: absolute;
  bottom: 149px;
  left: max(35px, calc((100% - 1280px) / 2 + 49px));
  z-index: 5;
  background: #ffffffed;
  padding: 4px 7px;
  border: 1px solid #ffffffd9;
  border-radius: 30px;
  box-shadow: 0 3px 15px #052f7420;
}
.hero-controls button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
}
.hero-controls .slider-dots button {
  width: 23px;
}
.hero-controls .slider-pause {
  border-left: 1px solid #d7e5f7;
  border-radius: 0 20px 20px 0;
}

/* Mỗi ảnh xe có một vùng chứa riêng và luôn giữ trọn ảnh theo đúng tỷ lệ. */
.fleet-card {
  min-width: 0;
}
.fleet-card .fleet-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: 8px 2px;
  margin-bottom: 7px;
}
.fleet-photo img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.fleet-card .fleet-model {
  display: block;
  font-size: 11px;
  color: #6480a5;
  margin-bottom: 5px;
  min-height: 16px;
}
.fleet-card > strong {
  margin-bottom: 4px;
}

/* Giữ ba thẻ trên máy tính, hai trên máy tính bảng và một trên điện thoại. */
.reviews-slider {
  min-width: 0;
}
.reviews-viewport {
  overflow: hidden;
  border-radius: 8px;
  touch-action: pan-y;
}
.reviews-slider .reviews-grid {
  display: flex;
  gap: 12px;
  grid-template-columns: none;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  align-items: stretch;
}
.reviews-slider .review-card {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
  margin: 0;
}
.reviews-slider .review-card blockquote {
  min-height: 110px;
}
.reviews-controls {
  margin-top: 14px;
}
.reviews-note {
  margin-top: 8px;
  text-align: center;
  color: #6c7f99;
  font-size: 11px;
}
.review-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}
.avatar-teal {
  color: #0b7875;
  background: #e0f3ef;
}
.avatar-blue {
  color: #185bc1;
  background: #e8f0ff;
}
.avatar-rose {
  color: #ad3961;
  background: #fde8ef;
}
.avatar-amber {
  color: #946020;
  background: #fff0d8;
}
.footer-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  background: transparent;
}

@media (max-width: 1199.98px) {
  .hero-controls {
    left: 34px;
    bottom: 144px;
  }
  .fleet-card .fleet-photo {
    height: 93px;
  }
  .reviews-slider .review-card blockquote {
    min-height: 126px;
  }
  .review-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
  .footer-logo {
    width: 165px;
  }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .reviews-slider .review-card {
    flex-basis: calc((100% - 12px) / 2);
  }
  .reviews-slider .review-card blockquote {
    min-height: 90px;
  }
  .fleet-card .fleet-photo {
    height: 128px;
  }
  .hero-controls {
    bottom: 143px;
    left: 25px;
  }
}
@media (max-width: 575.98px) {
  .hero-background::before {
    background: linear-gradient(
      180deg,
      #d7ebff 0px,
      #d7ebff 58px,
      #dbeeffc0 115px,
      transparent 180px,
      transparent 230px,
      #072d58 325px
    );
  }
  .hero-slide img {
    height: 300px;
    top: 56px;
    object-position: 67% center;
  }
  .hero-controls {
    left: auto;
    right: 16px;
    bottom: 128px;
    gap: 3px;
    padding: 2px 6px;
  }
  .hero-controls button {
    width: 32px;
    height: 32px;
  }
  .hero-controls .slider-dots button {
    width: 23px;
  }
  .reviews-slider .review-card {
    flex-basis: 100%;
  }
  .reviews-slider .review-card blockquote {
    min-height: 78px;
  }
  .reviews-slider .review-card figcaption {
    display: block;
  }
  .reviews-slider .review-card figcaption > span {
    margin-top: 5px;
  }
  .review-avatar {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
  .reviews-controls {
    gap: 2px;
  }
  .slider-controls button {
    min-width: 32px;
  }
  .slider-dots button {
    min-width: 23px;
    width: 23px;
  }
  .fleet-card .fleet-photo {
    height: 76px;
    padding: 4px 0;
  }
  .fleet-card .fleet-model {
    font-size: 10px;
    min-height: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide img,
  .reviews-slider .reviews-grid {
    transition: none;
    transform: none;
  }
}
