.khen-menu-s2 {
  position: relative;
  overflow: visible;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff7ea;
}

.khen-menu-s2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--khen-menu-s2-overlay-image, none);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
}

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

.khen-menu-s2-tabs {
  position: sticky;
  z-index: 960;
  top: var(--khen-menu-s2-sticky-top, 90px);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background: #fff7ea;
  border-bottom: 1px solid rgba(0, 47, 104, 0.14);
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: max(16px, calc((100vw - 1180px) / 2 + 16px));
  padding-right: max(16px, calc((100vw - 1180px) / 2 + 16px));
  transform: translate3d(0, 0, 0);
  will-change: background-color, box-shadow;
  transition: background-color 280ms ease, border-color 280ms ease, box-shadow 320ms ease, opacity 240ms ease, -webkit-backdrop-filter 280ms ease, backdrop-filter 280ms ease;
}

.khen-menu-s2-tabs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/BGHeader.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 320ms ease;
}

.khen-menu-s2-tabs.is-sticky-active {
  background-color: rgba(0, 47, 104, 0.95);
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.khen-menu-s2-tabs.is-sticky-active::before {
  opacity: 1;
}

.khen-menu-s2-tab {
  border: 0;
  background: transparent;
  color: #002f68;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
  padding: 0;
  cursor: pointer;
  transition: color 180ms ease;
}

.khen-menu-s2-tab.is-active {
  color: #ff7900;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.khen-menu-s2-tabs.is-sticky-active .khen-menu-s2-tab {
  color: #ffffff;
}

.khen-menu-s2-tabs.is-sticky-active .khen-menu-s2-tab.is-active {
  color: #ff7900;
}

.khen-menu-s2-groups {
  display: flex;
  flex-direction: column;
}

.khen-menu-s2-group {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 26px 0 34px;
  background-image: url("../images/BGMenu.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  isolation: isolate;
}

.khen-menu-s2-group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 247, 234, 0.76);
  pointer-events: none;
  z-index: -1;
}

.khen-menu-s2-group:nth-child(odd)::before {
  background: rgba(247, 234, 210, 0.78);
}

.khen-menu-s2-group:nth-child(even)::before {
  background: rgba(255, 247, 234, 0.74);
}

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

.khen-menu-s2-group-inner::before,
.khen-menu-s2-group-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 220px;
  background-image: url("../images/patternsilver.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.khen-menu-s2-group-inner::before {
  left: 10px;
}

.khen-menu-s2-group-inner::after {
  right: 10px;
  transform: translateY(-50%) scaleX(-1);
}

.khen-menu-s2-group-title-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.khen-menu-s2-group-title {
  margin: 0;
  min-width: 230px;
  text-align: center;
  color: #ffffff;
  background-color: #002f68;
  background-image: url("../images/frameuudai.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 4px;
  padding: 8px 18px;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
}

.khen-menu-s2-carousel {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.khen-menu-s2-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  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-menu-s2-nav:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.khen-menu-s2-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.khen-menu-s2-nav i {
  width: 20px;
  height: 20px;
}

.khen-menu-s2-prev {
  left: 8px;
}

.khen-menu-s2-next {
  right: 8px;
}

.khen-menu-s2-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.khen-menu-s2-track::-webkit-scrollbar {
  display: none;
}

.khen-menu-s2-card {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: zoom-in;
  flex: 0 0 calc((100% - 16px) / 2);
  max-width: calc((100% - 16px) / 2);
  min-width: 0;
  scroll-snap-align: start;
}

.khen-menu-s2-card-image {
  width: 100%;
  aspect-ratio: 1240 / 1754;
  object-fit: contain;
  display: block;
}

.khen-menu-s2-dots {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.khen-menu-s2-dot {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.khen-menu-s2-dot img {
  width: 14px;
  height: 14px;
  display: block;
}

.khen-menu-s2-empty {
  margin: 24px 0 0;
  text-align: center;
  color: #002f68;
  font-family: "Khen BeVietnamPro", sans-serif;
  font-size: 16px;
}

.khen-menu-s2-track .khen-menu-s2-empty {
  width: 100%;
  margin: 0;
  padding: 28px 0;
}

.khen-menu-s2-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.khen-menu-s2-lightbox[hidden] {
  display: none;
}

.khen-menu-s2-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 27, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.khen-menu-s2-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  border-radius: 18px;
  background: rgba(237, 215, 178, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(237, 215, 178, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 18px 18px 14px;
}

.khen-menu-s2-lightbox-head {
  margin: 0 8px 14px;
}

.khen-menu-s2-lightbox-meta {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.khen-menu-s2-lightbox-title {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
}

.khen-menu-s2-lightbox-counter {
  display: none;
}

.khen-menu-s2-lightbox-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.khen-menu-s2-lightbox-tab {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  border-radius: 9999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.khen-menu-s2-lightbox-tab.is-active {
  color: #0a2f60;
  background: #f2e7d2;
  border-color: #f2e7d2;
}

.khen-menu-s2-lightbox-tab-label {
  display: inline-block;
  white-space: nowrap;
}

.khen-menu-s2-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.khen-menu-s2-lightbox-close:hover {
  background: rgba(255, 121, 0, 0.9);
}

.khen-menu-s2-lightbox-close i,
.khen-menu-s2-lightbox-nav i {
  width: 20px;
  height: 20px;
}

.khen-menu-s2-lightbox-media {
  position: relative;
}

.khen-menu-s2-lightbox-image {
  display: block;
  width: 100%;
  max-height: 74vh;
  min-height: 340px;
  object-fit: contain;
  border-radius: 0;
}

.khen-menu-s2-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  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-menu-s2-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.khen-menu-s2-lightbox-prev {
  left: 28px;
}

.khen-menu-s2-lightbox-next {
  right: 28px;
}

.khen-menu-s2-lightbox-thumbs {
  position: absolute;
  top: 14px;
  right: 84px;
  bottom: 14px;
  width: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(3, 14, 27, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px;
  border-radius: 5px;
}

.khen-menu-s2-lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.khen-menu-s2-lightbox-thumb {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  height: 96px;
  flex: 0 0 96px;
  margin-bottom: 4px;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.khen-menu-s2-lightbox-thumb:last-child {
  margin-bottom: 0;
}

.khen-menu-s2-lightbox-thumb:hover {
  opacity: 0.9;
}

.khen-menu-s2-lightbox-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px #ff7900;
}

.khen-menu-s2-lightbox-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 1024px) {
  .khen-menu-s2-tab {
    font-size: 18px;
  }

  .khen-menu-s2-group-inner::before,
  .khen-menu-s2-group-inner::after {
    width: 100px;
    height: 170px;
    opacity: 0.1;
  }

  .khen-menu-s2-nav {
    width: 38px;
    height: 38px;
  }

  .khen-menu-s2-prev {
    left: 4px;
  }

  .khen-menu-s2-next {
    right: 4px;
  }

  .khen-menu-s2-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .khen-menu-s2-lightbox-prev {
    left: 16px;
  }

  .khen-menu-s2-lightbox-next {
    right: 16px;
  }

  .khen-menu-s2-lightbox-thumbs {
    position: static;
    width: 100%;
    margin-top: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    background: transparent;
    border: 0;
    padding: 0;
  }

  .khen-menu-s2-lightbox-thumb {
    width: 58px;
    height: 88px;
    flex: 0 0 58px;
    margin-bottom: 0;
    margin-right: 4px;
  }

  .khen-menu-s2-lightbox-thumb:last-child {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .khen-menu-s2-inner {
    padding-bottom: 40px;
  }

  .khen-menu-s2-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: max(16px, calc((100vw - 1180px) / 2 + 16px));
    padding-right: max(16px, calc((100vw - 1180px) / 2 + 16px));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .khen-menu-s2-tabs::-webkit-scrollbar {
    display: none;
  }

  .khen-menu-s2-tab {
    flex: 0 0 auto;
    font-size: 16px;
  }

  .khen-menu-s2-group {
    padding: 22px 0 28px;
  }

  .khen-menu-s2-group-inner::before,
  .khen-menu-s2-group-inner::after {
    display: none;
  }

  .khen-menu-s2-group-title {
    min-width: 180px;
    font-size: 24px;
  }

  .khen-menu-s2-track {
    gap: 12px;
  }

  .khen-menu-s2-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .khen-menu-s2-nav {
    width: 36px;
    height: 36px;
  }

  .khen-menu-s2-nav i {
    width: 18px;
    height: 18px;
  }

  .khen-menu-s2-lightbox-dialog {
    width: 100%;
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .khen-menu-s2-lightbox-image {
    min-height: 240px;
    max-height: 65vh;
  }

  .khen-menu-s2-lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .khen-menu-s2-lightbox-prev {
    left: 10px;
  }

  .khen-menu-s2-lightbox-next {
    right: 10px;
  }

  .khen-menu-s2-lightbox-title {
    font-size: 18px;
  }

  .khen-menu-s2-lightbox-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .khen-menu-s2-lightbox-tabs::-webkit-scrollbar {
    display: none;
  }

  .khen-menu-s2-lightbox-tab {
    font-size: 14px;
    padding: 8px 14px;
  }
}
