.khen-home-hero-with-video {
  position: relative;
  overflow: hidden;
  background-image: none !important;
}

.khen-home-s1 {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  border-radius: 0;
}

.khen-home-s1-no-video {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.khen-home-s1-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-inline: 16px;
}

.khen-home-s1-line1 {
  margin: 0;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 48px;
  line-height: 1.5;
  font-weight: 400;
}

.khen-home-s1-line2 {
  margin: 0;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 64px;
  line-height: 1.3;
  font-weight: 400;
  color: #ff7900;
}

.khen-home-s1-desc {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 300;
}

.khen-home-s1-desc p {
  margin: 0;
}

.khen-home-s1-desc p + p {
  margin-top: 8px;
}

.khen-home-s1-desc strong,
.khen-home-s1-desc b {
  font-weight: 600;
}

.khen-home-s1-desc em,
.khen-home-s1-desc i {
  font-style: italic;
}

.khen-home-s1-desc u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.khen-page-s1 {
  position: relative;
  isolation: isolate;
}

.khen-page-s1::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--khen-page-s1-overlay-color, #000000);
  opacity: var(--khen-page-s1-overlay-opacity, 0.5);
  z-index: 1;
  pointer-events: none;
}

.khen-page-s1 .khen-home-s1-inner {
  position: relative;
  z-index: 2;
  min-height: 385px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 48px;
}

.khen-page-s1-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.khen-page-s1 .khen-home-s1-line1 {
  font-family: "Aphrodite Pro", var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
}

.khen-page-s1-pattern {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.khen-home-hero-with-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.khen-home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.khen-home-hero-with-video > *:not(.khen-home-hero-video) {
  position: relative;
  z-index: 2;
}

.khen-home-audio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 64px;
  height: 64px;
  margin: 24px auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.khen-home-audio-toggle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1) brightness(2.2);
  transition: transform 180ms ease, filter 180ms ease;
}

.khen-home-audio-toggle::before,
.khen-home-audio-toggle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

@keyframes khen-audio-wave {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes khen-audio-icon-wave {
  0% {
    transform: scale(1);
    filter: invert(1) brightness(2.2) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  35% {
    transform: scale(1.14);
    filter: invert(1) brightness(2.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
  }
  70% {
    transform: scale(0.96);
    filter: invert(1) brightness(2.2) drop-shadow(0 0 3px rgba(255, 255, 255, 0.55));
  }
  100% {
    transform: scale(1);
    filter: invert(1) brightness(2.2) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}

.khen-home-audio-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: 9999px;
}

.khen-home-hero-muted .khen-home-audio-toggle {
  opacity: 0.95;
  box-shadow: none;
}

.khen-home-hero-unmuted .khen-home-audio-toggle {
  background: rgba(255, 121, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 121, 0, 0.2);
  transform: scale(1.03);
}

.khen-home-hero-unmuted .khen-home-audio-toggle::before {
  animation: khen-audio-wave 1.6s ease-out infinite;
}

.khen-home-hero-unmuted .khen-home-audio-toggle::after {
  animation: khen-audio-wave 1.6s ease-out infinite 0.55s;
}

.khen-home-hero-unmuted .khen-home-audio-toggle img {
  animation: khen-audio-icon-wave 1.1s ease-in-out infinite;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .khen-home-s1 {
    height: 550px;
    min-height: 550px;
  }

  .khen-page-s1 {
    height: auto;
    min-height: 650px;
  }
}

@media (max-width: 767px) {
  .khen-home-s1 {
    height: 550px;
    min-height: 550px;
  }

  .khen-home-s1-inner {
    padding-inline: 6px;
  }

  .khen-home-s1-line1 {
    font-size: 32px;
  }

  .khen-home-s1-line2 {
    font-size: 36px;
    line-height: 1.3;
  }

  .khen-home-audio-toggle {
    width: 56px;
    height: 56px;
    margin: 18px auto;
  }

  .khen-home-audio-toggle img {
    width: 24px;
    height: 24px;
  }

  .khen-home-s1-desc {
    font-size: 16px;
  }

  .khen-page-s1 .khen-home-s1-inner {
    min-height: 200px;
    gap: 24px;
    padding-inline: 6px;
  }

  .khen-page-s1-pattern {
    max-width: min(72vw, 260px);
  }
}
