.section-box-inner-details-wrap.overlay-active {
  position: absolute;
  right: -6.5rem;
  bottom: -7rem;
  background-color: #7d57fc;
  padding: 0 25px 20px;
  border-radius: 20px;
  max-width: 630px;
  z-index: 1;
  text-align: left;
}
.section-box:has(.section-box-inner-details-wrap.overlay-active) {
  margin-right: 5rem;
}
.section-box-overlay-wrap {
  text-align: right;
  margin: 2rem 0;
}

.section-box-inner-details {
  position: relative;
  z-index: 2;
  height: 100%;
  align-items: end;
}
.section-box-text h1 {
  font-size: 100px;
  line-height: 1;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 10px;
  position: relative;
  color: #cbfd55;
  font-family: "NativeStories Regular";
}

.section-box-inner-btn {
  border: 1px solid #cbfd55;
  padding: 5px 21px 0px;
  border-radius: 20px;
  text-decoration: none;
  color: #cbfd55;
  text-transform: uppercase;
  font-family: "NativeStories Regular";
  letter-spacing: 1px;
}

.section-box {
  position: relative;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  padding: 1rem 2.5rem;
  aspect-ratio: 12 / 6;
}

/* Bottom gradient overlay */
.section-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 30%,
    rgba(0, 0, 0, 0) 90%
  );
  border-radius: 0 0 20px 20px;
  z-index: 1;
}

.section-box.desc-overlay-enabled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 20px;

  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0) 80%),
    rgba(0, 0, 0, 0.1);

  background-repeat: no-repeat;
  background-size: cover, cover;
}

.section-box-inner-details-wrap {
  margin-bottom: 1.5rem;
  text-align: right;
}
.section-box-inner-details-wrap p {
  color: #fff;
  font-family: "New Spirit Light";
}
.section-box-base {
}
.section-box-text {
  font-family: "NativeStories Regular";
  font-size: 100px;
  line-height: 0;
}

.btn_box_section {
  display: flex !important;
  justify-content: end;
}

@media only screen and (max-width: 1023px) {
  .section-box {
    padding: 1rem 1rem;
    overflow: hidden;
    aspect-ratio: 12 / 8;
    height: 100%;
    margin-right: 0;
  }
  .section-box-text h1 {
    font-size: 45px;
  }
  .section-box:has(.section-box-inner-details-wrap.overlay-active) {
    margin-right: 0rem;
  }
  .section-box-inner-details-wrap.overlay-active {
    right: 0;
    bottom: 0;
  }
}

@media only screen and (max-width: 767px) {
  /* Remove absolute layout — make it flow naturally */
  .section-box-inner-details-wrap.overlay-active {
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: 1.5rem;
    max-width: 100%;
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 15px;
  }

  /* Make parent card normal height */
  .section-box {
    /* aspect-ratio: unset; */
    aspect-ratio: 10 / 12;
    padding: 1.5rem 1rem;
  }

  /* Fix gradient height */
  .section-box::after {
    height: 100%;
  }

  /* Mobile title size */
  .section-box-text h1 {
    font-size: 38px;
    line-height: 1;
  }

  /* Mobile text alignment */
  .section-box-inner-details-wrap,
  .section-box-text {
    text-align: left;
  }

  /* Button align left */
  .section-box-overlay-wrap {
    text-align: left;
  }
}
