.khen-ckk-s2 {
  --khen-ckk-canvas-w: 2000;
  --khen-ckk-canvas-h: 2222;
  --khen-ckk-canvas-max: 2000px;
  --khen-ckk-article-max: 1080px;
  --khen-ckk-focus-x: 50%;
  --khen-ckk-focus-y: top;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background-color: #fff7ea;
}

.khen-ckk-s2-stage {
  position: relative;
  width: 100%;
}

.khen-ckk-s2-stage::before {
  content: "";
  position: absolute;
  inset: -44px;
  background-image: var(--khen-ckk-s2-bg-image, none);
  background-repeat: no-repeat;
  background-position: var(--khen-ckk-focus-x) var(--khen-ckk-focus-y);
  background-size: cover;
  filter: blur(26px);
  opacity: 0;
  transform: scale(1.08);
  z-index: 0;
  pointer-events: none;
}

.khen-ckk-s2-canvas {
  position: relative;
  z-index: 1;
  width: min(100vw, var(--khen-ckk-canvas-max));
  aspect-ratio: calc(var(--khen-ckk-canvas-w) / var(--khen-ckk-canvas-h));
  margin: 0 auto;
  overflow: hidden;
}

.khen-ckk-s2-canvas::before,
.khen-ckk-s2-canvas::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 78px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 160ms ease;
}

.khen-ckk-s2-canvas::before {
  left: 0;
  background: linear-gradient(to right, rgba(18, 37, 77, 0.36), rgba(18, 37, 77, 0));
}

.khen-ckk-s2-canvas::after {
  right: 0;
  background: linear-gradient(to left, rgba(18, 37, 77, 0.36), rgba(18, 37, 77, 0));
}

.khen-ckk-s2-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--khen-ckk-focus-x) var(--khen-ckk-focus-y);
  user-select: none;
  pointer-events: none;
}

.khen-ckk-s2-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.khen-ckk-s2-article {
  position: absolute;
  left: 50%;
  top: var(--y);
  transform: translateX(-50%);
  width: min(var(--khen-ckk-article-max), calc(100% - 64px));
  display: flex;
  align-items: center;
}

.khen-ckk-s2-article--khen {
  left: 40%;
  justify-content: flex-end;
}

.khen-ckk-s2-article--cham {
  justify-content: space-between;
  gap: 20px;
}

.khen-ckk-s2-article--daquy {
  justify-content: flex-start;
}

.khen-ckk-s2-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1vw, 16px);
}

.khen-ckk-s2-article--khen .khen-ckk-s2-copy {
  max-width: 360px;
}

.khen-ckk-s2-article--cham .khen-ckk-s2-copy {
  flex: 0 0 280px;
  max-width: 280px;
}

.khen-ckk-s2-article--daquy .khen-ckk-s2-copy {
  max-width: 430px;
}

.khen-ckk-s2-heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.2vw, 24px);
}

.khen-ckk-s2-copy--dark {
  color: #ffffff;
}

.khen-ckk-s2-copy--light {
  color: #0f0f0f;
}

.khen-ckk-s2-mark {
  margin: 0;
  line-height: 0;
}

.khen-ckk-s2-mark img {
  display: block;
  width: clamp(54px, 3.6vw, 72px);
  height: auto;
}

.khen-ckk-s2-title {
  margin: 0;
  font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
  font-size: clamp(19px, 1.3vw, 24px);
  line-height: 1.5;
  font-weight: 400;
}

.khen-ckk-s2-title--daquy {
  display: inline-block;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .khen-ckk-s2-title {
    font-size: 80px;
    line-height: 1;
    width: min-content;
    max-width: 100%;
    text-transform: lowercase;
    margin-top: -10px;
  }

  .khen-ckk-s2-title--daquy {
    display: inline-block;
    width: auto;
    text-transform: none;
    margin-top: 0;
  }

}

.khen-ckk-s2-desc {
  margin: 0;
  font-family: "Khen BeVietnamPro", sans-serif;
  font-size: clamp(14px, 0.88vw, 16px);
  line-height: 1.5;
  max-width: 280px;
}

.khen-ckk-s2-media {
  width: 530px;
  max-width: 530px;
  flex: 0 0 530px;
  aspect-ratio: 700 / 530;
}

.khen-ckk-s2-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.khen-ckk-s2-copy--khen {
  align-items: flex-start;
}

.khen-ckk-s2-copy--cham {
  align-items: flex-start;
}

.khen-ckk-s2-copy--cham .khen-ckk-s2-mark {
  display: none;
}

.khen-ckk-s2-copy--cham .khen-ckk-s2-heading {
  gap: 0;
}

.khen-ckk-s2-title--cham {
  width: auto;
  max-width: 100%;
  line-height: 1;
  text-transform: lowercase;
  margin-top: -4px;
}

.khen-ckk-s2-title-cham-line {
  display: flex;
  align-items: center;
}

.khen-ckk-s2-title-cham-line--top {
  gap: clamp(8px, 0.8vw, 14px);
}

.khen-ckk-s2-title-cham-line--bottom {
  display: block;
}

.khen-ckk-s2-title-cham-word {
  display: block;
}

.khen-ckk-s2-title-cham-icon {
  display: block;
  width: clamp(54px, 3.6vw, 72px);
  height: auto;
  margin-top: 0;
}

.khen-ckk-s2-copy--cham .khen-ckk-s2-desc {
  position: relative;
  margin-top: 10px;
  padding-top: 14px;
  max-width: 280px;
}

.khen-ckk-s2-copy--cham .khen-ckk-s2-desc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(100%, 360px);
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
}

.khen-ckk-s2-copy--khen .khen-ckk-s2-desc,
.khen-ckk-s2-copy--da-quy .khen-ckk-s2-desc {
  position: relative;
  margin-top: 10px;
  padding-top: 14px;
}

.khen-ckk-s2-copy--da-quy .khen-ckk-s2-desc {
  max-width: 430px;
}

.khen-ckk-s2-copy--khen .khen-ckk-s2-desc::before,
.khen-ckk-s2-copy--da-quy .khen-ckk-s2-desc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(100%, 360px);
  height: 2px;
  background: #ff7900;
}

.khen-ckk-s2-copy--da-quy {
  align-items: flex-start;
}

.khen-ckk-s2-copy--khen .khen-ckk-s2-title {
  color: #002f68;
}

.khen-ckk-s2-copy--cham .khen-ckk-s2-title {
  color: #ff7900;
}

.khen-ckk-s2-copy--da-quy .khen-ckk-s2-title {
  color: #002f68;
}

.khen-ckk-s2-copy--da-quy .khen-ckk-s2-heading {
  position: relative;
  overflow: visible;
}
.khen-ckk--da-quy{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-direction: row-reverse;
}

.khen-ckk-s2-copy--da-quy .khen-ckk-s2-mark {
  position: relative;
  left: auto;
  top: 6px;
  transform: none;
  z-index: 1;
  pointer-events: none;
}

.khen-ckk-s2-copy--da-quy .khen-ckk-s2-mark img {
  width: clamp(54px, 3.6vw, 72px);
  height: auto;
  display: block;
  opacity: 1;
}

.khen-ckk-s2-copy--da-quy .khen-ckk-s2-title--daquy {
  position: relative;
  z-index: 2;
}

.khen-ckk-s2-mobile {
  display: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .khen-ckk-s2-article--khen {
    top: 8.6%;
  }

  .khen-ckk-s2-article--cham {
    top: 38.2%;
  }

  .khen-ckk-s2-article--daquy {
    top: 70%;
  }

  .khen-ckk-s2-article {
    width: min(var(--khen-ckk-article-max), calc(100% - 56px));
  }

  .khen-ckk-s2-title {
    font-size: 52px;
    line-height: 1;
    width: min-content;
    max-width: 100%;
    text-transform: lowercase;
    margin-top: -6px;
  }

  .khen-ckk-s2-title--daquy {
    width: auto;
    text-transform: none;
    margin-top: 0;
  }

  .khen-ckk-s2-desc {
    font-size: 15px;
    line-height: 1.45;
  }

  .khen-ckk-s2-copy,
  .khen-ckk-s2-article--khen .khen-ckk-s2-copy,
  .khen-ckk-s2-article--cham .khen-ckk-s2-copy,
  .khen-ckk-s2-article--daquy .khen-ckk-s2-copy {
    min-width: 240px;
    max-width: 350px;
  }

  .khen-ckk-s2-copy--cham .khen-ckk-s2-desc {
    max-width: 350px;
  }

  .khen-ckk-s2-copy--da-quy .khen-ckk-s2-desc {
    max-width: 350px;
  }

  .khen-ckk-s2-media {
    width: 300px;
    max-width: 300px;
    flex-basis: 300px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .khen-ckk-s2-copy { gap: 14px; }

  .khen-ckk-s2-desc {
    line-height: 1.45;
  }

  .khen-ckk-s2-copy--cham .khen-ckk-s2-desc {
    max-width: 280px;
  }

  .khen-ckk-s2-media {
    width: 58%;
    max-width: 700px;
    flex-basis: 58%;
  }
}

@media (max-width: 767px) {
  .khen-ckk-s2 {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .khen-ckk-s2-stage::before {
    opacity: 0.42;
  }

  .khen-ckk-s2-canvas {
    width: 100%;
    aspect-ratio: calc(var(--khen-ckk-canvas-w) / var(--khen-ckk-canvas-h));
    min-height: clamp(620px, 128vw, 980px);
  }

  .khen-ckk-s2-canvas-bg {
    opacity: 1;
  }

  .khen-ckk-s2-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
  }

  .khen-ckk-s2-article {
    display: none;
  }

  .khen-ckk-s2-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .khen-ckk-s2-mobile-media {
    display: none;
  }

  .khen-ckk-s2-mobile-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    padding: 0 2px 6px;
  }

  .khen-ckk-s2-mobile-carousel::-webkit-scrollbar {
    display: none;
  }

  .khen-ckk-s2-mobile-card {
    flex: 0 0 calc(100% - 40px);
    min-height: 222px;
    border-radius: 16px;
    padding: 16px 14px;
    scroll-snap-align: start;
  }

  .khen-ckk-s2-mobile-card--light {
    background: rgba(255, 247, 234, 0.3);
    color: #102541;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .khen-ckk-s2-mobile-card--dark {
    background: rgba(0, 47, 104, 0.3);
    color: #ffffff;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .khen-ckk-s2-mobile-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }

  .khen-ckk-s2-mobile-heading--daquy {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .khen-ckk-s2-mobile-mark {
    margin: 0;
    line-height: 0;
    flex: 0 0 auto;
  }

  .khen-ckk-s2-mobile-mark img,
  .khen-ckk-s2-mobile-cham-icon {
    width: 44px;
    height: auto;
    display: block;
  }

  .khen-ckk-s2-mobile-title {
    margin: 0;
    font-family: var(--khen-font-gesco, "Khen Gesco", "Khen BeVietnamPro", sans-serif);
    font-size: 32px;
    line-height: 0.95;
    font-weight: 400;
    text-transform: lowercase;
  }

  .khen-ckk-s2-mobile-title--khen {
    color: #002f68;
  }

  .khen-ckk-s2-mobile-title--cham {
    color: #ff7900;
  }

  .khen-ckk-s2-mobile-title--daquy {
    color: #002f68;
    text-transform: none;
  }

  .khen-ckk-s2-mobile-cham-line {
    display: block;
  }

  .khen-ckk-s2-mobile-cham-line--top {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .khen-ckk-s2-mobile-cham-icon {
    display: none;
  }

  .khen-ckk-s2-mobile-desc {
    margin: 12px 0 0;
    padding-top: 12px;
    font-family: "Khen BeVietnamPro", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    border-top: 2px solid rgba(255, 255, 255, 0.92);
  }

  .khen-ckk-s2-mobile-card--light .khen-ckk-s2-mobile-desc {
    border-top-color: #ff7900;
    color: #0f0f0f;
  }

  .khen-ckk-s2-mobile-card--dark .khen-ckk-s2-mobile-desc {
    border-top-color: rgba(255, 255, 255, 0.92);
    color: #ffffff;
  }
}

@media (min-width: 2001px) {
  .khen-ckk-s2 {
    --khen-ckk-article-max: clamp(1080px, calc(1080px + (100vw - 2000px) * 0.24), 1440px);
  }

  .khen-ckk-s2-canvas {
    width: 100vw;
  }

  .khen-ckk-s2-stage::before {
    opacity: 0;
  }

  .khen-ckk-s2-canvas::before,
  .khen-ckk-s2-canvas::after {
    opacity: 0;
  }
}
