/* IlajIndia — Trust Features + How It Works (reference match)
   Scoped to .ilj-trust and .hp-journey only.
   Mobile: both sections stay ONE horizontal row (compact). */

/* ========== TRUST FEATURES ========== */
.ilj-trust {
  --trust-navy: #061a33;
  --trust-navy-mid: #0a2744;
  --trust-teal: #1ec8c8;
  --trust-cyan: #5eead4;
  --trust-card: rgba(14, 48, 78, 0.72);
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 12px 8px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(30, 120, 160, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(20, 180, 180, 0.12), transparent 50%),
    linear-gradient(180deg, #0a2340 0%, #061a33 55%, #051628 100%);
  overflow: hidden;
  box-sizing: border-box;
}

.ilj-trust *,
.ilj-trust *::before,
.ilj-trust *::after {
  box-sizing: border-box;
  min-width: 0;
}

.ilj-trust__ekg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 32px;
  pointer-events: none;
  opacity: 0.3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 60' fill='none'%3E%3Cpath d='M0 30h140l20-18 18 36 22-40 18 28 14-6h568' stroke='%231ec8c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.ilj-trust__dots {
  position: absolute;
  top: 14%;
  right: 3%;
  width: 48px;
  height: 48px;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(94, 234, 212, 0.55) 1px, transparent 1.2px);
  background-size: 10px 10px;
}

.ilj-trust__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  min-width: 0;
}

.ilj-trust__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ilj-trust__card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 112px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(22, 58, 92, 0.85) 0%, rgba(10, 36, 64, 0.9) 100%);
  border: 1px solid rgba(120, 200, 220, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 12px rgba(0, 10, 30, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ilj-trust__card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.35);
}

.ilj-trust__ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(94, 234, 212, 0.4), rgba(30, 200, 200, 0.08) 55%, transparent 70%);
  color: var(--trust-cyan);
  flex-shrink: 0;
}

.ilj-trust__ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ilj-trust__title {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ilj-trust__desc {
  margin: 0;
  font-size: 8.5px;
  font-weight: 500;
  color: rgba(200, 220, 235, 0.78);
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablet+: enlarge trust cards; keep 4-col row */
@media (min-width: 768px) {
  .ilj-trust {
    padding: 40px 24px 44px;
  }

  .ilj-trust__ekg {
    height: 48px;
    opacity: 0.35;
  }

  .ilj-trust__dots {
    width: 72px;
    height: 72px;
  }

  .ilj-trust__grid {
    gap: 16px;
  }

  .ilj-trust__card {
    min-height: 180px;
    padding: 22px 14px 18px;
    gap: 10px;
    border-radius: 20px;
  }

  .ilj-trust__ico {
    width: 58px;
    height: 58px;
  }

  .ilj-trust__ico svg {
    width: 34px;
    height: 34px;
  }

  .ilj-trust__title {
    font-size: 16px;
    -webkit-line-clamp: unset;
    display: block;
  }

  .ilj-trust__desc {
    font-size: 13px;
    -webkit-line-clamp: unset;
    display: block;
  }
}

@media (min-width: 1024px) {
  .ilj-trust {
    padding: 52px 28px 56px;
  }

  .ilj-trust__grid {
    gap: 18px;
  }

  .ilj-trust__card {
    min-height: 195px;
    padding: 24px 16px 20px;
  }

  .ilj-trust__title {
    font-size: 17px;
  }

  .ilj-trust__desc {
    font-size: 13.5px;
  }
}

/* ========== HOW IT WORKS — snake 2×3 mobile grid ========== */
.hp-journey {
  --hiw-navy: #0b1e3a;
  --hiw-teal: #0aa69d;
  --hiw-muted: #6b7c8f;
  --hiw-bg: #f4f9ff;
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 18px 12px 80px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(10, 166, 157, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f9ff 0%, #eef6fc 55%, #f7fbff 100%);
  scroll-margin-top: calc(var(--hp-header-h, 64px) + 8px);
  box-sizing: border-box;
  overflow: hidden;
}

.hp-journey *,
.hp-journey *::before,
.hp-journey *::after {
  box-sizing: border-box;
  min-width: 0;
}

.hp-journey__dots-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    radial-gradient(circle, rgba(10, 166, 157, 0.22) 1.1px, transparent 1.3px);
  background-size: 14px 14px;
  background-position: 0 0;
  mask-image: linear-gradient(90deg, #000 0%, transparent 18%, transparent 82%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 18%, transparent 82%, #000 100%);
}

.hp-journey__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.hp-journey__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  text-align: center;
  color: var(--hiw-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hp-journey__heading-text {
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  white-space: nowrap;
}

.hp-journey__leaf {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--hiw-teal);
}

.hp-journey__leaf svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Snake grid: 01 02 03 / 06 05 04 */
.hp-journey__grid {
  list-style: none;
  margin: 0;
  padding: 4px 2px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 14px 10px;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.hp-journey__step[data-step="1"] { grid-area: 1 / 1; }
.hp-journey__step[data-step="2"] { grid-area: 1 / 2; }
.hp-journey__step[data-step="3"] { grid-area: 1 / 3; }
.hp-journey__step[data-step="4"] { grid-area: 2 / 3; }
.hp-journey__step[data-step="5"] { grid-area: 2 / 2; }
.hp-journey__step[data-step="6"] { grid-area: 2 / 1; }

.hp-journey__step {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 6px 10px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(10, 166, 157, 0.1);
  box-shadow: 0 6px 18px rgba(11, 30, 58, 0.07);
}

/* Number badge — top-left like reference */
.hp-journey__num {
  position: absolute;
  top: -8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 50%;
  background: var(--hiw-teal);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 8px rgba(10, 166, 157, 0.35);
  z-index: 2;
}

.hp-journey__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8f8f7 0%, #dff4f2 100%);
  border: 1px solid rgba(10, 166, 157, 0.14);
  flex-shrink: 0;
}

.hp-journey__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.hp-journey__label {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 800;
  color: var(--hiw-navy);
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-journey__desc {
  margin: 0;
  font-size: 8.5px;
  font-weight: 500;
  color: var(--hiw-muted);
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Connectors: 01→02→03, curve 03↓04, 04←05←06 */
.hp-journey__step[data-step="1"]::after,
.hp-journey__step[data-step="2"]::after {
  content: "";
  position: absolute;
  top: 42%;
  inset-inline-end: -9px;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 2l5 4-5 4' stroke='%230aa69d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

.hp-journey__step[data-step="3"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28' fill='none'%3E%3Cpath d='M10 2v16' stroke='%230aa69d' stroke-width='2' stroke-linecap='round' stroke-dasharray='2.5 2.5'/%3E%3Cpath d='M5 16l5 7 5-7' fill='%230aa69d'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

.hp-journey__step[data-step="5"]::before,
.hp-journey__step[data-step="6"]::before {
  content: "";
  position: absolute;
  top: 42%;
  inset-inline-start: -9px;
  width: 10px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M9 2L4 6l5 4' stroke='%230aa69d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

/* Trust bar */
.hp-journey__trustbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px auto 0;
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0aa69d 0%, #0cbeb4 50%, #0aa69d 100%);
  box-shadow: 0 8px 20px rgba(10, 166, 157, 0.28);
}

.hp-journey__trustbar-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.hp-journey__trustbar-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.hp-journey__trustbar-text {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (min-width: 390px) {
  .hp-journey__label {
    font-size: 11.5px;
  }

  .hp-journey__desc {
    font-size: 9px;
  }

  .hp-journey__icon {
    width: 48px;
    height: 48px;
  }
}

@media (min-width: 430px) {
  .ilj-trust__grid {
    gap: 6px;
  }

  .ilj-trust__card {
    min-height: 118px;
    padding: 9px 5px 8px;
  }

  .ilj-trust__title {
    font-size: 11px;
  }

  .ilj-trust__desc {
    font-size: 9px;
  }

  .hp-journey {
    padding: 22px 16px 80px;
  }

  .hp-journey__grid {
    gap: 16px 12px;
  }

  .hp-journey__step {
    padding: 20px 8px 12px;
    border-radius: 18px;
  }

  .hp-journey__trustbar-text {
    font-size: 12px;
  }
}

/* Desktop / wide tablet: single horizontal timeline */
@media (min-width: 900px) {
  .hp-journey {
    padding: 40px 24px 48px;
  }

  .hp-journey__heading {
    margin-bottom: 28px;
    gap: 12px;
  }

  .hp-journey__heading-text {
    font-size: 1.65rem;
    white-space: normal;
  }

  .hp-journey__leaf {
    width: 26px;
    height: 26px;
  }

  .hp-journey__grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 0;
  }

  .hp-journey__step[data-step="1"],
  .hp-journey__step[data-step="2"],
  .hp-journey__step[data-step="3"],
  .hp-journey__step[data-step="4"],
  .hp-journey__step[data-step="5"],
  .hp-journey__step[data-step="6"] {
    grid-area: auto;
  }

  .hp-journey__step {
    flex: 1 1 0;
    padding: 22px 10px 16px;
    border-radius: 20px;
  }

  .hp-journey__step::before,
  .hp-journey__step::after {
    display: none !important;
  }

  /* Desktop connectors: simple right arrows between all but last */
  .hp-journey__step:not([data-step="6"])::after {
    display: block !important;
    content: "";
    position: absolute;
    top: 48%;
    inset-inline-end: -8px;
    width: 12px;
    height: 12px;
    left: auto;
    bottom: auto;
    transform: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 2l5 4-5 4' stroke='%230aa69d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .hp-journey__num {
    top: -10px;
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .hp-journey__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
  }

  .hp-journey__icon svg {
    width: 36px;
    height: 36px;
  }

  .hp-journey__label {
    font-size: 14px;
    -webkit-line-clamp: unset;
    display: block;
  }

  .hp-journey__desc {
    font-size: 12px;
    -webkit-line-clamp: unset;
    display: block;
  }

  .hp-journey__trustbar {
    max-width: 560px;
    margin-top: 28px;
    padding: 12px 20px;
  }

  .hp-journey__trustbar-text {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .hp-journey {
    padding: 52px 28px 56px;
  }

  .hp-journey__heading-text {
    font-size: 1.85rem;
  }

  .hp-journey__icon {
    width: 72px;
    height: 72px;
  }

  .hp-journey__label {
    font-size: 15px;
  }

  .hp-journey__desc {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ilj-trust__card {
    transition: none;
  }

  .ilj-trust__card:hover {
    transform: none;
  }
}

[dir="rtl"] .hp-journey__step[data-step="1"]::after,
[dir="rtl"] .hp-journey__step[data-step="2"]::after,
[dir="rtl"] .hp-journey__step:not([data-step="6"])::after {
  transform: scaleX(-1);
}

[dir="rtl"] .hp-journey__step[data-step="5"]::before,
[dir="rtl"] .hp-journey__step[data-step="6"]::before {
  transform: scaleX(-1);
}

[dir="rtl"] .hp-journey__num {
  left: auto;
  right: 8px;
}

[dir="rtl"] .ilj-trust__dots {
  right: auto;
  left: 4%;
}
