/* =========================================================================
   Builder sections — shared cover + per-section content

   Moi section deu co class .bs-section de JS toggle chung.
   Cover (phan collapse) dung chung .bs-cover* classes.
   Noi dung rieng dung .bs-section-N__* classes.
   ========================================================================= */

/* ============================= Shared cover ================================ */

.bs-section {
  padding: 0;
}

.bs-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #293948;
}

.bs-cover__video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bs-cover > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.bs-cover__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.bs-cover__title,
.bs-cover__desc {
  text-align: left;
}

.bs-cover__title {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 28px;
  line-height: 135%;
  letter-spacing: 0.01em;
}

.bs-cover__desc {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Toggle button --------------------------------------------------------- */
.bs-cover__toggle-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bs-cover__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  margin: 0;
  border: 0;
  border-radius: 24px;
  background: #FFFFFF;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.bs-cover__toggle:hover {
  background: #D85401;
}

.bs-cover__toggle:hover .bs-cover__icon-open path {
  stroke: #FFFFFF;
}

.bs-cover__toggle svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

.bs-cover__icon-open {
  display: block;
}

.bs-cover__icon-close {
  display: none;
}

.bs-cover__toggle-label {
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

/* --- Open state (shared) --------------------------------------------------- */
.bs-section.is-open .bs-cover__toggle {
  background: #D85401;
}

.bs-section.is-open .bs-cover__icon-open {
  display: none;
}

.bs-section.is-open .bs-cover__icon-close {
  display: block;
}

.bs-section.is-open .bs-cover__toggle-label {
  display: none;
}

/* --- Expandable body (shared, JS-driven height animation) ------------------ */
.bs-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bs-section.is-open .bs-body {
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease 0.1s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.bs-section--always-open .bs-body {
  overflow: visible;
  max-height: none;
  opacity: 1;
  transform: none;
  transition: none;
}

/* --- Desktop: full viewport ------------------------------------------------ */
@media screen and (min-width: 1025px) {
  .bs-section {
    width: 100%;
  }

  .bs-cover {
    width: 100%;
    min-height: 85vh;
    min-height: 85dvh;
  }
}

/* --- Tablet: auto aspect-ratio --------------------------------------------- */
@media screen and (max-width: 1024px) {
  .bs-cover {
    aspect-ratio: auto;
    min-height: auto;
    padding: 60px 20px;
    gap: 32px;
  }
}

/* --- Mobile: auto aspect-ratio --------------------------------------------- */
@media screen and (max-width: 767px) {
  .bs-cover {
    aspect-ratio: auto;
    min-height: auto;
    padding: 48px 16px;
    gap: 24px;
  }

  .bs-cover__title {
    font-size: 20px;
    padding: 0;
  }
}


/* ============================= Section 1 =================================== */
/* Cover + alternating image/text rows                                         */

.bs-section-1__inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1070px;
  margin: 0 auto;
  padding: 75px 15px;
}

.bs-section-1__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.bs-section-1__row:nth-child(even) .bs-section-1__row-img {
  order: 2;
}

.bs-section-1__row:nth-child(even) .bs-section-1__row-text {
  order: 1;
}

.bs-section-1__row-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F6F8;
}

.bs-section-1__row-img img,
.bs-section-1__row-img iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 8px;
}

/* Media wrapper (image / youtube) */
.bs-section-1__media {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border-radius: 8px;
}

.bs-section-1__media--youtube {
  aspect-ratio: 4 / 3;
  max-height: none;
}

.bs-section-1__media--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Carousel (>1 slide) */
.bs-section-1__carousel {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: none;
}

.bs-section-1__swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.bs-section-1__carousel .swiper-wrapper,
.bs-section-1__carousel .swiper-slide {
  height: 100%;
}

/* Nut nav nam duoi giua carousel */
.bs-section-1__prev,
.bs-section-1__next {
  position: absolute;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bs-section-1__prev { left: calc(50% - 48px); }
.bs-section-1__next { left: calc(50% + 8px); }

.bs-section-1__prev:hover,
.bs-section-1__next:hover {
  opacity: 0.85;
}

.bs-section-1__prev svg,
.bs-section-1__next svg {
  width: 40px;
  height: 40px;
  display: block;
  pointer-events: none;
}

.bs-section-1__row-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bs-section-1__row-title {
  margin: 0;
  color: #465E75;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.bs-section-1__row-content {
  color: #616161;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.bs-section-1__row-content p {
  margin: 0 0 12px;
}

.bs-section-1__row-content p:last-child {
  margin-bottom: 0;
}

.bs-section-1__row-content img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #F4F6F8;
  border-radius: 8px;
}

@media screen and (max-width: 767px) {
  .bs-section-1__inner {
    gap: 48px;
    padding: 48px 15px;
  }

  .bs-section-1__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bs-section-1__row:nth-child(even) .bs-section-1__row-img,
  .bs-section-1__row:nth-child(even) .bs-section-1__row-text {
    order: unset;
  }
}


/* ============================= Section 2 =================================== */
/* Table + image gallery with hover expand                                     */

.bs-section-2__inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1070px;
  margin: 0 auto;
  padding: 75px 15px;
}

/* --- Table ----------------------------------------------------------------- */
.bs-section-2__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  overflow: hidden;
}

.bs-section-2__table thead th {
  width: 50%;
  padding: 12px 16px;
  background: #293948;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
  text-align: left;
}

.bs-section-2__table thead th:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.bs-section-2__table tbody td {
  width: 50%;
  padding: 12px 16px;
  border-top: 1px solid #EEEEEE;
  vertical-align: middle;
  font-family: var(--font-hn);
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  color: #616161;
}

.bs-section-2__table tbody td:first-child {
  font-weight: 500;
  border-right: 1px solid #EEEEEE;
}

.bs-section-2__table tbody td:nth-child(n+2) {
  font-weight: 300;
}

/* --- Image gallery --------------------------------------------------------- */
.bs-section-2__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bs-section-2__gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bs-section-2__gallery-img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F6F8;
}

.bs-section-2__gallery-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Title an ban dau: max-height 0, hien khi hover cua cot -------------------- */
.bs-section-2__gallery-title {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  color: #465E75;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    padding-top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bs-section-2__gallery-item.is-hovered .bs-section-2__gallery-title,
.bs-section-2__gallery-item:hover .bs-section-2__gallery-title {
  max-height: 200px;
  opacity: 1;
  padding-top: 16px;
}

/* --- Section 2 responsive -------------------------------------------------- */
@media screen and (max-width: 767px) {
  .bs-section-2__inner {
    gap: 48px;
    padding: 48px 15px;
  }

  .bs-section-2__table thead th {
    font-size: 16px;
    padding: 10px 12px;
  }

  .bs-section-2__table tbody td {
    font-size: 14px;
    padding: 10px 12px;
  }

  .bs-section-2__gallery {
    grid-template-columns: 1fr;
  }

  .bs-section-2__gallery-item {
    grid-template-columns: 1fr;
  }

  .bs-section-2__gallery-item,
  .bs-section-2__gallery-item.is-hovered {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
    transition: none;
  }

  .bs-section-2__gallery-title {
    display: block;
    opacity: 1;
    margin-top: 12px;
    transition: none;
  }
}


/* ============================= Section 3 =================================== */
/* Cover + editor + feature grid + image gallery                              */

.bs-section-3__inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1070px;
  margin: 0 auto;
  padding: 75px 15px;
}

/* --- Editor ---------------------------------------------------------------- */
.bs-section-3__editor {
  color: #616161;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.bs-section-3__editor h2,
.bs-section-3__editor h3,
.bs-section-3__editor h4 {
  color: #293948;
  font-weight: 500;
  margin: 0 0 12px;
}

.bs-section-3__editor p {
  margin: 0 0 12px;
}

.bs-section-3__editor p:last-child {
  margin-bottom: 0;
}

.bs-section-3__editor img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #F4F6F8;
  border-radius: 8px;
}

/* --- Feature grid ---------------------------------------------------------- */
.bs-section-3__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bs-section-3__card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: #323F4866;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bs-section-3__card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 40px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.bs-section-3__card-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bs-section-3__card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-section-3__card-title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.bs-section-3__card-desc {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Image gallery --------------------------------------------------------- */
.bs-section-3__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bs-section-3__gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bs-section-3__gallery-img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F6F8;
}

.bs-section-3__gallery-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.bs-section-3__gallery-title {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  color: #465E75;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
  transition:
    max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    padding-top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bs-section-3__gallery-item:hover .bs-section-3__gallery-title {
  max-height: 200px;
  opacity: 1;
  padding-top: 16px;
}

/* --- Section 3 responsive -------------------------------------------------- */
@media screen and (max-width: 767px) {
  .bs-section-3__inner {
    gap: 48px;
    padding: 48px 15px;
  }

  .bs-section-3__features {
    grid-template-columns: 1fr;
  }

  .bs-section-3__card-title {
    font-size: 18px;
  }

  .bs-section-3__gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bs-section-3__gallery-title {
    display: block;
    opacity: 1;
    max-height: none;
    margin-top: 12px;
    padding-top: 0;
    transition: none;
  }
}

/* ============================= Section 4 =================================== */
/* Cover + diagram image + title + alternating rows                           */

.bs-section-4__inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1070px;
  margin: 0 auto;
  padding: 75px 15px;
}

/* --- Diagram --------------------------------------------------------------- */
.bs-section-4__diagram,
.bs-section-4__row-img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F6F8;
}

.bs-section-4__diagram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Content title --------------------------------------------------------- */
.bs-section-4__content {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.bs-section-4__content-title {
  margin: 0;
  text-align: center;
  color: #465E75;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 30px;
  line-height: 136%;
  letter-spacing: 0.01em;
}

/* --- Alternating rows ------------------------------------------------------ */
.bs-section-4__rows {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.bs-section-4__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.bs-section-4__row:nth-child(even) .bs-section-4__row-img {
  order: 2;
}

.bs-section-4__row:nth-child(even) .bs-section-4__row-text {
  order: 1;
}

.bs-section-4__row-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
}

.bs-section-4__row-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bs-section-4__row-title {
  margin: 0;
  color: #465E75;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.bs-section-4__row-desc {
  margin: 0;
  color: #616161;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- Section 4 responsive -------------------------------------------------- */
@media screen and (max-width: 767px) {
  .bs-section-4__inner {
    gap: 48px;
    padding: 48px 15px;
  }

  .bs-section-4__content {
    gap: 48px;
  }

  .bs-section-4__content-title {
    font-size: 24px;
  }

  .bs-section-4__rows {
    gap: 48px;
  }

  .bs-section-4__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bs-section-4__row:nth-child(even) .bs-section-4__row-img,
  .bs-section-4__row:nth-child(even) .bs-section-4__row-text {
    order: unset;
  }
}


/* ============================= Section 5 =================================== */
/* Cover + horizontal steps timeline + CTA + expandable body                 */

.bs-section-5 .bs-cover {
  gap: 48px;
  padding: 80px 15px 40px;
  min-height: 620px;
}

.bs-section-5 .bs-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(41, 57, 72, 0.95);
  z-index: 0;
}

.bs-section-5 .bs-cover > :not(.bs-cover__video) {
  position: relative;
  z-index: 1;
}

.bs-section-5 .bs-cover__title {
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bs-section-5__steps-wrap {
  width: 100%;
  /* padding-top de tooltip hover phia tren khong bi cat khi overflow-x auto */
  padding-top: 220px;
  margin-top: -220px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bs-section-5__steps-wrap::-webkit-scrollbar {
  display: none;
}

.bs-section-5__steps {
  --step-width: 150px;
  --step-gap: 40px;
  --arrow-size: 40px;
  display: flex;
  gap: var(--step-gap);
  justify-content: center;
  min-width: max-content;
  margin: 0 auto;
  padding: 0 15px;
}

.bs-section-5__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: var(--step-width);
  max-width: var(--step-width);
  flex-shrink: 0;
  text-align: center;
}

/* --- Tooltip hover popup ------------------------------------------------- */
.bs-section-5__step-tooltip {
  position: absolute;
  bottom: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 6px);
  width: 170px;
  padding: 28px 20px;
  border-radius: 12px;
  background: #D85401;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.25s;
  z-index: 5;
}

/* Mui ten nho duoi tooltip chi xuong icon buoc */
.bs-section-5__step-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #D85401;
}

.bs-section-5__step:hover .bs-section-5__step-tooltip,
.bs-section-5__step:focus-within .bs-section-5__step-tooltip,
.bs-section-5__step:has(.bs-section-5__step-arrow:hover) .bs-section-5__step-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.bs-section-5__step-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.bs-section-5__step-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bs-section-5__step-icon-img {
  transition: opacity 0.25s ease;
}

.bs-section-5__step-icon-img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.bs-section-5__step-label {
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.bs-section-5__step-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Hover state: hover vao bat cu dau trong buoc (text/icon/arrow) -> tat ca
   noi dung buoc doi mau cam, arrow nen cam icon trang, anh icon doi hover. */
.bs-section-5__step:hover .bs-section-5__step-arrow {
  background: #D85401;
  border-color: #D85401;
}

.bs-section-5__step:hover .bs-section-5__step-arrow svg path {
  stroke: #FFFFFF;
}

.bs-section-5__step:hover .bs-section-5__step-label,
.bs-section-5__step:hover .bs-section-5__step-desc {
  color: #D85401;
}

.bs-section-5__step:hover .bs-section-5__step-icon-img--default {
  opacity: 0;
}

.bs-section-5__step:hover .bs-section-5__step-icon-img--hover {
  opacity: 1;
}

.bs-section-5__step-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  width: calc(var(--step-width) - var(--arrow-size) + var(--step-gap));
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  pointer-events: none;
}

.bs-section-5__step:last-child .bs-section-5__step-arrow::after {
  display: none;
}

.bs-section-5__step-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
}

.bs-section-5__step-desc {
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

/* --- CTA button ---------------------------------------------------------- */
.bs-section-5__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 40px;
  background: #FFFFFF;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.bs-section-5__cta:hover,
.bs-section-5__cta:focus {
  background: #D85401;
  color: #FFFFFF;
}

/* --- Section 5 body (expandable, same as section-1) ---------------------- */
.bs-section-5__inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1070px;
  margin: 0 auto;
  padding: 75px 15px;
}

.bs-section-5__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.bs-section-5__row:nth-child(even) .bs-section-5__row-img {
  order: 2;
}

.bs-section-5__row:nth-child(even) .bs-section-5__row-text {
  order: 1;
}

.bs-section-5__row-img {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F6F8;
}

.bs-section-5__row-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.bs-section-5__row-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bs-section-5__row-title {
  margin: 0;
  color: #465E75;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
}

.bs-section-5__row-content {
  color: #616161;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.bs-section-5__row-content p {
  margin: 0 0 12px;
}

.bs-section-5__row-content p:last-child {
  margin-bottom: 0;
}

.bs-section-5__row-content img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #F4F6F8;
  border-radius: 8px;
}

/* --- Section 5 responsive ------------------------------------------------ */
@media screen and (max-width: 1024px) {
  .bs-section-5__steps {
    --step-width: 140px;
    --step-gap: 32px;
  }
}

@media screen and (max-width: 767px) {
  .bs-section-5 .bs-cover {
    min-height: 600px;
    padding: 48px 15px 32px;
    gap: 32px;
  }

  .bs-section-5__steps {
    --step-width: 130px;
    --step-gap: 24px;
    padding: 0 24px;
    justify-content: flex-start;
  }

  .bs-section-5__step-label {
    font-size: 18px;
  }

  .bs-section-5__step-desc {
    font-size: 14px;
  }

  .bs-section-5__inner {
    gap: 48px;
    padding: 48px 15px;
  }

  .bs-section-5__row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bs-section-5__row:nth-child(even) .bs-section-5__row-img,
  .bs-section-5__row:nth-child(even) .bs-section-5__row-text {
    order: unset;
  }
}


/* --- Overlay Hover for Section 2 Gallery --- */
.bs-section-2__gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
}
.bs-section-2__gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.bs-section-2__gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.bs-section-2__gallery-item:hover::before { opacity: 1; }
.bs-section-2__gallery-item:hover img { transform: none; }
.bs-section.bs-section-5 .bs-cover > .container{
  align-items: center;
}
.bs-section.bs-section-5 .bs-cover__header {
  text-align: center;
  align-items: center;
}

/* Product detail Page Builder: descriptions default to justified text.
   Inline editor alignment (left/center/right/justify) remains authoritative. */
.single-product .bs-cover__desc,
.single-product .bs-section-1__row-content,
.single-product .bs-section-3__editor,
.single-product .bs-section-3__card-desc,
.single-product .bs-section-4__row-desc,
.single-product .bs-section-5__step-desc,
.single-product .bs-section-5__row-content,
.single-product .bs-section-2__table tbody td {
  text-align: justify;
  text-align-last: left;
}

.single-product .bs-body .has-text-align-left { text-align: left; }
.single-product .bs-body .has-text-align-center { text-align: center; }
.single-product .bs-body .has-text-align-right { text-align: right; }
.single-product .bs-body .has-text-align-justify { text-align: justify; }
