/**
 * Why Patients Choose IlajIndia — mobile reference rebuild.
 * Scoped to .public-home-v2 .hp-why-trust. Does not restyle other sections.
 */
.public-home-v2 .hp-why-trust.pub-p2 {
  --why-navy: #0a2a4a;
  --why-blue: #1a5fb4;
  --why-muted: #5c6d7c;
  --why-soft: #f3f8fc;
  --why-blue-accent: #2f7fd6;
  --why-green: #2ea86a;
  --why-orange: #e8913a;
  --why-purple: #7b5ea7;
  --why-navy-accent: #1e4f8c;
  --why-teal: #2aa8b8;
}

@media (max-width: 767px) {
  .public-home-v2 .hp-why-trust.pub-p2 {
    padding: 16px 12px 18px !important;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 28%, #ffffff 100%) !important;
  }

  .public-home-v2 .hp-why-trust__head {
    display: none !important;
  }

  .public-home-v2 .hp-why-trust__intro {
    text-align: center !important;
    margin: 0 0 14px !important;
  }

  .public-home-v2 .hp-why-trust__heading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    font-size: clamp(1.15rem, 4.6vw, 1.35rem) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: var(--why-navy) !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
  }

  .public-home-v2 .hp-why-trust__heading-text {
    max-width: 16ch !important;
  }

  .public-home-v2 .hp-why-trust__laurel {
    flex: 0 0 auto !important;
    width: 28px !important;
    height: 28px !important;
    color: #7eb6e8 !important;
    display: grid !important;
    place-items: center !important;
  }

  .public-home-v2 .hp-why-trust__laurel svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }

  .public-home-v2 .hp-why-trust__laurel--flip {
    transform: scaleX(-1);
  }

  .public-home-v2 .hp-why-trust__subtitle {
    display: block !important;
    margin: 0 auto 12px !important;
    max-width: 34ch !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    color: var(--why-muted) !important;
    text-align: center !important;
  }

  .public-home-v2 .hp-why-trust__divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: min(220px, 70%) !important;
    margin: 0 auto !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(26, 95, 180, 0.35), transparent) !important;
    position: relative !important;
  }

  .public-home-v2 .hp-why-trust__divider span {
    position: absolute !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: var(--why-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.12);
  }

  body.page-home.public-home-v2 .hp-why-trust__grid,
  .public-home-v2 .hp-why-trust__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .hp-why-trust__card,
  .public-home-v2 .hp-why-trust__card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: start !important;
    gap: 8px !important;
    min-height: 168px !important;
    padding: 16px 14px 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(243, 248, 252, 0.95) 100%) !important;
    box-shadow:
      0 10px 28px rgba(11, 47, 74, 0.07),
      0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    overflow: hidden !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .public-home-v2 .hp-why-trust__card--blue {
    background:
      linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%) !important;
  }
  .public-home-v2 .hp-why-trust__card--green {
    background:
      linear-gradient(165deg, #ffffff 0%, #f1faf5 100%) !important;
  }
  .public-home-v2 .hp-why-trust__card--orange {
    background:
      linear-gradient(165deg, #ffffff 0%, #fff7ef 100%) !important;
  }
  .public-home-v2 .hp-why-trust__card--purple {
    background:
      linear-gradient(165deg, #ffffff 0%, #f7f3fb 100%) !important;
  }
  .public-home-v2 .hp-why-trust__card--navy {
    background:
      linear-gradient(165deg, #ffffff 0%, #f2f6fb 100%) !important;
  }
  .public-home-v2 .hp-why-trust__card--teal {
    background:
      linear-gradient(165deg, #ffffff 0%, #eefafb 100%) !important;
  }

  .public-home-v2 .hp-why-trust__ribbon {
    position: absolute !important;
    top: 0 !important;
    inset-inline-end: 0 !important;
    min-width: 36px !important;
    height: 24px !important;
    padding: 0 10px 0 12px !important;
    border-radius: 0 20px 0 14px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: 0.02em !important;
    z-index: 2 !important;
  }

  [dir="rtl"] .public-home-v2 .hp-why-trust__ribbon {
    border-radius: 20px 0 14px 0 !important;
    padding: 0 12px 0 10px !important;
  }

  .public-home-v2 .hp-why-trust__card--blue .hp-why-trust__ribbon { background: var(--why-blue-accent) !important; }
  .public-home-v2 .hp-why-trust__card--green .hp-why-trust__ribbon { background: var(--why-green) !important; }
  .public-home-v2 .hp-why-trust__card--orange .hp-why-trust__ribbon { background: var(--why-orange) !important; }
  .public-home-v2 .hp-why-trust__card--purple .hp-why-trust__ribbon { background: var(--why-purple) !important; }
  .public-home-v2 .hp-why-trust__card--navy .hp-why-trust__ribbon { background: var(--why-navy-accent) !important; }
  .public-home-v2 .hp-why-trust__card--teal .hp-why-trust__ribbon { background: var(--why-teal) !important; }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2 .hp-why-trust__icon,
  .public-home-v2 .hp-why-trust__icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    display: grid !important;
    place-items: center !important;
    margin: 2px 0 2px !important;
    box-shadow: 0 4px 12px rgba(11, 47, 74, 0.06) !important;
    overflow: visible !important;
  }

  .public-home-v2 .hp-why-trust__card--blue .hp-why-trust__icon {
    background: linear-gradient(160deg, #e8f2ff, #d7e9ff) !important;
    color: var(--why-blue-accent) !important;
  }
  .public-home-v2 .hp-why-trust__card--green .hp-why-trust__icon {
    background: linear-gradient(160deg, #e8f8ef, #d4f0e0) !important;
    color: var(--why-green) !important;
  }
  .public-home-v2 .hp-why-trust__card--orange .hp-why-trust__icon {
    background: linear-gradient(160deg, #fff3e6, #ffe4c8) !important;
    color: var(--why-orange) !important;
  }
  .public-home-v2 .hp-why-trust__card--purple .hp-why-trust__icon {
    background: linear-gradient(160deg, #f4eef9, #e8ddf4) !important;
    color: var(--why-purple) !important;
  }
  .public-home-v2 .hp-why-trust__card--navy .hp-why-trust__icon {
    background: linear-gradient(160deg, #e8eef8, #d5e1f2) !important;
    color: var(--why-navy-accent) !important;
  }
  .public-home-v2 .hp-why-trust__card--teal .hp-why-trust__icon {
    background: linear-gradient(160deg, #e6f7f9, #cfeef2) !important;
    color: var(--why-teal) !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2 .hp-why-trust__icon svg,
  .public-home-v2 .hp-why-trust__icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: block !important;
  }

  body.page-home.public-home-v2 .hp-why-trust__card h3,
  .public-home-v2 .hp-why-trust__card h3 {
    margin: 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: var(--why-navy) !important;
    letter-spacing: -0.01em !important;
    padding-inline-end: 8px !important;
  }

  body.page-home.public-home-v2 .hp-why-trust__card p,
  .public-home-v2 .hp-why-trust__card p {
    display: block !important;
    margin: 0 !important;
    font-size: 0.7rem !important;
    line-height: 1.35 !important;
    color: var(--why-muted) !important;
    flex: 1 1 auto !important;
  }

  .public-home-v2 .hp-why-trust__accent {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    border-radius: 999px !important;
    margin-top: auto !important;
  }

  .public-home-v2 .hp-why-trust__card--blue .hp-why-trust__accent { background: var(--why-blue-accent) !important; }
  .public-home-v2 .hp-why-trust__card--green .hp-why-trust__accent { background: var(--why-green) !important; }
  .public-home-v2 .hp-why-trust__card--orange .hp-why-trust__accent { background: var(--why-orange) !important; }
  .public-home-v2 .hp-why-trust__card--purple .hp-why-trust__accent { background: var(--why-purple) !important; }
  .public-home-v2 .hp-why-trust__card--navy .hp-why-trust__accent { background: var(--why-navy-accent) !important; }
  .public-home-v2 .hp-why-trust__card--teal .hp-why-trust__accent { background: var(--why-teal) !important; }
}

/* Keep tablet/desktop usable without fighting other sheets hard */
@media (min-width: 768px) {
  .public-home-v2 .hp-why-trust__intro {
    text-align: center;
    margin-bottom: 18px;
  }

  .public-home-v2 .hp-why-trust__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .public-home-v2 .hp-why-trust__laurel {
    width: 32px;
    height: 32px;
    color: #7eb6e8;
  }

  .public-home-v2 .hp-why-trust__laurel--flip {
    transform: scaleX(-1);
  }

  .public-home-v2 .hp-why-trust__subtitle {
    display: block !important;
    max-width: 52ch;
    margin-inline: auto;
    color: var(--why-muted, #5c6d7c);
  }

  .public-home-v2 .hp-why-trust__divider {
    display: flex;
    justify-content: center;
    margin: 12px auto 0;
    width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 95, 180, 0.35), transparent);
    position: relative;
  }

  .public-home-v2 .hp-why-trust__divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #1a5fb4;
  }

  .public-home-v2 .hp-why-trust__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .public-home-v2 .hp-why-trust__card {
    position: relative;
    min-height: 200px;
    padding: 20px 18px 16px;
    border-radius: 20px;
    overflow: hidden;
  }

  .public-home-v2 .hp-why-trust__card p {
    display: block !important;
  }

  .public-home-v2 .hp-why-trust__ribbon {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    min-width: 40px;
    height: 26px;
    padding: 0 12px;
    border-radius: 0 20px 0 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
  }

  .public-home-v2 .hp-why-trust__card--blue .hp-why-trust__ribbon { background: #2f7fd6; }
  .public-home-v2 .hp-why-trust__card--green .hp-why-trust__ribbon { background: #2ea86a; }
  .public-home-v2 .hp-why-trust__card--orange .hp-why-trust__ribbon { background: #e8913a; }
  .public-home-v2 .hp-why-trust__card--purple .hp-why-trust__ribbon { background: #7b5ea7; }
  .public-home-v2 .hp-why-trust__card--navy .hp-why-trust__ribbon { background: #1e4f8c; }
  .public-home-v2 .hp-why-trust__card--teal .hp-why-trust__ribbon { background: #2aa8b8; }

  .public-home-v2 .hp-why-trust__accent {
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    margin-top: auto;
  }

  .public-home-v2 .hp-why-trust__card--blue .hp-why-trust__accent { background: #2f7fd6; }
  .public-home-v2 .hp-why-trust__card--green .hp-why-trust__accent { background: #2ea86a; }
  .public-home-v2 .hp-why-trust__card--orange .hp-why-trust__accent { background: #e8913a; }
  .public-home-v2 .hp-why-trust__card--purple .hp-why-trust__accent { background: #7b5ea7; }
  .public-home-v2 .hp-why-trust__card--navy .hp-why-trust__accent { background: #1e4f8c; }
  .public-home-v2 .hp-why-trust__card--teal .hp-why-trust__accent { background: #2aa8b8; }
}
