/* Afiya Clinic v4 — Klinik 24 landing (blue/purple clinical) */
.theme-afiya-v4{
  --theme-bg:#f9fbfc;
  --theme-surface:#ffffff;
  --theme-elevated-surface:#f9fbfc;
  --theme-text:#031432;
  --theme-muted:#6c87ae;
  --theme-accent:#3a8ef6;
  --theme-accent-contrast:#ffffff;
  --theme-radius:24px;
  --theme-radius-card:24px;
  --theme-radius-button:100px;
  --theme-radius-image:32px;
  --theme-heading:"Poppins","Tajawal",system-ui,sans-serif;
  --theme-body:"Sora","Tajawal",system-ui,sans-serif;
  --theme-section-padding-scale:.72;
  --afiya-grad:linear-gradient(141deg,#3a8ef6 0%,#6f3afa 100%);
  --afiya-grad-alt:linear-gradient(145deg,#1678f2 0%,#65a8fb 100%);
  --afiya-shadow:0 8px 23px rgba(65,132,247,.24);
  --afiya-card-shadow:0 24px 32px -3px rgba(3,9,50,.04);
  font-family:var(--theme-body);
  color:var(--theme-text);
  background:var(--theme-bg);
}
.theme-afiya-v4[dir=rtl]{
  --theme-heading:"Tajawal","Poppins",system-ui,sans-serif;
  --theme-body:"Tajawal","Sora",system-ui,sans-serif;
}
.theme-afiya-v4 .theme-hero h1,
.theme-afiya-v4 .theme-section h2,
.theme-afiya-v4 .theme-split h2,
.theme-afiya-v4 .theme-contact h2,
.theme-afiya-v4 .theme-services h3,
.theme-afiya-v4 .theme-quote .theme-kicker,
.theme-afiya-v4 .theme-booking-services strong{
  font-family:var(--theme-heading);
}

/* —— Buttons —— */
.theme-afiya-v4 .theme-button,
.theme-afiya-v4 .theme-button-small,
.theme-afiya-v4 span.theme-button{
  border-radius:100px;
  background:var(--afiya-grad);
  color:#fff!important;
  border:0;
  font-family:var(--theme-body);
  font-size:18px;
  font-weight:600;
  line-height:1.2;
  padding:16px 28px;
  box-shadow:var(--afiya-shadow);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}
.theme-afiya-v4 .theme-button:hover,
.theme-afiya-v4 .theme-button-small:hover{filter:brightness(.96);transform:translateY(-1px)}
.theme-afiya-v4 .theme-button-invert,
.theme-afiya-v4 .theme-contact .theme-button:not(.theme-button-ghost){
  background:#fff;
  color:#3a8ef6!important;
  box-shadow:var(--afiya-shadow);
}
.theme-afiya-v4 .theme-button-ghost{
  background:transparent!important;
  color:#fff!important;
  border:1px solid #fff;
  box-shadow:var(--afiya-shadow);
}

/* —— Header —— */
.theme-afiya-v4 .theme-header-glass{
  height:88px;
  background:#f2f7ff;
  border:0;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding-inline:clamp(24px,11vw,165px);
}
.theme-afiya-v4 .theme-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#3a8ef6;
  font-family:var(--theme-body);
  font-size:clamp(22px,2.2vw,32px);
  font-weight:600;
  letter-spacing:0;
}
.theme-afiya-v4 .theme-brand:before{
  content:"";
  width:24px;
  height:24px;
  border-radius:9999px;
  background:var(--afiya-grad);
  box-shadow:inset 0 4px 4px rgba(0,0,0,.12),0 4px 19px rgba(22,120,242,.2);
  flex-shrink:0;
}
.theme-afiya-v4 .theme-header nav{gap:28px}
.theme-afiya-v4 .theme-header nav>a:not(.theme-button):not(.theme-language){
  color:#6c87ae;
  font-family:var(--theme-body);
  font-size:16px;
  font-weight:400;
  opacity:.8;
}
.theme-afiya-v4 .theme-header nav>a[aria-current=page]{
  color:#3a8ef6;
  opacity:1;
}
.theme-afiya-v4 .theme-language{
  border-color:#c5d4ea;
  color:#6c87ae;
}

/* —— Hero —— */
.theme-afiya-v4 .theme-hero{
  position:relative;
  min-height:708px;
  background:#f2f7ff;
  align-items:center;
  overflow:visible;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
}
.theme-afiya-v4 .theme-hero-copy{
  padding-inline:clamp(24px,11vw,165px);
  padding-block:clamp(48px,7vw,88px);
  z-index:1;
}
.theme-afiya-v4 .theme-hero h1{
  color:#3a8ef6;
  font-size:clamp(28px,3.2vw,40px);
  font-weight:700;
  line-height:1.25;
  max-width:18ch;
  letter-spacing:0;
  margin:0 0 16px;
}
.theme-afiya-v4 .theme-hero p{
  color:#6c87ae;
  font-size:16px;
  line-height:24px;
  max-width:42ch;
  margin:0 0 40px;
}
.theme-afiya-v4 .theme-hero-image{
  position:relative;
  justify-self:center;
  width:min(426px,78vw);
  height:min(426px,78vw);
  min-height:0;
  margin:48px auto 110px;
  border-radius:9999px;
  background:var(--afiya-grad);
  box-shadow:
    0 0 0 28px rgba(84,102,248,.1),
    0 0 0 12px rgba(84,102,248,.18),
    0 4px 4px rgba(0,0,0,.2);
  overflow:hidden;
}
.theme-afiya-v4 .theme-hero-image:before,
.theme-afiya-v4 .theme-hero-image:after{display:none}
.theme-afiya-v4 .theme-hero-image img{
  position:relative;
  z-index:1;
  width:100%;
  height:118%;
  object-fit:cover;
  object-position:center 8%;
  border-radius:0;
  mix-blend-mode:screen;
  transform:translateY(-10%);
}
/* Proof chip: pull out of copy and pin over the hero media */
.theme-afiya-v4 .theme-hero-copy .theme-hero-proof{
  position:absolute;
  z-index:4;
  inset-inline-start:auto;
  inset-inline-end:clamp(40px,12vw,180px);
  top:auto;
  bottom:72px;
  margin:0;
  padding:14px 16px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 12px 32px rgba(63,128,240,.08);
  display:flex;
  flex-direction:column;
  gap:2px;
  max-width:240px;
  width:max-content;
}
.theme-afiya-v4 .theme-hero-proof span{display:block}
.theme-afiya-v4 .theme-hero-proof span:before{display:none!important}
.theme-afiya-v4 .theme-hero-proof span:first-child{
  color:#031432;
  font-family:var(--theme-heading);
  font-size:16px;
  font-weight:500;
}
.theme-afiya-v4 .theme-hero-proof span:last-child{
  color:#6c87ae;
  font-family:var(--theme-body);
  font-size:12px;
  font-weight:400;
}

/* —— Partners —— */
.theme-afiya-v4 .theme-logos-section{
  background:#e2edff;
  padding-block:48px;
  width:100%;
  max-width:none;
  margin:0;
}
.theme-afiya-v4 .theme-logos-section .theme-section-head{
  grid-template-columns:1fr;
  text-align:center;
  margin-bottom:24px;
  justify-items:center;
}
.theme-afiya-v4 .theme-logos-section .theme-section-head>span{display:none}
.theme-afiya-v4 .theme-logos-section h2{
  font-size:32px;
  font-weight:600;
  opacity:.8;
  margin:0;
  color:#031432;
}
.theme-afiya-v4 .theme-logos{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:24px 48px;
  max-width:1110px;
  margin-inline:auto;
  align-items:center;
  justify-items:center;
}
.theme-afiya-v4 .theme-logos-section-muted .theme-logos img{
  filter:none;
  opacity:1;
  mix-blend-mode:normal;
  max-width:160px;
  height:64px;
  width:auto;
  object-fit:contain;
}

/* —— Service cards —— */
.theme-afiya-v4 .theme-services-section-cards{
  background:#f9fbfc;
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  column-gap:48px;
  row-gap:40px;
  align-items:start;
}
.theme-afiya-v4 .theme-services-section-cards .theme-section-head{
  grid-column:1;
  grid-template-columns:1fr;
  align-items:start;
  gap:0;
  margin:0;
}
.theme-afiya-v4 .theme-services-section-cards .theme-section-head>span{display:none}
.theme-afiya-v4 .theme-services-section-cards h2{
  font-size:32px;
  font-weight:600;
  max-width:14ch;
  color:#031432;
  line-height:1.2;
}
.theme-afiya-v4 .theme-services-section-cards .theme-section-lead{
  grid-column:2;
  grid-row:1;
  margin:0;
  align-self:center;
  max-width:565px;
  color:#6c87ae;
  font-size:16px;
  line-height:24px;
  opacity:.9;
}
.theme-afiya-v4 .theme-services-section-cards .theme-services{
  grid-column:1/-1;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px;
  border:0;
}
.theme-afiya-v4 .theme-services-section-cards article{
  background:#fff;
  border:0!important;
  border-radius:24px;
  box-shadow:var(--afiya-card-shadow);
  padding:0;
  overflow:hidden;
}
.theme-afiya-v4 .theme-services-section-cards .theme-service-media{display:none}
.theme-afiya-v4 .theme-services-section-cards .theme-service-copy{
  position:relative;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
}
.theme-afiya-v4 .theme-services-section-cards .theme-service-index,
.theme-afiya-v4 .theme-services-section-cards .theme-arrow{display:none}
.theme-afiya-v4 .theme-services-section-cards h3{
  margin:8px 0 0;
  font-size:24px;
  font-weight:500;
  line-height:1.15;
  color:#000;
}
.theme-afiya-v4 .theme-services-section-cards p{
  font-size:14px;
  line-height:20px;
  color:#6c87ae;
  margin:0;
  flex:1;
}
/* Icon disc + glyph */
.theme-afiya-v4 .theme-services-section-cards .theme-service-copy:before{
  content:"";
  width:80px;
  height:80px;
  border-radius:9999px;
  flex-shrink:0;
  background-color:rgba(133,95,206,.12);
  background-image:url("/themes/v4/afiya-clinic/icon-pharmacy.svg");
  background-position:center;
  background-size:40px;
  background-repeat:no-repeat;
}
.theme-afiya-v4 .theme-services-section-cards article:nth-child(2) .theme-service-copy:before{
  background-color:rgba(39,174,96,.12);
  background-image:url("/themes/v4/afiya-clinic/icon-checkup.svg");
}
.theme-afiya-v4 .theme-services-section-cards article:nth-child(3) .theme-service-copy:before{
  background-color:rgba(47,128,237,.12);
  background-image:url("/themes/v4/afiya-clinic/icon-doctor.svg");
}
.theme-afiya-v4 .theme-services-section-cards .theme-text-link{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  border-radius:100px;
  background:var(--afiya-grad);
  color:#fff!important;
  text-decoration:none;
  font-family:var(--theme-body);
  font-weight:600;
  font-size:18px;
  box-shadow:var(--afiya-shadow);
}
.theme-afiya-v4 .theme-services-section-media .theme-services{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  border:0;
}
.theme-afiya-v4 .theme-services-section-media article{
  background:#fff;
  border:0;
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--afiya-card-shadow);
}

/* —— Splits —— */
.theme-afiya-v4 .theme-split{
  background:transparent;
  padding-inline:clamp(24px,11vw,165px);
  padding-block:clamp(48px,6vw,80px);
  gap:42px;
  align-items:center;
}
.theme-afiya-v4 .theme-split-asymmetric .theme-split-media{
  position:relative;
  min-height:405px;
  border-radius:32px;
  overflow:visible;
  box-shadow:0 22px 32px rgba(63,135,247,.16);
}
.theme-afiya-v4 .theme-split-asymmetric .theme-split-media img{
  border-radius:32px;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:405px;
}
.theme-afiya-v4 .theme-split-asymmetric .theme-split-media:after{
  content:"Quality over Quantity";
  position:absolute;
  inset-inline-start:16px;
  bottom:16px;
  padding:14px 16px 14px 56px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 12px 32px rgba(63,128,240,.08);
  color:#031432;
  font-family:var(--theme-heading);
  font-size:16px;
  font-weight:500;
  z-index:2;
  white-space:nowrap;
}
.theme-afiya-v4[dir=rtl] .theme-split-asymmetric .theme-split-media:after{
  content:"الجودة فوق الكمية";
}
.theme-afiya-v4 .theme-split-asymmetric .theme-split-media:before{
  content:"";
  position:absolute;
  inset-inline-start:30px;
  bottom:28px;
  width:32px;
  height:32px;
  border-radius:9999px;
  background:var(--afiya-grad);
  box-shadow:inset 0 4px 4px rgba(0,0,0,.12),0 4px 19px rgba(22,120,242,.2);
  z-index:3;
}
.theme-afiya-v4 .theme-split-reverse{
  background:#fff;
}
.theme-afiya-v4 .theme-split-reverse .theme-split-media{
  position:relative;
  min-height:508px;
  width:min(508px,100%);
  margin-inline:auto;
  background:transparent;
  border-radius:0;
  overflow:visible;
  box-shadow:none;
}
.theme-afiya-v4 .theme-split-reverse .theme-split-media:before,
.theme-afiya-v4 .theme-split-reverse .theme-split-media:after{display:none}
.theme-afiya-v4 .theme-split-reverse .theme-split-media img{
  position:static;
  width:100%;
  height:auto;
  min-height:0;
  object-fit:contain;
  border-radius:0;
  transform:none;
  filter:none;
  background:transparent;
  box-shadow:none;
}
.theme-afiya-v4 .theme-split h2{
  font-size:32px;
  font-weight:600;
  max-width:16ch;
  color:#031432;
  line-height:1.25;
  margin:0 0 16px;
}
.theme-afiya-v4 .theme-split-copy{padding:clamp(24px,4vw,40px) 0}
.theme-afiya-v4 .theme-split-copy p{
  color:#6c87ae;
  font-size:16px;
  line-height:24px;
  margin:0 0 32px;
  max-width:485px;
}
.theme-afiya-v4 .theme-split-copy .theme-kicker{display:none}
.theme-afiya-v4 .theme-split-actions{margin-top:0}

/* —— Booking / credentials —— */
.theme-afiya-v4 .theme-booking-section,
.theme-afiya-v4 .theme-credentials-section{
  background:#f9fbfc;
}
.theme-afiya-v4 .theme-booking-section .theme-section-head>span,
.theme-afiya-v4 .theme-credentials-section .theme-section-head>span{
  color:#3a8ef6;
  text-transform:none;
  letter-spacing:0;
  font-size:14px;
  font-weight:600;
}
.theme-afiya-v4 .theme-booking-section h2,
.theme-afiya-v4 .theme-credentials-section h2{
  font-size:32px;
  font-weight:600;
  color:#031432;
}
.theme-afiya-v4 .theme-booking{
  gap:28px;
}
.theme-afiya-v4 .theme-booking-intro p{
  font-size:16px;
  line-height:24px;
  color:#6c87ae;
  max-width:640px;
}
.theme-afiya-v4 .theme-booking-services{
  background:transparent;
  gap:16px;
  border-radius:0;
  overflow:visible;
}
.theme-afiya-v4 .theme-booking-services li{
  position:relative;
  background:#fff;
  border-radius:24px;
  box-shadow:var(--afiya-card-shadow);
  padding:24px 56px 24px 28px;
  gap:8px;
}
.theme-afiya-v4 .theme-booking-services li:after{
  content:"";
  position:absolute;
  inset-inline-end:24px;
  top:50%;
  width:12px;
  height:12px;
  border-inline-end:2px solid #3a8ef6;
  border-block-end:2px solid #3a8ef6;
  transform:translateY(-60%) rotate(45deg);
  opacity:.7;
}
.theme-afiya-v4 .theme-booking-services strong{
  font-size:18px;
  font-weight:600;
  color:#031432;
}
.theme-afiya-v4 .theme-booking-meta b{color:#3a8ef6}
.theme-afiya-v4 .theme-credentials li{
  background:#fff;
  border-radius:24px;
  box-shadow:var(--afiya-card-shadow);
  padding:28px;
}

/* —— CTA banner —— */
.theme-afiya-v4 .theme-contact-accent{
  margin:24px clamp(24px,11vw,165px) 48px;
  padding:64px 32px;
  border-radius:32px;
  background:var(--afiya-grad);
  box-shadow:0 20px 24px rgba(65,132,247,.24);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:24px;
  grid-template-columns:unset;
}
.theme-afiya-v4 .theme-contact-accent:after{display:none}
.theme-afiya-v4 .theme-contact-accent .theme-kicker{display:none}
.theme-afiya-v4 .theme-contact-accent>div{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  max-width:676px;
}
.theme-afiya-v4 .theme-contact-accent h2{
  color:#fff;
  font-size:32px;
  font-weight:600;
  margin:0;
}
.theme-afiya-v4 .theme-contact-accent p{
  margin:0;
  color:#fff;
  opacity:.8;
  font-size:16px;
  line-height:24px;
}
.theme-afiya-v4 .theme-contact-accent .theme-contact-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px 32px;
}
.theme-afiya-v4 .theme-contact-accent .theme-button-ghost{
  background:transparent!important;
  color:#fff!important;
  border:1px solid #fff;
}
.theme-afiya-v4 .theme-contact-accent .theme-button-invert,
.theme-afiya-v4 .theme-contact-accent .theme-button:not(.theme-button-ghost){
  background:#fff!important;
  color:#3a8ef6!important;
}
.theme-afiya-v4 .theme-contact-accent .theme-button svg{display:none}

/* —— Testimonials —— */
.theme-afiya-v4 .theme-quote{
  padding:clamp(56px,7vw,88px) clamp(24px,11vw,165px);
  text-align:center;
  background:#f9fbfc;
}
.theme-afiya-v4 .theme-quote .theme-kicker{
  display:block;
  text-transform:none;
  letter-spacing:0;
  font-size:32px;
  font-weight:600;
  color:#031432;
  margin-bottom:16px;
}
.theme-afiya-v4 .theme-quote-cards{
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:40px;
  text-align:start;
}
.theme-afiya-v4 .theme-quote-cards figure{
  padding:32px;
  border:0;
  border-radius:32px;
  background:#fff;
  box-shadow:var(--afiya-card-shadow);
}
.theme-afiya-v4 .theme-quote-cards .theme-rating{display:none}
.theme-afiya-v4 .theme-quote-cards blockquote{
  font-family:var(--theme-heading);
  font-size:20px;
  font-weight:300;
  font-style:italic;
  line-height:1.5;
  color:#031432;
  margin:0 0 32px;
}
.theme-afiya-v4 .theme-quote-cards figcaption{
  display:flex;
  align-items:center;
  gap:16px;
  color:#3a8ef6;
  font-family:var(--theme-heading);
  font-size:20px;
  font-weight:500;
}
.theme-afiya-v4 .theme-quote-cards figcaption:before{
  content:"";
  width:72px;
  height:72px;
  border-radius:9999px;
  background:#c4c4c4 url("/themes/v4/afiya-clinic/avatar-01.png") center/cover;
  flex-shrink:0;
}
.theme-afiya-v4 .theme-quote-cards figure:nth-child(2) figcaption:before{
  background-image:url("/themes/v4/afiya-clinic/avatar-02.png");
}
.theme-afiya-v4 .theme-quote-cards figure:nth-child(3) figcaption:before{
  background-image:url("/themes/v4/afiya-clinic/avatar-03.png");
}
.theme-afiya-v4 .theme-quote-cards figure:nth-child(4) figcaption:before{
  background-image:url("/themes/v4/afiya-clinic/avatar-04.png");
}
.theme-afiya-v4 .theme-quote-cards small{
  display:block;
  color:#6c87ae;
  font-family:var(--theme-body);
  font-size:16px;
  font-weight:400;
  font-style:normal;
}

/* —— Footer —— */
.theme-afiya-v4 .theme-footer-columns{
  background:#0a0e31;
  color:#fff;
  padding:64px clamp(24px,11vw,165px) 40px;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:40px;
}
.theme-afiya-v4 .theme-footer strong{
  color:#fff;
  font-family:var(--theme-body);
  font-size:32px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.theme-afiya-v4 .theme-footer strong:before{
  content:"";
  width:24px;
  height:24px;
  border-radius:9999px;
  background:var(--afiya-grad);
  box-shadow:inset 0 4px 4px rgba(0,0,0,.12),0 4px 19px rgba(22,120,242,.2);
  flex-shrink:0;
}
.theme-afiya-v4 .theme-footer p{
  font-family:var(--theme-heading);
  font-style:italic;
  font-weight:300;
  opacity:1;
  max-width:471px;
  color:#fff;
  margin-top:16px;
}
.theme-afiya-v4 .theme-footer nav a{
  opacity:.8;
  font-family:var(--theme-body);
  font-size:16px;
}
.theme-afiya-v4 .theme-footer-social .theme-social-icon{
  background:transparent;
  color:#fff;
  border:1.5px solid #fff;
  border-radius:8px;
}
.theme-afiya-v4 .theme-footer>span{
  opacity:.8;
  font-family:var(--theme-body);
  grid-column:1/-1;
  border-top:1px solid rgba(255,255,255,.35);
  padding-top:24px;
  margin-top:16px;
}

@media(max-width:1100px){
  .theme-afiya-v4 .theme-logos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .theme-afiya-v4 .theme-footer-columns{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .theme-afiya-v4 .theme-hero{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .theme-afiya-v4 .theme-hero-image{
    order:-1;
    margin:40px auto 120px;
  }
  .theme-afiya-v4 .theme-hero-copy .theme-hero-proof{
    inset-inline:auto;
    inset-inline-start:50%;
    transform:translateX(-50%);
    bottom:24px;
  }
  .theme-afiya-v4[dir=rtl] .theme-hero-copy .theme-hero-proof{
    transform:translateX(50%);
  }
  .theme-afiya-v4 .theme-services-section-cards{
    grid-template-columns:1fr;
  }
  .theme-afiya-v4 .theme-services-section-cards .theme-section-lead{
    grid-column:1;
    grid-row:auto;
  }
  .theme-afiya-v4 .theme-services-section-cards .theme-services,
  .theme-afiya-v4 .theme-quote-cards{grid-template-columns:1fr}
  .theme-afiya-v4 .theme-services-section-cards .theme-section-head{
    grid-template-columns:1fr;
    gap:12px;
  }
  .theme-afiya-v4 .theme-contact-accent{margin-inline:18px}
  .theme-afiya-v4 .theme-split-reverse .theme-split-media{
    min-height:0;
    width:min(360px,100%);
  }
}
@media(max-width:620px){
  .theme-afiya-v4 .theme-header-glass{height:74px;padding-inline:18px}
  .theme-afiya-v4 .theme-hero h1{font-size:clamp(26px,8vw,34px)}
  .theme-afiya-v4 .theme-button,
  .theme-afiya-v4 .theme-button-small,
  .theme-afiya-v4 span.theme-button{font-size:16px;padding:14px 22px}
  .theme-afiya-v4 .theme-logos{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .theme-afiya-v4 .theme-split{padding-inline:18px}
  .theme-afiya-v4 .theme-split-asymmetric .theme-split-media:after{
    font-size:14px;
    white-space:normal;
    max-width:calc(100% - 32px);
  }
  .theme-afiya-v4 .theme-footer-columns{grid-template-columns:1fr}
}

/* Rollout uplift: denser clinical wayfinding and explicit appointment proof. */
.theme-afiya-v4 .theme-hero-compact {
  min-height:auto;
  padding-block:clamp(64px,8vw,118px);
  background:
    linear-gradient(90deg,rgba(20,110,120,.055) 1px,transparent 1px),
    linear-gradient(rgba(20,110,120,.055) 1px,transparent 1px),
    #fbfcfa;
  background-size:32px 32px;
  border-block-end:1px solid rgba(18,56,64,.16);
}
.theme-afiya-v4 .theme-hero-compact .theme-container{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(300px,.82fr);
  align-items:center;
  gap:clamp(32px,6vw,84px);
}
.theme-afiya-v4 .theme-hero-compact h1{
  max-width:13ch;
  font-size:clamp(2.7rem,5.4vw,5.8rem);
  line-height:1.06;
  letter-spacing:-.035em;
}
.theme-afiya-v4 .theme-hero-compact .theme-hero-media{
  padding:12px;
  background:#fff;
  border:1px solid rgba(18,56,64,.18);
  border-radius:12px;
  box-shadow:none;
}
.theme-afiya-v4 .theme-hero-compact .theme-hero-media img{
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:7px;
  filter:saturate(.82) contrast(1.02);
}
.theme-afiya-v4 .theme-hero-compact .theme-button{
  border-radius:8px;
  box-shadow:none;
}
.theme-afiya-v4 .theme-stats-compact{
  padding-block:22px;
  background:#123840;
  color:#fff;
  border:0;
}
.theme-afiya-v4 .theme-stats-compact .theme-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
}
.theme-afiya-v4 .theme-stats-compact .theme-stat{
  padding:14px 28px;
  border-inline-end:1px solid rgba(255,255,255,.24);
}
.theme-afiya-v4 .theme-stats-compact .theme-stat:last-child{border-inline-end:0}
.theme-afiya-v4 .theme-stats-compact strong{color:#a9ded8;font-variant-numeric:tabular-nums}

.theme-afiya-v4 .theme-booking-section-split{
  background:#eaf3f1;
  border-block:1px solid rgba(18,56,64,.14);
}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-layout{
  display:grid;
  grid-template-columns:minmax(270px,.72fr) minmax(0,1.28fr);
  gap:clamp(32px,7vw,100px);
  align-items:start;
}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-copy{
  position:sticky;
  inset-block-start:24px;
  padding:30px;
  background:#123840;
  color:#fff;
  border-radius:10px;
}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-copy h2{color:#fff}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-copy p{color:#d5e7e5}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-services{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-service{
  min-height:220px;
  padding:24px;
  background:#fff;
  border:1px solid rgba(18,56,64,.15);
  border-radius:10px;
  box-shadow:none;
}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-service h3{
  color:#123840;
  font-size:1.15rem;
}
.theme-afiya-v4 .theme-booking-section-split .theme-booking-service strong{
  color:#146e78;
  font-variant-numeric:tabular-nums;
}
.theme-afiya-v4 .theme-credentials-section-strip{
  padding-block:36px;
  background:#fff;
}
.theme-afiya-v4 .theme-credentials-section-strip .theme-credentials{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  border:1px solid rgba(18,56,64,.16);
  border-radius:10px;
  overflow:hidden;
}
.theme-afiya-v4 .theme-credentials-section-strip .theme-credential{
  min-height:148px;
  padding:24px;
  border-inline-end:1px solid rgba(18,56,64,.16);
}
.theme-afiya-v4 .theme-credentials-section-strip .theme-credential:last-child{border-inline-end:0}
.theme-afiya-v4 .theme-team-section-compact .theme-team{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.theme-afiya-v4 .theme-team-section-compact .theme-team article{
  min-height:200px;
  padding:26px;
  background:#fff;
  border:1px solid rgba(18,56,64,.14);
  border-radius:10px;
  box-shadow:none;
}
.theme-afiya-v4 .theme-team-section-compact .theme-team h3{color:#123840;font-size:1.2rem}
.theme-afiya-v4 .theme-faq-compact .theme-faq-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.theme-afiya-v4 .theme-faq-compact .theme-faq-item{
  padding:22px;
  background:#fff;
  border:1px solid rgba(18,56,64,.14);
  border-radius:8px;
  box-shadow:none;
}
.theme-afiya-v4 .theme-split-compact{
  margin:0;
  border-radius:0;
  background:#f3f7f5;
}
.theme-afiya-v4 .theme-split-compact .theme-split-grid{
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:clamp(26px,5vw,70px);
}
.theme-afiya-v4 .theme-contact-accent{background:#0f5961}
.theme-afiya-v4 .theme-contact-accent .theme-button{
  background:#fff;
  color:#123840;
  border-radius:8px;
}
.theme-afiya-v4 .theme-footer-standard{
  background:#123840;
  color:#eef8f6;
  border-block-start:4px solid #64b5ad;
}

@media(max-width:820px){
  .theme-afiya-v4 .theme-hero-compact .theme-container,
  .theme-afiya-v4 .theme-booking-section-split .theme-booking-layout,
  .theme-afiya-v4 .theme-split-compact .theme-split-grid{grid-template-columns:1fr}
  .theme-afiya-v4 .theme-booking-section-split .theme-booking-copy{position:static}
  .theme-afiya-v4 .theme-team-section-compact .theme-team{grid-template-columns:1fr}
}
@media(max-width:620px){
  .theme-afiya-v4 .theme-booking-section-split .theme-booking-services,
  .theme-afiya-v4 .theme-faq-compact .theme-faq-list{grid-template-columns:1fr}
  .theme-afiya-v4 .theme-credentials-section-strip .theme-credentials{grid-template-columns:1fr}
  .theme-afiya-v4 .theme-credentials-section-strip .theme-credential{
    border-inline-end:0;
    border-block-end:1px solid rgba(18,56,64,.16)
  }
  .theme-afiya-v4 .theme-stats-compact .theme-stats{grid-template-columns:1fr}
  .theme-afiya-v4 .theme-stats-compact .theme-stat{border-inline-end:0;border-block-end:1px solid rgba(255,255,255,.2)}
}
@media(prefers-reduced-motion:reduce){
  .theme-afiya-v4 *,
  .theme-afiya-v4 *::before,
  .theme-afiya-v4 *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
