/**
 * Prompt 3 — Screen 3 premium mobile polish
 * Treatments · Hospitals · Cost · Stories · Visa/Travel
 * Does not restyle Screen 1/2/4.
 */

@media (max-width: 767px) {
  /* ========== TREATMENTS ========== */
  body.page-home.public-home-v2 .hp-specs.pub-p2 {
    background: #f3f8fd !important;
    padding-block: 1.35rem !important;
  }

  body.page-home.public-home-v2 .hp-specs .hp-section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    padding-inline: 1rem !important;
    margin-bottom: 0.85rem !important;
  }

  body.page-home.public-home-v2 .hp-specs .hp-section-head h2 {
    font-size: clamp(1.3rem, 5vw, 1.5rem) !important;
    color: #0b2f5b !important;
    margin: 0 !important;
    line-height: 1.25 !important;
  }

  body.page-home.public-home-v2 .hp-specs .hp-view-all {
    flex: 0 0 auto;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
    white-space: nowrap;
  }

  body.page-home.public-home-v2 .hp-specs__swiper {
    padding-inline: 1rem !important;
    padding-bottom: 1.35rem !important;
    overflow: hidden !important;
  }

  body.page-home.public-home-v2 .hp-specs .hp-spec-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.55rem !important;
    min-height: 148px !important;
    height: 100% !important;
    padding: 0.85rem 0.55rem 0.75rem !important;
    background: #fff !important;
    border: 1px solid #dbe7f5 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 20px rgba(11, 47, 91, 0.07) !important;
    text-decoration: none !important;
  }

  body.page-home.public-home-v2 .hp-specs .hp-spec-card__media {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    min-height: 78px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #eef6ff !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.08);
  }

  body.page-home.public-home-v2 .hp-specs .hp-spec-card__media img,
  body.page-home.public-home-v2 .hp-specs .hp-spec-card__media picture,
  body.page-home.public-home-v2 .hp-specs .hp-spec-card__media picture img,
  body.page-home.public-home-v2 .hp-specs .hp-spec-card__img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  body.page-home.public-home-v2 .hp-specs .hp-spec-card__title {
    font-size: 0.86rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    color: #0b2f5b !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 12ch;
  }

  body.page-home.public-home-v2 .hp-specs .hp-specs__bar,
  body.page-home.public-home-v2 .hp-specs .swiper-pagination {
    bottom: 0 !important;
    position: relative !important;
    margin-top: 0.55rem !important;
  }

  /* ========== HOSPITALS ========== */
  body.page-home.public-home-v2 .hp-hospitals.pub-p3 {
    background: #fff !important;
    padding-block: 1.35rem !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__panel,
  body.page-home.public-home-v2 .hp-hospitals .pub-p3__inner {
    padding-inline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__head {
    padding-inline: 1rem !important;
    margin-bottom: 0.8rem !important;
    align-items: flex-start !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__title {
    font-size: clamp(1.3rem, 5vw, 1.5rem) !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__sub {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin-top: 0.2rem !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__view {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__carousel {
    padding-inline: 1rem !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hs__nav {
    display: none !important; /* swipe + dots on mobile */
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #e2eef8 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 24px rgba(11, 47, 91, 0.08) !important;
    text-decoration: none !important;
    min-height: 248px !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__photo {
    position: relative !important;
    height: 128px !important;
    min-height: 128px !important;
    background: #eef5ff !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__img,
  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__photo img,
  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__photo picture,
  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__photo picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__badge {
    position: absolute !important;
    top: 10px !important;
    inset-inline-start: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    background: rgba(15, 118, 110, 0.92) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 0.22rem 0.55rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__logo {
    position: absolute !important;
    bottom: -18px !important;
    inset-inline-end: 12px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid #e2eef8 !important;
    box-shadow: 0 6px 14px rgba(11, 47, 91, 0.12) !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__logo img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.28rem !important;
    padding: 1.15rem 0.9rem 0.9rem !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__name {
    font-size: 0.98rem !important;
    font-weight: 750 !important;
    color: #0b2f5b !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__city,
  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__meta {
    font-size: 0.8rem !important;
    color: #64748b !important;
    line-height: 1.3 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__acc {
    display: inline-flex !important;
    align-self: flex-start !important;
    margin-top: 0.2rem !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
  }

  body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__cta {
    margin-top: 0.35rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
  }

  /* ========== COST / QUOTATION ========== */
  body.page-home.public-home-v2 .hp-cost.pub-p3 {
    background: #eefaf3 !important;
    padding-block: 1.35rem !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__inner {
    padding-inline: 1rem !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__panel {
    background: #fff !important;
    border: 1px solid #d8efe3 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 28px rgba(11, 47, 91, 0.07) !important;
    padding: 1rem 0.95rem 0.95rem !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__hero {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 0.65rem !important;
    align-items: center !important;
    margin-bottom: 0.85rem !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__title {
    font-size: clamp(1.2rem, 4.8vw, 1.4rem) !important;
    line-height: 1.25 !important;
    color: #0b2f5b !important;
    margin: 0.35rem 0 0.4rem !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__sub {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__visual {
    max-height: 118px !important;
    overflow: hidden !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__art {
    width: 100% !important;
    height: auto !important;
    max-height: 118px !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__features {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    list-style: none !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__feature {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    background: #f4fbf7 !important;
    border: 1px solid #d8efe3 !important;
    border-radius: 14px !important;
    padding: 0.55rem 0.6rem !important;
    min-height: 58px !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__fico {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 auto;
    color: #0f766e !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__fico svg {
    width: 30px !important;
    height: 30px !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__flabel {
    font-size: 0.78rem !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__pay {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    background: #ecfdf5 !important;
    border-radius: 14px !important;
    padding: 0.7rem 0.75rem !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__pay-copy strong {
    font-size: 0.9rem !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__pay-copy p {
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin: 0.15rem 0 0 !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__pay-cta {
    margin-inline-start: auto !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0f766e !important;
    white-space: nowrap;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__journey {
    display: none !important; /* final CTA lives in Screen 4 */
  }

  /* ========== PATIENT STORIES ========== */
  body.page-home.public-home-v2 .hp-stories.pub-p3 {
    background: #fff !important;
    padding-block: 1.35rem !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-hs__panel,
  body.page-home.public-home-v2 .hp-stories .pub-p3__inner {
    padding-inline: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-hs__head {
    padding-inline: 1rem !important;
    margin-bottom: 0.8rem !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-hs__title {
    font-size: clamp(1.3rem, 5vw, 1.5rem) !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-hs__sub {
    font-size: 0.9rem !important;
    color: #64748b !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-hs__carousel {
    padding-inline: 1rem !important;
  }

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

  body.page-home.public-home-v2 .hp-stories .swiper-slide {
    width: 100% !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card,
  body.page-home.public-home-v2 .hp-stories .hp-story-card--premium {
    background: #f8fbff !important;
    border: 1px solid #e2eef8 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 28px rgba(11, 47, 91, 0.08) !important;
    padding: 1rem !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__layout {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 0.85rem !important;
    align-items: start !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__avatar {
    width: 88px !important;
    height: 88px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #e8f1fb !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__img,
  body.page-home.public-home-v2 .hp-stories .hp-story-card__avatar img,
  body.page-home.public-home-v2 .hp-stories .hp-story-card__avatar picture,
  body.page-home.public-home-v2 .hp-stories .hp-story-card__avatar picture img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__stars {
    display: flex !important;
    gap: 0.15rem !important;
    margin-bottom: 0.4rem !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__text {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    color: #334155 !important;
    margin: 0 0 0.65rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__who strong {
    display: block !important;
    font-size: 0.95rem !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__meta {
    display: block !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-top: 0.15rem !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__more {
    display: inline-flex !important;
    margin-top: 0.55rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #1d4ed8 !important;
  }

  body.page-home.public-home-v2 .hp-stories .hp-stories__dots,
  body.page-home.public-home-v2 .hp-stories .swiper-pagination {
    position: relative !important;
    margin-top: 0.75rem !important;
  }

  /* ========== VISA / TRAVEL / STAY ========== */
  body.page-home.public-home-v2 .hp-visa-travel.pub-p3 {
    background: #e8f3ff !important;
    padding-block: 1.35rem !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__inner {
    padding-inline: 1rem !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__hero {
    display: block !important;
    margin-bottom: 0.85rem !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__visual {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__title {
    font-size: clamp(1.28rem, 5vw, 1.48rem) !important;
    color: #0b2f5b !important;
    line-height: 1.25 !important;
    margin: 0.35rem 0 0.4rem !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__sub {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin: 0 0 0.7rem !important;
    max-width: 28rem;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__cta {
    min-height: 46px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
    list-style: none !important;
    margin: 0.85rem 0 0 !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    background: #fff !important;
    border: 1px solid #dbe7f5 !important;
    border-radius: 16px !important;
    padding: 0.9rem 0.8rem !important;
    box-shadow: 0 8px 18px rgba(11, 47, 91, 0.06) !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__ico {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__item--orange .hp-visa-travel__ico {
    background: #fff7ed !important;
    color: #ea580c !important;
  }
  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__item--purple .hp-visa-travel__ico {
    background: #f5f3ff !important;
    color: #7c3aed !important;
  }
  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__item--sky .hp-visa-travel__ico {
    background: #ecfeff !important;
    color: #0891b2 !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__ico svg {
    width: 28px !important;
    height: 28px !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__item strong {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__item > span:last-of-type {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    color: #64748b !important;
  }

  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__accent,
  body.page-home.public-home-v2 .hp-visa-travel .hp-visa-travel__dots {
    display: none !important;
  }
}

/* Narrow phones */
@media (max-width: 374px) {
  body.page-home.public-home-v2 .hp-specs .hp-spec-card__media {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__hero {
    grid-template-columns: 1fr !important;
  }

  body.page-home.public-home-v2 .hp-cost .hp-cost__visual {
    max-width: 160px;
    margin-inline: auto;
  }

  body.page-home.public-home-v2 .hp-stories .hp-story-card__layout {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }
}

/* RTL */
[dir="rtl"] body.page-home.public-home-v2 .hp-hospitals .hp-hospital-card__cta span,
[dir="rtl"] body.page-home.public-home-v2 .hp-specs .hp-view-all span,
[dir="rtl"] body.page-home.public-home-v2 .hp-hospitals .hp-hs__view span {
  display: inline-block;
  transform: scaleX(-1);
}
