/* =========================================================================
   Homepage — About section (2 columns: text left, image right)
   ========================================================================= */

.hp-about {
  padding: 0;
  max-width: 1920px;
  margin: 0 auto;
  background: #FAFAFA;
}

.hp-about__grid {
  display: grid;
  grid-template-columns: 3.5fr 6.5fr;
  gap: 40px;
  align-items: stretch;
  min-height: 580px;
}

@media screen and (min-width: 1025px) {
  .hp-about__grid {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.admin-bar .hp-about__grid {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
  }
}

@media screen and (max-width: 1024px) {
  .hp-about__grid {
    min-height: 0;
  }
}

/* --- Left column: content aligns to container's left ---- */
.hp-about__left {
  display: flex;
  align-items: center;
}

/* Content padding-left = site container's left padding, để canh trái theo container. */
.hp-about__content {
  width: 100%;
  padding: 80px 0;
  padding-left: calc((100vw - var(--container-max)) / 2 + 15px);
  box-sizing: border-box;
}

.hp-about__content > .container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hp-about__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-about__title {
  margin: 0;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 30px;
  line-height: 136%;
  letter-spacing: 0.01em;
}

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

.hp-about__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 40px;
  background: #293948;
  color: #FFFFFF;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a.hp-about__btn:hover,
a.hp-about__btn:focus,
a.hp-about__btn:active {
  background: #D85401;
  color: #FFFFFF;
}

/* --- Modifier: white background -------------------------------------------- */
.hp-about--white {
  background: #FFFFFF;
}

/* --- Right column: full-bleed image ---------------------------------------- */
.hp-about__right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hp-about__right img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hp-about__right video,
.hp-about__right iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Media wrapper (video variant: poster + play button, sau khi play -> iframe/video) - */
.hp-about__media {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
}

.hp-about__media .hp-about__poster {
  display: block;
  width: 100%;
  height: auto;
}

.hp-about__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.hp-about__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.hp-about__play svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hp-about__media.is-playing .hp-about__poster,
.hp-about__media.is-playing .hp-about__play {
  display: none;
}

.hp-about__media iframe,
.hp-about__media video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* --- Responsive ------------------------------------------------------------ */
@media screen and (max-width: 1024px) {
  .hp-about__content {
    padding: 56px 0;
    padding-left: calc((100vw - var(--container-max)) / 2 + 15px);
  }

  .hp-about__content > .container {
    gap: 32px;
  }
}

@media screen and (max-width: 767px) {
  .hp-about__grid {
    grid-template-columns: 1fr;
  }

  .hp-about__content {
    width: 100%;
    padding: 40px 15px;
  }

  .hp-about__content > .container {
    gap: 24px;
  }

  .hp-about__title {
    font-size: 24px;
  }

  /* When stacked, the right column has no intrinsic height (image is absolute),
     so give it an explicit height so the image actually shows. */
  .hp-about__right {
    height: 320px;
    max-height: none;
  }
}
