/* ==========================================================
   Home page: "Simple steps" client portal section
   (About Us section ki jagah, partial: frontend/partials/portal-benefits.blade.php)
   "mt-pb-" prefix taaki style.css ke global rules se clash na ho.
   Note: style.css me global h2 pe gradient text + h/p pe reveal
   animation lagta hai, aur 1399px se neeche h2/h3/h4 ke font-size
   !important se force hote hain. Isliye yahan headings ke colors aur
   font-size (!important ke saath) explicitly set kiye hain.
   ========================================================== */

.mt-pb {
  --mt-pb-green: #1f5a3f;
  --mt-pb-green-dark: #173a2b;
  --mt-pb-green-soft: #e2f1e8;
  --mt-pb-gold: #d39a2c;
  --mt-pb-gold-soft: #fbefd6;
  --mt-pb-gold-ink: #95650f;
  --mt-pb-ink: #4a4a4a;

  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 90, 63, 0.06) 0 160px, transparent 161px),
    radial-gradient(circle at 100% 20%, rgba(31, 90, 63, 0.05) 0 140px, transparent 141px),
    #f4f8f5;
}

.mt-pb__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Heading ---------- */

.mt-pb__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.mt-pb__pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--mt-pb-green);
  font-size: 15px;
  font-weight: 600;
}

.mt-pb__pill::before,
.mt-pb__pill::after {
  content: "";
  width: 56px;
  height: 2px;
  background: var(--mt-pb-green);
  opacity: 0.45;
}

.mt-pb .mt-pb__title {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 44px) !important;
  line-height: 1.15 !important;
  font-weight: 700;
  /* Solid color: style.css mobile pe h2 ka gradient background hata deta hai */
  background: none !important;
  color: var(--mt-pb-green-dark) !important;
  -webkit-text-fill-color: var(--mt-pb-green-dark) !important;
}

html body .mt-pb .mt-pb__lead {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--mt-pb-ink);
}

/* ---------- Flow + dashed path ---------- */

.mt-pb__flow {
  position: relative;
  padding: 0 44px;
}

.mt-pb__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mt-pb__path path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.mt-pb__path-line {
  stroke: var(--mt-pb-green);
  stroke-width: 2px;
  stroke-dasharray: 7 7;
  opacity: 0.7;
}

.mt-pb__path-dot {
  stroke: var(--mt-pb-green-dark);
  stroke-width: 12px;
  stroke-linecap: round;
}

.mt-pb__plane {
  position: absolute;
  right: -8px;
  top: calc(78.33% - 30px);
  color: var(--mt-pb-green-dark);
  font-size: 26px;
  transform: rotate(-12deg);
}

.mt-pb__steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}

/* ---------- Step card ---------- */

.mt-pb__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 34px 22px 26px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e4ece7;
  box-shadow: 0 12px 30px rgba(23, 58, 43, 0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---------- Card hover ---------- */

.mt-pb__step:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 90, 63, 0.35);
  box-shadow: 0 20px 40px rgba(23, 58, 43, 0.14);
}

.mt-pb__step--gold:hover {
  border-color: rgba(211, 154, 44, 0.45);
  box-shadow: 0 20px 40px rgba(211, 154, 44, 0.16);
}

.mt-pb__step:hover .mt-pb__icon {
  transform: scale(1.06);
  color: #fff;
  background: var(--mt-pb-green);
}

.mt-pb__step--gold:hover .mt-pb__icon {
  background: var(--mt-pb-gold);
}

.mt-pb__step:hover .mt-pb__num {
  transform: scale(1.08);
}

.mt-pb__step--gold {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
}

.mt-pb__num {
  position: absolute;
  top: -12px;
  left: -10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  background: var(--mt-pb-green-dark);
  box-shadow: 0 6px 14px rgba(23, 58, 43, 0.25);
  transition: transform 0.3s ease;
}

.mt-pb__step--gold .mt-pb__num {
  background: var(--mt-pb-gold);
  box-shadow: 0 6px 14px rgba(211, 154, 44, 0.3);
}

.mt-pb__icon {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--mt-pb-green);
  background: linear-gradient(145deg, #ffffff 0%, var(--mt-pb-green-soft) 100%);
  box-shadow: 0 10px 22px rgba(23, 58, 43, 0.12), inset 0 1px 0 #fff;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.mt-pb__step--gold .mt-pb__icon {
  background: linear-gradient(145deg, #ffffff 0%, var(--mt-pb-gold-soft) 100%);
}

/* chhoti gold "spark" lines, reference image jaisi */
.mt-pb__icon::after {
  content: "";
  position: absolute;
  top: -8px;
  right: -16px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--mt-pb-gold);
  border-right: 3px solid var(--mt-pb-gold);
  border-radius: 0 10px 0 0;
  transform: rotate(8deg);
}

.mt-pb .mt-pb__step-title {
  margin: 0 0 8px;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700;
  color: var(--mt-pb-green-dark);
  -webkit-text-fill-color: var(--mt-pb-green-dark);
  background: none;
}

html body .mt-pb .mt-pb__step-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mt-pb-ink);
  flex: 1;
}

.mt-pb__tag {
  display: inline-block;
  min-width: 96px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mt-pb-green);
  background: var(--mt-pb-green-soft);
}

.mt-pb__step--gold .mt-pb__tag {
  color: var(--mt-pb-gold-ink);
  background: var(--mt-pb-gold-soft);
}

.mt-pb__arrow {
  position: absolute;
  top: 50%;
  right: -29px;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--mt-pb-green-dark);
  background: #fff;
  border: 1px solid #e4ece7;
  box-shadow: 0 4px 12px rgba(23, 58, 43, 0.12);
}

/* ---------- CTA ---------- */

.mt-pb__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.mt-pb a.mt-pb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 30px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mt-pb a.mt-pb__btn--solid {
  color: #fff;
  background: var(--secondary, #d6a84e);
  border: 1px solid var(--secondary, #d6a84e);
}

.mt-pb a.mt-pb__btn--solid:hover {
  color: #fff;
  background: var(--mt-pb-green-dark);
  border-color: var(--mt-pb-green-dark);
}

.mt-pb a.mt-pb__btn--outline {
  color: var(--mt-pb-green-dark);
  background: #fff;
  border: 1px solid var(--mt-pb-green-dark);
}

.mt-pb a.mt-pb__btn--outline:hover {
  color: #fff;
  background: var(--mt-pb-green-dark);
}

.mt-pb a.mt-pb__btn:focus-visible {
  outline: 2px solid var(--mt-pb-green-dark);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .mt-pb__steps {
    gap: 28px 22px;
  }

  .mt-pb__step {
    padding: 32px 16px 22px;
  }

  .mt-pb .mt-pb__step-title {
    font-size: 17px !important;
  }

  .mt-pb__arrow {
    right: -26px;
  }
}

/* 992px se neeche 2 columns: row-to-row path aur arrows ka flow toot jaata hai, isliye hide */
@media (max-width: 992px) {
  .mt-pb {
    padding: 64px 0;
  }

  .mt-pb__flow {
    padding: 0;
  }

  .mt-pb__path,
  .mt-pb__plane,
  .mt-pb__arrow {
    display: none;
  }

  .mt-pb__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    padding-left: 10px;
  }
}

/* Mobile: ek column, cards ke beech neeche wala arrow */
@media (max-width: 576px) {
  .mt-pb {
    padding: 48px 0;
  }

  .mt-pb__head {
    margin-bottom: 40px;
  }

  html body .mt-pb .mt-pb__lead {
    font-size: 16px;
  }

  .mt-pb__pill::before,
  .mt-pb__pill::after {
    width: 32px;
  }

  .mt-pb__steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mt-pb__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -30px;
    height: 26px;
    border-left: 2px dashed var(--mt-pb-green);
    opacity: 0.6;
  }

  .mt-pb__cta {
    flex-direction: column;
    margin-top: 36px;
  }

  .mt-pb a.mt-pb__btn {
    width: 100%;
  }
}

/* Touch devices pe hover "chipak" jaata hai, isliye lift sirf mouse wale devices pe */
@media (hover: none) {
  .mt-pb__step:hover,
  .mt-pb__step:hover .mt-pb__icon,
  .mt-pb__step:hover .mt-pb__num {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mt-pb a.mt-pb__btn,
  .mt-pb__step,
  .mt-pb__icon,
  .mt-pb__num {
    transition: none;
  }

  .mt-pb__step:hover,
  .mt-pb__step:hover .mt-pb__icon,
  .mt-pb__step:hover .mt-pb__num {
    transform: none;
  }
}

.mt-pb {
    padding: 35px 0px 0px;
}