
/* =========================================================
   AMMC v7.2.6 – Full Theme Stylesheet (Clean Clinical)
   - Fix: Desktop "More" dropdown links had low contrast
   - Enforce dark link color + white panel + higher z-index
   - Base: v7.2.5 (mobile nav + button fixes + equal desktop actions)
   ========================================================= */
:root{ --brand:#305CDE; --brand-ink:#102a8a; --bg:#ffffff; --ink:#0f172a; --muted:#475569; --card:#fff; --border:#e6e9f5; --shadow:0 10px 30px rgba(24,39,75,.08); --shadow-sm:0 6px 18px rgba(24,39,75,.08); --ring:rgba(48,92,222,.25); --radius:16px; }
*{box-sizing:border-box} html,body{height:100%} html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;color:var(--ink);background:var(--bg);display:flex;min-height:100vh;flex-direction:column}
img{max-width:100%;height:auto;display:block} a{color:var(--brand);text-decoration:none} a:hover{text-decoration:underline}
.container{max-width:1180px;margin:0 auto;padding:0 16px}

/* Header */
.topbar{background:#fff;border-bottom:1px solid #eef2ff;position:relative;z-index:10}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}
.logo{height:92px;transition:height .2s ease}
.actions{display:flex;gap:8px}
.actions .mini{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:118px;padding:10px 16px;border-radius:12px;border:1.5px solid var(--brand);background:#fff;color:var(--brand);font-weight:700;line-height:1;cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease}
.actions .mini:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.actions .mini:nth-child(2){background:var(--brand);color:#fff;border-color:var(--brand)}
.actions .mini:focus{outline:none;box-shadow:0 0 0 4px var(--ring)}
@media(max-width:960px){.actions{display:none}}

.infobar{position:sticky;top:0;z-index:9;color:#fff;background:linear-gradient(90deg,var(--brand) 0%, #2047cf 100%);box-shadow:inset 0 -4px 0 rgba(255,255,255,.08)}
.info-inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;padding:16px 0}
.hospital-name{font-style:oblique;font-size:26px;font-weight:900;letter-spacing:.2px;color:#fff;white-space:nowrap}
.menu a{color:#eaf0ff}
.menu a.pill{display:inline-block;padding:8px 12px;border-radius:999px;border:1px solid transparent;transition:all .18s ease;margin:0 3px}
.menu a.pill:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22);text-decoration:none;transform:translateY(-1px)}
.menu .more{position:relative;display:inline-block;padding-bottom:12px}
/* Dropdown panel with strong contrast + high z-index */
.menu .more .dropdown{
  visibility:hidden;opacity:0;pointer-events:none;
  position:absolute;right:0;top:calc(100% + 6px);
  background:#ffffff;color:#0f172a;border:1px solid #c7d2fe;border-radius:12px;
  min-width:210px;box-shadow:0 16px 44px rgba(24,39,75,.22);
  padding:8px;z-index:1000;transform:translateY(6px);
  transition:opacity .15s ease, transform .15s ease;
}
.menu .more:hover .dropdown,.menu .more:focus-within .dropdown,.menu .more .dropdown:hover{visibility:visible;opacity:1;pointer-events:auto;transform:translateY(0)}
.menu .more .dropdown::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px;background:transparent}
/* Force dark link color inside dropdown */
.menu .dropdown a{display:block;color:#0f172a !important;padding:10px 12px;border-radius:8px;font-weight:600;text-decoration:none}
.menu .dropdown a:hover{background:#eef2ff;color:#0f172a !important;text-decoration:none}

/* Mobile nav */
.nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff}
.nav-toggle:focus{outline:none;box-shadow:0 0 0 4px rgba(255,255,255,.25)}
.mobile-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid #e6e9f5;box-shadow:0 16px 40px rgba(24,39,75,.16);z-index:9}
.mobile-nav.open{display:block}
.mobile-nav .inner{padding:10px 16px;display:grid;gap:6px}
.mobile-nav a{display:block;padding:12px;border-radius:10px;border:1px solid #e6e9f5;color:#0f172a;font-weight:600}
.mobile-nav a:hover{background:#f5f7ff;text-decoration:none}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid var(--brand);background:#fff;color:#102a8a;font-weight:700;cursor:pointer;transition:transform .18s ease, box-shadow .18s ease, background .18s ease;white-space:nowrap}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.infobar .btn.primary{background:#fff;border-color:#fff;color:#102a8a}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn + .btn{margin-left:8px} @media(max-width:600px){.btn{display:flex;width:100%}.btn + .btn{margin-left:0;margin-top:8px}}

body.scrolled .logo{height:64px}

/* Cards/sections */
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.grid{display:grid;gap:16px}
.card-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.badge{display:inline-block;background:#eef2ff;color:#1d4ed8;border-radius:999px;padding:6px 10px;font-weight:800}

/* Modern services list */
.services-list{padding:22px}
.services-list ul{list-style:none;margin:0;padding:0}
.services-list li{margin:6px 0;padding:8px 10px 8px 36px;border-radius:12px;position:relative}
.services-list li::before{content:"";position:absolute;left:12px;top:12px;width:14px;height:14px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px rgba(48,92,222,.15)}
.services-list li ul li::before{background:#0ea5e9}
.services-list li:hover{background:rgba(48,92,222,.06)}
.services-list li ul{margin-top:6px;margin-left:0}
.services-list li ul li{padding-left:36px}

/* Staff/Doctor shared */
.doc-card img, .staff-thumb img{border-radius:12px}
.doc-card .meta, .staff-card .role{color:var(--muted)}

/* Employee profile smaller portrait */
.profile-photo{display:flex;justify-content:center}
.profile-photo img{width:auto;max-width:380px;height:auto}

/* Reviews */
.review-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.review-right{display:flex;gap:8px;align-items:center}
.review-list{display:grid;gap:10px}
.review-item{border:1px solid var(--border);border-radius:12px;padding:12px;cursor:pointer;background:#fff}
.review-item:hover{background:#f8fafc}
.review-item.active{outline:3px solid var(--brand);background:#f6f8ff}
.toast{position:fixed;right:16px;bottom:92px;background:#111827;color:#fff;padding:10px 14px;border-radius:10px;box-shadow:0 10px 24px rgba(0,0,0,.25);opacity:0;transform:translateY(8px);transition:all .2s}
.toast.show{opacity:1;transform:translateY(0)}

/* Footer */
.site-footer{background:var(--brand);color:#fff;margin-top:28px;padding:28px 0}
.footer-cards{display:grid;gap:16px;grid-template-columns:2fr 1fr 1fr 1fr}
.footer-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:16px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
.footer-card h3{margin-top:0;color:#fff}
.site-footer .footer-card, .site-footer .footer-card *{color:#fff}
.linklist{list-style:none;margin:0;padding:0}
.linklist li{margin:6px 0}
.linklist a{color:#fff;text-decoration:underline}
.socials{display:flex;gap:12px;margin-top:8px;color:#fff}
.site-footer .socials a{color:#fff;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(255,255,255,.06)}
.foot-mini{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.25);padding-top:12px;margin-top:16px;font-size:14px}

/* Forms */
label{display:grid;gap:6px;margin:6px 0}
.input{width:100%;padding:10px;border-radius:10px;border:1px solid #d1d5db}
.input:focus{outline:none;box-shadow:0 0 0 4px var(--ring)}
table{border-collapse:collapse;width:100%} th,td{padding:8px;border-bottom:1px solid #e5e7eb}

/* Mobile bar */
.mob-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e6e9f5;display:none;gap:8px;padding:10px 12px;z-index:2999;box-shadow:0 -6px 20px rgba(24,39,75,.06)}
.mob-bar a{flex:1;text-align:center;border:1px solid var(--brand);border-radius:10px;padding:12px;font-weight:800;color:var(--brand)}
.mob-bar a.primary{background:var(--brand);color:#fff}

/* Utilities */
main{flex:1 0 auto} footer{flex-shrink:0}
.breadcrumbs{font-size:14px;color:var(--muted);margin:10px 0}


.breadcrumbs{ font-size:14px; color:var(--muted); margin:10px 0; }
.breadcrumbs a{ color:var(--brand); }
.breadcrumbs a:hover{ color:var(--brand-ink); text-decoration:underline; }


/* Responsive */
@media(max-width:1180px){.container{max-width:100%}}
@media(max-width:1024px){.card-list{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-cards{grid-template-columns:1fr 1fr}}
@media(max-width:960px){
  .menu{display:none}
  .nav-toggle{display:inline-flex}
  .info-inner{grid-template-columns:1fr auto}
  .hospital-name{font-style:oblique;font-size:20px}
  body{padding-bottom:78px}.mob-bar{display:flex}
}
@media(max-width:600px){.footer-cards{grid-template-columns:1fr}}



/* Breadcrumbs readable */
.breadcrumbs{font-size:14px;color:#5b6470;margin:10px 0 16px}
.breadcrumbs a{color:var(--brand, #305CDE)}
.breadcrumbs a:hover{text-decoration:underline;color:var(--brand-ink, #102a8a)}

/* Cards + general */
.card{background:#fff;border:1px solid rgba(10,10,20,.08);border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(10,10,20,.05);margin-bottom:18px}

/* Doctors list grid */
.doctors-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.doctors-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:992px){.doctors-grid{grid-template-columns:repeat(3,1fr)}}
.doctor-card{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center}
.doctor-card__media{display:block}
.doctor-thumb{width:96px;height:96px;border-radius:16px;object-fit:cover;background:#f2f4ff;display:block}
.doctor-card__title{margin:0 0 6px 0}
.doctor-card__actions{margin-top:10px}

/* Doctor single — MOBILE FIRST */
.grid-2{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:992px){.grid-2{grid-template-columns:2fr 1fr}}

.doctor-head{display:grid;grid-template-columns:1fr;gap:16px;align-items:center}
.doctor-head__media{text-align:center}
.avatar-xl{width:180px;height:180px;border-radius:22px;object-fit:cover;background:#f2f4ff;margin:0 auto}
.doctor-name{font-size:24px;margin:0 0 6px}
.doctor-spec{font-size:15px;color:#3b3f47;margin-bottom:4px}
.doctor-deg{font-size:14px;color:#6b7280}
.doctor-cta{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

@media(min-width:768px){
  .doctor-head{grid-template-columns:220px 1fr}
  .doctor-cta{justify-content:flex-start}
  .doctor-name{font-size:32px}
}

.prose{line-height:1.7;color:#2c2f36}
.facts{list-style:none;margin:0;padding:0}
.facts li{padding:8px 0;border-bottom:1px dashed rgba(10,10,20,.08)}
.facts li:last-child{border-bottom:none}

/* Home Doctors feature (if you used it earlier) */
.flex-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.home-doctors .doctor-feature{display:grid;grid-template-columns:1fr;gap:22px;align-items:center}
.home-doctors .feature-media img{width:100%;height:auto;border-radius:24px;object-fit:cover;background:#f2f4ff}
@media(min-width:992px){.home-doctors .doctor-feature{grid-template-columns:260px 1fr}.home-doctors .feature-media img{height:220px}}
.muted{color:#4a5568}
.mb-6{margin-bottom:6px}


/* === SEO & Profile patches (appended) === */
.breadcrumbs{font-size:14px;color:#5b6470;margin:10px 0 16px}
.breadcrumbs a{color:var(--brand, #305CDE)}
.breadcrumbs a:hover{text-decoration:underline;color:var(--brand-ink, #102a8a)}

.card{background:#fff;border:1px solid rgba(10,10,20,.08);border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(10,10,20,.05);margin-bottom:18px}

.doctors-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.doctors-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:992px){.doctors-grid{grid-template-columns:repeat(3,1fr)}}
.doctor-card{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center}
.doctor-card__media{display:block}
.doctor-thumb{width:96px;height:96px;border-radius:16px;object-fit:cover;background:#f2f4ff;display:block}
.doctor-card__title{margin:0 0 6px 0}
.doctor-card__actions{margin-top:10px}
.muted{color:#4a5568}

.grid-2{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:992px){.grid-2{grid-template-columns:2fr 1fr}}

.doctor-head{display:grid;grid-template-columns:1fr;gap:16px;align-items:center}
.doctor-head__media{text-align:center}
.avatar-xl{width:180px;height:180px;border-radius:22px;object-fit:cover;background:#f2f4ff;margin:0 auto}
.doctor-name{font-size:24px;margin:0 0 6px}
.doctor-spec{font-size:15px;color:#3b3f47;margin-bottom:4px}
.doctor-deg{font-size:14px;color:#6b7280}
.doctor-cta{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
@media(min-width:768px){.doctor-head{grid-template-columns:220px 1fr}.doctor-cta{justify-content:flex-start}.doctor-name{font-size:32px}}
.prose{line-height:1.7;color:#2c2f36}
.facts{list-style:none;margin:0;padding:0}
.facts li{padding:8px 0;border-bottom:1px dashed rgba(10,10,20,.08)}
.facts li:last-child{border-bottom:none}



/* === Services & FAQ styles (appended) === */
.services-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:992px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service-card{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center}
.service-thumb{width:120px;height:90px;border-radius:14px;object-fit:cover;background:#f2f4ff;display:block}
.service-card__title{margin:0 0 6px}

.service-hero{display:grid;grid-template-columns:1fr;gap:16px;align-items:center}
.service-banner{width:100%;height:auto;border-radius:14px;object-fit:cover;background:#f2f4ff}
.service-cta{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.service-title{margin:0 0 6px}
@media(min-width:768px){.service-hero{grid-template-columns:280px 1fr}.service-cta{justify-content:flex-start}}

.faq-list{display:grid;gap:8px}
.faq>summary{cursor:pointer;font-weight:600}
.faq .faq-answer{margin-top:8px;color:#2c2f36}


/* Admin quick nav */
.admin-quicknav{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.admin-quicknav a{padding:6px 10px;border-radius:10px;border:1px solid rgba(10,10,20,.1);text-decoration:none}
.admin-quicknav a:hover{background:#f3f6ff}
