
:root{
  --navy:#101b33;
  --navy2:#1b2c50;
  --gold:#d9b635;
  --off:#f7f8fb;
  --paper:#ffffff;
  --text:#314057;
  --muted:#6b7280;
  --line:#e6e9ef;
  --shadow:0 18px 45px rgba(16,27,51,.10);
  --radius:22px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--off);
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
body[dir="rtl"]{font-family:Cairo,Tahoma,Arial,sans-serif}
a{text-decoration:none;color:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin:0 auto}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.98);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  box-shadow:0 10px 28px rgba(16,27,51,.06);
}
.nav{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:12px 0;
}
.brand{
  display:grid;
  grid-template-columns:46px auto;
  column-gap:12px;
  align-items:center;
  min-width:300px;
  max-width:330px;
  flex:0 0 320px;
}
.brand-mark{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,var(--navy),#233a63);
  color:#fff;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:24px;
  font-weight:800;
  border:1px solid rgba(217,182,53,.85);
  box-shadow:0 10px 22px rgba(16,27,51,.18);
}
.brand-text{
  display:block;
  line-height:1.05;
  min-width:0;
}
.brand-name{
  display:block;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:29px;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--navy);
  white-space:nowrap;
}
.brand-slogan{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:normal;
  max-width:260px;
}
.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  font-size:14px;
  font-weight:850;
  color:#334155;
  flex:1 1 auto;
}
.nav-links a{position:relative;white-space:nowrap}
.nav-links a:after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-10px;
  height:3px;
  background:var(--gold);
  transition:right .18s ease;
}
.nav-links a.active:after,.nav-links a:hover:after{right:0}
.lang-switch{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  color:var(--navy);
  font-size:13px;
}
.lang-switch a.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.menu-button{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-weight:800;
  color:var(--navy);
}
h1,h2,h3{
  font-family:"Cormorant Garamond",Georgia,serif;
  color:var(--navy);
  line-height:1.12;
  margin:0 0 18px;
}
body[dir="rtl"] h1,body[dir="rtl"] h2,body[dir="rtl"] h3{font-family:Amiri,Georgia,serif}
p{margin:0 0 18px}

.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--navy),#1c2e52);
  color:#fff;
}
.hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 78% 18%,rgba(217,182,53,.22),transparent 34%),
    radial-gradient(circle at 10% 84%,rgba(255,255,255,.08),transparent 28%);
}
.hero:after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:74px 74px;
  opacity:.5;
}
.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:66px;
  align-items:center;
  min-height:690px;
  padding:90px 0;
}
body[dir="rtl"] .hero-inner{direction:rtl}
body[dir="rtl"] .hero-inner>*{direction:rtl}
.eyebrow{
  display:inline-block;
  text-transform:uppercase;
  letter-spacing:.17em;
  font-size:12px;
  font-weight:900;
  color:var(--gold);
  margin-bottom:14px;
}
body[dir="rtl"] .eyebrow{letter-spacing:.05em}
.hero h1{
  color:#fff;
  font-size:clamp(52px,6vw,86px);
  letter-spacing:-.045em;
}
body[dir="rtl"] .hero h1{letter-spacing:0}
.lead{font-size:19px;color:#eef2f7;max-width:760px}
.button-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 20px;
  border-radius:10px;
  font-size:14px;
  font-weight:900;
  border:1px solid transparent;
}
.btn-primary{background:var(--gold);color:#111827}
.btn-navy{background:var(--navy);color:#fff}
.btn-outline-light{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.28);color:#fff}
.hero-card{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius:26px;
  padding:34px;
  box-shadow:0 24px 60px rgba(0,0,0,.20);
  backdrop-filter:blur(10px);
}
.hero-card h2{color:#fff;font-size:31px}
.hero-card p{color:#e5e7eb}
.hero-card ul{
  list-style:none;
  padding:0;
  margin:24px 0 0;
  display:grid;
  gap:13px;
}
.hero-card li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:14px 16px;
  color:#fff;
  font-weight:750;
}
.hero-card li:before{
  content:"";
  margin-top:8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
  flex:0 0 8px;
}
body[dir="rtl"] .hero-card li{flex-direction:row-reverse}

.section{padding:86px 0}
.section-white{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.section-title{max-width:880px;margin-bottom:36px}
.section-title.center{text-align:center;margin-left:auto;margin-right:auto}
.section-title h2{font-size:clamp(34px,4vw,56px);letter-spacing:-.03em}
body[dir="rtl"] .section-title h2{letter-spacing:0}
.section-title p{font-size:18px;color:var(--muted)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow);
}
.card h3{font-size:26px}
.card.kicker{border-top:4px solid var(--gold)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}
.content{max-width:900px}
.content h2{font-size:36px;margin-top:42px}
.content ul{padding-left:22px}
body[dir="rtl"] .content ul{padding-left:0;padding-right:22px}
.fact-strip{background:#fff;border-bottom:1px solid var(--line)}
.fact-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.fact{padding:22px 18px;border-right:1px solid var(--line)}
body[dir="rtl"] .fact{border-right:none;border-left:1px solid var(--line)}
.fact:last-child{border-right:none}
body[dir="rtl"] .fact:last-child{border-left:none}
.fact strong{display:block;color:var(--navy);font-size:16px;margin-bottom:4px}
.fact span{display:block;color:var(--muted);font-size:13px;font-weight:650}
.cta{background:var(--navy);color:#fff;padding:70px 0}
.cta h2{color:#fff;font-size:clamp(34px,4vw,56px)}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:34px}
.page-hero{background:#fff;border-bottom:1px solid var(--line);padding:72px 0 58px}
.page-hero h1{font-size:clamp(42px,5vw,68px);letter-spacing:-.04em}
body[dir="rtl"] .page-hero h1{letter-spacing:0}
.page-hero p{font-size:20px;max-width:900px;color:var(--muted)}
.footer{background:#0d172c;color:#d1d5db;padding:58px 0 24px}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr 1.2fr;gap:42px}
.footer h3{color:#fff;font-size:24px}
.footer a{display:block;color:#e5e7eb;margin:5px 0}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:38px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#9ca3af;
  font-size:13px;
}
@media(max-width:1180px){
  .brand{flex-basis:280px;min-width:280px;max-width:280px}
  .brand-name{font-size:26px}
  .brand-slogan{font-size:8.5px;max-width:220px}
  .nav-links{gap:13px;font-size:13px}
}
@media(max-width:1080px){
  .hero-inner,.split{grid-template-columns:1fr}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .fact-grid{grid-template-columns:repeat(2,1fr)}
  .nav-links{
    display:none;
    position:absolute;
    left:20px;
    right:20px;
    top:92px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:18px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:flex-start;
  }
  body[dir="rtl"] .nav-links{align-items:flex-end}
  .nav-links.open{display:flex}
  .menu-button{display:inline-flex}
}
@media(max-width:660px){
  .container{width:min(100% - 28px,var(--max))}
  .hero-inner{min-height:auto;padding:70px 0}
  .hero h1{font-size:44px}
  .grid-3,.fact-grid{grid-template-columns:1fr}
  .section{padding:62px 0}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{display:block}
  .brand{flex-basis:220px;min-width:220px;max-width:220px}
  .brand-name{font-size:23px}
  .brand-mark{width:40px;height:40px}
  .brand-slogan{display:none}
  .lang-switch a{width:34px;height:34px;font-size:12px}
}


/* =========================================================
   BOSTON CLINIC NETWORK, Premium Logo Header Upgrade
   Uses real SVG logo at assets/bostonclinic-logo.svg
   ========================================================= */

.brand{
  display:flex !important;
  align-items:center !important;
  width:420px !important;
  min-width:420px !important;
  max-width:420px !important;
  height:86px !important;
  flex:0 0 420px !important;
  background:url("bostonclinic-logo.svg") left center / contain no-repeat !important;
  color:transparent !important;
  text-indent:-9999px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}

.brand-mark,
.brand-text,
.brand-name,
.brand-slogan,
.brand span{
  display:none !important;
}

.site-header{
  background:#ffffff !important;
  box-shadow:0 10px 30px rgba(16,27,51,.075) !important;
}

.nav{
  min-height:104px !important;
}

.nav-links{
  gap:20px !important;
}

.nav-links a{
  font-size:14px !important;
  font-weight:900 !important;
}

.lang-switch a{
  width:40px !important;
  height:40px !important;
}

@media(max-width:1180px){
  .brand{
    width:360px !important;
    min-width:360px !important;
    max-width:360px !important;
    height:76px !important;
    flex-basis:360px !important;
  }
  .nav-links{gap:13px !important;}
}

@media(max-width:1080px){
  .brand{
    width:320px !important;
    min-width:320px !important;
    max-width:320px !important;
    height:68px !important;
    flex-basis:320px !important;
  }
  .nav{min-height:88px !important;}
}

@media(max-width:660px){
  .brand{
    width:235px !important;
    min-width:235px !important;
    max-width:235px !important;
    height:54px !important;
    flex-basis:235px !important;
  }
  .nav{min-height:72px !important;}
}


/* --- BCNP / DOI / Legal patch, 2026-05 --- */
.nav-links a.bcnp-nav{
  color:var(--navy);
  background:rgba(217,182,53,.16);
  border:1px solid rgba(217,182,53,.55);
  padding:8px 11px;
  border-radius:999px;
}
.nav-links a.bcnp-nav:after{display:none}
.legal-entity,.ip-notice{
  font-size:.86rem;
  line-height:1.75;
  color:#cbd5e1;
  max-width:980px;
}
.footer .legal-entity,.footer .ip-notice{margin-top:10px}
.doi-badge{
  display:inline-block;
  margin:20px 0;
  padding:15px 18px;
  border-radius:16px;
  background:rgba(217,182,53,.14);
  border:1px solid rgba(217,182,53,.44);
  color:inherit;
  font-size:.95rem;
  line-height:1.65;
}
.doi-badge a{color:var(--gold);font-weight:900;text-decoration:none}
.doi-badge a:hover{text-decoration:underline}
.section .doi-badge{
  background:rgba(16,27,51,.04);
  border-color:rgba(16,27,51,.10);
  color:var(--navy);
}
.section .doi-badge a{color:#0b7285}
.bcnp-highlight{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
  margin-top:28px;
}
.bcnp-highlight h3{font-size:28px}
@media(max-width:900px){
  html,body{max-width:100%;overflow-x:hidden}
  .nav-links a.bcnp-nav{width:100%;text-align:center}
}


/* === Final Boston Clinic logo header patch === */
.brand,
.brand-logo-link{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  padding:0 !important;
}

.brand-logo-img{
  display:block !important;
  width:clamp(300px, 25vw, 520px) !important;
  max-width:520px !important;
  height:auto !important;
  object-fit:contain !important;
}

.nav{
  gap:clamp(12px, 2vw, 28px) !important;
}

.nav-links{
  flex:1 1 auto !important;
  min-width:0 !important;
  gap:clamp(10px, 1.2vw, 18px) !important;
}

@media (max-width: 1240px){
  .brand-logo-img{
    width:clamp(260px, 23vw, 420px) !important;
  }
  .nav-links{
    gap:10px !important;
    font-size:13px !important;
  }
}

@media (max-width: 980px){
  .nav{
    flex-wrap:wrap !important;
    justify-content:center !important;
  }
  .brand,
  .brand-logo-link{
    width:100% !important;
    justify-content:center !important;
    flex:1 1 100% !important;
  }
  .brand-logo-img{
    width:min(460px, 88vw) !important;
    max-width:88vw !important;
    margin-inline:auto !important;
  }
}

@media (max-width: 560px){
  .brand-logo-img{
    width:min(360px, 92vw) !important;
  }
}


/* === Dr. Sameh professional photo on English homepage === */
.hero-card-profile{
  display:grid;
  grid-template-columns:minmax(150px, 220px) 1fr;
  gap:24px;
  align-items:center;
}

.profile-photo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
}

.doctor-photo{
  display:block;
  width:min(220px, 100%);
  aspect-ratio:3 / 4;
  object-fit:cover;
  object-position:center top;
  border-radius:26px;
  border:1px solid rgba(217, 182, 53, 0.45);
  box-shadow:0 22px 55px rgba(16, 27, 51, 0.28);
  background:#eef2f7;
}

.profile-copy{min-width:0;}

@media (max-width: 920px){
  .hero-card-profile{
    grid-template-columns:1fr;
    text-align:center;
  }
  .doctor-photo{
    width:min(260px, 82vw);
    margin-inline:auto;
  }
  .hero-card-profile ul{
    text-align:start;
  }
}
/* === Fix homepage hero profile layout === */

.site-header {
  z-index: 1000;
}

.hero {
  padding-top: 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 56px;
  align-items: center;
}

.hero-card-profile {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-height: none !important;
  overflow: visible !important;
}

.profile-photo-wrap {
  align-self: center;
}

.doctor-photo {
  width: 180px !important;
  max-width: 180px !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

.profile-copy {
  min-width: 0;
}

.profile-copy h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.15;
  margin-top: 0;
}

.profile-copy p {
  font-size: 1rem;
  line-height: 1.65;
}

.profile-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
}

.profile-copy li {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Header logo resize */
.brand-logo-img {
  width: clamp(260px, 22vw, 430px) !important;
  max-width: 430px !important;
}

@media (max-width: 1180px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card-profile {
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .hero-card-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-photo {
    width: min(240px, 80vw) !important;
    max-width: 240px !important;
    margin-inline: auto;
  }

  .profile-copy ul {
    text-align: start;
  }

  .brand-logo-img {
    width: min(340px, 88vw) !important;
  }
}
/* === Emergency fix: homepage founder photo size and position === */

.hero-founder-photo-row {
  margin: 24px 0 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  max-width: 100% !important;
}

.hero-founder-photo {
  display: block !important;
  width: 220px !important;
  max-width: 220px !important;
  height: 290px !important;
  max-height: 290px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 26px !important;
  border: 1px solid rgba(217, 182, 53, 0.55) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28) !important;
  background: #eef2f7 !important;
}

/* Make sure the original huge image rules do not override this */
.hero-founder-photo-row img {
  width: 220px !important;
  max-width: 220px !important;
  height: 290px !important;
  max-height: 290px !important;
  object-fit: cover !important;
}

/* Mobile */
@media (max-width: 760px) {
  .hero-founder-photo-row {
    justify-content: center !important;
    margin: 22px 0 24px !important;
  }

  .hero-founder-photo,
  .hero-founder-photo-row img {
    width: 210px !important;
    max-width: 210px !important;
    height: 280px !important;
    max-height: 280px !important;
    margin-inline: auto !important;
  }
}