.khen-home-s3 {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 45px 0 90px;
}

.khen-home-s3-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.khen-home-s3-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 16px;
}

.khen-home-s3-title-image {
  display: block;
  width: min(100%, 375px);
  height: auto;
  margin: 0 auto 48px;
}

.khen-home-s3-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}

.khen-home-s3-left {
  flex: 0 0 75%;
  max-width: 75%;
  text-align: center;
}

.khen-home-s3-right {
  flex: 0 0 25%;
  max-width: 25%;
  text-align: center;
}

.khen-home-s3-heading-line {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 28px;
}

.khen-home-s3-heading-primary {
  margin-right: 15px;
  color: #ffffff;
  font-family: "Aphrodite Pro", var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
}

.khen-home-s3-heading-accent {
  color: #ff7900;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 32px;
  line-height: 1.5;
  font-weight: 400;
}

.khen-home-s3-description {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

.khen-home-s3-qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.khen-home-s3-qr {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.khen-home-s3-booking-label {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  cursor: pointer;
}

.khen-home-s3-booking-divider {
  display: block;
  width: 120px;
  max-width: 100%;
  height: 2px;
  margin: 5px auto 0;
  background: #ff7900;
}

.khen-home-s3-booking-trigger:focus-visible,
.khen-home-s3-modal-close:focus-visible {
  outline: 2px solid #ff7900;
  outline-offset: 2px;
}

.khen-home-s3-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.khen-home-s3-modal.hidden {
  display: none;
}

.khen-home-s3-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 40, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.khen-home-s3-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(650px, 96vw);
  max-height: min(90vh, calc(100dvh - 56px));
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.khen-home-s3-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e9edf3;
}

.khen-home-s3-modal-title {
  margin: 0;
  color: #102541;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.khen-home-s3-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d6dce5;
  border-radius: 50%;
  background: #ffffff;
  color: #17345b;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.khen-home-s3-modal-body {
  height: min(78vh, 860px);
  background: #f7f9fc;
}

.khen-home-s3-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 1024px) {
  .khen-home-s3-grid {
    gap: 24px;
  }

  .khen-home-s3-left {
    flex-basis: 68%;
    max-width: 68%;
  }

  .khen-home-s3-right {
    flex-basis: 32%;
    max-width: 32%;
  }
}

@media (max-width: 767px) {
  .khen-home-s3 {
    padding: 32px 0 48px;
  }

  .khen-home-s3-inner {
    padding: 0 16px;
  }

  .khen-home-s3-title-image {
    margin-bottom: 28px;
    width: min(100%, 280px);
  }

  .khen-home-s3-grid {
    flex-direction: column;
    gap: 20px;
  }

  .khen-home-s3-left,
  .khen-home-s3-right {
    flex-basis: 100%;
    max-width: 100%;
  }

  .khen-home-s3-heading-line {
    margin-bottom: 16px;
  }

  .khen-home-s3-heading-primary {
    margin-right: 10px;
    font-size: 22px;
  }

  .khen-home-s3-heading-accent {
    font-size: 28px;
  }

  .khen-home-s3-description {
    font-size: 15px;
  }

  .khen-home-s3-qr-wrap {
    width: 150px;
    max-width: 100%;
  }

  .khen-home-s3-booking-label {
    margin-top: 10px;
    font-size: 16px;
    white-space: nowrap;
  }

  .khen-home-s3-modal {
    padding: 12px;
  }

  .khen-home-s3-modal-header {
    padding: 12px 14px;
  }

  .khen-home-s3-modal-title {
    font-size: 18px;
  }

  .khen-home-s3-modal-body {
    height: 76vh;
  }
}
