/**
 * Partner Hospitals + Patient Stories — mobile reference rebuild.
 * Scoped to .public-home-v2 .hp-hospitals / .hp-stories.
 */
.public-home-v2 {
  --hs-navy: #0a2a4a;
  --hs-blue: #1a5fb4;
  --hs-soft: #e8f2fb;
  --hs-panel: #eef6fc;
  --hs-muted: #5c6d7c;
  --hs-green: #2ea86a;
  --hs-radius: 20px;
}

@media (max-width: 767px) {
  /* ========== PARTNER HOSPITALS ========== */
  .public-home-v2 .hp-hospitals.pub-p3 {
    padding: 10px 12px 8px !important;
    background: #fff !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hs,
  .public-home-v2 .hp-hospitals .hp-hs {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hs__panel,
  .public-home-v2 .hp-hospitals .hp-hs__panel {
    padding: 14px 12px 12px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(26, 95, 180, 0.08) !important;
    background:
      radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
      linear-gradient(165deg, #eaf4fc 0%, #f4f9fd 55%, #eef6fc 100%) !important;
    box-shadow: 0 8px 22px rgba(11, 47, 74, 0.05) !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__titles {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__icon,
  .public-home-v2 .hp-hospitals .pub-p3__icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--hs-blue) !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 2px 8px rgba(11, 47, 74, 0.06) !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__title {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--hs-navy) !important;
    letter-spacing: -0.02em !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__sub {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    color: var(--hs-muted) !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__view {
    color: var(--hs-blue) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    padding-top: 4px !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__carousel {
    position: relative !important;
    display: block !important;
  }

  .public-home-v2 .hp-hospitals .hp-hs__nav {
    display: none !important;
  }

  .public-home-v2 .hp-hospitals__swiper {
    overflow: visible !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card,
  .public-home-v2 .hp-hospital-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: var(--hs-radius) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(11, 47, 74, 0.08) !important;
    overflow: visible !important;
    text-decoration: none !important;
    color: inherit !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo,
  .public-home-v2 .hp-hospital-card__photo {
    position: relative !important;
    width: 100% !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    border-radius: var(--hs-radius) var(--hs-radius) 0 0 !important;
    overflow: visible !important;
    background: #d9e7f4 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo img,
  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo picture,
  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo picture img,
  .public-home-v2 .hp-hospital-card__photo img,
  .public-home-v2 .hp-hospital-card__photo picture,
  .public-home-v2 .hp-hospital-card__photo picture img,
  .public-home-v2 .hp-hospital-card__img {
    width: 100% !important;
    height: 78px !important;
    max-height: 78px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: var(--hs-radius) var(--hs-radius) 0 0 !important;
    display: block !important;
  }

  .public-home-v2 .hp-hospital-card__fallback {
    display: grid !important;
    place-items: center !important;
    height: 78px !important;
    font-weight: 800 !important;
    color: var(--hs-blue) !important;
    background: #dceaf7 !important;
    border-radius: var(--hs-radius) var(--hs-radius) 0 0 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__badge,
  .public-home-v2 .hp-hospital-card__badge {
    position: absolute !important;
    top: 6px !important;
    inset-inline-start: 6px !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    min-height: 18px !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: var(--hs-blue) !important;
    color: #fff !important;
    font-size: 0.52rem !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(26, 95, 180, 0.25) !important;
  }

  .public-home-v2 .hp-hospital-card__rating {
    display: none !important;
  }

  .public-home-v2 .hp-hospital-card__logo {
    position: absolute !important;
    left: 50% !important;
    bottom: -16px !important;
    transform: translateX(-50%) !important;
    z-index: 3 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: 0 4px 10px rgba(11, 47, 74, 0.14) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  .public-home-v2 .hp-hospital-card__logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 50% !important;
  }

  .public-home-v2 .hp-hospital-card__logo span {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    color: var(--hs-blue) !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__body,
  .public-home-v2 .hp-hospital-card__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 3px !important;
    padding: 20px 6px 10px !important;
    min-height: 0 !important;
  }

  .public-home-v2 .hp-hospital-card__name {
    margin: 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--hs-navy) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .public-home-v2 .hp-hospital-card__city {
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    color: var(--hs-muted) !important;
    font-weight: 600 !important;
  }

  .public-home-v2 .hp-hospital-card__meta {
    font-size: 0.52rem !important;
    line-height: 1.2 !important;
    color: var(--hs-muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .public-home-v2 .hp-hospital-card__acc {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 2px !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: #e8f7ef !important;
    color: var(--hs-green) !important;
    font-size: 0.5rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .public-home-v2 .hp-hospital-card__cta {
    margin-top: 4px !important;
    font-size: 0.62rem !important;
    font-weight: 750 !important;
    color: var(--hs-blue) !important;
  }

  .public-home-v2 .hp-hospitals__dots,
  .public-home-v2 .hp-hospitals .swiper-pagination {
    margin-top: 10px !important;
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .public-home-v2 .hp-hospitals .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    margin: 0 !important;
    opacity: 1 !important;
    background: #c9d7e6 !important;
  }

  .public-home-v2 .hp-hospitals .swiper-pagination-bullet-active {
    background: var(--hs-blue) !important;
  }

  /* ========== PATIENT STORIES ========== */
  .public-home-v2 .hp-stories.pub-p3 {
    padding: 8px 12px 14px !important;
    background: #fff !important;
  }

  body.page-home.public-home-v2 .hp-stories.pub-p3 .hp-hs,
  .public-home-v2 .hp-stories .hp-hs {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .hp-stories.pub-p3 .hp-hs__panel,
  .public-home-v2 .hp-stories .hp-hs__panel {
    padding: 14px 12px 12px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(26, 95, 180, 0.06) !important;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%) !important;
    box-shadow: 0 6px 18px rgba(11, 47, 74, 0.04) !important;
  }

  .public-home-v2 .hp-stories .hp-hs__head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
  }

  .public-home-v2 .hp-stories .hp-hs__titles {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .public-home-v2 .hp-stories .hp-hs__icon,
  .public-home-v2 .hp-stories .pub-p3__icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 12px !important;
    background: #e8f1fc !important;
    color: var(--hs-blue) !important;
    display: grid !important;
    place-items: center !important;
  }

  .public-home-v2 .hp-stories .hp-hs__icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .public-home-v2 .hp-stories .hp-hs__title {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--hs-navy) !important;
  }

  .public-home-v2 .hp-stories .hp-hs__sub {
    display: none !important;
  }

  .public-home-v2 .hp-stories .hp-hs__view {
    color: var(--hs-blue) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .public-home-v2 .hp-stories .hp-hs__nav {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-stories.pub-p3 .hp-story-card,
  .public-home-v2 .hp-story-card {
    display: block !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(26, 95, 180, 0.08) !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(11, 47, 74, 0.07) !important;
    min-height: 0 !important;
  }

  .public-home-v2 .hp-story-card__layout {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  body.page-home.public-home-v2 .hp-stories.pub-p3 .hp-story-card__avatar,
  .public-home-v2 .hp-story-card__avatar {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #e8f1fc !important;
    box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(11, 47, 74, 0.1) !important;
  }

  .public-home-v2 .hp-story-card__avatar img,
  .public-home-v2 .hp-story-card__avatar picture,
  .public-home-v2 .hp-story-card__avatar picture img {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .public-home-v2 .hp-story-card__play {
    position: absolute !important;
    inset: auto 2px 2px auto !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: none !important;
    background: var(--hs-blue) !important;
    color: #fff !important;
    font-size: 0.55rem !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
  }

  .public-home-v2 .hp-story-card__content {
    min-width: 0 !important;
  }

  .public-home-v2 .hp-story-card__qmark {
    display: block !important;
    margin: 0 0 2px !important;
    font-size: 1.6rem !important;
    line-height: 0.8 !important;
    color: var(--hs-blue) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 700 !important;
  }

  .public-home-v2 .hp-story-card__text {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: none !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    color: var(--hs-navy) !important;
    font-style: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .public-home-v2 .hp-story-card__who {
    margin: 0 0 4px !important;
  }

  .public-home-v2 .hp-story-card__who strong {
    display: block !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: var(--hs-navy) !important;
  }

  .public-home-v2 .hp-story-card__who span {
    display: block !important;
    margin-top: 2px !important;
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
    color: var(--hs-muted) !important;
  }

  .public-home-v2 .hp-story-card__stars {
    display: flex !important;
    gap: 2px !important;
    margin: 0 0 4px !important;
  }

  .public-home-v2 .hp-story-card__more {
    display: none !important;
  }

  .public-home-v2 .hp-stories__dots,
  .public-home-v2 .hp-stories .swiper-pagination {
    margin-top: 10px !important;
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .public-home-v2 .hp-stories .swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    margin: 0 !important;
    opacity: 1 !important;
    background: #c9d7e6 !important;
  }

  .public-home-v2 .hp-stories .swiper-pagination-bullet-active {
    background: var(--hs-blue) !important;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo,
  .public-home-v2 .hp-hospital-card__photo {
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
  }

  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo img,
  body.page-home.public-home-v2 .hp-hospitals.pub-p3 .hp-hospital-card__photo picture img,
  .public-home-v2 .hp-hospital-card__photo img,
  .public-home-v2 .hp-hospital-card__img {
    height: 86px !important;
    max-height: 86px !important;
  }
}
