/* =========================================================
   Value + Why (Figma Rect 2944:53849 — why bg #10096c → #005AE1)
   ========================================================= */

.p-tkw-update .value {
  margin-top: 200px;
}

@media screen and (max-width: 991px) {
  .p-tkw-update .value {
    margin-top: 80px;
  }
}

/* Section invest — bỏ margin-bottom (theme: margin 10rem 0 20rem) */
.p-tkw-update .invest {
  margin-bottom: 0 !important;
  /* Room for rotated .decor; .main overflow-x:clip also clips y overflow */
  padding-top: 5rem;
  overflow: visible;
}

.p-tkw-update .invest-wrap {
  overflow: visible;
}

@media screen and (max-width: 991px) {
  .p-tkw-update .invest {
    margin-bottom: 0 !important;
    padding-top: 0;
  }
}

/*
 * Invest side decors: full 4:3 photo in tilted frame.
 * Base theme fixed height (12rem square-ish) cropped the new landscape assets;
 * .main overflow-x:clip was cutting rotated corners.
 */
.p-tkw-update .invest .decor {
  top: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.p-tkw-update .invest .decor-1 {
  left: 1.5rem;
  width: 15rem;
  transform: rotate(-21.773deg);
  transform-origin: center center;
}

.p-tkw-update .invest .decor-2 {
  right: 1.5rem;
  width: 15rem;
  transform: rotate(15.353deg);
  transform-origin: center center;
}

.p-tkw-update .invest .decor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media screen and (max-width: 1200px) {
  .p-tkw-update .invest .decor {
    height: auto;
  }

  .p-tkw-update .invest .decor-1 {
    width: 14rem;
  }

  .p-tkw-update .invest .decor-2 {
    width: 16rem;
  }
}

/*
 * section.why — theo ảnh: nền sáng, accent xanh/cam
 * (bỏ theme tối #10096c→#005AE1)
 */
.p-tkw-update .why {
  position: relative;
  padding-top: 20rem;
  padding-bottom: 10rem;
  color: #131313;
  background:
    radial-gradient(
      50% 50% at 85% 70%,
      rgba(59, 105, 178, 0.18) 0%,
      rgba(59, 105, 178, 0) 100%
    ),
    #fff;
  overflow: visible;
}

.p-tkw-update .why .tt,
.p-tkw-update .why .title-24,
.p-tkw-update .why .title-40 {
  color: #131313;
}

.p-tkw-update .why .text-14,
.p-tkw-update .why .why-content_title .text-14 {
  color: #656565;
}

.p-tkw-update .why .tt span {
  background: linear-gradient(90deg, #005ae1 0%, #10096c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-tkw-update .why .heading-cate {
  border-color: #005ae1;
}

.p-tkw-update .why .heading-cate span,
.p-tkw-update .why .heading-cate .text-20 {
  color: #005ae1;
  background: none;
  -webkit-text-fill-color: #005ae1;
}

.p-tkw-update .why .why-content .btn-sec {
  background: linear-gradient(90deg, #fd6624 0%, #e54600 100%);
  border: none;
  color: #fff;
}

.p-tkw-update .why .why-content .btn-sec span {
  color: #fff;
}

.p-tkw-update .why .why-content .btn-sec img {
  filter: brightness(0) invert(1);
}

.p-tkw-update .why .swiper-pagination-current {
  color: #131313;
}

.p-tkw-update .why .swiper-pagination-total,
.p-tkw-update .why .swiper-pagination-sep {
  color: #d0d0d0;
}

/* prev: viền cam / next: nền cam (theo ảnh) */
.p-tkw-update .why .swiper-navigation .prev {
  background: #fff;
  border-color: #fd6624;
}

.p-tkw-update .why .swiper-navigation .next {
  background: linear-gradient(90deg, #fd6624 0%, #e54600 100%);
  border-color: transparent;
}

.p-tkw-update .why .swiper-navigation .next::before {
  opacity: 0;
}

.p-tkw-update .why .swiper-navigation .prev img {
  /* icon tối → cam */
  filter: invert(48%) sepia(98%) saturate(1800%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

.p-tkw-update .why .swiper-navigation .next img {
  filter: brightness(0) invert(1);
}

/* =========================================================
   Process — decor radial (đè sdn-custom content:none)
   ========================================================= */

/* Process: giữ sticky + chặn tràn ngang từ radial decor
 * Không dùng overflow:hidden trên ancestor của .process-flex-sticky
 * (overflow ≠ visible sẽ hủy position:sticky). */
.p-tkw-update .process {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.p-tkw-update .process .bg-circle-all {
  position: relative;
  overflow: visible;
}

/* Cột ảnh sticky trong cột trái (cột vẫn stretch theo list bước) */
@media (min-width: 992px) {
  .p-tkw-update .process .process-flex-sticky {
    position: sticky;
    top: 120px;
  }
}

/* Trái — cam nửa vòng (nửa phải), cách bottom 145px */
.p-tkw-update .process .bg-circle-all::before {
  content: "" !important;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(126.2rem, 160vw);
  height: min(126.2rem, 160vw);
  border-radius: 50%;
  top: auto;
  right: auto;
  left: 0;
  bottom: 145px;
  transform: translateX(-50%);
  clip-path: inset(0 0 0 50%);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(255, 145, 46, 0.25) 0%,
    rgba(255, 145, 46, 0) 100%
  );
}

/* Góc phải trên — xanh nửa vòng (nửa trái) */
.p-tkw-update .process .bg-circle-all::after {
  content: "" !important;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: min(126.2rem, 160vw);
  height: min(126.2rem, 160vw);
  border-radius: 50%;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  transform: translate(50%, -30%);
  clip-path: inset(0 50% 0 0);
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(59, 105, 178, 0.25) 0%,
    rgba(59, 105, 178, 0) 100%
  );
}

.p-tkw-update .process .container {
  position: relative;
  z-index: 1;
}

/* Why + globe: chặn tràn ngang ở section/container — không clip swiper-wrapper
 * (creative effect cần wrapper overflow visible; clip sẽ làm slide trắng/biến mất). */
.p-tkw-update .why,
.p-tkw-update .why .container {
  overflow-x: clip;
}

.p-tkw-update .why .why-main .swiper {
  overflow: visible;
}

.p-tkw-update .why .why-main .swiper-wrapper {
  overflow: visible;
}

.p-tkw-update .why .why-thumb .swiper {
  overflow: hidden;
}

.p-tkw-update .img-globe-front,
.p-tkw-update .img-globe-back {
  max-width: none;
}

.p-tkw-update .img-globe-i,
.p-tkw-update .create .img-globe,
.p-tkw-update .invest .img-globe {
  overflow: hidden;
}

/* Clients wrap: chặn marquee không kéo rộng document */
.p-tkw-update .sdn-clients-wrap {
  overflow-x: clip;
}

/*
 * Value chevron — thuần CSS (data-URI), không phụ thuộc PHP/img.
 * sdn-custom mobile từng `content: none` trên ::after → ghi đè !important.
 * Ẩn .value-item_chevron markup nếu có để tránh double icon.
 */
.p-tkw-update .value-item_title {
  max-width: calc(100% - 3.6rem);
}

.p-tkw-update .value-item_chevron {
  display: none !important;
}

.p-tkw-update .value-item_box::after {
  content: "" !important;
  position: absolute;
  top: 2.4rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19 9l-5.687 5.687a1.8 1.8 0 01-2.626 0L5 9' stroke='%23131313' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat !important;
  opacity: 1;
  transform: rotate(0deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.p-tkw-update .value-item:first-child .value-item_box::after {
  top: 0;
}

.p-tkw-update .value-item.active .value-item_box::after {
  opacity: 0;
}

@media screen and (max-width: 993px) {
  .p-tkw-update .value-item_collapse {
    padding-top: 0;
    grid-template-rows: 0fr;
  }

  .p-tkw-update .value-item.active .value-item_collapse {
    padding-top: 1.6rem;
    grid-template-rows: 1fr;
  }

  .p-tkw-update .value-item_title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    padding-right: 0;
  }

  .p-tkw-update .value-item_box::after {
    top: 1.6rem;
    width: 2.2rem;
    height: 2.2rem;
    background-size: 20px 20px !important;
    opacity: 1 !important;
  }

  .p-tkw-update .value-item:first-child .value-item_box::after {
    top: 0;
  }

  /* Mobile: xoay khi mở thay vì ẩn */
  .p-tkw-update .value-item.active .value-item_box::after {
    opacity: 1 !important;
    transform: rotate(180deg);
  }
}

/* Mobile TKW — rút khoảng trống + đồng bộ scale chữ/ảnh */
@media screen and (max-width: 767px) {
  .p-tkw-update .value {
    margin-top: 48px !important;
  }

  .p-tkw-update .why {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .p-tkw-update .invest {
    margin: 48px 0 !important;
    padding-top: 0;
  }

  .p-tkw-update .create {
    margin-block: 48px;
  }

  .p-tkw-update .process {
    margin-block: 48px;
  }

  .p-tkw-update .sdn-industry {
    padding-block: 48px;
  }

  .p-tkw-update .pro {
    padding: 64px 0;
  }

  /* Type scale: section title ~22px, body ~13–14px */
  .p-tkw-update .title-40,
  .p-tkw-update .tt.tt-1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .p-tkw-update .heading-cate .text-20,
  .p-tkw-update .heading-cate p {
    font-size: 1.4rem;
  }

  .p-tkw-update .value-item_title {
    font-size: 1.6rem;
    line-height: 1.35;
  }

  .p-tkw-update .value-item_box {
    padding: 1.6rem 0;
  }

  /* Ảnh accordion / create / why gọn hơn */
  .p-tkw-update .value-item_inner .value-tab_img,
  .p-tkw-update .value-item_inner .value-tab_img .img,
  .p-tkw-update .value-item_inner .value-tab_img img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .p-tkw-update .beforeAfter {
    border-radius: 16px;
  }

  .p-tkw-update .why-main {
    width: 78%;
  }

  .p-tkw-update .why-img .img,
  .p-tkw-update .why-img img {
    max-height: 240px;
    object-fit: cover;
  }

  .p-tkw-update .invest .decor-1,
  .p-tkw-update .invest .decor-2 {
    width: 9.5rem;
  }

  .p-tkw-update .robot-component {
    max-width: 100%;
  }
}
