:root{
  --bg:#f4f8fc;--surface:#ffffff;--ink:#102544;--muted:#5e6f86;--primary:#102b67;--primary-2:#1f73b7;--primary-dark:#061939;--accent:#42b8df;--soft:#e8f3fb;--line:#d4e4f2;--shadow:0 22px 60px rgba(16,43,103,.13);--radius:26px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.7;text-align:start}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.container{width:min(1160px,92%);margin:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar{background:var(--primary-dark);color:#eafefe;font-size:14px}.topbar-inner{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:10px 0;flex-wrap:wrap}.nav{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(214,234,235,.9)}.nav-inner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 0}.brand{display:flex;align-items:center;gap:14px;min-width:0}.brand-mark{width:52px;height:52px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-weight:900;font-size:22px;box-shadow:0 16px 34px rgba(14,136,146,.25)}.brand-text-wrap{display:flex;flex-direction:column;min-width:0}.brand-text{font-weight:900;font-size:20px;line-height:1.1;letter-spacing:-.03em}.brand-sub{font-size:12px;color:var(--muted)}.menu{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.menu a{padding:10px 13px;border-radius:999px;color:#2a4950;font-weight:700;font-size:14px}.menu a:hover,.menu a.active{background:var(--soft);color:var(--primary)}.nav-actions{display:flex;align-items:center;gap:10px}.lang-picker{position:relative}.lang-picker select{appearance:none;border:1px solid var(--line);background:#fff;padding:12px 38px 12px 14px;border-radius:999px;font:inherit;font-weight:700;color:var(--ink);cursor:pointer}.lang-picker:after{content:"▾";position:absolute;right:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;border-radius:999px;border:0;font-weight:800;cursor:pointer;transition:.25s ease;background:var(--primary);color:#fff;box-shadow:0 12px 30px rgba(14,136,146,.22)}.btn:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(14,136,146,.30)}.btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.btn.gold{background:var(--accent);color:#2e2308}.desktop-only{display:inline-flex}.hamburger{display:none;background:var(--soft);border:0;border-radius:14px;width:46px;height:46px;font-size:24px}
.hero{position:relative;overflow:hidden;padding:78px 0 58px;background:radial-gradient(circle at top left,#e3f8f8 0,#f8fcfd 35%,#fff 100%)}.hero:before{content:"";position:absolute;right:-130px;top:70px;width:420px;height:420px;border-radius:50%;background:linear-gradient(135deg,rgba(26,183,173,.15),rgba(240,179,78,.18));animation:float 8s ease-in-out infinite}.hero-grid,.hero-mini{position:relative;display:grid;grid-template-columns:1.06fr .94fr;gap:38px;align-items:center}.hero-copy h1,.page-hero h1{font-size:clamp(38px,5.8vw,72px);line-height:1.02;margin:18px 0 16px;letter-spacing:-.06em}.lead,.page-hero p{font-size:19px;color:var(--muted);max-width:690px}.eyebrow{display:inline-flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:14px;color:var(--primary);font-weight:900}.eyebrow.light{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.2)}.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:34px}.trust-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 10px 30px rgba(13,57,64,.07)}.trust-card strong{display:block;font-size:22px;line-height:1.2}.trust-card span{display:block;color:var(--muted);margin-top:4px}.hero-media,.hero-side-image{position:relative}.media-card,.hero-side-image img{border-radius:34px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line)}.media-card img,.hero-side-image img{width:100%;height:100%;object-fit:cover}.media-card{aspect-ratio:16/11}
.section{padding:78px 0}.section-soft{background:#fff}.section-title{max-width:760px;margin-bottom:34px}.section-title.center{text-align:center;margin-left:auto;margin-right:auto}.section-title h2{font-size:clamp(31px,4vw,50px);line-height:1.05;margin:0 0 12px;letter-spacing:-.04em}.section-title p{color:var(--muted);font-size:18px}.grid{display:grid;gap:20px}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-2{grid-template-columns:repeat(2,1fr)}.split{display:grid;grid-template-columns:.92fr 1.08fr;gap:30px;align-items:center}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:0 12px 40px rgba(13,57,64,.07);transition:.25s ease}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.icon{width:54px;height:54px;border-radius:18px;background:var(--soft);display:grid;place-items:center;font-size:26px;margin-bottom:18px}.card h3{margin:0 0 9px;font-size:22px}.card p,.muted{color:var(--muted)}.feature-panel{background:linear-gradient(160deg,#09444d,#0e8892);color:#fff;border-radius:36px;padding:36px;position:relative;overflow:hidden;box-shadow:var(--shadow)}.feature-panel:after{content:"";position:absolute;right:-70px;bottom:-80px;width:250px;height:250px;border-radius:50%;background:rgba(255,255,255,.12)}.feature-panel p{color:#d7f5f6}.check-list,.feature-list{list-style:none;margin:22px 0 0;padding:0}.check-list li,.feature-list li{margin:12px 0;padding-inline-start:34px;position:relative}.check-list li:before,.feature-list li:before{content:"✓";position:absolute;inset-inline-start:0;top:0;width:24px;height:24px;border-radius:50%;background:var(--primary-2);display:grid;place-items:center;color:#fff;font-weight:900;font-size:13px}.hours{display:grid;gap:10px}.hours div{display:flex;justify-content:space-between;gap:20px;background:var(--soft);padding:13px 16px;border-radius:16px}.doctor{display:flex;gap:20px;align-items:flex-start}.avatar{flex:0 0 82px;width:82px;height:82px;border-radius:28px;background:linear-gradient(135deg,var(--primary),var(--primary-2));display:grid;place-items:center;color:#fff;font-size:32px;font-weight:900}.quote{background:linear-gradient(135deg,#093b44,#0e8892);color:#fff;border-radius:36px;padding:38px;box-shadow:var(--shadow)}.quote p{font-size:24px;line-height:1.5;margin:0}.quote span{display:block;margin-top:20px;color:#d7f5f6}.page-hero{padding:68px 0;background:linear-gradient(135deg,#eaf7f8,#fff)}.page-hero h1{margin:16px 0 14px}.resource-group{margin-bottom:26px}.resource-group h2{font-size:28px;margin:0 0 14px}.resource-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.resource-list a{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 18px;color:#24464d;font-weight:800;gap:10px}.resource-list a:hover{border-color:var(--primary);color:var(--primary);transform:translateY(-2px)}.note{padding:18px 20px;background:var(--soft);border:1px solid var(--line);border-radius:20px;color:var(--muted)}.contact-grid{display:grid;grid-template-columns:1fr .95fr;gap:24px}.contact-card a{color:var(--primary);font-weight:900}.form{display:grid;gap:14px}.form input,.form textarea,.form select{width:100%;border:1px solid var(--line);border-radius:16px;padding:14px 16px;font:inherit;background:#fbffff}.form textarea{min-height:135px;resize:vertical}.map{border:0;width:100%;height:330px;border-radius:28px;filter:saturate(.95)}.cta{background:linear-gradient(135deg,#0e8892,#093b44);color:#fff;border-radius:40px;padding:42px;display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center;overflow:hidden;position:relative;box-shadow:var(--shadow)}.cta h2{font-size:38px;line-height:1.08;margin:0}.cta p{color:#d7f5f6;margin:10px 0 0}.footer{background:#071f25;color:#d7f5f6;padding:54px 0 24px}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:28px}.footer h3,.footer h4{color:#fff;margin-top:0}.footer a{display:block;margin:8px 0;color:#d7f5f6}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:20px;color:#9fc2c7}.reveal{opacity:0;transform:translateY(26px);transition:.7s ease}.reveal.visible{opacity:1;transform:none}@keyframes float{50%{transform:translateY(-16px)}}
html[dir="rtl"] .lang-picker:after{right:auto;left:14px}html[dir="rtl"] .topbar-inner,html[dir="rtl"] .nav-inner,html[dir="rtl"] .hero-grid,html[dir="rtl"] .hero-mini,html[dir="rtl"] .split,html[dir="rtl"] .contact-grid,html[dir="rtl"] .cta,html[dir="rtl"] .footer-grid{direction:rtl}html[dir="rtl"] .check-list li,html[dir="rtl"] .feature-list li{padding-inline-start:0;padding-inline-end:34px}html[dir="rtl"] .check-list li:before,html[dir="rtl"] .feature-list li:before{inset-inline-start:auto;inset-inline-end:0}
@media(max-width:980px){.hamburger{display:block}.menu{position:absolute;left:4%;right:4%;top:84px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:12px;display:none;flex-direction:column;align-items:stretch}.menu.open{display:flex}.desktop-only{display:none}.hero-grid,.hero-mini,.split,.contact-grid,.cta,.footer-grid{grid-template-columns:1fr}.grid-3,.grid-2,.trust-row,.resource-list{grid-template-columns:1fr}.section{padding:56px 0}.brand-text{font-size:18px}.brand-mark{width:48px;height:48px}.topbar-inner{justify-content:center;text-align:center}.nav-inner{flex-wrap:wrap}.nav-actions{margin-inline-start:auto}}
@media(max-width:640px){.hero-copy h1,.page-hero h1{font-size:clamp(32px,9vw,46px)}.lead,.page-hero p{font-size:17px}.cta{padding:30px;border-radius:28px}.cta h2{font-size:30px}.quote p{font-size:20px}.brand-sub{display:none}}


/* =========================================================
   HEADER MENU ONE-LINE FIX
   Keeps the desktop navigation compact and prevents wrapping.
   ========================================================= */
@media (min-width: 981px) {
  .container {
    width: min(1280px, 96%);
  }

  .nav-inner {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    flex: 0 0 auto;
    max-width: 245px;
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .brand-text {
    font-size: 16px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .menu {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
  }

  .menu a {
    flex: 0 0 auto;
    padding: 8px 8px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .lang-picker select {
    max-width: 128px;
    padding: 9px 30px 9px 12px;
    font-size: 13px;
  }

  .nav-actions .btn {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Hide schedule button a little earlier so menu never breaks into two lines */
@media (max-width: 1180px) and (min-width: 981px) {
  .nav-actions .desktop-only {
    display: none;
  }

  .brand {
    max-width: 230px;
  }

  .menu a {
    padding: 8px 7px;
    font-size: 12.5px;
  }
}

/* On medium tablets, keep the mobile menu clean */
@media (max-width: 980px) {
  .menu {
    white-space: normal;
  }

  .menu a {
    white-space: normal;
  }
}


/* Added themed photo styles */
.doctor-profile{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center}
.doctor-media{position:relative}
.doctor-photo{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:26px;border:1px solid var(--line);box-shadow:0 18px 38px rgba(13,57,64,.12);background:#fff}
.doctor-content h3{margin-top:0}
.team-showcase{align-items:center}
.team-photo-card{background:#fff;border:1px solid var(--line);border-radius:32px;padding:12px;box-shadow:var(--shadow)}
.team-photo{width:100%;border-radius:24px;display:block}
@media(max-width:980px){
  .doctor-profile{grid-template-columns:1fr}
  .doctor-media{max-width:340px;margin:auto}
}


/* =========================================================
   2026 client update: visiting-card blue theme, cleaner menu,
   equal-height cards, animated hero text, providers and map.
   ========================================================= */
body{background:linear-gradient(180deg,#f7fbff 0%,#f4f8fc 100%)}
.topbar{background:linear-gradient(90deg,var(--primary-dark),var(--primary));}
.nav{background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(16,43,103,.08)}
.brand-mark{background:linear-gradient(135deg,var(--primary),var(--primary-2) 65%,var(--accent));border:2px solid rgba(255,255,255,.8)}
.menu{background:rgba(232,243,251,.58);padding:6px;border-radius:999px;border:1px solid rgba(16,43,103,.08)}
.menu a{position:relative;overflow:hidden;color:#163257;letter-spacing:.01em}
.menu a:hover,.menu a.active{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 12px 22px rgba(16,43,103,.16)}
.lang-picker select{border-color:#c9dced;background:#fbfdff;color:#102544}.btn{background:linear-gradient(135deg,var(--primary),var(--primary-2));box-shadow:0 12px 30px rgba(16,43,103,.22)}.btn.secondary{background:#fff;color:var(--primary);border-color:#bcd3e8}.btn.gold{background:linear-gradient(135deg,var(--accent),#96dcf2);color:#08203d}
.hero{background:linear-gradient(135deg,#eef7ff 0%,#ffffff 42%,#eaf5fc 100%);padding:68px 0 56px}.hero:before{background:linear-gradient(135deg,rgba(31,115,183,.18),rgba(66,184,223,.22));}.hero-copy h1{font-size:clamp(30px,4.1vw,52px);line-height:1.08;letter-spacing:-.045em;max-width:780px;animation:heroSlide 1.15s ease-out both}.hero-copy .lead{font-size:18px}.media-card{border-radius:24px;position:relative}.media-card:after,.hero-side-image:after,.team-photo-card:after{content:"";position:absolute;inset:auto 18px -10px 18px;height:20px;border-radius:999px;background:rgba(16,43,103,.12);filter:blur(12px);z-index:-1}.media-card img{min-height:380px}.card{height:100%;display:flex;flex-direction:column}.card p{margin-bottom:0}.grid{align-items:stretch}.grid-2,.grid-3{align-items:stretch}.feature-panel{background:linear-gradient(160deg,var(--primary-dark),var(--primary) 70%,var(--primary-2));}.feature-panel .check-list{margin-top:18px}.moving-lines{margin:22px 0 4px;height:48px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);position:relative}.moving-lines span{position:absolute;white-space:nowrap;font-weight:900;color:#fff;left:100%;top:50%;transform:translateY(-50%);animation:slideText 16s linear infinite}.moving-lines span:nth-child(2){animation-delay:4s}.moving-lines span:nth-child(3){animation-delay:8s}.moving-lines span:nth-child(4){animation-delay:12s}.providers-map-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:stretch}.provider-mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.provider-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:16px;box-shadow:0 12px 34px rgba(16,43,103,.08);display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:center}.provider-card img{width:110px;height:132px;object-fit:cover;border-radius:20px;border:4px solid #edf5fb;object-position:center 18%}.provider-card h3{font-size:19px;line-height:1.2;margin:0 0 5px}.provider-role{display:inline-flex;background:var(--soft);color:var(--primary);font-size:13px;font-weight:900;border-radius:999px;padding:4px 9px;margin-bottom:6px}.provider-card p{font-size:14px;color:var(--muted);line-height:1.55;margin:0}.home-map-card{background:#fff;border:1px solid var(--line);border-radius:30px;padding:18px;box-shadow:var(--shadow)}.home-map-card .map{height:430px}.section-divider-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:24px}.section-divider-title h2{font-size:clamp(30px,3.5vw,46px);line-height:1.07;margin:0}.section-divider-title p{margin:8px 0 0;color:var(--muted);max-width:680px}.doctor-profile{grid-template-columns:300px 1fr;gap:28px}.doctor-photo{aspect-ratio:4/5;border-radius:30px;border:8px solid #eef6fc;object-position:center 15%;box-shadow:0 20px 45px rgba(16,43,103,.16)}.doctor-content h3{font-size:28px;line-height:1.15;margin-bottom:8px}.doctor-badge{display:inline-flex;margin:0 0 12px;padding:6px 12px;border-radius:999px;background:var(--soft);color:var(--primary);font-weight:900;font-size:13px}.extern-board{background:#fff;border:1px solid var(--line);border-radius:32px;padding:12px;box-shadow:var(--shadow)}.extern-board img{border-radius:23px;width:100%;height:auto}.extern-intro{display:grid;grid-template-columns:.78fr 1.22fr;gap:24px;align-items:center}.visit-card{border-radius:28px;box-shadow:var(--shadow);border:1px solid var(--line)}.quote{background:linear-gradient(135deg,var(--primary-dark),var(--primary));}.cta{background:linear-gradient(135deg,var(--primary),var(--primary-dark));}
@keyframes heroSlide{0%{opacity:0;transform:translateX(-44px)}70%{opacity:1;transform:translateX(8px)}100%{opacity:1;transform:translateX(0)}}
@keyframes slideText{0%{left:100%;opacity:0}6%{opacity:1}24%{left:8%;opacity:1}30%{left:-100%;opacity:0}100%{left:-100%;opacity:0}}
@media(max-width:1180px){.provider-card{grid-template-columns:92px 1fr}.provider-card img{width:92px;height:112px}.doctor-profile{grid-template-columns:250px 1fr}}
@media(max-width:980px){.menu{border-radius:24px;background:#fff}.providers-map-grid,.extern-intro{grid-template-columns:1fr}.provider-mini-grid{grid-template-columns:1fr}.doctor-profile{grid-template-columns:1fr}.doctor-photo{max-width:360px;margin:auto}.section-divider-title{display:block}.home-map-card .map{height:330px}}
@media(max-width:640px){.provider-card{grid-template-columns:1fr;text-align:center}.provider-card img{margin:auto;width:160px;height:190px}.hero{padding-top:48px}.moving-lines{border-radius:18px}.hero-copy h1{font-size:32px}}


/* =========================================================
   Client requested fixes: English-only header, cleaner menu,
   smaller blinking welcome line, providers above map.
   ========================================================= */
.lang-picker{display:none!important;}

@media (min-width:981px){
  .nav-inner{gap:18px;padding:14px 0;}
  .brand{max-width:360px;flex:0 0 330px;}
  .brand-text{font-size:18px;white-space:normal;line-height:1.15;}
  .brand-sub{display:block;font-size:11px;line-height:1.2;}
  .menu{background:transparent;border:0;border-radius:0;padding:0;justify-content:flex-end;gap:6px;}
  .menu a{padding:9px 11px;border-radius:14px;font-size:13px;line-height:1.1;box-shadow:none;}
  .menu a:hover,.menu a.active{background:#eaf4fb;color:var(--primary);box-shadow:none;}
  .nav-actions{gap:8px;}
  .nav-actions .btn{padding:10px 15px;}
}

@media (max-width:1180px) and (min-width:981px){
  .brand{max-width:330px;flex-basis:300px;}
  .menu a{font-size:12.5px;padding:8px 8px;}
}

.hero-copy h1{
  font-size:clamp(24px,2.7vw,36px)!important;
  line-height:1.18!important;
  letter-spacing:-.025em!important;
  max-width:640px!important;
  margin:14px 0 12px!important;
  animation:heroSlide .85s ease-out both, softBlink 1.45s ease-in-out infinite 1s!important;
}

@keyframes softBlink{
  0%,100%{opacity:1;text-shadow:0 0 0 rgba(31,115,183,0);}
  50%{opacity:.58;text-shadow:0 0 18px rgba(31,115,183,.36);}
}

.providers-map-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:22px!important;
  align-items:stretch!important;
}
.provider-mini-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:22px!important;
  align-items:stretch!important;
}
.provider-card{
  min-height:210px;
  align-items:center;
}
.home-map-card{
  width:100%;
  min-height:0;
}
.home-map-card .map{
  height:360px!important;
  width:100%;
  display:block;
}
.section-divider-title{
  align-items:center;
}

@media(max-width:980px){
  .brand{max-width:calc(100% - 64px);}
  .providers-map-grid{grid-template-columns:1fr!important;}
  .provider-mini-grid{grid-template-columns:1fr!important;}
  .home-map-card .map{height:320px!important;}
}
@media(max-width:640px){
  .hero-copy h1{font-size:27px!important;}
  .provider-card{min-height:0;}
}

/* =========================================================
   Final requested update: smaller page headers + moving blink hero title.
   ========================================================= */
.page-hero h1{
  font-size:clamp(24px,2.8vw,38px)!important;
  line-height:1.16!important;
  letter-spacing:-.025em!important;
  max-width:720px!important;
  margin:12px 0 10px!important;
}
.page-hero p{
  font-size:17px!important;
  line-height:1.65!important;
}
.hero-copy h1{
  display:inline-block;
  transform-origin:center;
  animation:welcomeMoveBlink 2.8s ease-in-out infinite!important;
  will-change:transform,opacity,text-shadow;
}
@keyframes welcomeMoveBlink{
  0%{opacity:1;transform:translateX(0) translateY(0) scale(1);text-shadow:0 0 0 rgba(31,115,183,0);}
  18%{opacity:.72;transform:translateX(8px) translateY(-3px) scale(1.015);text-shadow:0 0 16px rgba(31,115,183,.32);}
  36%{opacity:1;transform:translateX(0) translateY(0) scale(1);text-shadow:0 0 0 rgba(31,115,183,0);}
  54%{opacity:.62;transform:translateX(-8px) translateY(3px) scale(1.01);text-shadow:0 0 20px rgba(66,184,223,.42);}
  72%{opacity:1;transform:translateX(0) translateY(-2px) scale(1.02);text-shadow:0 0 10px rgba(16,43,103,.18);}
  100%{opacity:1;transform:translateX(0) translateY(0) scale(1);text-shadow:0 0 0 rgba(31,115,183,0);}
}
@media(max-width:640px){
  .page-hero h1{font-size:26px!important;}
  .page-hero p{font-size:16px!important;}
  .hero-copy h1{font-size:25px!important;}
}

/* =========================================================
   Header balance update: richer left-side content on inner pages.
   ========================================================= */
.page-hero{
  padding:58px 0 52px;
  background:linear-gradient(135deg,#eef7ff 0%,#ffffff 45%,#eaf5fc 100%);
  overflow:hidden;
}
.hero-mini{
  grid-template-columns:.92fr 1.08fr!important;
  gap:34px!important;
}
.hero-copy-block{
  background:rgba(255,255,255,.68);
  border:1px solid rgba(188,211,232,.75);
  border-radius:30px;
  padding:28px;
  box-shadow:0 16px 45px rgba(16,43,103,.08);
  backdrop-filter:blur(10px);
}
.hero-copy-block p,
.resources-hero-copy p{
  max-width:620px;
}
.hero-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}
.hero-info-box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:15px 16px;
  box-shadow:0 10px 28px rgba(16,43,103,.07);
  min-height:112px;
}
.hero-info-box strong{
  display:block;
  color:var(--primary);
  font-size:16px;
  line-height:1.25;
  margin-bottom:6px;
}
.hero-info-box span{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}
.hero-side-image img{
  min-height:390px;
  max-height:430px;
  object-fit:cover;
}
.resources-hero-copy{
  max-width:900px;
}
.resource-info-grid{
  max-width:760px;
}
@media(max-width:980px){
  .hero-mini{grid-template-columns:1fr!important;}
  .hero-copy-block{padding:22px;}
  .hero-side-image img{min-height:300px;max-height:360px;}
}
@media(max-width:640px){
  .hero-info-grid{grid-template-columns:1fr;}
  .hero-info-box{min-height:0;}
  .hero-copy-block{border-radius:22px;padding:18px;}
  .page-hero{padding:42px 0;}
}

/* =========================================================
   Final client revision: logo, blue-shade system, no-fade
   hero title, aligned content boxes, service/insurance/vaccine
   and matched medical extern layouts.
   ========================================================= */
:root{
  --bg:#f4f9ff;
  --surface:#ffffff;
  --ink:#0c2344;
  --muted:#526c8b;
  --primary:#0a2f6f;      /* deep navy blue */
  --primary-2:#1565b0;    /* classic blue */
  --primary-3:#2f8fd8;    /* medium bright blue */
  --accent:#6ec6e8;       /* soft sky blue */
  --primary-dark:#061b44;
  --soft:#e9f5ff;
  --line:#c9deef;
}
body{background:linear-gradient(180deg,#f8fbff 0%,#eef7ff 48%,#f6fbff 100%)}
.topbar{background:linear-gradient(90deg,var(--primary-dark),var(--primary),var(--primary-2));}
.nav{border-bottom:1px solid rgba(21,101,176,.15)}
.brand-logo{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#fff;border:1px solid rgba(21,101,176,.18);box-shadow:0 12px 28px rgba(10,47,111,.12);overflow:hidden;flex:0 0 58px;}
.brand-logo img{width:100%;height:100%;object-fit:contain;padding:5px;}
.brand-mark{display:none!important;}
.btn,.menu a:hover,.menu a.active{background:linear-gradient(135deg,var(--primary),var(--primary-2) 62%,var(--primary-3));}
.btn.gold{background:linear-gradient(135deg,var(--primary-3),var(--accent));color:#06204a;}
.feature-panel,.quote,.cta{background:linear-gradient(135deg,var(--primary-dark),var(--primary),var(--primary-2));}
.page-hero,.hero{background:linear-gradient(135deg,#f1f8ff 0%,#ffffff 42%,#e4f3ff 78%,#d7ecfb 100%);}
.hero:before{background:linear-gradient(135deg,rgba(10,47,111,.14),rgba(47,143,216,.20),rgba(110,198,232,.24));}
.trust-card,.hero-info-box,.card,.home-map-card,.provider-card,.extern-board,.team-photo-card{border-color:rgba(21,101,176,.16);}

/* keep the welcome message animated, but never faded/off */
.hero-copy h1{
  opacity:1!important;
  display:inline-block;
  animation:welcomeMoveNoFade 3.2s ease-in-out infinite!important;
  will-change:transform,text-shadow;
}
@keyframes welcomeMoveNoFade{
  0%,100%{opacity:1;transform:translateX(0) translateY(0) scale(1);text-shadow:0 0 0 rgba(21,101,176,0);}
  25%{opacity:1;transform:translateX(9px) translateY(-3px) scale(1.012);text-shadow:0 8px 20px rgba(47,143,216,.24);}
  50%{opacity:1;transform:translateX(0) translateY(2px) scale(1);text-shadow:0 0 0 rgba(21,101,176,0);}
  75%{opacity:1;transform:translateX(-9px) translateY(-2px) scale(1.012);text-shadow:0 8px 22px rgba(110,198,232,.30);}
}

/* align left boxes with right images across inner pages */
.hero-mini{align-items:stretch!important;}
.hero-copy-block,.hero-side-image,.hero-side-image img{height:100%;}
.hero-copy-block{display:flex;flex-direction:column;justify-content:center;}
.hero-info-grid{align-items:stretch;}
.hero-info-box{height:100%;display:flex;flex-direction:column;justify-content:center;}
.hero-side-image img{min-height:420px!important;max-height:none!important;}
@media(max-width:980px){.hero-side-image img{min-height:300px!important;height:auto!important}.hero-copy-block,.hero-side-image{height:auto;}}

.service-showcase{background:#fff;border:1px solid var(--line);border-radius:32px;padding:12px;box-shadow:var(--shadow);margin-bottom:28px;}
.service-showcase img{width:100%;border-radius:22px;object-fit:cover;}
.service-detail-grid{margin-top:22px;}
.service-detail-grid .card h3,.vaccine-layout .card h3,.insurance-layout .card h3{color:var(--primary);}
.vaccine-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch;}
.info-image{width:100%;border-radius:22px;border:1px solid var(--line);margin-bottom:18px;object-fit:cover;max-height:420px;}
.insurance-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;align-items:stretch;}
.insurance-layout .service-showcase{margin-bottom:0;height:100%;display:flex;align-items:center;}
.insurance-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;}
.insurance-list span{display:block;background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-weight:800;color:var(--ink);}
.matched-gallery{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:22px;align-items:stretch;}
.matched-gallery .extern-board{height:100%;display:flex;align-items:center;}
.matched-gallery img{width:100%;border-radius:23px;}
.extern-board img[src*="externship-group-themed"]{object-fit:contain;}
.footer{background:linear-gradient(135deg,#061b44,#0a2f6f);}
.footer a[href^="tel:"]{font-weight:900;}
@media(max-width:980px){.vaccine-layout,.insurance-layout,.matched-gallery{grid-template-columns:1fr;}.insurance-list{grid-template-columns:1fr;}.brand-logo{width:50px;height:50px;flex-basis:50px;}}


/* =========================================================
   Client revision: clickable call buttons, taller matched
   header images, doctor card updates, text-only service info.
   ========================================================= */
.hero, .page-hero, .container, .hero-grid, .hero-mini, .hero-copy, .hero-copy-block, .hero-cta, .btn{position:relative;}
.hero:before, .page-hero:before{pointer-events:none!important;}
.btn, a.btn, .phone-link, a[href^="tel:"]{pointer-events:auto!important;position:relative;z-index:15;}
.hero-cta{z-index:16;}

.hero-mini{
  align-items:stretch!important;
}
.hero-copy-block{
  min-height:520px!important;
}
.hero-side-image{
  display:flex!important;
  height:auto!important;
  min-height:520px!important;
}
.hero-side-image img{
  width:100%!important;
  height:100%!important;
  min-height:520px!important;
  object-fit:cover!important;
  object-position:center!important;
}
@media(max-width:980px){
  .hero-copy-block{min-height:0!important;}
  .hero-side-image{min-height:340px!important;}
  .hero-side-image img{min-height:340px!important;height:auto!important;}
}

.provider-mini-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.provider-card img{
  width:150px!important;
  height:170px!important;
  object-fit:cover!important;
  object-position:center top!important;
  border-radius:22px!important;
}
.doctors-grid .doctor-profile{
  height:100%;
}
.doctor-photo{
  object-position:center top!important;
}
.insurance-text-only{
  display:block!important;
}
.insurance-text-only .card{
  max-width:1000px;
  margin:0 auto;
}
.services-expanded .service-detail-grid{
  margin-top:0!important;
}
.vaccines-section{
  display:none!important;
}
@media(max-width:1180px){
  .provider-mini-grid{grid-template-columns:1fr!important;}
}


/* =========================================================
   Final polish requested: full-width layout on browser zoom,
   taller home hero image matching left content, and clean
   externship matched-gallery media only.
   ========================================================= */
.container{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:clamp(18px,4vw,76px)!important;
  padding-right:clamp(18px,4vw,76px)!important;
}
.hero-grid{
  align-items:stretch!important;
}
.hero-copy{
  min-height:590px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.hero-media{
  display:flex!important;
  height:100%!important;
  min-height:590px!important;
}
.hero-media .media-card{
  width:100%!important;
  height:100%!important;
  min-height:590px!important;
  aspect-ratio:auto!important;
}
.hero-media .media-card img{
  width:100%!important;
  height:100%!important;
  min-height:590px!important;
  object-fit:cover!important;
  object-position:center!important;
}
.matched-gallery-clean img[src*="health-care-services"],
.matched-gallery-clean img[src*="insurance-accepted"],
.matched-section img[src*="health-care-services"],
.matched-section img[src*="insurance-accepted"]{
  display:none!important;
}
.matched-gallery-clean{
  grid-template-columns:1fr 1fr 1fr!important;
}
@media(max-width:1180px){
  .hero-copy,.hero-media,.hero-media .media-card,.hero-media .media-card img{min-height:520px!important;}
}
@media(max-width:980px){
  .container{padding-left:18px!important;padding-right:18px!important;}
  .hero-copy{min-height:0!important;}
  .hero-media,.hero-media .media-card,.hero-media .media-card img{min-height:340px!important;height:auto!important;}
  .matched-gallery-clean{grid-template-columns:1fr!important;}
}

/* =========================================================
   Homepage family-care section: make the left blue panel
   match the full height of the right-side cards.
   ========================================================= */
@media (min-width:981px){
  .split.split-image{
    align-items:stretch!important;
  }
  .split.split-image > .feature-panel{
    height:100%!important;
    min-height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }
  .split.split-image > .stack-grid{
    height:100%!important;
    display:flex!important;
  }
  .split.split-image > .stack-grid > .grid{
    flex:1 1 auto!important;
    height:100%!important;
  }
  .split.split-image .card{
    min-height:100%!important;
  }
}
@media (max-width:980px){
  .split.split-image > .feature-panel{
    min-height:0!important;
    height:auto!important;
    justify-content:flex-start!important;
  }
}


/* =========================================================
   Client update: blue wave theme, appointment page, staff page,
   lighter readable selected menu, topbar height, justified home title.
   ========================================================= */
:root{
  --wave-a:#08c8e8;
  --wave-b:#1687d3;
  --wave-c:#17338f;
  --wave-d:#0a1d62;
}
.topbar{
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  background:
    radial-gradient(120% 100% at 0% 100%, rgba(8,200,232,.95) 0%, rgba(22,135,211,.92) 37%, rgba(23,51,143,.96) 70%, rgba(10,29,98,1) 100%)!important;
  color:#ffffff!important;
  position:relative!important;
  overflow:hidden!important;
}
.topbar:after{
  content:"";
  position:absolute;
  left:-6%;right:-6%;bottom:-28px;height:58px;
  background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.06));
  border-radius:50% 50% 0 0/100% 100% 0 0;
  pointer-events:none;
}
.topbar-inner{padding:14px 0!important;font-weight:800;position:relative;z-index:1;}
.nav,.section-soft,.card,.trust-card,.provider-card,.home-map-card,.hero-info-box{
  background-color:rgba(255,255,255,.95);
}
.menu a:hover,.menu a.active{
  background:#dff1ff!important;
  color:#0a2f6f!important;
  box-shadow:none!important;
}
.appointment-top,.appointment-cta{
  background:linear-gradient(135deg,var(--wave-a),var(--wave-b),var(--wave-c))!important;
  color:#fff!important;
  border-color:transparent!important;
}
.hero-copy h1{
  width:100%!important;
  max-width:720px!important;
  text-align:justify!important;
  text-align-last:justify!important;
  font-size:clamp(25px,2.35vw,35px)!important;
  line-height:1.22!important;
  letter-spacing:-.018em!important;
  display:block!important;
}
.trust-card strong{font-size:clamp(17px,1.45vw,22px)!important;}
.trust-card span{font-size:15px!important;line-height:1.5!important;}
.providers-map-grid{grid-template-columns:1fr!important;}
.provider-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.home-hours-map{height:100%;min-height:100%;background:#fff;border:1px solid var(--line);border-radius:30px;padding:12px;box-shadow:var(--shadow);display:flex;}
.home-hours-map .map{height:auto!important;min-height:100%!important;flex:1;border-radius:22px;}
.section .split:has(.home-hours-map){align-items:stretch!important;}
.section .split:has(.home-hours-map) > div:first-child{height:100%;}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;}
.footer-actions{margin-top:18px;}
.footer .btn{display:inline-flex!important;margin-top:8px;color:#06204a!important;}
.staff-grid .card,.appointment-form{height:100%;}
.appointment-form button{width:max-content;}
.form input:focus,.form textarea:focus,.form select:focus{outline:3px solid rgba(8,200,232,.24);border-color:var(--wave-b);}
@media(max-width:1180px){.provider-mini-grid{grid-template-columns:1fr!important;}}
@media(max-width:980px){
  .topbar{min-height:56px!important;}
  .hero-copy h1{text-align:left!important;text-align-last:auto!important;}
  .cta-actions{justify-content:flex-start;}
  .home-hours-map{min-height:320px;}
  .appointment-top{display:none!important;}
}


/* =========================================================
   Final homepage and inner-page alignment polish.
   Added after client requested balanced left/right hero areas.
   ========================================================= */
@media (min-width:981px){
  .hero-grid{
    grid-template-columns:1fr 1fr!important;
    align-items:stretch!important;
    gap:30px!important;
  }
  .hero-copy,
  .hero-media,
  .hero-media .media-card{
    height:100%;
  }
  .hero-copy{
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:rgba(255,255,255,.56);
    border:1px solid rgba(188,211,232,.72);
    border-radius:30px;
    padding:30px;
    box-shadow:0 16px 45px rgba(16,43,103,.08);
    backdrop-filter:blur(10px);
  }
  .media-card{
    aspect-ratio:auto!important;
    min-height:100%;
  }
  .media-card img{
    height:100%!important;
    min-height:100%!important;
    object-fit:cover;
  }
}
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead,
.trust-card strong,
.trust-card span{
  max-width:100%!important;
}
.hero-copy .lead,
.trust-card span,
.hero-copy-block p,
.hero-info-box span,
.resources-hero-copy p{
  text-align:justify;
  text-align-last:left;
}
.hero-cta{
  align-items:stretch;
}
.hero-cta .btn{
  min-width:165px;
}
.trust-row{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
.trust-card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:190px;
}
.trust-card strong{
  min-height:52px;
}
@media (min-width:981px){
  .hero-mini{
    grid-template-columns:1fr 1fr!important;
    align-items:stretch!important;
  }
  .hero-copy-block,
  .hero-side-image,
  .hero-side-image img{
    height:100%!important;
  }
  .hero-side-image img{
    min-height:470px!important;
  }
  .hero-copy-block{
    min-height:470px;
    justify-content:space-between;
  }
  .hero-info-box{
    min-height:150px;
    justify-content:flex-start!important;
  }
}
.appointment-info-card{
  justify-content:flex-start;
}
.appointment-info-card .feature-list{
  margin-top:16px;
}
@media(max-width:980px){
  .trust-card{min-height:0;}
  .trust-card strong{min-height:0;}
  .hero-copy .lead,
  .trust-card span,
  .hero-copy-block p,
  .hero-info-box span,
  .resources-hero-copy p{
    text-align:left;
  }
}


/* =========================================================
   Final home page title spacing fix.
   Removes the forced full justification from the welcome line
   so words do not spread with large spaces.
   ========================================================= */
.hero-copy h1{
  text-align:left!important;
  text-align-last:auto!important;
  word-spacing:normal!important;
  letter-spacing:-.01em!important;
  max-width:720px!important;
}


/* =========================================================
   Latest client requested refinements: larger logo/menu,
   shorter home hero, compact buttons/hours, appointment form.
   ========================================================= */
@media (min-width:981px){
  .brand-logo{width:66px!important;height:66px!important;flex-basis:66px!important;border-radius:18px!important;}
  .brand-logo img{padding:4px!important;}
  .brand{max-width:285px!important;gap:12px!important;}
  .brand-text{font-size:18px!important;}
  .menu a{font-size:14.5px!important;padding:10px 10px!important;}
  .nav-actions .btn{font-size:14px!important;padding:11px 15px!important;}

  .hero{padding:48px 0 42px!important;}
  .hero-copy,.hero-media,.hero-media .media-card,.hero-media .media-card img{min-height:500px!important;}
  .hero-grid{gap:24px!important;}
  .hero-copy{padding:24px!important;}
  .trust-row{gap:10px!important;margin-top:22px!important;}
  .trust-card{min-height:132px!important;padding:14px!important;}
  .trust-card strong{min-height:0!important;font-size:clamp(16px,1.2vw,19px)!important;}
  .trust-card span{font-size:14px!important;line-height:1.42!important;}

  .hero-cta{flex-wrap:nowrap!important;gap:8px!important;margin-top:20px!important;}
  .hero-cta .btn{min-width:0!important;white-space:nowrap!important;padding:12px 14px!important;font-size:14px!important;flex:1 1 0!important;}

  .section .split:has(.home-hours-map){grid-template-columns:.55fr 1.45fr!important;gap:22px!important;}
  .home-hours-map{min-height:360px!important;}
  .hours{max-width:430px!important;gap:7px!important;}
  .hours div{justify-content:flex-start!important;gap:16px!important;padding:10px 13px!important;border-radius:13px!important;}
  .hours strong{min-width:92px!important;}
  .hours span{white-space:nowrap!important;}

  body[data-page="appointment"] .appointment-request-grid{grid-template-columns:.72fr 1.28fr!important;gap:24px!important;align-items:stretch!important;}
  body[data-page="appointment"] .appointment-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
  body[data-page="appointment"] .appointment-form button{grid-column:1/-1!important;width:max-content!important;}
}

.hero-copy .lead,
.trust-card span,
.hero-copy-block p,
.hero-info-box span,
.resources-hero-copy p{
  text-align:left!important;
  text-align-last:auto!important;
  word-spacing:normal!important;
  letter-spacing:normal!important;
}
.hero-copy h1{
  text-align:left!important;
  text-align-last:auto!important;
  word-spacing:normal!important;
}

@media (max-width:980px){
  .brand-logo{width:56px!important;height:56px!important;flex-basis:56px!important;}
  .hero-cta{flex-wrap:wrap!important;}
  body[data-page="appointment"] .appointment-form{grid-template-columns:1fr!important;}
}


/* =========================================================
   Client refinements: topbar side spacing, resources hero image,
   justified home lead, and office hours alignment.
   ========================================================= */
.topbar .topbar-inner{
  padding-left:28px!important;
  padding-right:28px!important;
}
.resources-page-hero{
  overflow:hidden;
}
.resources-hero-grid{
  display:grid;
  grid-template-columns:1.04fr .96fr;
  gap:34px;
  align-items:center;
}
.resources-hero-image{
  position:relative;
}
.resources-hero-image img{
  width:100%;
  border-radius:34px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#fff;
}
body[data-page="home"] .hero-copy .lead{
  text-align:justify!important;
  text-align-last:auto!important;
}
.hours div{
  justify-content:space-between!important;
  gap:34px!important;
}
.hours strong{
  min-width:auto!important;
}
.hours span{
  margin-left:auto!important;
  text-align:right!important;
}
@media(max-width:980px){
  .topbar .topbar-inner{
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .resources-hero-grid{
    grid-template-columns:1fr;
  }
  .resources-hero-image{
    max-width:640px;
    margin:8px auto 0;
  }
  .hours div{
    justify-content:space-between!important;
  }
}

/* =========================================================
   Client refinement: align topbar text with main page content.
   Uses the same left/right spacing as the website sections below.
   ========================================================= */
.topbar .topbar-inner{
  padding-left:clamp(18px,4vw,76px)!important;
  padding-right:clamp(18px,4vw,76px)!important;
}
@media(max-width:980px){
  .topbar .topbar-inner{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}


/* =========================================================
   Home update: appointment button fit + compact highlight cards
   + automatic Google-style review slider.
   ========================================================= */
body[data-page="home"] .hero-cta .appointment-cta,
body[data-page="home"] .hero-cta a[href="appointment.php"]{
  font-size:13px!important;
  line-height:1.15!important;
  white-space:normal!important;
  text-align:center!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  padding:10px 12px!important;
}
body[data-page="home"] .trust-card strong{
  font-size:clamp(15px,1.05vw,18px)!important;
  line-height:1.15!important;
  min-height:0!important;
  letter-spacing:-.02em!important;
}
body[data-page="home"] .trust-card span{
  font-size:13.5px!important;
  line-height:1.42!important;
}
.reviews-section{
  background:linear-gradient(135deg,#f7fbff 0%,#fff 46%,#eaf5fc 100%);
  overflow:hidden;
}
.reviews-slider{
  position:relative;
  overflow:hidden;
  padding:8px 0 18px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
}
.reviews-track{
  display:flex;
  gap:22px;
  width:max-content;
  animation:reviewsMarquee 42s linear infinite;
}
.reviews-slider:hover .reviews-track{
  animation-play-state:paused;
}
.review-card{
  flex:0 0 calc((min(1180px,100vw - 48px) - 44px) / 3);
  min-height:250px;
  background:#fff;
  border:1px solid rgba(21,101,176,.16);
  border-radius:28px;
  box-shadow:0 14px 36px rgba(16,43,103,.09);
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.review-top{
  display:grid;
  grid-template-columns:48px 1fr 34px;
  gap:12px;
  align-items:center;
}
.review-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  font-weight:900;
  font-size:20px;
}
.review-card h3{
  margin:0;
  font-size:17px;
  line-height:1.15;
  color:var(--ink);
}
.review-card span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.google-mark{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid #dce8f2;
  color:#4285f4;
  background:#fff;
  font-weight:900;
  font-family:Arial, sans-serif;
}
.stars{
  color:#fbbc04;
  letter-spacing:2px;
  font-size:18px;
  line-height:1;
}
.review-card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  font-size:15px;
}
@keyframes reviewsMarquee{
  from{transform:translateX(0);}
  to{transform:translateX(calc(-1 * (((min(1180px,100vw - 48px) - 44px) / 3 + 22px) * 10)));}
}
@media(max-width:980px){
  .review-card{flex-basis:calc((100vw - 70px) / 2);}
  @keyframes reviewsMarquee{
    from{transform:translateX(0);}
    to{transform:translateX(calc(-1 * (((100vw - 70px) / 2 + 22px) * 10)));}
  }
}
@media(max-width:640px){
  body[data-page="home"] .hero-cta .appointment-cta,
  body[data-page="home"] .hero-cta a[href="appointment.php"]{
    font-size:14px!important;
    min-height:46px!important;
  }
  .reviews-slider{
    -webkit-mask-image:none;
    mask-image:none;
  }
  .review-card{
    flex-basis:calc(100vw - 52px);
    min-height:235px;
  }
  @keyframes reviewsMarquee{
    from{transform:translateX(0);}
    to{transform:translateX(calc(-1 * ((100vw - 52px + 22px) * 10)));}
  }
}


/* Seamless review carousel movement: the first 10 reviews are duplicated once. */
@keyframes reviewsMarquee{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* =========================================================
   Final home button fix: keep long hero button labels centered
   and on one line without changing the theme.
   ========================================================= */
body[data-page="home"] .hero-cta{
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px!important;
}
body[data-page="home"] .hero-cta .btn{
  white-space:nowrap!important;
  text-align:center!important;
  justify-content:center!important;
  align-items:center!important;
  line-height:1!important;
  min-height:48px!important;
  padding:12px 18px!important;
  flex:0 0 auto!important;
}
body[data-page="home"] .hero-cta .appointment-cta,
body[data-page="home"] .hero-cta a[href="appointment.php"]{
  min-width:205px!important;
  font-size:13.5px!important;
  white-space:nowrap!important;
  padding-left:16px!important;
  padding-right:16px!important;
}
body[data-page="home"] .hero-cta a[href="doctors.php"]{
  min-width:190px!important;
  font-size:13.5px!important;
  white-space:nowrap!important;
}
@media (min-width:981px){
  body[data-page="home"] .hero-cta .btn{
    padding-left:15px!important;
    padding-right:15px!important;
  }
  body[data-page="home"] .hero-cta .appointment-cta,
  body[data-page="home"] .hero-cta a[href="appointment.php"]{
    min-width:205px!important;
  }
  body[data-page="home"] .hero-cta a[href="doctors.php"]{
    min-width:190px!important;
  }
}
@media (max-width:520px){
  body[data-page="home"] .hero-cta .btn,
  body[data-page="home"] .hero-cta .appointment-cta,
  body[data-page="home"] .hero-cta a[href="appointment.php"],
  body[data-page="home"] .hero-cta a[href="doctors.php"]{
    width:100%!important;
    min-width:0!important;
    font-size:13.5px!important;
  }
}

/* =========================================================
   Hero CTA row final alignment: keep all four home buttons
   on one horizontal line on desktop/tablet widths.
   ========================================================= */
@media (min-width: 641px){
  body[data-page="home"] .hero-cta{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    width:100%!important;
  }
  body[data-page="home"] .hero-cta .btn,
  body[data-page="home"] .hero-cta .appointment-cta,
  body[data-page="home"] .hero-cta a[href="appointment.php"],
  body[data-page="home"] .hero-cta a[href="doctors.php"],
  body[data-page="home"] .hero-cta a[href="services.php"]{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    white-space:nowrap!important;
    text-align:center!important;
    text-align-last:center!important;
    justify-content:center!important;
    align-items:center!important;
    line-height:1!important;
    min-height:44px!important;
    padding:11px 10px!important;
    font-size:12.6px!important;
    letter-spacing:-.01em!important;
  }
}

@media (min-width: 1100px){
  body[data-page="home"] .hero-cta{gap:8px!important;}
  body[data-page="home"] .hero-cta .btn,
  body[data-page="home"] .hero-cta .appointment-cta,
  body[data-page="home"] .hero-cta a[href="appointment.php"],
  body[data-page="home"] .hero-cta a[href="doctors.php"],
  body[data-page="home"] .hero-cta a[href="services.php"]{
    padding:12px 13px!important;
    font-size:13px!important;
  }
}

.social-link{display:inline-flex!important;align-items:center;gap:8px;width:fit-content;line-height:1.3;}
.social-icon{width:24px;height:24px;border-radius:8px;display:inline-grid;place-items:center;background:linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.18);}
.social-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;}
.footer .social-link{margin-top:12px;font-weight:900;}
.contact-card .social-link{font-weight:900;}

/* =========================================================
   Dynamic Events, Residents, Externs, and Contact Form
   ========================================================= */
.nav .container{width:min(1440px,96%)}
.nav-inner{gap:12px}.menu{gap:3px}.menu a{padding:9px 9px;font-size:12.5px;white-space:nowrap}.brand-text{font-size:18px}.brand-sub{font-size:11px}.nav-actions{gap:7px}.nav-actions .btn{padding:11px 14px;font-size:12px}
.dynamic-page-hero .hero-side-image img{aspect-ratio:4/3;object-fit:cover}.profile-listing-section,.events-listing-section{background:linear-gradient(180deg,#f4f8fc 0,#fff 100%)}
.profile-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.dynamic-profile-card{background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 16px 44px rgba(16,43,103,.10);transition:.25s ease}.dynamic-profile-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}.dynamic-profile-image{aspect-ratio:4/3;background:var(--soft);overflow:hidden}.dynamic-profile-image img{width:100%;height:100%;object-fit:cover}.dynamic-profile-content{padding:23px}.dynamic-profile-content h3{font-size:24px;line-height:1.2;margin:10px 0 7px}.dynamic-profile-content p{color:var(--muted);margin:8px 0}.profile-type-label{display:inline-flex;padding:6px 10px;border-radius:999px;background:var(--soft);color:var(--primary);font-size:12px;font-weight:900}.profile-qualifications{font-weight:800;color:var(--primary)!important}.empty-state{max-width:760px;margin:0 auto;padding:42px;background:#fff;border:1px dashed #aac4db;border-radius:26px;text-align:center}.empty-state h3{font-size:26px;margin:0 0 6px}.empty-state p{color:var(--muted);margin:0}.empty-state.compact{padding:24px}
.event-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.event-card{width:100%;padding:0;text-align:left;border:1px solid var(--line);border-radius:28px;background:#fff;color:inherit;overflow:hidden;box-shadow:0 16px 44px rgba(16,43,103,.10);cursor:pointer;transition:.25s ease;font:inherit}.event-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}.event-cover{position:relative;aspect-ratio:4/3;background:var(--soft);overflow:hidden}.event-cover img{width:100%;height:100%;object-fit:cover;transition:.35s ease}.event-card:hover .event-cover img{transform:scale(1.035)}.event-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:52px}.event-photo-count{position:absolute;right:14px;bottom:14px;padding:7px 11px;background:rgba(6,25,57,.86);color:#fff;border-radius:999px;font-size:12px;font-weight:900;backdrop-filter:blur(8px)}.event-card-content{padding:22px}.event-card-content h3{margin:7px 0 8px;font-size:24px;line-height:1.2}.event-card-content p{color:var(--muted);margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.event-date{display:inline-block;color:var(--primary-2);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.event-view-link{display:inline-block;margin-top:5px;color:var(--primary);font-weight:900}.event-modal{position:fixed;inset:0;z-index:200;display:none;padding:24px}.event-modal.open{display:grid;place-items:center}.event-modal-backdrop{position:absolute;inset:0;background:rgba(4,17,38,.76);backdrop-filter:blur(8px)}.event-modal-panel{position:relative;z-index:1;width:min(1050px,96vw);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:30px;box-shadow:0 30px 90px rgba(0,0,0,.35);overflow:hidden}.event-modal-close{position:absolute;right:18px;top:16px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:#071f3d;color:#fff;font-size:29px;line-height:1;cursor:pointer}.event-modal-heading{padding:28px 78px 20px 28px;border-bottom:1px solid var(--line)}.event-modal-heading h2{font-size:clamp(26px,4vw,42px);line-height:1.1;margin:7px 0}.event-modal-heading p{color:var(--muted);margin:0;max-width:850px}.event-gallery-scroll{overflow-y:auto;padding:24px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.event-gallery-item{margin:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--soft)}.event-gallery-item img{width:100%;height:auto;max-height:560px;object-fit:contain;background:#edf4fa}.event-gallery-item figcaption{padding:11px 14px;color:var(--muted);font-size:14px;background:#fff}.modal-open{overflow:hidden}.form-message{padding:14px 16px;border-radius:15px;margin:15px 0}.form-message.success{background:#e9f8ef;color:#146c36;border:1px solid #b8e5c8}.form-message.error{background:#fff0ef;color:#8a1c14;border:1px solid #f0c2bd}.form-message ul{margin:7px 0 0}.form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:1180px){.hamburger{display:block}.menu{position:absolute;left:4%;right:4%;top:84px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:12px;display:none;flex-direction:column;align-items:stretch}.menu.open{display:flex}.menu a{font-size:14px;padding:10px 13px}.desktop-only{display:none}.nav-inner{flex-wrap:wrap}.nav-actions{margin-inline-start:auto}}
@media(max-width:900px){.profile-card-grid,.event-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.event-gallery-scroll{grid-template-columns:1fr}}
@media(max-width:620px){.profile-card-grid,.event-card-grid{grid-template-columns:1fr}.event-modal{padding:8px}.event-modal-panel{width:100%;max-height:96vh;border-radius:22px}.event-modal-heading{padding:22px 64px 17px 18px}.event-gallery-scroll{padding:14px}.dynamic-profile-content,.event-card-content{padding:19px}}
.event-card:focus-visible{outline:4px solid rgba(31,115,183,.28);outline-offset:4px}


/* =========================================================
   PHP conversion + guaranteed navigation visibility
   ========================================================= */
.direct-dynamic-listing{
  padding-top:38px;
  min-height:420px;
}

/* Common laptop widths: keep every menu item visible in a centered second row. */
@media (min-width:1181px) and (max-width:1500px){
  .nav-inner{
    display:flex;
    flex-wrap:wrap!important;
    justify-content:space-between;
    row-gap:8px;
  }
  .nav-inner .brand{
    order:1;
    flex:0 1 auto!important;
    max-width:520px!important;
  }
  .nav-actions{
    order:2;
    margin-inline-start:auto;
  }
  .nav-inner .menu{
    order:3;
    flex:0 0 100%;
    width:100%;
    display:flex!important;
    justify-content:center!important;
    align-items:center;
    flex-wrap:wrap;
    padding:3px 0 5px!important;
  }
  .nav-inner .menu a{
    display:inline-flex;
    visibility:visible;
    opacity:1;
    font-size:13px!important;
    padding:8px 10px!important;
  }
  .hamburger{display:none!important;}
}

/* Wide screens: allow the links to use the remaining space without clipping. */
@media (min-width:1501px){
  .nav-inner .menu{
    flex:1 1 auto;
    min-width:0;
    justify-content:center;
  }
  .nav-inner .menu a{
    display:inline-flex;
    visibility:visible;
    opacity:1;
  }
}

@media (max-width:1180px){
  .menu.open a{
    display:flex;
    visibility:visible;
    opacity:1;
  }
}

/* =========================================================
   Menu label and single-line desktop navigation update
   ========================================================= */
@media (min-width:1181px){
  .nav .container{
    width:min(1560px,98%);
  }
  .nav-inner{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }
  .nav-inner .brand{
    order:initial!important;
    flex:0 1 300px!important;
    min-width:180px!important;
    max-width:300px!important;
  }
  .nav-inner .menu{
    order:initial!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:center!important;
    align-items:center!important;
    gap:1px!important;
    padding:0!important;
    white-space:nowrap!important;
  }
  .nav-inner .menu a{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 auto!important;
    white-space:nowrap!important;
    font-size:11.5px!important;
    padding:8px 6px!important;
    letter-spacing:-.02em!important;
  }
  .nav-actions{
    order:initial!important;
    flex:0 0 auto!important;
    margin-inline-start:0!important;
    gap:5px!important;
  }
  .nav-actions .btn{
    font-size:11.5px!important;
    padding:9px 10px!important;
    white-space:nowrap!important;
  }
  .hamburger{
    display:none!important;
  }
}

@media (min-width:1181px) and (max-width:1450px){
  .brand-sub{display:none!important;}
  .brand-text{font-size:16px!important;}
  .brand-logo img{max-width:62px!important;}
  .nav-actions .btn.secondary{display:none!important;}
}

@media (min-width:1181px) and (max-width:1280px){
  .nav-inner .brand{
    flex-basis:220px!important;
    max-width:220px!important;
  }
  .nav-actions .appointment-top{display:none!important;}
  .nav-inner .menu a{
    font-size:11px!important;
    padding-inline:5px!important;
  }
}

/* =========================================================
   Readable single-line desktop navigation
   Keeps the normal menu font size and creates space by
   simplifying header actions only at narrower desktop widths.
   ========================================================= */
@media (min-width:1181px){
  .nav .container{
    width:min(1600px,98%);
  }
  .nav-inner{
    flex-wrap:nowrap!important;
    gap:10px!important;
  }
  .nav-inner .brand{
    flex:0 1 275px!important;
    min-width:150px!important;
    max-width:275px!important;
  }
  .nav-inner .menu{
    flex:1 1 auto!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    justify-content:center!important;
    gap:2px!important;
    white-space:nowrap!important;
  }
  .nav-inner .menu a{
    flex:0 0 auto!important;
    font-size:14px!important;
    line-height:1.2!important;
    padding:9px 8px!important;
    letter-spacing:normal!important;
    white-space:nowrap!important;
  }
  .nav-actions{
    flex:0 0 auto!important;
    gap:7px!important;
  }
  .nav-actions .btn{
    font-size:13px!important;
    padding:10px 12px!important;
  }
}

/* Preserve the readable menu size; free space by hiding actions first. */
@media (min-width:1181px) and (max-width:1480px){
  .brand-sub{display:none!important;}
  .nav-actions .btn.secondary{display:none!important;}
}

@media (min-width:1181px) and (max-width:1330px){
  .nav-inner .brand{
    flex-basis:210px!important;
    max-width:210px!important;
  }
  .brand-text{font-size:17px!important;}
  .nav-actions .appointment-top{display:none!important;}
}

/* At the narrowest desktop width, keep the logo and full-size menu on one line. */
@media (min-width:1181px) and (max-width:1240px){
  .nav-inner .brand{
    flex:0 0 auto!important;
    min-width:0!important;
    max-width:none!important;
  }
  .nav-inner .brand-text-wrap{display:none!important;}
  .brand-logo img{max-width:58px!important;}
}

/* =========================================================
   Compact dynamic cards + fitted images + event carousel
   ========================================================= */
.profile-card-grid,
.event-card-grid{
  width:min(1060px,100%);
  margin-inline:auto;
  gap:20px;
}

.dynamic-profile-card,
.event-card{
  border-radius:22px;
  box-shadow:0 12px 32px rgba(16,43,103,.09);
}

.dynamic-profile-image{
  aspect-ratio:4/3;
  padding:10px;
  background:#f2f6fa;
  display:flex;
  align-items:center;
  justify-content:center;
}
.dynamic-profile-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border-radius:14px;
}
.dynamic-profile-content{padding:18px 19px 20px;}
.dynamic-profile-content h3{font-size:21px;margin:8px 0 6px;}
.dynamic-profile-content p{font-size:14.5px;line-height:1.55;margin:6px 0;}

.event-cover{
  aspect-ratio:16/10;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f2f6fa;
}
.event-cover img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border-radius:14px;
  background:#fff;
}
.event-card:hover .event-cover img{transform:none;}
.event-card-content{padding:18px 19px 20px;}
.event-card-content h3{font-size:21px;margin:6px 0 7px;}
.event-card-content p{font-size:14.5px;-webkit-line-clamp:2;}
.event-photo-count{right:18px;bottom:18px;}

.event-modal-panel{
  width:min(920px,96vw);
  max-height:94vh;
  border-radius:24px;
}
.event-modal-heading{padding:22px 70px 16px 24px;}
.event-modal-heading h2{font-size:clamp(24px,3vw,34px);margin:5px 0;}
.event-modal-heading p{font-size:14.5px;line-height:1.55;}
.event-empty-gallery{margin:28px;}

.event-gallery-carousel{
  min-height:0;
  padding:18px 22px 20px;
  overflow-y:auto;
}
.event-gallery-stage{
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 46px;
  align-items:center;
  gap:12px;
}
.event-gallery-viewport{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  border:1px solid var(--line);
  border-radius:18px;
  background:#eef3f8;
  outline:none;
}
.event-gallery-viewport::-webkit-scrollbar{display:none;}
.event-gallery-viewport:focus-visible{box-shadow:0 0 0 4px rgba(31,115,183,.2);}
.event-gallery-track{display:flex;width:100%;}
.event-gallery-slide{
  flex:0 0 100%;
  min-width:100%;
  margin:0;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  display:flex;
  flex-direction:column;
  background:#fff;
}
.event-image-zoom{
  position:relative;
  width:100%;
  height:clamp(330px,57vh,570px);
  padding:12px;
  border:0;
  background:#eef3f8;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:zoom-in;
}
.event-image-zoom img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.event-image-zoom-hint{
  position:absolute;
  right:18px;
  bottom:18px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(4,24,49,.82);
  color:#fff;
  font-size:12px;
  font-weight:800;
  opacity:0;
  transform:translateY(5px);
  transition:.2s ease;
}
.event-image-zoom:hover .event-image-zoom-hint,
.event-image-zoom:focus-visible .event-image-zoom-hint{opacity:1;transform:none;}
.event-image-zoom:focus-visible{outline:4px solid rgba(31,115,183,.28);outline-offset:-4px;}
.event-gallery-slide figcaption{
  min-height:42px;
  padding:10px 14px;
  color:var(--muted);
  font-size:14px;
  text-align:center;
  border-top:1px solid var(--line);
  background:#fff;
}
.event-gallery-arrow{
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  font-size:34px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(21,101,176,.22);
  transition:.2s ease;
}
.event-gallery-arrow:hover{transform:translateY(-2px);}
.event-gallery-arrow:focus-visible{outline:4px solid rgba(31,115,183,.28);outline-offset:3px;}
.event-gallery-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:13px;
}
.event-gallery-counter{font-size:13px;font-weight:900;color:var(--primary);white-space:nowrap;}
.event-gallery-dots{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;}
.event-gallery-dot{
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#b8c8d8;
  cursor:pointer;
  transition:.2s ease;
}
.event-gallery-dot.active{width:24px;border-radius:999px;background:var(--primary);}
.event-gallery-dot:focus-visible{outline:3px solid rgba(31,115,183,.28);outline-offset:3px;}

.event-image-lightbox{
  position:fixed;
  inset:0;
  z-index:260;
  display:none;
  padding:20px;
}
.event-image-lightbox.open{display:grid;place-items:center;}
.event-image-lightbox-backdrop{position:absolute;inset:0;background:rgba(2,10,24,.92);backdrop-filter:blur(8px);}
.event-image-lightbox-panel{
  position:relative;
  z-index:1;
  width:min(1280px,96vw);
  height:min(900px,94vh);
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 58px;
  align-items:center;
  gap:12px;
}
.event-image-lightbox-panel img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  object-position:center;
}
.event-image-lightbox-close{
  position:absolute;
  right:0;
  top:0;
  z-index:2;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#071f3d;
  font-size:30px;
  cursor:pointer;
}
.event-image-lightbox-arrow{
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:38px;
  cursor:pointer;
}
.event-image-lightbox-counter{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  padding:8px 13px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  font-size:13px;
  font-weight:900;
}

@media(max-width:900px){
  .profile-card-grid,.event-card-grid{width:min(700px,100%);gap:18px;}
  .event-gallery-stage{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;}
  .event-gallery-arrow{width:40px;height:40px;font-size:30px;}
  .event-image-zoom{height:clamp(300px,53vh,500px);}
}

@media(max-width:620px){
  .profile-card-grid,.event-card-grid{width:min(390px,100%);}
  .dynamic-profile-image{aspect-ratio:4/3;padding:8px;}
  .event-cover{padding:8px;}
  .event-gallery-carousel{padding:13px 10px 16px;}
  .event-gallery-stage{display:block;}
  .event-gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:3;
    width:38px;
    height:38px;
    background:rgba(9,47,86,.88);
  }
  .event-gallery-arrow:hover{transform:translateY(-50%);}
  .event-gallery-prev{left:8px;}
  .event-gallery-next{right:8px;}
  .event-image-zoom{height:clamp(260px,48vh,430px);padding:8px;}
  .event-image-zoom-hint{display:none;}
  .event-modal-heading{padding:19px 58px 13px 16px;}
  .event-image-lightbox{padding:8px;}
  .event-image-lightbox-panel{width:100%;height:96vh;grid-template-columns:42px minmax(0,1fr) 42px;gap:4px;}
  .event-image-lightbox-arrow{width:40px;height:40px;font-size:30px;}
  .event-image-lightbox-close{right:6px;top:6px;width:42px;height:42px;}
}

/* =========================================================
   Staff page mobile image and content containment fix
   2026-07-27
   Keeps the complete team photograph visible and prevents
   text, buttons, lists, and contact details leaving boxes.
   ========================================================= */
body[data-page="staff"]{
  overflow-x:hidden;
}

body[data-page="staff"] .hero-mini,
body[data-page="staff"] .hero-copy-block,
body[data-page="staff"] .hero-info-grid,
body[data-page="staff"] .hero-info-box,
body[data-page="staff"] .hero-side-image,
body[data-page="staff"] .grid,
body[data-page="staff"] .card,
body[data-page="staff"] .split,
body[data-page="staff"] .quote,
body[data-page="staff"] .cta,
body[data-page="staff"] .cta-actions,
body[data-page="staff"] .footer-grid,
body[data-page="staff"] .footer-grid > div{
  min-width:0;
  max-width:100%;
}

/* The staff photograph must never be forced into a tall crop. */
body[data-page="staff"] .hero-mini{
  align-items:center!important;
}
body[data-page="staff"] .hero-side-image{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
body[data-page="staff"] .hero-side-image img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}

/* Allow every staff-page text element to wrap inside its container. */
body[data-page="staff"] .hero-copy-block,
body[data-page="staff"] .hero-info-box,
body[data-page="staff"] .card,
body[data-page="staff"] .quote,
body[data-page="staff"] .cta,
body[data-page="staff"] .footer-grid > div{
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}
body[data-page="staff"] h1,
body[data-page="staff"] h2,
body[data-page="staff"] h3,
body[data-page="staff"] h4,
body[data-page="staff"] p,
body[data-page="staff"] li,
body[data-page="staff"] strong,
body[data-page="staff"] span,
body[data-page="staff"] a{
  max-width:100%;
  overflow-wrap:anywhere;
}
body[data-page="staff"] .btn{
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  text-align:center!important;
  line-height:1.25!important;
}
body[data-page="staff"] .feature-list li{
  padding-inline-end:0;
}
body[data-page="staff"] .footer a{
  width:fit-content;
  max-width:100%;
}

@media (max-width:980px){
  body[data-page="staff"] .hero-mini{
    grid-template-columns:minmax(0,1fr)!important;
    gap:26px!important;
  }
  body[data-page="staff"] .hero-copy-block{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:20px!important;
    border-radius:24px!important;
  }
  body[data-page="staff"] .hero-info-grid{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    gap:12px!important;
  }
  body[data-page="staff"] .hero-info-box{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:16px!important;
  }
  body[data-page="staff"] .hero-side-image{
    margin:0 auto!important;
  }
  body[data-page="staff"] .hero-side-image img{
    border-radius:24px!important;
  }
  body[data-page="staff"] .staff-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-page="staff"] .staff-grid .card,
  body[data-page="staff"] .section-soft .card,
  body[data-page="staff"] .quote{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:20px!important;
  }
  body[data-page="staff"] .cta{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    padding:24px 20px!important;
    border-radius:26px!important;
  }
  body[data-page="staff"] .cta h2{
    font-size:clamp(28px,9vw,38px)!important;
  }
  body[data-page="staff"] .cta-actions,
  body[data-page="staff"] .hero-cta{
    width:100%!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:stretch!important;
  }
  body[data-page="staff"] .cta-actions .btn,
  body[data-page="staff"] .hero-cta .btn{
    flex:1 1 150px!important;
  }
  body[data-page="staff"] .footer-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

@media (max-width:520px){
  body[data-page="staff"] .page-hero{
    padding:38px 0!important;
  }
  body[data-page="staff"] .hero-copy-block{
    padding:18px!important;
  }
  body[data-page="staff"] .hero-copy-block h1{
    font-size:clamp(34px,11vw,46px)!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
  }
  body[data-page="staff"] .hero-copy-block p,
  body[data-page="staff"] .hero-info-box span{
    font-size:16px!important;
    line-height:1.6!important;
  }
  body[data-page="staff"] .hero-cta .btn,
  body[data-page="staff"] .cta-actions .btn{
    flex:1 1 100%!important;
    width:100%!important;
  }
  body[data-page="staff"] .card,
  body[data-page="staff"] .quote,
  body[data-page="staff"] .cta{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}
