/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.home-hero {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.home-hero * {
  box-sizing: border-box;
}

.home-hero__wrap {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.home-hero__bg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;

  /* Kéo phần nền dưới lên trên */
  transform: translateY(-100px);
}

/* Bù lại khoảng trống sau khi kéo ảnh lên */
.home-hero__wrap {
  margin-bottom: -100px;
}

.home-hero__content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  max-width: 680px;
  text-align: center;
  z-index: 2;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 27px;
  padding: 0 16px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(108, 56, 255, 0.16);
  color: #6254d9;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(77, 55, 170, 0.08);
}

.home-hero__title {
  margin: 0;
  padding: 0;
  color: #171734;
  font-size: clamp(28px, 3.1vw, 43px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.home-hero__title span {
  color: #6d38ff;
}

.home-hero__desc {
  max-width: 620px;
  margin: 10px auto 17px;
  padding: 0;
  color: #302f5f;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.55;
  font-weight: 500;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.home-hero__btn {
  width: 185px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.home-hero__btn--primary {
  color: #fff;
  background: #5d2ff2;
  border: 1px solid #5d2ff2;
  box-shadow: 0 10px 22px rgba(91, 47, 242, 0.2);
}

.home-hero__btn--outline {
  color: #5d2ff2;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #6d38ff;
}

.home-hero__btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .home-hero__bg {
    transform: translateY(-20px);
  }

  .home-hero__wrap {
    margin-bottom: -20px;
  }

  .home-hero__content {
    top: 5%;
    width: 62%;
  }

  .home-hero__title {
    font-size: clamp(25px, 4vw, 36px);
  }

  .home-hero__btn {
    width: 170px;
    height: 38px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .home-hero__wrap {
    min-height: 520px;
  }

  .home-hero__bg {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center bottom;
    transform: translateY(0);
  }

  .home-hero__wrap {
    margin-bottom: 0;
  }

  .home-hero__content {
    top: 28px;
    width: 90%;
    max-width: 420px;
  }

  .home-hero__badge {
    height: auto;
    min-height: 28px;
    font-size: 12px;
    padding: 7px 14px;
  }

  .home-hero__title {
    font-size: 30px;
    line-height: 1.2;
  }

  .home-hero__desc {
    font-size: 13px;
  }

  .home-hero__desc br {
    display: none;
  }

  .home-hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .home-hero__btn {
    width: 100%;
    max-width: 300px;
    height: 46px;
    font-size: 14px;
  }
}
