.brand-link {
  text-decoration: none; /* remove underline */
  color: inherit;        /* optional: keep original text color */
}

/* HOW IT WORKS SECTION */
.how-it-works {
  padding: 100px 80px;
}

.hiw-title {
  font-size: 46px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #111;
  padding-top: 40px;
}

.hiw-desc {
  font-size: 18px;
  text-align: center;
  color: #555;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* 2x2 Grid */
.hiw-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
}

/* Step container */
.hiw-step-container {
  position: relative; /* allow absolute positioning inside */
  display: grid;
  grid-template-columns: 1fr 150px; /* text | placeholder for image */
  grid-template-rows: auto auto auto; /* Step, Main, Description */
  gap: 10px 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* Image positioned absolutely */
.hiw-step-container .step-image {
  position: absolute;
  top: 50%; /* center vertically relative to container */
  right: 20px; /* distance from right edge */
  transform: translateY(-50%); /* truly center */
  width: 120px; /* fixed width */
  height: auto; /* maintain aspect ratio */
}

/* Image styling */
.hiw-step-container .step-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.hiw-step-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-number {
  grid-column: 1 / 2;
  font-size: 24px;
  font-weight: 700;
  color: #02b150;
}

.step-content {
  display: flex;
  flex-direction: column;
}

.step-main {
  grid-column: 1 / 2;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.step-desc {
  grid-column: 1 / 2;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.step-image img {
  width: 150px;
  height: auto;
  border-radius: 10px;
}

/* Bottom Info Row */
.hiw-info-row {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  text-align: center;
  gap: 80px;
}

.info-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.info-item p {
  font-size: 16px;
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  .how-it-works {
    padding: 80px 40px;
  }

  .hiw-title {
    font-size: 36px;
  }

  .hiw-desc {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .hiw-steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hiw-step-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    text-align: center;
    padding: 25px;
  }

  .hiw-step-container .step-image {
    grid-row: 4; /* move image below text */
    justify-self: center;
    margin-top: 20px;
    position: static; /* remove absolute positioning on mobile */
    transform: none;
    width: 100px;
  }

  .step-image {
    margin-top: 20px;
  }

  .hiw-info-row {
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
  }

  .info-item h4 {
    font-size: 18px;
  }

  .info-item p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .how-it-works {
    padding: 60px 20px;
  }

  .hiw-title {
    font-size: 28px;
  }

  .hiw-desc {
    font-size: 15px;
  }

  .hiw-step-container {
    padding: 20px;
  }

  .step-number {
    font-size: 20px;
  }

  .step-main {
    font-size: 18px;
  }

  .step-desc {
    font-size: 15px;
  }

  .hiw-step-container .step-image {
    width: 80px;
  }
}

@media (max-width: 480px) {
  .how-it-works {
    padding: 40px 15px;
    margin-top: 25px;
  }

  .hiw-title {
    font-size: 24px;
  }

  .hiw-desc {
    font-size: 14px;
  }

  .hiw-steps-grid {
    gap: 20px;
  }

  .hiw-step-container {
    padding: 15px;
  }

  .step-number {
    font-size: 18px;
  }

  .step-main {
    font-size: 16px;
  }

  .step-desc {
    font-size: 14px;
  }

  .hiw-step-container .step-image {
    width: 60px;
  }

  .hiw-info-row {
    gap: 20px;
  }
}
