
/* ==========================================
 PHẦN 08 - QUY TRÌNH SẢN XUẤT
 SVG TIMELINE - 5 BƯỚC - 5 HÌNH ẢNH
========================================== */

.dpt08,
.dpt08 *,
.dpt08 *::before,
.dpt08 *::after {
  box-sizing: border-box;
}

.dpt08,
.dpt08 * {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.dpt08 {
  width: 100%;
  padding: 35px 24px 60px;
  background: #ffffff;
  color: #204a91;
}

/* BỐ CỤC DESKTOP */

.dpt08-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  gap: 55px;
  align-items: stretch;
}

/* KHUNG HÌNH ẢNH */

.dpt08-image-box {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #e7eaf0;
}

/* 5 ẢNH CHỒNG LÊN NHAU */

.dpt08-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;

  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  z-index: 0;

  transition:
    opacity .65s ease,
    transform 1s ease,
    visibility .65s ease;
}

/* ẢNH ĐANG HIỂN THỊ */

.dpt08-image.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

/* CỘT NỘI DUNG */

.dpt08-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 0;
}

/* TIÊU ĐỀ */

.dpt08 h2.dpt08-heading {
  margin: 0 0 38px !important;
  padding: 0 !important;
  color: #204a91 !important;
  font-size: clamp(29px,2.9vw,36px) !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
}

/* TIMELINE */

.dpt08-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* SVG ĐƯỜNG NỐI */

.dpt08-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.dpt08-base-path {
  fill: none;
  stroke: #c8e8f6;
  stroke-width: 2;
  stroke-linecap: round;
}

.dpt08-active-path {
  fill: none;
  stroke: #204a91;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* BƯỚC */

.dpt08-step {
  position: relative;
  z-index: 1;
  padding-bottom: 13px;
}

/* NÚT */

.dpt08 button.dpt08-trigger {
  display: flex !important;
  align-items: center;
  gap: 25px;
  width: 100%;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #204a91 !important;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

/* VÒNG TRÒN SỐ */

.dpt08-circle {
  position: relative;
  z-index: 2;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d0eaf6;
  border-radius: 50%;
  background: #ffffff;
  color: #204a91;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;

  transition:
    background .55s ease,
    border-color .55s ease,
    color .55s ease,
    transform .55s ease;
}

/* TÊN BƯỚC */

.dpt08-step-name {
  display: block;
  color: #204a91 !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

/* BƯỚC ĐANG CHỌN */

.dpt08-step.is-active .dpt08-circle {
  background: #204a91;
  border-color: #204a91;
  color: #ffffff;
  transform: scale(1.05);
}

/* MỞ ĐÓNG NỘI DUNG */

.dpt08-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;

  transition:
    grid-template-rows .85s cubic-bezier(.22,1,.36,1),
    opacity .65s ease,
    visibility .65s ease;
}

.dpt08-step.is-active .dpt08-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}

.dpt08-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding-left: 65px;
}

.dpt08-panel p {
  margin: 0 !important;
  padding: 7px 0 20px !important;
  color: #424854 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

/* HOVER */

@media (hover:hover) {

  .dpt08-trigger:hover .dpt08-circle {
    border-color: #204a91;
    transform: scale(1.06);
  }

  .dpt08-trigger:hover .dpt08-step-name {
    color: #0870c9 !important;
  }
}

/* FOCUS */

.dpt08-trigger:focus-visible {
  outline: 2px solid #204a91;
  outline-offset: 4px;
}

/* TABLET */

@media (min-width:768px) and (max-width:1100px) {

  .dpt08-container {
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
  }

  .dpt08 h2.dpt08-heading {
    font-size: 28px !important;
  }

  .dpt08-step-name {
    font-size: 17px;
  }

  .dpt08-panel p {
    font-size: 15px !important;
  }
}

/* MOBILE */

@media (max-width:767px) {

  .dpt08 {
    padding: 25px 12px 45px;
  }

  .dpt08-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .dpt08-image-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .dpt08-content {
    width: 100%;
    padding: 0;
  }

  .dpt08 h2.dpt08-heading {
    margin-bottom: 28px !important;
    font-size: clamp(24px,6.2vw,30px) !important;
    line-height: 1.35 !important;
  }

  .dpt08-step {
    padding-bottom: 13px;
  }

  .dpt08 button.dpt08-trigger {
    gap: 18px;
    min-height: 50px;
  }

  .dpt08-circle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .dpt08-step-name {
    font-size: 17px;
  }

  .dpt08-panel-inner {
    padding-left: 56px;
  }

  .dpt08-panel p {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
}

/* MOBILE NHỎ */

@media (max-width:360px) {

  .dpt08 h2.dpt08-heading {
    font-size: 22px !important;
  }

  .dpt08-step-name {
    font-size: 14px;
  }
}

/* GIẢM CHUYỂN ĐỘNG */

@media (prefers-reduced-motion:reduce) {

  .dpt08 *,
  .dpt08 *::before,
  .dpt08 *::after {
    transition: none !important;
    animation: none !important;
  }

  .dpt08-image {
    transform: none !important;
  }
}


