/* Avicenne Plus — richer, editorial v32 homepage.
   Inspiration: real African people, clear patient focus, navy/cyan/orange.
   Keep Avicenne Plus logo and real published links; no invented adoption/KPI counts.
   Cards and inputs stay square; only CTA buttons keep the approved pill treatment. */
.av-site .av-home{overflow-x:clip;max-width:100%}
 .av-site .av-home .ap-hero{
  position:relative;
  background:linear-gradient(116deg,#fff 0%,#fff 43%,#e7f7fa 100%)!important;
  border-bottom:1px solid #d6e6ed!important;
  padding:23px 0 65px!important;
  text-align:left;
  overflow:hidden;
}
.av-site .av-home .ap-hero::before{
  content:"";display:block;position:absolute;top:-310px;right:-180px;left:auto;
  width:740px;height:740px;border:0!important;border-radius:50%!important;
  background:radial-gradient(circle at 35% 50%,#b9ecf078,#d2eff35c 50%,#fff0 70%)!important;
  transform:none!important;pointer-events:none;
}
.av-site .av-home .ap-hero::after{
  position:absolute;top:55px;right:0;bottom:auto;width:8px;height:170px;
  border:0!important;border-radius:0!important;background:#f64e03!important;transform:none!important;
}
.av-home .ap-hero-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.03fr);gap:32px;align-items:center;padding:30px 0 22px}
.av-site .av-home .ap-hero-copy{padding:16px 0;position:relative;z-index:2}
.av-site .av-home .ap-product-label{
  color:#08788f!important;display:flex;align-items:center;max-width:100%;
  border-left:4px solid #f64e03!important;padding-left:13px!important;
  font-weight:850;letter-spacing:.1em;font-size:11px;line-height:1.5;margin-bottom:24px;
}
.av-site .av-home .ap-hero h1{
  color:#0b1f66!important;max-width:660px;
  font-size:clamp(36px,3.45vw,59px)!important;line-height:1.14!important;
  letter-spacing:-.035em;margin:0 0 20px!important;font-weight:850!important;
  text-wrap:balance;
}
.av-site .av-home .ap-hero h1 span{color:#078d9c!important}
.av-site .av-home .ap-hero-description{
  border-left:0!important;padding-left:0!important;
  font-size:15px;line-height:1.78!important;max-width:530px;
  color:#35536a!important;margin-bottom:26px;
}
.av-v32-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px 16px}
.av-site .av-v32-hero-actions .ap-button{
  display:inline-flex;align-items:center;justify-content:center;gap:11px;
  min-height:50px;box-sizing:border-box;border-radius:999px!important;padding:12px 21px;
  font-size:13px;font-weight:850;text-align:center;text-decoration:none;
}
.av-site .av-v32-hero-primary{
  color:#fff!important;background:linear-gradient(100deg,#057e91,#05a6b7)!important;
  border:2px solid #078b9b!important;box-shadow:0 7px 22px #087b921e;
}
.av-site .av-v32-hero-primary:hover{background:#0b1f66!important;border-color:#0b1f66!important;color:#fff!important}
.av-site .av-v32-hero-secondary{background:#fff!important;color:#0b1f66!important;border:2px solid #f64e03!important}
.av-site .av-v32-hero-secondary:hover{background:#f64e03!important;color:#0b1f66!important}
.av-v32-hero-actions .av-icon{width:17px;height:17px}
.av-site .av-v32-hero-trust{display:flex;align-items:center;gap:9px;color:#526a7d!important;font-size:12px;font-weight:650;line-height:1.6;margin:18px 0 0}
.av-v32-hero-trust .av-icon{width:18px;height:18px;color:#0c8798}
.av-site .av-home .ap-hero-visual.av-v32-care-scene{height:460px;min-width:0;overflow:visible;margin:12px 0 0;isolation:isolate}
.av-site .av-home .av-v32-care-scene::before{
  content:"";position:absolute;inset:16px 16px 2px 16px;border:0;border-radius:48% 52% 42% 45%;
  background:linear-gradient(135deg,#d9f0f5 0%,#b6e9ea 65%,#c6e9f23d 100%)!important;
  transform:rotate(5deg);z-index:-1;
}
.av-v32-scene-halo{position:absolute;inset:22px 17px 7px;border:2px solid #05a6b72a;border-radius:50%;pointer-events:none}
.av-site .av-home .av-v32-care-scene>img{width:112%;max-width:none;max-height:100%;height:auto;object-fit:contain;object-position:center bottom;position:relative;z-index:1;filter:drop-shadow(0 12px 21px #0b3d6820)}
.av-v32-floating-service{
  display:flex;align-items:center;gap:9px;position:absolute;z-index:3;
  min-width:166px;max-width:210px;padding:11px 13px;
  border:1px solid #d3e7ef;background:#fff;color:#0b1f66!important;
  box-shadow:0 12px 28px #093d601f;text-decoration:none!important;
}
.av-v32-floating-service:hover{border-color:#f64e03;transform:translateY(-2px)}
.av-v32-floating-service .av-icon{width:27px;height:27px;color:#07899a}
.av-v32-floating-service span{display:grid;min-width:0}
.av-v32-floating-service strong{font-size:12px;line-height:1.35;color:#0b1f66}
.av-v32-floating-service small{font-size:10px;color:#536b7c;line-height:1.3}
.av-v32-floating-booking{top:24px;right:-11px}
.av-v32-floating-donor{bottom:35px;left:0;border-left:4px solid #f64e03}
.av-v32-floating-donor .av-icon{color:#e04b17}
.av-site .av-home .av-v32-care-scene figcaption{
  background:#0b1f66!important;color:#fff!important;
  position:absolute;bottom:2px;right:12px;left:auto;border-radius:0!important;
  font-size:12px;font-weight:850;padding:8px 12px;z-index:3;max-width:300px
}
.av-site .av-home .ap-search{
  background:#fff!important;border:1px solid #cfdee8!important;
  border-top:4px solid #05a6b7!important;
  box-shadow:0 13px 28px #0b2f5016!important;
  border-radius:0!important;padding:11px 13px;position:relative;z-index:4;
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) auto;gap:0;
}
.av-home .ap-search-field{min-width:0}
.av-home .ap-search-field .av-icon{color:#068da3}
.av-site .av-home .ap-search>.av-action-button{border-radius:999px!important;align-self:center;margin:0 4px}
.av-site .av-home .ap-specialties{margin-top:18px}
.av-site .av-home .ap-specialties a{background:#e9f5f8!important;color:#0b1f66!important;border:1px solid #cbdfe7!important;border-radius:999px!important}
.av-site .av-home .ap-specialties a:hover{background:#d8f0f3!important;border-color:#05a6b7!important}
.av-home .ap-hero-bottom{border-top:1px solid #d9e8ec;padding-top:15px}
.av-site .av-home .ap-hero-bottom,.av-site .av-home .ap-hero-bottom a{color:#274e69!important}
.av-site .av-home .ap-hero-bottom span{color:#f64e03!important}
.av-home .ap-patient-access{margin-top:0!important;padding:55px 0 35px!important;background:#f6fbfd;z-index:1}
.av-home .ap-audience-grid{gap:23px;grid-template-columns:repeat(2,minmax(0,1fr))}
.av-home .ap-audience-card{min-width:0;padding:27px 25px 24px!important;border-radius:0!important;border:1px solid #d5e6ed!important;border-top:4px solid #f64e03!important;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(115px,.75fr);gap:12px;align-items:center;background:#fff!important;overflow:hidden}
.av-home .ap-audience-card:nth-child(2){border-top-color:#05a6b7!important}
.av-home .av-v32-audience-copy{min-width:0;position:relative;z-index:2}
.av-home .av-v32-audience-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:10px;font-weight:850;letter-spacing:.07em;color:#087c8f}
.av-home .av-v32-audience-eyebrow .av-icon{width:18px;height:18px}
.av-home .ap-audience-card h2{font-size:clamp(18px,2vw,26px);margin:12px 0}
.av-home .ap-audience-card p{font-size:13px;line-height:1.72;margin-bottom:18px}
.av-home .ap-audience-actions{gap:11px}
.av-home .ap-audience-actions .ap-button{padding:10px 16px;min-height:44px;font-size:12px}
.av-home .ap-audience-actions .ap-text-link{font-size:12px}
.av-home .av-v32-audience-photo{width:100%;height:175px;max-height:175px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 14px #184b6a20)}
/* Four pillars are visually distinct and readable cards, rather than a flat text strip. */
.av-home .av-brand-missions{background:linear-gradient(180deg,#fff,#f7fbfc)!important;padding:60px 0 76px!important}
.av-brand-missions .av-brand-heading{margin-bottom:30px}
.av-home .av-brand-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:0!important;gap:16px}
.av-home .av-brand-grid article{
  display:flex;flex-direction:column;align-items:flex-start;gap:0;min-height:260px;
  padding:25px 21px!important;border:1px solid #d8e6ec!important;
  border-top:4px solid #f64e03!important;box-shadow:0 10px 26px #12395a0d;
  background:#fff!important;position:relative;
}
.av-home .av-brand-grid article:nth-child(2n){border-top-color:#05a6b7!important;background:#fff!important}
.av-home .av-brand-grid .av-brand-icon{
  width:62px;height:62px;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:50%;background:linear-gradient(145deg,#093b79,#0b1f66);color:#fff
}
.av-home .av-brand-grid article:nth-child(2n) .av-brand-icon{background:linear-gradient(145deg,#039eaa,#006b81);color:#fff}
.av-home .av-brand-grid article>div{display:flex;flex:1;flex-direction:column;min-width:0}
.av-home .av-brand-grid .av-brand-icon .av-icon{width:29px;height:29px}
.av-home .av-brand-grid h3{font-size:18px;margin:18px 0 9px;color:#0b1f66}
.av-home .av-brand-grid h3::after{width:30px;height:3px;background:#f64e03}
.av-home .av-brand-grid p{font-size:13px;line-height:1.72;color:#4b6476;margin:4px 0 15px}
.av-home .av-v32-pillar-foot{display:flex;gap:7px;align-items:center;color:#0a7c90;font-size:11px;font-weight:850;line-height:1.5;margin-top:auto;padding-top:8px}
.av-home .av-v32-pillar-foot .av-icon{width:16px;height:16px}
@media(max-width:1180px){
  .av-home .ap-hero-layout{gap:10px;grid-template-columns:1fr .95fr}
  .av-site .av-home .ap-hero-visual.av-v32-care-scene{height:385px}
  .av-v32-floating-booking{top:0;right:0}
  .av-v32-floating-donor{bottom:5px}
  .av-home .av-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .av-home .av-brand-grid article{min-height:225px}
}
@media(max-width:850px){
  .av-site .av-home .ap-hero{padding:18px 0 40px!important}
  .av-home .ap-hero-layout{grid-template-columns:1fr;gap:5px;padding:15px 0 25px}
  .av-site .av-home .ap-hero-copy{padding:10px 0}
  .av-site .av-home .ap-hero h1{max-width:650px;font-size:clamp(35px,6vw,52px)!important}
  .av-site .av-home .ap-hero-visual.av-v32-care-scene{height:350px;max-width:650px;width:100%;margin:auto}
  .av-site .av-home .av-v32-care-scene>img{max-height:100%;width:95%}
  .av-v32-floating-booking{top:9px;right:10px}
  .av-v32-floating-donor{bottom:15px;left:10px}
  .av-home .ap-audience-grid{grid-template-columns:1fr}
  .av-home .ap-audience-card{grid-template-columns:minmax(0,1fr) minmax(125px,.45fr)}
}
@media(max-width:600px){
  .av-site .av-home .ap-hero{padding:12px 0 32px!important}
  .av-site .av-home .ap-hero h1{font-size:clamp(30px,9vw,42px)!important}
  .av-site .av-home .ap-hero-description{font-size:14px;line-height:1.65!important}
  .av-v32-hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .av-site .av-v32-hero-actions .ap-button{width:100%;min-height:49px}
  .av-site .av-home .ap-hero-visual.av-v32-care-scene{height:268px;margin:14px auto 5px}
  .av-v32-floating-service{min-width:0;padding:7px 9px;gap:6px;max-width:142px}
  .av-v32-floating-service .av-icon{width:20px;height:20px}
  .av-v32-floating-service strong{font-size:10px}
  .av-v32-floating-service small{font-size:9px}
  .av-v32-floating-donor{left:0;bottom:0}
  .av-v32-floating-booking{right:0;top:0}
  .av-site .av-home .av-v32-care-scene figcaption{font-size:9px;right:3px;bottom:0;max-width:170px}
  .av-site .av-home .ap-search{display:grid;grid-template-columns:1fr;gap:7px;padding:12px!important}
  .av-home .ap-search-field{width:100%;border-bottom:1px solid #e1eaee!important}
  .av-site .av-home .ap-search>.av-action-button{width:100%;margin:5px 0 0}
  .av-home .ap-patient-access{padding:32px 0!important}
  .av-home .ap-audience-card{grid-template-columns:1fr;gap:0;padding:24px 19px 12px!important}
  .av-home .av-v32-audience-photo{max-height:150px;height:150px;width:100%;margin-top:12px}
  .av-home .av-brand-missions{padding:38px 0 47px!important}
  .av-home .av-brand-grid{grid-template-columns:1fr;gap:12px}
  .av-home .av-brand-grid article{min-height:0;padding:20px!important}
  .av-home .av-brand-grid h3{margin:10px 0}
  .av-home .av-brand-grid p{margin-bottom:10px}
}
@media(prefers-reduced-motion:reduce){.av-v32-floating-service{transition:none}}
@media print{.av-v32-floating-service{display:none!important}.av-site .av-home .ap-hero{background:#fff!important}}

/* Real Chromium QA: mobile CTAs must not impose a 396px intrinsic track on 390px screens. */
@media(max-width:600px){
  .av-site .av-home .ap-hero .ap-container{max-width:100%;width:calc(100% - 36px)!important;min-width:0}
  .av-site .av-home .ap-hero-layout{grid-template-columns:minmax(0,1fr)!important;max-width:100%;min-width:0}
  .av-site .av-home .ap-hero-copy,
  .av-site .av-home .av-v32-hero-actions{max-width:100%;min-width:0}
  .av-site .av-v32-hero-actions .ap-button{
    width:100%;max-width:100%;min-width:0;box-sizing:border-box;white-space:normal;
    overflow-wrap:break-word;padding:12px 13px!important;
  }
}
