/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
}

/* ================= HOW TO APPLY ================= */
.how-apply-section {
  /* padding: 80px 70px; */
  /* background: #f8f8f8;
        background-image: repeating-linear-gradient(
          -45deg,
          rgba(0, 0, 0, 0.03),
          rgba(0, 0, 0, 0.03) 2px,
          transparent 2px,
          transparent 12px
        ); */
  background: url("../../images/Rectangle\ 30.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 80px 70px;
}

.how-apply-wrapper {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  align-items: center;
}

/* ================= TITLE ================= */
.how-apply-title {
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  color: #252525;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 35px;
}

.how-apply-title span {
  width: 28px;
  height: 4px;
  background: #ed1c24;

  border-radius: 2px;
}

/* ================= STEPS ================= */
.apply-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 520px;
  margin-bottom: 35px;
}

/* MAIN LINE */
.steps-rail {
  position: absolute;
  top: 14px;
  left: 40px;
  right: 40px;
  height: 1.5px;
  background: #ed1c24;
  z-index: 0;
}
#step-one {
  background: #ed1c24;
  color: #fff;
}

.apply-step {
  position: relative;
  z-index: 1;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.step-box {
  width: 28px;
  height: 33px;
  border: 1.5px solid #ed1c24;
  color: #ed1c24;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  font-family: Outfit;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
}

.apply-step p {
  font-size: 13px;
  color: #222;
  line-height: 1.25;
}

.apply-step strong {
  color: #ed1c24;
  font-weight: 600;
}

/* ================= TEXT ================= */
.apply-text {
  font-family: Outfit;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;

  letter-spacing: 1%;

  color: #544e4e;

  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 520px;
}

/* ================= RIGHT CARD ================= */
.apply-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.apply-card img.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY */
.apply-overlay {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.apply-logo {
  width: 70px;
  margin-bottom: 8px;
}

.apply-heading {
  font-family: EB Garamond;
  font-weight: 400;
  font-style: Regular;
  font-size: 32px;

  letter-spacing: 1%;
  text-align: center;

  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.apply-btn {
  background: #ed1c24;
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
}

.apply-btn:hover {
  background: #c9151c;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1400px) {
  .apply-overlay {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .apply-heading {
    font-size: 25px;
    line-height: 1.2;
  }
  .apply-btn {
    margin: 16px 0 10px;
    padding: 10px 16px;
    font-size: 16px;
  }
}
@media (max-width: 1300px) {
  .apply-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .apply-heading {
    font-size: 25px;
    line-height: 1.2;
  }
  .apply-btn {
    margin: 16px 0 10px;
    padding: 10px 16px;
    font-size: 12px;
  }
}
@media (max-width: 1100px) {
  .apply-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .apply-heading {
    font-size: 18px;
    line-height: 1.2;
  }
  .apply-btn {
    margin: 16px 0 10px;
    padding: 10px 16px;
    font-size: 12px;
  }
        .how-apply-section {
    padding: 30px 35px;
  }
}
@media (max-width: 992px) {
  /* KEEP OVERLAY ON IMAGE */
  /* .how-apply-wrapper {
    padding: 30px 35px;
  } */
  .apply-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .how-apply-wrapper {
    grid-template-columns: 1fr;
  }
  .apply-text {
    text-align: justify;
  }

  .apply-steps {
    max-width: 100%;
  }
}
/* ================= MOBILE FIX FOR APPLY CARD ================= */
/* ================= MOBILE OVERLAY FIX ================= */
@media (max-width: 768px) {
  /* CONTROL IMAGE HEIGHT */
  .apply-card img.bg-img {
    height: 220px; /* fixed visual space */
    object-fit: cover;
  }
  .how-apply-title {
    font-size: 30px;
  }

  /* KEEP OVERLAY ON IMAGE */
  .apply-overlay {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }
  .apply-logo {
    width: 52px;
    margin-bottom: 6px;
  }

  .apply-heading {
    font-size: 20px;
    line-height: 1.2;
  }

  /* MOVE BUTTON BELOW IMAGE */
  .apply-btn {
    margin: 16px 0 10px;
    padding: 10px 22px;
  }

  /* ADD SPACE BELOW IMAGE */
}

@media (max-width: 576px) {
  /* .how-apply-section {
    padding: 60px 20px;
  } */

  .how-apply-title {
    font-size: 30px;
  }
}
