/* =========================================================
   Medical Specialists Associates — homepage stylesheet
   Palette:
     --navy      #123B66  (primary — replaces prior green)
     --navy-dark #0D2C4D
     --navy-tint #E9EEF4
     --orange    #CD413B  (accent / CTA)
     --orange-dark #A93630
     --orange-tint #FBEAE9
     --ink       #16222B
     --bg        #F7F8FA
   Type: Fraunces (display) + Plus Jakarta Sans (body)
   No custom JS — all motion here is CSS-only (load-in + hover + marquee).
   ========================================================= */
/* =========================================================
   WORDPRESS PRIMARY MENU
   Keep the existing MSA header design
========================================================= */


/* Main menu */

#mainNav .navbar-nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
#mainNav .navbar-nav > .menu-item { position: relative; margin: 0; }
#mainNav .navbar-nav > .menu-item > a { display: flex; align-items: center; padding: 0.75rem 0.85rem; color: #123b66; background: transparent; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
#mainNav .navbar-nav > .menu-item > a:hover, #mainNav .navbar-nav > .menu-item > a:focus { color: #cd413b; text-decoration: none; }
#mainNav .navbar-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 0.5rem 0; list-style: none; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 12px 30px rgba(18, 59, 102, 0.12); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; }
#mainNav .navbar-nav .menu-item-has-children:hover > .sub-menu, #mainNav .navbar-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#mainNav .navbar-nav .sub-menu .menu-item { position: relative; margin: 0; padding: 0; }
#mainNav .navbar-nav .sub-menu .menu-item > a { display: block; width: 100%; padding: 0.65rem 1rem; color: #123b66; background: #ffffff; font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
#mainNav .navbar-nav .sub-menu .menu-item > a:hover, #mainNav .navbar-nav .sub-menu .menu-item > a:focus { color: #cd413b; background: #f8f9fa; text-decoration: none; }
#mainNav .navbar-nav .sub-menu .menu-item-has-children > .sub-menu { top: 0; left: 100%; margin-left: 2px; }
#mainNav .navbar-nav > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
#mainNav .navbar-nav > .menu-item-has-children:hover > a::after { transform: rotate(225deg) translate(-1px, -1px); }
#mainNav .navbar-nav > .menu-item:last-child > a { margin-left: 0.7rem; padding: 0.65rem 1.35rem; color: #ffffff; background: #cd413b; border-radius: 999px; box-shadow: 0 8px 18px rgba(205, 65, 59, 0.18); }
#mainNav .navbar-nav > .menu-item:last-child > a:hover, #mainNav .navbar-nav > .menu-item:last-child > a:focus { color: #ffffff; background: #b93631; }
@media (max-width: 991.98px) {
#mainNav .navbar-nav { align-items: stretch; width: 100%; margin-left: 0; }
#mainNav .navbar-nav > .menu-item > a { padding: 0.75rem 0; }
#mainNav .navbar-nav .sub-menu { position: static; min-width: 0; width: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
#mainNav .navbar-nav .sub-menu .menu-item > a { padding: 0.55rem 0.75rem 0.55rem 1rem; background: transparent; }
#mainNav .navbar-nav > .menu-item:last-child > a { display: inline-flex; width: fit-content; margin: 0.75rem 0 0.5rem; }
}

:root {
  --navy: #123B66;
  --navy-dark: #0D2C4D;
  --navy-tint: #E9EEF4;
  --orange: #CD413B;
  --orange-dark: #A93630;
  --orange-tint: #FBEAE9;
  --ink: #16222B;
  --bg: #F7F8FA;
  --line: #E1E6EB;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

   /* Color */
  --ink:            #16323F;   /* headings / dark text */
  --teal:           #123B66;   /* brand primary — mega-title, hover states */
  --teal-deep:      #0A4E53;   /* darker teal, for depth/hover backgrounds */
  --horizon:        #EAF4F4;   /* light tint — dropdown item hover background */
  --coral:          #CD413B;   /* accent — mega-title underline, "Soon" badge */
  --coral-deep:     #E76A45;   /* coral hover state */
  --sage:           #A9C9A4;   /* secondary accent, used elsewhere in the template */
  --cloud:          #FBFAF7;   /* base page background */
  --line:           #E3E1D9;   /* hairline border — column divider, mega-title underline */

  /* Layout */
  --radius-lg: 28px;   /* large cards / bands */
  --radius-md: 18px;   /* mega-menu panel, cards */
  --radius-sm: 10px;   /* small dropdowns, badges */
  --shadow-soft: 0 20px 45px -25px rgba(22,50,63,.35);
  --shadow-card: 0 12px 30px -18px rgba(22,50,63,.28);  /* mega-menu drop shadow */
  --container-max: 1240px;
}
.caption h3.entry-title {
    font-size: 17px;
    font-weight: normal;
    padding: 10px;
    color: #000 !important;
}.ld_course_grid_button a.btn.btn-primary {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: transparent;
    border: 0;
    color: #048be7 !important;
    text-align: left;
}.ld_course_grid_button a.btn.btn-primary:hover {
    background-color: transparent;
    color: #000 !important;
}
.ld-course-list-items .ld_course_grid .thumbnail.course{border-radius:15px;}
.mkdf-post-content .mkdf-post-info-date {
    font-family: "Open Sans", sans-serif !important;
}.fluidvids-item,.mkdf-blog-holder article .mkdf-post-image img{border-radius:15px}
.mkdf-blog-holder article .mkdf-post-title{    font-weight: 500 !important;
    font-size: 24px;}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display)!important; color: var(--navy)!important; letter-spacing: -0.01em; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; margin-bottom: 0.9rem; }

/* Centered section intros need the eyebrow's icon+text centered too, not just the block */
.section-head .eyebrow { justify-content: center; }

/* ===== Topbar ===== */
.topbar { background: var(--navy-dark); color: #DCE7F1; font-size: 0.82rem; padding: 0.45rem 0; }
.topbar-item { padding: 0.15rem 0.6rem; }
.topbar-item a { color: #F6C6C2; text-decoration: none; font-weight: 600; }
.topbar-item a:hover { color: #fff; }
.topbar i { margin-right: 0.35rem; color: var(--orange); }

/* ===== Navbar ===== */
#mainNav { background: rgba(247, 248, 250, 0.94); backdrop-filter: blur(8px); padding: 0.85rem 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 70px; width: auto; display: block; }
.footer .brand-logo { height: 85px; }
.navbar-nav .nav-link { color: var(--ink); font-weight: 600; font-size: 0.94rem; padding: 0.5rem 0.9rem !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--navy); }
.dropdown-menu { border: none; box-shadow: 0 12px 32px rgba(18,59,102,0.14); border-radius: 12px; padding: 0.5rem; }
.dropdown-item { border-radius: 8px; font-size: 0.9rem; padding: 0.5rem 0.9rem; }
.dropdown-item:hover { background: var(--navy-tint); color: var(--navy); }
.btn-cta { background: var(--orange); border: none; color: #fff; font-weight: 700; padding: 0.65rem 1.5rem; border-radius: 50px; transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease; box-shadow: 0 10px 24px rgba(205,65,59,0.28); }
.btn-cta:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(205,65,59,0.35); }
.btn-cta-outline { border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; padding: 0.63rem 1.5rem; border-radius: 50px; background: transparent; transition: all 0.25s ease; }
.btn-cta-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-outline-light-quiet { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; font-weight: 700; padding: 0.63rem 1.5rem; border-radius: 50px; background: transparent; transition: all 0.25s ease; }
.btn-outline-light-quiet:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn-light-cta { background: #fff; color: var(--orange-dark); font-weight: 700; padding: 0.75rem 1.9rem; border-radius: 50px; transition: all 0.25s ease; }
.btn-light-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); color: var(--orange-dark); }


/* ===== Hero (Section 1) ===== */
.hero { position: relative; padding: 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgb(13 28 77 / 94%) 0%, rgba(18, 59, 102, 0.82) 55%, rgba(18, 59, 102, 0.55) 100%); z-index: -1; }
.hero-title { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.14; color:#fff !important; margin-bottom: 1.2rem; }
.hero-lead { font-size: 1.08rem; color: #DCE7F1; max-width: 38rem; }
.hero .eyebrow { color: #F6C6C2; }

@media (max-width:767.98px){
#heroCarousel .carousel-item .container{ padding: 50px 30px !important;}
#heroCarousel .carousel-inner .carousel-item:first-child .hero-bg, #heroCarousel .carousel-inner .carousel-item:nth-child(2) .hero-bg{ background-size: contain; background-position: right bottom; background-repeat: no-repeat; background-color: #011023;}
}

/* ===== Common section styles ===== */
.section { padding: 5.5rem 0; }
.section-head { /*max-width: 42rem;*/ margin: 0 auto 3rem; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 0.9rem; }
.section-sub { color: #4C6072; font-size: 1.02rem; }

/* ===== Section 2 — Audience ===== */
.audience-section { background: #fff; }
.audience-card {
  display: block; background: #cd413b; border: 1px solid var(--line); border-radius: 25px 0 0 25px;
  padding: 2rem 1.6rem; height: 100%; text-decoration: none; color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position:relative;
  overflow:hidden; border-right:0;
}
.audience-card:hover { /*transform: translateY(-8px);*/ background: #fff; box-shadow: 0 20px 40px rgba(18,59,102,0.12); color: inherit; }
.audience-icon {
  width: 56px; height: 56px; background: var(--navy-tint); color: var(--navy); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.audience-card:hover .audience-icon { background: var(--orange); color: #fff; transform: rotate(-8deg) scale(1.06); }
.audience-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.audience-card p { font-size: 0.92rem; color: #000000; margin-bottom: 0.9rem; font-weight:500;}
.audience-link { font-size: 0.85rem; font-weight: 700; color: var(--orange); }

.audience-card { position: relative; display: block; overflow: hidden; z-index: 1; }
.audience-card::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.75); opacity: 1; transition: opacity .35s ease; z-index: 1; pointer-events: none; }
.audience-card > * { position: relative; z-index: 2; text-decoration: none; }
.audience-card:hover::before { opacity: 0.9; }
.case-study-card { border-radius: 24px; overflow: hidden; background: #ffffff; box-shadow: 0 15px 45px rgba(0,0,0,.08); }
.case-content { background: #4732C7; color: #fff; height: 100%; padding: 70px 60px; display: flex; flex-direction: column; justify-content: center; }
.case-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; margin-bottom: 30px; display: block; }
.case-content h2 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 30px; }
.case-content p { font-size: 18px; line-height: 1.8; color: rgba(255,255,255,.85); margin-bottom: 40px; }
.case-content h3 { font-size: 56px; font-weight: 700; margin-bottom: 10px; color: #ffffff; }
.case-content span { font-size: 17px; color: rgba(255,255,255,.85); display: block; line-height: 1.6; }
.case-image { height: 100%; overflow: hidden; }
.case-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .5s ease; }
.case-study-card:hover .case-image img { transform: scale(1.05); }

@media (max-width:991.98px){
.case-content { padding: 50px 35px; }
.case-content h2 { font-size: 34px; }
.case-content h3 { font-size: 46px; }
.case-image { min-height: 195px;height: 195px; }
}

@media (max-width:767.98px){
.case-content { padding: 40px 25px; }
.case-content h2 { font-size: 28px; }
.case-content p { font-size: 16px; }
.case-content h3 { font-size: 40px; }
.case-image { min-height: 195px; height: 195px; }
.audience-card { border-radius: 25px 25px 0 0; padding:1rem 1.6rem;}
}

/* ===== Section 3 — Clinical services ===== */
.clinical-section { background: #eaf5ff; }

.service-card { 
    --overlay-color: 23, 70, 187; 
    --overlay-opacity: 0.58; 
    --img-position: right top; 
    --img-size: cover; 

    display: block; position: relative; background-color: #ffffff; background-position: var(--img-position); background-repeat: no-repeat; background-size: var(--img-size); overflow: hidden; isolation: isolate; color: inherit; text-decoration: none; cursor: pointer; }
.service-card:hover, .service-card:focus { color: inherit; text-decoration: none; }
.service-card::before { content: ""; position: absolute; inset: 0; background-color: rgba(var(--overlay-color), var(--overlay-opacity)); z-index: 0; pointer-events: none; }
.service-card > * { position: relative; z-index: 1; }

.service-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.6rem; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(18,59,102,0.1); }
.service-icon { width: 56px; height: 56px; background: var(--orange-tint); color: var(--orange-dark); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color:#ffffff !important; }
.service-card p { font-size: 0.92rem; color: #ffffff; margin: 0; width: 80%; }

.clinical-section .row .col-md-4:last-child .service-icon{ white-space: normal;justify-content: start;}
.clinical-section .row .col-md-4:last-child .service-icon .bi{ margin-left:15px;}
.clinical-section .row .col-md-4:last-child .service-icon:after { content: "Soon"; margin-left: 2.5rem; font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); background: #FCE9E1; padding: .1rem .45rem; border-radius: 999px; vertical-align: middle; }

/* ===== Section 4 — Consulting ===== */
.consulting-section { position: relative; overflow: hidden; padding: 100px 0; background: #173f6d; isolation: isolate; }

/* Background Image */
.consulting-section::before { content: ""; position: absolute; inset: 0; background: url("../../assets/img/medi-icons-bg.png") repeat; background-position: center top; background-size: 500px auto; background-attachment: fixed; opacity: 1; z-index: -2; }

/* Blue Overlay */
.consulting-section::after { content: ""; position: absolute; inset: 0; background: rgba(23,63,109,.85); z-index: -1; }

/* Content */
.consulting-section .container { position: relative; z-index: 2; }

/* Parallax optimization */
@supports (-webkit-touch-callout:none){
.consulting-section::before { background-attachment: scroll; }
}

/* Large desktop */
@media (min-width:1400px){
.consulting-section { padding: 120px 0; }
.consulting-card { padding: 50px; }
}

/* Tablet */
@media (max-width:991.98px){
.consulting-section { padding: 80px 0; }
.consulting-section .section-title { font-size: 38px; margin-bottom: 45px; }
.consulting-card { padding: 30px; }
.consulting-card h3 { font-size: 26px; }
}

/* Mobile */
@media (max-width:767.98px){
.consulting-section { padding: 60px 0; }
.consulting-section::before { background-attachment: scroll; opacity: .12; transform: none; z-index: 0; }
.consulting-section .section-title { font-size: 32px; margin-bottom: 35px; }
.consulting-card { padding: 25px; background: rgb(19 54 92) !important; }
.consulting-card h3 { font-size: 24px; }
.consulting-card p { font-size: 16px; line-height: 1.7; }
}

/* Small mobile */
@media (max-width:575.98px){
.consulting-section { padding: 50px 0; }
.consulting-card { border-radius: 18px; padding: 22px; }
.consulting-icon { width: 58px; height: 58px; }
}
.consulting-card {
  background: rgb(24 48 73); border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  padding: 2.4rem 2rem; height: auto; transition: transform 0.3s ease, background 0.3s ease;
}
.consulting-card:hover { transform: translateY(-8px); background: rgba(23, 63, 107, 0.5); }
.consulting-icon {
  width: 60px; height: 60px; background: var(--orange); color: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1.4rem;
}
.consulting-card h3 { color:#fff !important; font-size: 1.2rem; margin-bottom: 0.7rem; }
.consulting-card p { color: #C7D6E3; font-size: 0.94rem; margin-bottom: 1.2rem; }
.consulting-link { color: #F6C6C2; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.consulting-link:hover { color: #fff; }



/* ===== Section 5 — Coming soon ===== */
.coming-soon-section { background: #fff; }
.coming-card { position: relative; background: var(--bg); border: 1px dashed var(--line); border-radius: 18px; padding: 2.2rem 1.6rem; height: 100%; text-align: center; overflow: hidden; }
.coming-card::before { content: ''; position: absolute; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); left: 0; top: 0; z-index: 1; }
.coming-card > * { position: relative; z-index: 2; }
.coming-badge { position: absolute !important; top: 1.1rem; right: 1.1rem; background: var(--orange-tint); color: var(--orange-dark); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 50px; }
.coming-card .service-icon { margin: 0 auto 1.2rem; }
.coming-card h3 { font-size: 1.1rem; color: #ffffff; margin-bottom: 0.5rem; }
.coming-card p { font-size: 0.9rem; color: #ffffff; margin: 0; }

/* ===== Section 6 — Videos ===== */
.videos-section { background: var(--bg); }
.video-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18,59,102,0.12); }
.video-thumb { position: relative; height: 200px; background-size: cover; background-position: center; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--orange); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: transform 0.25s ease, background 0.25s ease;
}
.video-card:hover .play-btn { transform: scale(1.1); background: var(--orange); color: #fff; }
.video-body { padding: 1.3rem 1.4rem 1.5rem; }
.video-body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 0; }

.video-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18, 59, 102, 0.12); }
.video-thumb { position: relative; height: 200px; background-size: cover; background-position: center; cursor: pointer; }
.play-btn { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: transform 0.25s ease, background 0.25s ease; }
.video-card:hover .play-btn { transform: scale(1.1); background: var(--orange); color: #fff; }
.video-body { padding: 1.3rem 1.4rem 1.5rem; }
.video-body h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 0; color: var(--navy); }
/* Video Modal (Bootstrap modal overrides) */
#videoModal .modal-content { background: transparent; border: none; }
#videoModal .modal-dialog { max-width: 900px; }
#videoModal .btn-close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; background-color: #fff; opacity: 1; background-image: none; display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 1.1rem; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
#videoModal .btn-close:hover { background-color: var(--orange); color: #fff; transform: scale(1.08); }
#videoModal .btn-close i { pointer-events: none; }
.video-modal-ratio { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */ border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.video-modal-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#videoModal .modal-backdrop-blur { backdrop-filter: blur(4px); }


/* ===== Section 7 — Books ===== */
.books-section { background: #fff; }
.book-cover-wrap { display: flex; justify-content: center; }
.book-cover { max-width: 280px; width: 100%; border-radius: 12px; box-shadow: 0 24px 48px rgba(18,59,102,0.2); transform: rotate(-3deg); transition: transform 0.4s ease; }
.book-cover-wrap:hover .book-cover { transform: rotate(0deg); }
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-weight: 600; color: var(--navy); font-size: 0.94rem; }
.resource-list i { color: var(--orange); }

/* ===== Section 8 — Insights ===== */
.insights-section { background: var(--bg); }
.insight-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 100%; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.insight-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(18,59,102,0.12); }
.insight-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; background: var(--orange); color: #fff;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem; border-radius: 50px;
}
.insight-img { width: 100%; object-fit: cover; }
.insight-body { padding: 1.4rem; }
.insight-body h3 { font-size: 1.02rem; line-height: 1.4; margin-bottom: 0.5rem; }
.insight-body p { font-size: 0.88rem; color: #57707F; margin-bottom: 0.8rem; }
.insight-link { font-size: 0.85rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.insight-link:hover { color: var(--orange); }

/* ===== Section 9 — Stats band ===== */
.stats-band { background: var(--navy); padding: 5rem 0; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: #fff; }
.stat-label { color: #B7CBDD; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }

/* ===== Section 10 — Coverage ===== */
.coverage-section { background: #fff; }
.coverage-map { width: 100%; border-radius: 20px; box-shadow: 0 20px 44px rgba(18,59,102,0.12); }
.state-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.state-badge {
  background: var(--navy-tint); color: var(--navy); font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 1rem; border-radius: 50px;
}
.coverage-note { font-size: 0.92rem; color: #4C6072; }
.coverage-note i { color: var(--orange); margin-right: 0.3rem; }
.coverage-note a { color: var(--orange); font-weight: 700; text-decoration: none; }

/* ===== Section 11 — Credentials ===== */
.credentials-section { background: var(--bg); }
.testimonial-card { max-width: 42rem; text-align: center; padding: 0 1.5rem 2rem; }
.quote-icon { font-size: 2.2rem; color: var(--orange); margin-bottom: 0.8rem; display: inline-block; }
.testimonial-card p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--navy); line-height: 1.55; margin-bottom: 1.6rem; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; }
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testimonial-author span { font-size: 0.8rem; color: #6C8290; }

.credentials-label { text-align: center; font-weight: 700; color: var(--navy); font-size: 0.9rem; margin: 1rem 0 1.5rem; }

.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 1rem; width: max-content; animation: marquee 22s linear infinite; }
.logo-chip {
  flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1.6rem; font-weight: 700; color: var(--navy); font-size: 0.88rem; white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Section 12 — CTA ===== */
.cta-banner { background: var(--orange); background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.14), transparent 55%); padding: 5rem 0; }
.cta-banner .section-title { color: #fff; }
.cta-need {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 16px;
  padding: 1.6rem 1rem; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.cta-need:hover { transform: translateY(-6px); background: rgba(255,255,255,0.18); }
.cta-need i { font-size: 1.8rem; color: #fff; }
.cta-need span { color: #fff; font-weight: 700; font-size: 0.95rem; }

.contact-form-section { padding: 6rem 0; background: #fff; }
.form-image-card { background: #f7f8fa; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 10px 40px rgba(0,0,0,.06); overflow: hidden; }
.form-image-card img { border-radius: 1rem; width: 100%; height: auto; display: block; }
.eyebrow-text { color: #b23b3b; font-weight: 700; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: .5rem; }
.form-heading { font-weight: 700; color: #1a2b4c; margin-bottom: .75rem; }
.contact-form .form-control-lg{ font-size:0.825rem;}
.contact-form .form-label { font-weight: 600; color: #333; margin-bottom: .5rem; }
.contact-form .form-control { border: 1px solid #e2c9c9; border-radius: .5rem; padding: .75rem 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form .form-control:focus { border-color: #b23b3b; box-shadow: 0 0 0 .2rem rgba(178, 59, 59, .15); }
.btn-primary-cta { background: linear-gradient(135deg, #b23b3b, #d16060); color: #fff; border: none; border-radius: 50px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.btn-primary-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(178, 59, 59, .35); color: #fff; }
@media (max-width: 991px) {
  .contact-form-section { padding: 3rem 0; }
  .form-image-card { margin-bottom: 1rem; }
}
@media (max-width: 767px) {
  .contact-form .form-control { font-size: 1rem; }
}

/* ===== Footer ===== */
.footer { background: var(--navy-dark); color: #B7CBDD; padding: 4.5rem 0 2rem; }
.footer-about { font-size: 0.9rem; color: #9FB6C7; max-width: 20rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.25s ease, transform 0.25s ease; }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.1rem; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.7rem; font-size: 0.88rem; }
.footer-links a { color: #9FB6C7; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: #9FB6C7; display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact i { color: var(--orange); margin-top: 0.2rem; }
.footer hr { border-color: rgba(255,255,255,1); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: 0.8rem; color: #9FB6C7; }

/* =========================================================
   New sections — Physician-led redesign additions
   (Reuses existing color/typography tokens; no theme changes)
   ========================================================= */

/* ----- Proof strip (below hero) ----- */
.proof-strip { background: var(--navy-dark); padding: 1rem 0; }
.proof-item { color: #DCE7F1; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.5rem; }
.proof-item i { color: var(--orange); }

/* ----- Physician Ownership section ----- */
.ownership-section { background: #fff; }
.ownership-point {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.2rem; height: 100%; display: flex; flex-direction: row; gap: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease; align-items:center;
}
.ownership-point:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(18,59,102,0.1); }
.ownership-point h3 { font-size: 0.98rem; margin: 0; color: var(--navy); }
.ownership-point .audience-icon { margin-bottom: 0; width: 48px; height: 48px; font-size: 1.3rem; }

/* ----- Hospital Challenge section ----- */
.challenge-section { background: var(--navy-tint); }

/* ----- Capabilities section ----- */
.capabilities-section { background: #fff; }
.capability-list { display: flex; flex-direction: column; gap: 1.6rem; }
.capability-item { display: flex; align-items: flex-start; gap: 1.1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.capability-item:last-child { padding-bottom: 0; border-bottom: none; }
.capability-item .service-icon { background: var(--navy-tint); color: var(--navy); margin-bottom: 0; flex-shrink: 0; }
.capability-item h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.capability-item p { font-size: 0.92rem; color: #4C6072; margin: 0; }

/* ----- Rural & Community Hospitals ----- */
.rural-section { background: #fff; }

/* ----- How We Partner (process) ----- */
.partner-section { background: var(--bg); }
.process-step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.1rem;
  height: 100%; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(18,59,102,0.1); }
.process-num {
  width: 42px; height: 42px; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--orange); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.86rem; color: #4C6072; margin: 0; }

/* ----- Technology & AI ----- */
.tech-section { background: #fff; }
.tech-chip {
  background: var(--navy-tint); color: var(--navy); font-weight: 700; font-size: 0.85rem;
  padding: 0.6rem 1.1rem; border-radius: 50px; display: inline-flex; align-items: center; gap: 0.5rem;
}
.tech-chip i { color: var(--orange); }

/* ===== Load-in animation (CSS-only, no JS) ===== */
[data-anim] { animation: fadeUp 0.7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { animation: none; }
  .logo-track { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
   #mainNav{ padding:0;}
  .navbar-collapse { background: #fff; border-radius: 16px; padding: 1rem; margin-top: 1rem; box-shadow: 0 12px 32px rgba(18,59,102,0.1); }
  .topbar{ display:none;}
}

/* ========================================================= MSA COURSES PAGE ========================================================= */
.msa-courses-page { background: #ffffff; }
.msa-courses-header { background: #f7f8fa; padding: 75px 0 70px; text-align: center; }
.msa-courses-header-inner { max-width: 850px; margin: 0 auto; }
.msa-courses-eyebrow { display: inline-block; margin-bottom: 15px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.msa-courses-header h1 { margin: 0 0 18px; font-size: 48px; line-height: 1.15; }
.msa-courses-header p { max-width: 700px; margin: 0 auto; font-size: 18px; line-height: 1.7; }
.msa-courses-section { padding: 80px 0; }
.msa-courses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.msa-course-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #ffffff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.msa-course-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12); }
.msa-course-image { display: block; height: 230px; overflow: hidden; background: #eef1f4; }
.msa-course-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.msa-course-card:hover .msa-course-image img { transform: scale(1.04); }
.msa-course-image-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #eef1f4; }
.msa-course-image-placeholder span { font-size: 14px; font-weight: 700; letter-spacing: 2px; }
.msa-course-content { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.msa-course-label { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.msa-course-title { margin: 0 0 14px; font-size: 23px; line-height: 1.3; }
.msa-course-title a { text-decoration: none; }
.msa-course-description { margin-bottom: 25px; font-size: 15px; line-height: 1.7; }
.msa-course-description p { margin: 0; }
.msa-course-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 20px; }
.msa-course-price { font-size: 19px; font-weight: 700; }
.msa-course-price del { opacity: 0.6; }
.msa-course-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.msa-course-button span { font-size: 18px; line-height: 1; }
.msa-courses-empty { max-width: 700px; margin: 0 auto; padding: 70px 30px; text-align: center; }
.msa-courses-empty h2 { margin-bottom: 15px; }
.msa-courses-empty p { margin: 0; line-height: 1.7; }
.msa-pagination { margin-top: 60px; text-align: center; }
.msa-pagination ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.msa-pagination li { margin: 0; padding: 0; }
.msa-pagination a, .msa-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; text-decoration: none; }
.msa-pagination .current { font-weight: 700; }
.msa-pagination a:hover { text-decoration: underline; }
@media (max-width: 991px) {
.msa-courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msa-courses-header h1 { font-size: 40px; }
}
@media (max-width: 767px) {
.msa-courses-header { padding: 55px 20px; }
.msa-courses-header h1 { font-size: 34px; }
.msa-courses-header p { font-size: 16px; }
.msa-courses-section { padding: 55px 20px; }
.msa-courses-grid { grid-template-columns: 1fr; }
.msa-course-image { height: 220px; }
.msa-course-content { padding: 24px; }
.msa-course-bottom { align-items: flex-start; flex-direction: column; }
}

/*********************/
/* =========================================================
   MSA SERVICES MEGA MENU - DESKTOP + MOBILE
   Replace BOTH old mega menu CSS blocks with this one.
   ========================================================= */

/* ---------- Shared styles (all screen sizes) ---------- */
#mainNav .mega-dropdown { position: relative; }
#mainNav .mega-dropdown > .dropdown-menu > li { min-width: 0; margin: 0 !important; float: none !important; list-style: none; }
#mainNav .mega-dropdown .msa-dynamic-mega-menu-item > a::after { display: none !important; }

/* Group headings */
#mainNav .mega-dropdown .msa-mega-menu-group { pointer-events: none; }
#mainNav .mega-dropdown .msa-mega-menu-group > a { display: block !important; padding: 0 0 .75rem 0 !important; margin: 0 0 .55rem 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; color: var(--teal) !important; font-family: var(--font-body); font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
#mainNav .mega-dropdown .msa-mega-menu-group > a::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: .5rem; background: var(--coral); vertical-align: middle; }

/* Service links */
#mainNav .mega-dropdown .msa-mega-service-item > a { display: block !important; width: 100%; padding: .55rem .6rem !important; margin: 0 !important; border-radius: 10px; background: transparent; color: var(--bs-dropdown-link-color); font-size: .9rem !important; font-weight: 400; line-height: 1.4; white-space: normal; transition: background .2s ease, color .2s ease; }
#mainNav .mega-dropdown .msa-mega-service-item > a:hover, #mainNav .mega-dropdown .msa-mega-service-item > a:focus { background: var(--navy-tint); color: var(--navy); }

/* Leadership column (lighter text) */
#mainNav .mega-dropdown .msa-mega-column-leadership > a { color: #94A0AB; }

/* SOON badge */
#mainNav .mega-dropdown .msa-service-coming-soon > a::after { content: "SOON"; display: inline-block; margin-left: .45rem; padding: .1rem .45rem; border-radius: 999px; background: #FCE9E1; color: var(--coral); font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

/* Open animation */
@keyframes msaMegaFade { from { opacity: 0; margin-top: 1rem; } to { opacity: 1; margin-top: .75rem; } }

/* ---------- Desktop (992px and up) ---------- */
@media (min-width: 992px) {
#mainNav .mega-dropdown > .dropdown-menu { display: none; position: absolute; top: 100%; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; width: min(900px, 92vw) !important; min-width: 0; padding: 1.5rem !important; margin-top: .75rem !important; border: none !important; border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: #fff; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; column-gap: 0; row-gap: 0; z-index: 1050; }
#mainNav .mega-dropdown:hover > .dropdown-menu, #mainNav .mega-dropdown:focus-within > .dropdown-menu, #mainNav .mega-dropdown > .dropdown-menu.show { display: grid !important; animation: msaMegaFade .22s ease both; }

/* Invisible bridge so the menu doesn't close when the mouse crosses the gap */
#mainNav .mega-dropdown > .dropdown-menu::before { content: ""; position: absolute; top: -.75rem; left: 0; right: 0; height: .75rem; }

/* Headings: row 1 */
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-menu-group { grid-row: 1; padding: 0 1.5rem !important; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-group-in_person { grid-column: 1; padding-left: 0 !important; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-group-virtual { grid-column: 2; border-left: 1px solid var(--line); }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-group-leadership { grid-column: 3; border-left: 1px solid var(--line); padding-right: 0 !important; }

/* Service items: rows 2+ */
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-service-item { padding: 0 1.5rem !important; align-self: start; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-column-in_person { grid-column: 1; padding-left: 0 !important; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-column-virtual { grid-column: 2; border-left: 1px solid var(--line); }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-column-leadership { grid-column: 3; border-left: 1px solid var(--line); padding-right: 0 !important; }
}

/* ---------- Tablet / Mobile (below 992px) ---------- */
@media (max-width: 991.98px) {
#mainNav .mega-dropdown > .dropdown-menu { display: none; position: static !important; float: none; width: 100% !important; min-width: 0; transform: none !important; margin: .25rem 0 .5rem !important; padding: 1rem !important; border: 1px solid var(--line) !important; border-radius: var(--radius-md); box-shadow: none; background: #fff; overflow-x: hidden; }
#mainNav .mega-dropdown > .dropdown-menu.show { display: flex !important; flex-direction: column; }

/* Keep each heading directly above its own services, whatever the DOM order */
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-group-in_person { order: 1; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-column-in_person { order: 2; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-group-virtual { order: 3; margin-top: 1.25rem !important; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-column-virtual { order: 4; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-group-leadership { order: 5; margin-top: 1.25rem !important; }
#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-column-leadership { order: 6; }

#mainNav .mega-dropdown > .dropdown-menu > .msa-mega-menu-group, #mainNav .mega-dropdown > .dropdown-menu > .msa-mega-service-item { padding: 0 !important; border-left: 0 !important; }
#mainNav .mega-dropdown .msa-mega-service-item > a { padding: .7rem .6rem !important; font-size: .95rem !important; }
}

/* =========================================================
   MEGA MENU - any menu item with the class "msa-mega"
   Desktop: 3 columns, dividers centred in the gap
   Mobile: smooth accordion, left-aligned headings
   ========================================================= */

/* ---------- Shared styles (all screen sizes) ---------- */
#mainNav .msa-mega { position: relative; }
#mainNav .msa-mega > ul { list-style: none; margin: 0; }
#mainNav .msa-mega > ul > li { min-width: 0; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; list-style: none; }

/* Nested inner lists (heading li > ul): always visible, no dropdown styling */
#mainNav .msa-mega > ul > li > ul { position: static !important; display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent !important; list-style: none; float: none; }
#mainNav .msa-mega > ul > li > ul > li { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; list-style: none; }

/* Headings: red dash + uppercase title + line underneath */
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a, #mainNav .msa-mega > ul > li.menu-item-has-children > a { pointer-events: none; }
#mainNav .msa-mega > ul > li > ul, #mainNav .msa-mega > ul > li > ul > li, #mainNav .msa-mega .msa-mega-service-item, #mainNav .msa-mega .msa-mega-service-item > a, #mainNav .msa-mega > ul > li > ul > li > a { pointer-events: auto; }
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a, #mainNav .msa-mega > ul > li.menu-item-has-children > a { display: flex !important; align-items: flex-start; padding: 0 0 .8rem 0 !important; margin: 0 0 1.1rem 0 !important; border-bottom: 1px solid var(--line) !important; background: transparent !important; color: var(--navy) !important; font-family: var(--font-body); font-size: .72rem !important; font-weight: 700 !important; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; white-space: normal; }
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a::before, #mainNav .msa-mega > ul > li.menu-item-has-children > a::before { content: ""; flex-shrink: 0; width: 16px; height: 2px; margin: 6px .5rem 0 0; background: var(--coral); }
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a::after, #mainNav .msa-mega > ul > li.menu-item-has-children > a::after { display: none !important; }

/* Service links */
#mainNav .msa-mega .msa-mega-service-item > a, #mainNav .msa-mega > ul > li > ul > li > a { display: block !important; width: 100%; padding: .5rem .6rem !important; margin: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--bs-dropdown-link-color, #2b2f33) !important; font-size: .95rem !important; font-weight: 400 !important; line-height: 1.4; white-space: normal; transition: background .2s ease, color .2s ease; }

/* Hover / focus: soft blue box with navy text */
#mainNav .msa-mega .msa-mega-service-item > a:hover, #mainNav .msa-mega .msa-mega-service-item > a:focus, #mainNav .msa-mega > ul > li > ul > li > a:hover, #mainNav .msa-mega > ul > li > ul > li > a:focus { background: var(--navy-tint, #E6EBF2) !important; color: var(--navy, #1f3a5f) !important; }

/* "Coming soon" column: grey text, not clickable, SOON badge */
#mainNav .msa-mega .msa-mega-column-leadership > a, #mainNav .msa-mega > ul > li:last-child > ul > li > a { color: #94A0AB !important; }
#mainNav .msa-mega .msa-mega-column-leadership > a:hover, #mainNav .msa-mega .msa-mega-column-leadership > a:focus, #mainNav .msa-mega > ul > li:last-child > ul > li > a:hover, #mainNav .msa-mega > ul > li:last-child > ul > li > a:focus { background: transparent !important; color: #94A0AB !important; cursor: default; }
#mainNav .msa-mega .msa-service-coming-soon > a::after, #mainNav .msa-mega > ul > li:last-child > ul > li > a::after { content: "SOON"; display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: #FCE9E1; color: var(--coral); font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
#mainNav .msa-mega .msa-service-coming-soon > a, #mainNav .msa-mega .msa-mega-column-leadership > a, #mainNav .msa-mega > ul > li:last-child > ul > li > a { pointer-events: none; }

/* SOON badge must stay inside the column */
#mainNav .msa-mega .msa-mega-service-item > a, #mainNav .msa-mega > ul > li > ul > li > a { box-sizing: border-box !important; max-width: 100% !important; white-space: normal !important; overflow-wrap: anywhere; }
#mainNav .msa-mega .msa-service-coming-soon > a, #mainNav .msa-mega > ul > li:last-child > ul > li > a { display: flex !important; flex-wrap: wrap; align-items: center; column-gap: .5rem; row-gap: .15rem; }
#mainNav .msa-mega .msa-service-coming-soon > a::after, #mainNav .msa-mega > ul > li:last-child > ul > li > a::after { margin-left: 0 !important; flex-shrink: 0; white-space: nowrap; }

/* Desktop open animation */
@keyframes msaMegaFade { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Desktop (992px and up) ---------- */
@media (min-width: 992px) {
#mainNav .msa-mega > ul { display: none; position: absolute !important; top: 100%; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; width: min(900px, 92vw) !important; min-width: 0 !important; padding: 1.5rem .75rem !important; margin: .75rem 0 0 !important; border: 0 !important; border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: #fff; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: 3.5rem; row-gap: 0; z-index: 1050; }
#mainNav .msa-mega:hover > ul, #mainNav .msa-mega:focus-within > ul, #mainNav .msa-mega > ul.show { display: grid !important; animation: msaMegaFade .22s ease both; }

/* Invisible bridge so the menu stays open while the mouse crosses the gap */
#mainNav .msa-mega > ul::before { content: ""; position: absolute; top: -.75rem; left: 0; right: 0; height: .75rem; }

/* Two vertical dividers, centred in the gaps */
#mainNav .msa-mega > ul::after { content: ""; position: absolute; top: 1.5rem; bottom: 1.5rem; left: .75rem; right: .75rem; pointer-events: none; background: linear-gradient(var(--line), var(--line)) calc(33.333% - 9.333px) 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) calc(66.666% + 9.333px) 0 / 1px 100% no-repeat; }

/* Nested layout: each top-level li is one column */
#mainNav .msa-mega > ul > li.menu-item-has-children { align-self: start; }

/* Flat layout: headings in row 1 */
#mainNav .msa-mega > ul > li.msa-mega-menu-group { grid-row: 1; align-self: start; }
#mainNav .msa-mega > ul > li.msa-mega-group-in_person { grid-column: 1; }
#mainNav .msa-mega > ul > li.msa-mega-group-virtual { grid-column: 2; }
#mainNav .msa-mega > ul > li.msa-mega-group-leadership { grid-column: 3; }

/* Flat layout: service items in rows 2+ */
#mainNav .msa-mega > ul > li.msa-mega-column-in_person { grid-column: 1; }
#mainNav .msa-mega > ul > li.msa-mega-column-virtual { grid-column: 2; }
#mainNav .msa-mega > ul > li.msa-mega-column-leadership { grid-column: 3; transform: translateY(-.875rem); }
}

/* ---------- Tablet / Mobile (below 992px) ---------- */
@media (max-width: 991.98px) {

/* Every dropdown (About MSA, Services, Education): collapsed, animated */
html body li.msa-m-parent:not(#msa-x) > ul { display: block !important; position: static !important; float: none !important; inset: auto !important; width: 100% !important; min-width: 0 !important; transform: none !important; overflow: hidden !important; max-height: 0 !important; opacity: 0 !important; visibility: hidden !important; margin: 0 !important; padding: 0 0 0 1rem !important; border: 0 solid var(--line) !important; box-shadow: none !important; background: transparent !important; transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, padding .4s cubic-bezier(.4, 0, .2, 1), margin .4s cubic-bezier(.4, 0, .2, 1), border-width .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s !important; }
html body li.msa-m-parent.msa-open:not(#msa-x) > ul { max-height: var(--msa-h, 700px) !important; opacity: 1 !important; visibility: visible !important; padding: .25rem 0 .25rem 1rem !important; transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .35s ease .05s, padding .4s cubic-bezier(.4, 0, .2, 1), margin .4s cubic-bezier(.4, 0, .2, 1), border-width .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s !important; }

/* Mega menu panel: rounded box */
html body #mainNav .msa-mega.msa-m-parent:not(#msa-x) > ul { display: flex !important; flex-direction: column; padding: 0 1rem !important; border-radius: 22px !important; background: #fff !important; }
html body #mainNav .msa-mega.msa-m-parent.msa-open:not(#msa-x) > ul { margin: .5rem 0 .75rem !important; padding: .5rem 1rem 1rem !important; border-width: 1px !important; }

/* Mega menu headings: LEFT aligned, chevron on the far right */
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a, #mainNav .msa-mega > ul > li.menu-item-has-children > a { justify-content: flex-start !important; align-items: center; padding: .9rem 0 .7rem !important; margin: 0 !important; font-size: .72rem !important; text-align: left !important; }
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a::before, #mainNav .msa-mega > ul > li.menu-item-has-children > a::before { margin: 0 .5rem 0 0; }
#mainNav .msa-mega > ul > li.msa-mega-menu-group > a::after, #mainNav .msa-mega > ul > li.menu-item-has-children > a::after { content: "\f282"; display: inline-block !important; flex-shrink: 0; margin: 0 0 0 auto; padding-left: .5rem; border: 0; font-family: "bootstrap-icons" !important; font-size: .7rem; font-weight: 400; line-height: 1; color: var(--navy); transform: none; }

/* Spacing between groups (nested layout) */
#mainNav .msa-mega > ul > li.menu-item-has-children + li.menu-item-has-children { margin-top: .25rem !important; }

/* Flat layout: keep each heading directly above its own services */
#mainNav .msa-mega > ul > li.msa-mega-group-in_person { order: 1; }
#mainNav .msa-mega > ul > li.msa-mega-column-in_person { order: 2; }
#mainNav .msa-mega > ul > li.msa-mega-group-virtual { order: 3; margin-top: .25rem !important; }
#mainNav .msa-mega > ul > li.msa-mega-column-virtual { order: 4; }
#mainNav .msa-mega > ul > li.msa-mega-group-leadership { order: 5; margin-top: .25rem !important; }
#mainNav .msa-mega > ul > li.msa-mega-column-leadership { order: 6; transform: none; }

/* Service links on mobile */
#mainNav .msa-mega .msa-mega-service-item > a, #mainNav .msa-mega > ul > li > ul > li > a { padding: .6rem .6rem .6rem .75rem !important; font-size: .95rem !important; }

/* Arrow on the top-level links (About MSA, Services, Education) rotates when open */
li.msa-m-parent > a { cursor: pointer; }
li.msa-m-parent > a::after { transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
li.msa-m-parent.msa-open > a::after { transform: rotate(180deg); }
}

/* Respect "reduce motion" device settings */
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
html body li.msa-m-parent:not(#msa-x) > ul, li.msa-m-parent > a::after { transition: none !important; }
}

.team-photo{width:150px;height:150px;border-radius:50%;object-fit:cover;object-position:top;margin:0 auto 1.1rem;display:block;border:4px solid var(--navy-tint);transition:border-color .3s ease,transform .3s ease}
.team-card:hover .team-photo{border-color:var(--orange);transform:scale(1.04)}
.team-card .team-avatar.lg{width:150px;height:150px;font-size:2.4rem}
.team-card p{margin-bottom:1.1rem}
.team-card .team-link{font-weight:700;font-size:.85rem;color:var(--navy);text-decoration:none}
.team-card .team-link:hover{color:var(--orange)}
.team-card{display:flex;flex-direction:column;align-items:center}
.team-card .team-link{margin-top:auto}

/* Leadership page, Physicians page */
.value-card{position:relative}
.vc-num{position:absolute;top:.9rem;right:1.2rem;font-family:var(--font-display);font-size:2.1rem;font-weight:700;color:var(--navy-tint);line-height:1;transition:color .3s ease}
.value-card:hover .vc-num{color:var(--orange-tint)}
.value-card .team-link{display:inline-block;margin-top:.9rem;font-weight:700;font-size:.85rem;color:var(--navy);text-decoration:none}
.value-card .team-link:hover{color:var(--orange)}
.stat-sub{color:#B7CBDD;font-size:.82rem;font-weight:600}
.float-y{animation:floatY 5s ease-in-out infinite}
@keyframes floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media (prefers-reduced-motion:reduce){.float-y{animation:none}}

.msa-mega-ul { display: block !important; }
.msa-mega-cols-wrap { display: block !important; list-style: none; margin: 0; padding: 0; width: 100% !important; max-width: none !important; grid-column: 1 / -1; }
.msa-mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; align-items: start; width: 100%; }
.msa-mega-cols .msa-col { display: flex; flex-direction: column; align-items: stretch; width: 100% !important; max-width: none !important; margin: 0; padding: 0; list-style: none; }
.msa-mega-cols .msa-col > li { display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important; flex: 0 0 auto !important; float: none !important; position: static !important; transform: none !important; margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; grid-row: auto !important; grid-column: auto !important; }
.msa-mega-cols .msa-col > li > a { display: block !important; width: 100% !important; max-width: none !important; padding: 10px 12px; line-height: 1.35; white-space: normal; word-break: normal; overflow-wrap: normal; hyphens: none; box-sizing: border-box; }

.msa-mega-cols .msa-mega-ul .msa-mega-cols-wrap .msa-mega-cols{grid-template-columns: revert;}

@media (max-width: 1100px) { .msa-mega-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; } }
@media (max-width: 768px) { .msa-mega-cols { grid-template-columns: 1fr; gap: 16px; } .msa-mega-cols .msa-col > li > a { padding: 12px 0; } }