/* template-parts/section/feature_hero.php */
/* ----------------------------------------------------------
   Hero 
---------------------------------------------------------- */

/* --- Desktop (mặc định) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0) 100%
  ); */

  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 96.53%);
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: var(--section-py) var(--section-px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero__content {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  min-height: 100%;
  margin: 0 auto;
}

.hero__textbox {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(752px, 100%);
  min-height: 400px;
  justify-content: center;
}

.hero__title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: var(--lh-3xl);
  letter-spacing: -0.4px;
  color: var(--color-text-light);
}

.hero__body {
  min-width: 0;
  width: 100%;
}

.hero__body p {
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: var(--lh-md);
  color: var(--color-text-light);
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 1024px) {
  .hero {
    height: 100vh;
  }
  .hero__heading {
    font-size: 40px;
    line-height: 52px;
  }
}

@media (max-width: 767.9px) {
  .hero {
    height: 100svh;
  }
  .hero__heading {
    font-size: 30px;
    line-height: 38px;
  }
  .hero__body {
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
  }
}

/* Desktop: mobile body hidden; desktop bodies visible */
.hero__body--desktop-primary p {
  width: min(595px, 100%);
  margin-bottom: 20px;
}
.hero__body--desktop-primary p:last-child {
  margin-bottom: 0;
}
.hero__body--mobile {
  display: none;
}

/* --- Tablet: 768px–1200px --- */
@media (min-width: 768px) and (max-width: 1200px) {
  .hero {
    height: 560px;
  }

  .hero__title {
    font-size: 40px;
    line-height: 52px;
  }

  .hero__textbox {
    width: 100%;
    min-height: auto;
  }
}

/* --- Mobile: ≤767.9px (hero mobile) --- */
@media (max-width: 767.9px) {
  .hero__body--mobile {
    display: block;
  }

  .hero__body--desktop-primary,
  .hero__body--desktop-secondary {
    display: none !important;
  }

  .hero {
    height: 100svh;
    align-items: center;
  }

  .hero__overlay {
    /* background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0) 100%
    ); */

    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 10.61%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }

  .hero__container {
    justify-content: center;
  }

  .hero__content {
    max-width: 100%;
    min-height: 0;
    justify-content: center;
  }

  .hero__textbox {
    width: 100%;
    max-width: 388px;
    min-height: 0;
    gap: 48px;
    align-items: center;
    text-align: center;
  }

  .hero__title {
    font-size: 32px;
    line-height: 36px;
    letter-spacing: -0.2px;
    max-width: 380px;
    width: 100%;
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.35),
      0 4px 24px rgba(0, 0, 0, 0.45);
  }

  .hero__body--mobile p {
    font-size: var(--fs-sm);
    line-height: var(--lh-sm);
    max-width: 340px;
    width: 100%;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }

  .hero__body--mobile p {
    margin-bottom: 24px;
  }
  .hero__body--mobile p:last-child {
    margin-bottom: 0;
  }
}
