/* milestone section */
.milestone-section {
  margin: 50px 0;
}

/* wrapper */
.milestone-wrapper {
  display: flex;
  flex-wrap: wrap; /* ✅ allow next row */
}

/* box */
.milestone-wrapper .milestone-box {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  box-sizing: border-box;
  padding: 40px;
  background: var(--primary);
  color: var(--white);
  position: relative;
  z-index: 1;
}

/* background shape */
.milestone-wrapper .milestone-box::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 260px;
  height: 280px;
  background: var(--milestone);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;
}

/* last box shape flip */
.milestone-wrapper .milestone-box:last-child::before {
  left: auto;
  right: 0;
  transform: rotate(180deg);
}

/* text styles */
.milestone-wrapper .milestone-box h2 {
  font-size: 40px;
  line-height: 50px;
  margin-bottom: 30px;
}

.milestone-wrapper .milestone-box p {
  font-size: 18px;
  line-height: 26px;
}

.milestone-wrapper .milestone-box a {
  color: var(--white);
  text-decoration: underline;
  font-size: 18px;
  margin-top: 22px;
  display: inline-block;
}

/* even box styling */
.milestone-wrapper .milestone-box:nth-child(even) {
  background: var(--white);
}

.milestone-wrapper .milestone-box:nth-child(even) h2,
.milestone-wrapper .milestone-box:nth-child(even) p,
.milestone-wrapper .milestone-box:nth-child(even) a {
  color: var(--text-color);
}

.milestone-wrapper .milestone-box:nth-child(even)::before {
  background: var(--milestone1);
  background-size: contain;
  max-width: 270px;
  max-height: 143px;
  bottom: 0;
  top: auto;
  left: auto;
  right: 0;
}

/* responsive */
@media (max-width: 992px) {
  .milestone-wrapper .milestone-box {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
