.khen-home-s5 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 740px;
  background-color: #0f2f5e;
  background-image: var(--khen-home-s5-home-bg-image, none);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 44px 0 0;
}

.khen-home-s5::before {
  content: none;
}

.khen-home-s5--promotion-archive {
  background-color: #fff7ea;
  background-image: url("../images/BGuudaihienhanh.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.khen-home-s5--promotion-archive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--khen-home-s5-promo-pattern-image, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.28;
  pointer-events: none;
}

.khen-home-s5-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.khen-home-s5-heading {
  margin: 0 auto 48px;
  max-width: 584px;
  text-align: center;
  color: #ffffff;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 32px;
  line-height: 42px;
  font-weight: 400;
  text-transform: capitalize;
}

.khen-home-s5--promotion-archive .khen-home-s5-heading {
  color: #002f68;
}

.khen-home-s5-carousel-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.post-type-archive-kn_promotion .khen-home-s5-carousel-wrap .khen-home-s5-frame.khen-footer-frame-image {
  display: none !important;
}

.khen-home-s5-carousel {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 28px;
}

.khen-home-s5-carousel::-webkit-scrollbar {
  display: none;
}

.khen-home-s5-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  scroll-snap-align: start;
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
}

.khen-home-s5-image-wrap {
  aspect-ratio: 2/1.7;
  overflow: hidden;
}

.khen-home-s5-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.khen-home-s5-ribbon {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: -32px auto 0;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid #fff3de;
  background-color: rgba(10, 47, 96, 0.72);
  background-image: url("../images/frameuudai.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  text-align: center;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.khen-home-s5-body {
  margin-top: -24px;
  display: flex;
  flex: 1;
  flex-direction: column;
  background: #fff3de;
  padding: 42px 24px 24px;
}

.khen-home-s5-info-list {
  margin-top: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.khen-home-s5-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.khen-home-s5-info-item i {
  width: 30px;
  height: 30px;
  margin-top: 2px;
  min-width: 30px;
  color: #002f68;
  flex: 0 0 30px;
}

.khen-home-s5-info-content {
  min-width: 0;
  flex: 1;
}

.khen-home-s5-info-label,
.khen-home-s5-info-value {
  margin: 0;
  color: #000000;
  font-family: "Khen BeVietnamPro", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.khen-home-s5-info-label {
  font-weight: 500;
}

.khen-home-s5-info-value {
  font-weight: 400;
  overflow-wrap: anywhere;
}

.khen-home-s5-link {
  margin: 20px auto 0;
  width: max-content;
  display: block;
  color: #002f68;
  text-decoration: none;
  border-bottom: 2px solid #ff7900;
  padding: 0 10px 5px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.khen-footer-location-tabs-wrap {
  position: relative;
  padding-inline: 0;
}

.khen-footer-location-tabs {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.khen-footer-location-tabs::-webkit-scrollbar {
  display: none;
}

.dsnhahang,
#khenFooterBranchTitle {
  text-transform: capitalize;
  color: #ff7900 !important;
}

.khen-footer-location-title {
  color: inherit;
}

.khen-footer-location-tab[data-selected="1"] .khen-footer-location-title {
  color: #ff7900;
}

.khen-footer-location-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9999px;
  background: rgba(0, 15, 41, 0.35);
  color: #ffffff;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background-color 180ms ease;
}

.khen-footer-location-nav:hover {
  background: rgba(0, 15, 41, 0.56);
}

.khen-footer-location-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.khen-footer-location-nav svg {
  width: 15px;
  height: 15px;
}

.khen-footer-location-nav-prev {
  left: 4px;
}

.khen-footer-location-nav-next {
  right: 4px;
}

.khen-home-s5-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.khen-home-s5-nav i {
  width: 20px;
  height: 20px;
}

.khen-home-s5-nav:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.khen-home-s5--promotion-archive .khen-home-s5-nav {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.khen-home-s5-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.khen-home-s5-prev {
  left: -10px;
}

.khen-home-s5-next {
  right: -10px;
}

.khen-home-s5-dots {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.khen-home-s5-dot {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 180ms ease;
}

.khen-home-s5-dot:hover {
  transform: scale(1.08);
}

.khen-home-s5-dot-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.khen-home-s5-dot.is-active {
  transform: scale(1.04);
}

.khen-home-s5-frame {
  position: absolute;
  left: 50%;
  bottom: -90px;
  transform: translateX(-50%);
  width: min(55vw, 560px);
  max-width: 560px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .khen-home-s5-card {
    flex-basis: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }

  .khen-home-s5-frame {
    bottom: -88px;
    width: min(66vw, 420px);
  }
}

@media (max-width: 767px) {
  .khen-home-s5 {
    min-height: 0;
    padding-top: 36px;
  }

  .khen-home-s5-heading {
    margin-bottom: 30px;
    font-size: 28px;
    line-height: 1.4;
  }

  .khen-home-s5-carousel-wrap {
    padding-bottom: 60px;
  }

  .khen-home-s5-body {
    padding: 40px 18px 20px;
  }

  .khen-footer-location-nav {
    width: 26px;
    height: 26px;
  }

  .khen-home-s5-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .khen-home-s5-nav {
    width: 36px;
    height: 36px;
    top: 42%;
  }

  .khen-home-s5-prev {
    left: 8px;
  }

  .khen-home-s5-next {
    right: 8px;
  }

  .khen-home-s5-dots {
    bottom: 62px;
    gap: 10px;
  }

  .khen-home-s5-dot-icon {
    width: 14px;
    height: 14px;
  }

  .khen-home-s5-frame {
    bottom: 0px;
    width: min(80vw, 320px);
    transform: translateX(50%);
    right:0;
    left:unset;
  }
}
