.category-how-section {
  height: auto;
  min-height: 666px;
  margin-top: -5%;
}

.category-how-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 144px;
  gap: 24px;
}

.header-how-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  flex-wrap: wrap;
}

.header-how-cont h5 {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: var(--text-dark);
  letter-spacing: 0;
}

.h5-yellow {
  gap: 10px;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  background: var(--highlight-yellow);
}

/* Subheader */
.categ-how-subhead {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1104px;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

.categ-how-subhead p {
  max-width: 830px;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--text-gray);
  letter-spacing: 0;
  text-align: center;
}

.category-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  /* flex-wrap: wrap; */
  padding: 0 20px;
}

.category-how-box {
  width: 344px;
  height: 174px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}

.category-how-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.category-how-box p {
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  color: var(--text-muted);
}

.category-arrow {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  padding: 0 8px;
  box-sizing: border-box;
  flex-shrink: 0;
  padding-bottom: 2%;
}

.icon {
  width: 40px;
  height: 48px;
}

.category-arrow.flipped img {
  padding-top: 300%;
}

.icon-bg-color,
.icon-bg-color-active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: 80px;
  width: 80px;
  gap: 10px;
  border-radius: 50%;
}

.icon-bg-color {
  background-color: var(--light-green-bg);
}

.icon-bg-color-active {
  background-color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1240px) {
  .category-how-box {
    flex-direction: row;
    height: 100px;
    gap: 1px;
  }

  .header-how-cont h5 {
    font-size: 24px;
    line-height: 32px;
  }
  .category-row {
    flex-direction: row;
    align-items: center;
  }

  .icon {
    width: 30px;
  }

  .icon-bg-color {
    height: 40px;
    width: 40px;
  }

  .category-how-box p {
    font-size: 16px;
    text-align: center;
  }

  .category-arrow img {
    width: 50px;
    height: auto;
  }
}

@media (max-width: 992px) {
  .category-how-section {
    margin-top: 5%;
  }
}

@media (max-width: 900px) {
  .category-how-box {
    flex-direction: row;
    justify-content: start;
    gap: 40px;
  }

  .category-row {
    flex-direction: column;
    align-items: center;
  }

  .category-arrow {
    transform: rotate(90deg); /* rotate arrow downward */
    width: auto;
    height: 40px;
    padding: 16px 0;
  }
  .category-arrow.flipped {
    margin-left: 150px;
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  .header-how-cont {
    flex-direction: column;
    gap: 2px;
  }

  .category-how-box {
    width: 60%;
    gap: 20px;
  }

  .category-row {
    margin-top: 10vh;
    gap: 5px;
  }
}

@media (max-width: 500px) {
  .category-row {
    margin-top: 15vh;
  }

  .category-how-box {
    width: 80%;
    gap: 40px;
  }

  .category-how-box p {
    text-align: start;
  }
}

@media (max-width: 420px) {
  .category-how-box {
    width: 90%;
    gap: 20px;
  }
}
