/**
 * Public Website Redesign — Phase 3
 * Hospitals · Stories · Visa/Travel · Cost · Final CTA · Footer
 * Builds on Phase 1/2 tokens (--pub-*). Does not touch Live Chat / Admin / Portal.
 */

body.page-home .pub-p3 {
  --p3-pad-y: clamp(28px, 4vw, 56px);
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-family: var(--pub-font, "Plus Jakarta Sans", "Noto Sans Arabic", system-ui, sans-serif);
  color: var(--pub-text, #142433);
}

body.page-home .pub-p3__inner {
  width: var(--pub-container, min(100% - 32px, 1240px));
  max-width: var(--pub-container-max, 1240px);
  margin-inline: auto;
  box-sizing: border-box;
}

body.page-home .pub-p3__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.page-home .pub-p3__titles {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

body.page-home .pub-p3__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(26, 111, 181, 0.1);
  color: var(--pub-primary, #1a6fb5);
}

body.page-home .pub-p3__icon svg {
  width: 22px;
  height: 22px;
}

body.page-home .pub-p3__title {
  margin: 0;
  font-size: var(--pub-fs-h2, clamp(1.25rem, 2.4vw, 2rem));
  font-weight: 800;
  line-height: 1.2;
  color: var(--pub-navy, #0b2f4a);
  letter-spacing: -0.02em;
}

body.page-home .pub-p3__sub {
  margin: 6px 0 0;
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  line-height: 1.45;
  color: var(--pub-muted, #5a6b7d);
  max-width: 42ch;
}

body.page-home .pub-p3__link {
  color: var(--pub-primary, #1a6fb5);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-top: 4px;
}

body.page-home .pub-p3__link:hover,
body.page-home .pub-p3__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

body.page-home .pub-p3__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.28);
  border-radius: 4px;
}

/* =========================================================
   PARTNER HOSPITALS
   ========================================================= */
body.page-home .hp-hospitals.pub-p3 {
  padding: var(--p3-pad-y) 0;
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

body.page-home .hp-hospitals.pub-p3 .hp-hs {
  width: var(--pub-container);
  max-width: var(--pub-container-max);
  margin-inline: auto;
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__panel {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__head {
  margin-bottom: 14px;
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__title {
  font-size: var(--pub-fs-h2);
  font-weight: 800;
  color: var(--pub-navy);
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__sub {
  color: var(--pub-muted, #5a6b7d);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__carousel {
  position: relative;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospitals__swiper {
  overflow: hidden;
  padding-bottom: 28px;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 248px;
  background: #fff;
  border-radius: var(--pub-radius-md, 16px);
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: var(--pub-shadow-sm, 0 6px 18px rgba(15, 39, 68, 0.06));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card:hover,
body.page-home .hp-hospitals.pub-p3 .hp-hospital-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 39, 68, 0.1);
  outline: none;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8eef5;
  overflow: hidden;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__photo img,
body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__photo picture,
body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pub-primary);
  background: linear-gradient(135deg, #e8f2fb, #f5f9fc);
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(15, 39, 68, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 999px;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__rating {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pub-navy);
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  flex: 1;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__name {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  font-weight: 800;
  color: var(--pub-navy);
  line-height: 1.3;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__meta {
  font-size: 0.8rem;
  color: var(--pub-muted, #5a6b7d);
  line-height: 1.35;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__acc {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a7a5a;
}

body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__cta {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pub-primary);
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 39, 68, 0.12);
  background: #fff;
  color: var(--pub-navy);
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.08);
}

body.page-home .hp-hospitals.pub-p3 .hp-hs__nav:focus-visible {
  outline: 3px solid rgba(26, 111, 181, 0.35);
  outline-offset: 2px;
}

body.page-home .hp-hospitals.pub-p3 .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: rgba(15, 39, 68, 0.25);
  opacity: 1;
}

body.page-home .hp-hospitals.pub-p3 .swiper-pagination-bullet-active {
  background: var(--pub-primary);
  width: 18px;
  border-radius: 999px;
}

@media (max-width: 767px) {
  body.page-home .hp-hospitals.pub-p3 .hp-hs__nav {
    display: none;
  }
}

/* =========================================================
   PATIENT STORIES
   ========================================================= */
body.page-home .hp-stories.pub-p3 {
  padding: var(--p3-pad-y) 0;
  background: #fff;
}

body.page-home .hp-stories.pub-p3 .hp-hs {
  width: var(--pub-container);
  max-width: var(--pub-container-max);
  margin-inline: auto;
}

body.page-home .hp-stories.pub-p3 .hp-hs__panel {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

body.page-home .hp-stories.pub-p3 .hp-stories__swiper {
  overflow: hidden;
  padding-bottom: 28px;
}

body.page-home .hp-stories.pub-p3 .hp-story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  padding: 18px 16px 16px;
  background: #f6f9fc;
  border-radius: var(--pub-radius-md, 16px);
  border: 1px solid rgba(15, 39, 68, 0.06);
  box-shadow: none;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__qmark {
  display: none;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #dde7f1;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 47, 74, 0.82);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__play:focus-visible {
  outline: 3px solid rgba(26, 111, 181, 0.45);
}

body.page-home .hp-stories.pub-p3 .hp-story-card__who {
  min-width: 0;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__who strong {
  display: block;
  font-size: 0.95rem;
  color: var(--pub-navy);
}

body.page-home .hp-stories.pub-p3 .hp-story-card__who span {
  display: block;
  font-size: 0.78rem;
  color: var(--pub-muted);
  margin-top: 2px;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-inline-start: 4px;
}

body.page-home .hp-stories.pub-p3 .hp-demo-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf7f2;
  color: #1a7a5a;
  margin-bottom: 10px;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.55;
  color: #243447;
  flex: 1;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 39, 68, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.8rem;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__foot a {
  font-weight: 700;
  color: var(--pub-primary);
  text-decoration: none;
}

body.page-home .hp-stories.pub-p3 .hp-story-card__foot a:hover,
body.page-home .hp-stories.pub-p3 .hp-story-card__foot a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  body.page-home .hp-stories.pub-p3 .hp-hs__nav {
    display: none;
  }
}

/* Video modal */
.tm-video-modal.pub-p3-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: min(900px, 94vw);
  width: 100%;
  background: #0b1c2c;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tm-video-modal.pub-p3-modal::backdrop {
  background: rgba(8, 18, 30, 0.65);
}

.tm-video-modal.pub-p3-modal form {
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 0;
}

.tm-video-modal.pub-p3-modal button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.tm-video-modal.pub-p3-modal button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
}

.tm-video-modal.pub-p3-modal [data-tm-video-frame] {
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 8px 12px 12px;
  border-radius: 10px;
  overflow: hidden;
}

/* =========================================================
   VISA / TRAVEL / STAY
   ========================================================= */
body.page-home .hp-visa-travel.pub-p3 {
  padding: var(--p3-pad-y) 0;
  background: linear-gradient(180deg, #f3faf8 0%, #ffffff 92%);
}

body.page-home .hp-visa-travel.pub-p3 .pub-p3__panel {
  display: grid;
  gap: 20px;
  background: #fff;
  border-radius: var(--pub-radius-lg, 20px);
  border: 1px solid rgba(15, 39, 68, 0.06);
  box-shadow: var(--pub-shadow-sm, 0 8px 24px rgba(15, 39, 68, 0.05));
  padding: clamp(18px, 3vw, 28px);
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: #f4faf8;
  border: 1px solid rgba(26, 122, 90, 0.08);
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1a7a5a;
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__ico svg {
  width: 18px;
  height: 18px;
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--pub-navy);
  line-height: 1.3;
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__item span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--pub-muted);
  line-height: 1.35;
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--pub-radius-pill, 999px);
  border: 0;
  background: var(--pub-primary, #1a6fb5);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__cta:hover,
body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__cta:focus-visible {
  filter: brightness(1.05);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.28);
}

@media (min-width: 1024px) {
  body.page-home .hp-visa-travel.pub-p3 .pub-p3__panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  body.page-home .hp-visa-travel.pub-p3 .hp-visa-travel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* =========================================================
   COST TRANSPARENCY
   ========================================================= */
body.page-home .hp-cost.pub-p3 {
  padding: var(--p3-pad-y) 0;
  background: #fff;
}

body.page-home .hp-cost.pub-p3 .pub-p3__panel {
  display: grid;
  gap: 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #eef5fb 100%);
  border-radius: var(--pub-radius-lg, 20px);
  border: 1px solid rgba(26, 111, 181, 0.1);
  padding: clamp(18px, 3vw, 32px);
}

body.page-home .hp-cost.pub-p3 .hp-cost__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

body.page-home .hp-cost.pub-p3 .hp-cost__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.4;
  color: #243447;
}

body.page-home .hp-cost.pub-p3 .hp-cost__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f6ef;
  color: #1a7a5a;
  margin-top: 1px;
}

body.page-home .hp-cost.pub-p3 .hp-cost__check svg {
  width: 12px;
  height: 12px;
}

body.page-home .hp-cost.pub-p3 .hp-cost__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.06);
}

body.page-home .hp-cost.pub-p3 .hp-cost__aside strong {
  font-size: 1.05rem;
  color: var(--pub-navy);
}

body.page-home .hp-cost.pub-p3 .hp-cost__aside p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pub-muted);
  line-height: 1.45;
}

body.page-home .hp-cost.pub-p3 .hp-cost__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--pub-primary);
  color: var(--pub-primary);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

body.page-home .hp-cost.pub-p3 .hp-cost__cta:hover,
body.page-home .hp-cost.pub-p3 .hp-cost__cta:focus-visible {
  background: rgba(26, 111, 181, 0.06);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.2);
}

@media (min-width: 1024px) {
  body.page-home .hp-cost.pub-p3 .pub-p3__panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
body.page-home .ilj-fcta.pub-p3 {
  padding: var(--p3-pad-y) 0 calc(var(--p3-pad-y) + 8px);
  background: #f4f8fc;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__wrap {
  width: var(--pub-container);
  max-width: var(--pub-container-max);
  margin-inline: auto;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--pub-radius-lg, 20px);
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow: var(--pub-shadow-sm, 0 10px 28px rgba(15, 39, 68, 0.07));
  padding: clamp(20px, 3vw, 36px);
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__plus,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__ekg,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__orb,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__dots,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__feats,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__stats,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__trust,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__rule {
  display: none !important;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__layout {
  display: grid;
  gap: 18px;
  align-items: center;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--pub-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__title em {
  font-style: normal;
  color: var(--pub-primary);
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__lead {
  margin: 10px 0 0;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--pub-muted);
  line-height: 1.5;
  max-width: 46ch;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__btn--cb {
  background: var(--pub-primary, #1a6fb5);
  color: #fff;
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__btn--chat {
  background: #fff;
  color: var(--pub-navy);
  border: 1.5px solid rgba(15, 39, 68, 0.16);
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__btn:hover,
body.page-home .ilj-fcta.pub-p3 .ilj-fcta__btn:focus-visible {
  filter: brightness(1.03);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.25);
}

body.page-home .ilj-fcta.pub-p3 .ilj-fcta__visual {
  display: none;
}

@media (min-width: 768px) {
  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__layout {
    grid-template-columns: 1.15fr 0.85fr;
  }

  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__visual {
    display: block;
    position: relative;
    min-height: 220px;
  }

  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__doctor,
  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__visual picture,
  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__visual img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    display: block;
  }
}

/* Mobile CTA clearance */
body.page-home .ilj-fcta.pub-p3,
body.page-home .hp-cost.pub-p3,
body.page-home .hp-visa-travel.pub-p3 {
  padding-bottom: calc(var(--p3-pad-y) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1023px) {
  body.page-home .ilj-footer.pub-p3 {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* =========================================================
   FOOTER (homepage redesign chrome — scoped to avoid sitewide fights)
   ========================================================= */
body.page-home .ilj-footer.pub-p3 {
  background: #0b2f4a;
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(28px, 4vw, 48px) 0 24px;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__inner {
  width: var(--pub-container, min(100% - 32px, 1240px));
  max-width: var(--pub-container-max, 1240px);
  margin-inline: auto;
  box-sizing: border-box;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__top {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__brand p {
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__address {
  flex: 1 1 100%;
  margin: 4px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__contact-link:hover,
body.page-home .ilj-footer.pub-p3 .ilj-footer__contact-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__nav {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0 12px;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__group summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  cursor: pointer;
  font-weight: 700;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__group summary::-webkit-details-marker {
  display: none;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__group ul {
  margin: 0;
  padding: 0 0 12px 34px;
  list-style: none;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__group a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-block;
  padding: 5px 0;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__group a:hover,
body.page-home .ilj-footer.pub-p3 .ilj-footer__group a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__accs h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__accs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__acc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__acc img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__acc span {
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__bottom p {
  margin: 0;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__bottom a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

body.page-home .ilj-footer.pub-p3 .ilj-footer__bottom a:hover,
body.page-home .ilj-footer.pub-p3 .ilj-footer__bottom a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 1024px) {
  body.page-home .ilj-footer.pub-p3 .ilj-footer__top {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  body.page-home .ilj-footer.pub-p3 .ilj-footer__nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  body.page-home .ilj-footer.pub-p3 .ilj-footer__group {
    border: 0;
    background: transparent;
    padding: 0;
  }

  body.page-home .ilj-footer.pub-p3 .ilj-footer__group summary {
    pointer-events: none;
    min-height: auto;
    margin-bottom: 10px;
  }

  body.page-home .ilj-footer.pub-p3 .ilj-footer__group-chev {
    display: none;
  }

  body.page-home .ilj-footer.pub-p3 .ilj-footer__group[open] ul,
  body.page-home .ilj-footer.pub-p3 .ilj-footer__group ul {
    display: block !important;
    padding: 0;
  }

  body.page-home .ilj-footer.pub-p3 .ilj-footer__accs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* RTL */
[dir="rtl"] body.page-home .hp-hospitals.pub-p3 .hp-hospital-card__badge {
  inset-inline-start: 10px;
  inset-inline-end: auto;
}

[dir="rtl"] body.page-home .pub-p3__link span[aria-hidden="true"],
[dir="rtl"] body.page-home .hp-hs__view span[aria-hidden="true"] {
  display: inline-block;
  transform: scaleX(-1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.page-home .hp-hospitals.pub-p3 .hp-hospital-card,
  body.page-home .ilj-fcta.pub-p3 .ilj-fcta__btn {
    transition: none !important;
  }
}
