.hero {
  display: flex;
  background-image: url(/public/girl-workout-holistic.webp);
  background-size: 280%;
  background-position: 75% 40%;
  background-repeat: no-repeat;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  position: relative; /* Keeps .hero__img positioned within the container */
  width: 100%; /* Ensure the container fills its parent width */
  height: 580px; /* Adjust height as needed */
  border-radius: 24px;
}

.hero__title {
  position: absolute;
  top: 5%;
  font-size: var(--size-5xl);
  color: var(--clr-light-bg);
  margin-left: 1rem;
  font-weight: 700;
  text-align: left;
  line-height: 1;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

.hero__description {
  display: none;
  font-size: var(--size-lg);
  color: var(--clr-light-bg);
  font-weight: 600;
  text-align: left;
  /* margin-right: 3rem; */
  /* text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.486); */
  background-color: rgba(32, 36, 54, 0.7);
  border-radius: 24px;
  padding: 1.3rem;
  line-height: 1.3;
}

.hero-btn {
  position: absolute;
  background-color: rgb(167, 29, 155);
  color: var(--clr-text-light);
  font-size: var(--size-xl);
  top: 80%;
  padding: 0.5em 2em;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.75rem;
  border-radius: 26px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  margin-left: 1rem;
}

.hero-btn:hover {
  background-color: var(--clr-text);
}

/* --------------------------------------Media query------------------------------------------------ */

/* 2XS */
/* @media (min-width: 375px) {} */

/* XS */
@media (min-width: 475px) {
  .hero {
    height: 670px;
  }

  .hero__title {
    width: 60%;
  }
}

/* SM */
@media (min-width: 640px) {
  .hero {
    background-size: 240%;
  }
}

/* MD */
@media (min-width: 768px) {
  .hero {
    background-size: 200%;
    height: 900px;
  }

  .hero__title {
    width: 70%;
    font-size: var(--size-6xl);
    top: 18%;
    margin-left: 2rem;
  }

  .hero__description {
    display: block;
    position: absolute;
    font-family: var(--font-secondary);
    font-size: var(--size-2xl);
    color: rgb(239, 237, 248);
    width: 60%;
    top: 44%;
    margin-left: 2rem;
  }
  .hero-btn {
    font-size: var(--size-2xl);
    top: 68%;
    margin-left: 2rem;
    padding: 0.6em 2.8em;
  }
}

/* LG */
@media (min-width: 1024px) {
  .hero {
    background-size: 160%;
    height: 600px;
    background-position: 70% 35%;
  }

  .hero__title {
    top: 10%;
  }

  .hero__description {
    top: 50%;
  }

  .hero-btn {
    top: 83%;
  }
}

/* XL */
@media (min-width: 1280px) {
  .hero {
    background-size: 140%;
    height: 700px;
  }

  .hero__title {
    font-size: var(--size-7xl);
    top: 10%;
  }

  .hero__description {
    font-size: var(--size-2xl);
    top: 50%;
  }

  .hero-btn {
    font-size: var(--size-2xl);
    top: 83%;
  }
}

/* 2XL */
@media (min-width: 1536px) {
  .hero {
    background-size: 100%;
    height: 800px;
  }

  .hero__title {
    font-size: var(--size-7xl);
    top: 10%;
    width: 60%;
  }

  .hero__description {
    font-size: var(--size-2xl);
    top: 45%;
    width: 30%;
    line-height: 1.5;
  }

  .hero-btn {
    font-size: var(--size-2xl);
    top: 75%;
  }
}
