@media (min-width: 768px) and (max-width: 1024.98px) {
  .section-top-amenity .inner::after {
    top: 0.3rem;
  }
  .section-top-amenity .amenity-intro {
    top: 1.5rem;
  }
}
@media only screen and (max-width: 767.98px) {
  .section-top-amenity,
  .section-top-amenity .group-central,
  .section-top-amenity .inner {
    height: auto !important;
    min-height: 0 !important;
  }

  .section-top-amenity .inner {
    display: flex;
    flex-direction: column;
  }

  .section-top-amenity .inner::after {
    display: none;
  }

  /* Nội dung nằm trên slider, chừa khoảng trống cho header. */
  .section-top-amenity .amenity-intro {
    order: -1;
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    margin: 0;
    padding: clamp(100px, 1rem, 160px) 20px 28px;
    box-sizing: border-box;
  }

  .section-top-amenity .amenity-heading {
    text-align: center;
  }

  .section-top-amenity .amenity-heading strong {
    margin-left: 0;
    white-space: normal;
  }

  .section-top-amenity .amenity-layout {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
  }

  .section-top-amenity .amenity-layout .swiper-wrapper,
  .section-top-amenity .amenity-layout .swiper-slide {
    height: auto;
  }

  /* Hiển thị trọn ảnh và bỏ dịch chuyển parallax trên mobile. */
  .section-top-amenity .amenity-background {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none !important;
  }

  /* Tên tiện ích nằm dưới ảnh để không che phối cảnh. */
  .section-top-amenity .amenity-caption {
    position: relative;
    inset: auto;
    margin: 0;
    padding: 14px 20px 20px;
    color: #d29847;
    font-size: clamp(14px, 0.16rem, 18px);
    line-height: 1.5;
    text-align: center;
  }

  .section-top-amenity .amenity-caption::before,
  .section-top-amenity .amenity-caption::after {
    display: none;
  }
}
