:root{
  --primary:#0f8fa3;
  --primary-dark:#0c6f7f;
  --secondary:#0b1f2a;
  --accent:#19c3d6;
  --light:#f5fbfc;
  --white:#ffffff;
  --text:#18313c;
  --muted:#5f7480;
  --border:#d9ebef;
  --success:#13a36b;
  --danger:#cc4b37;
  --shadow:0 18px 50px rgba(8,31,42,.12);
  --shadow-sm:0 10px 28px rgba(8,31,42,.06);
  --radius:22px;
  --radius-sm:16px;
  --max:1240px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"Inter",sans-serif;color:var(--text);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
.container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.muted{color:var(--muted)}
.muted-small{color:var(--muted);font-size:14px}
.hide-mobile{display:inline-flex}
.topbar{background:var(--secondary);color:#e9f7fa;font-size:14px}
.topbar-inner{display:flex;justify-content:space-between;gap:16px;padding:10px 0;flex-wrap:wrap}
.navbar{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(15,143,163,.08)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;color:var(--secondary)}
.brand-with-image{min-width:0}
.brand-logo-image{height:60px;width:auto;object-fit:contain}
.nav-links{display:flex;align-items:center;gap:26px;color:var(--muted);font-weight:700}
.nav-links a:hover{color:var(--primary)}
.nav-right{display:flex;align-items:center;gap:12px}
.menu-btn{display:none;background:none;border:none;font-size:28px;color:var(--secondary);cursor:pointer;padding:4px 8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 22px;border-radius:999px;border:1px solid transparent;font-weight:800;cursor:pointer;transition:.25s ease}
.btn-small{padding:10px 16px;font-size:14px}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:0 12px 28px rgba(15,143,163,.25)}
.btn-primary:hover{transform:translateY(-2px);filter:brightness(1.03)}
.btn-outline{background:#fff;color:var(--primary);border-color:rgba(15,143,163,.22)}
.btn-outline:hover{background:var(--light)}
.btn-danger{background:var(--danger);color:#fff}
.hero{position:relative;overflow:hidden;background:radial-gradient(circle at top left,rgba(25,195,214,.18),transparent 30%),radial-gradient(circle at right center,rgba(15,143,163,.16),transparent 28%),linear-gradient(180deg,#f8fdff 0%,#fff 100%);padding:72px 0 54px}
.hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:44px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:#e8f8fb;color:var(--primary-dark);padding:8px 14px;border-radius:999px;font-size:14px;font-weight:800;margin-bottom:18px}
.hero h1{font-size:clamp(38px,5vw,64px);line-height:1.05;color:var(--secondary);letter-spacing:-.03em;margin-bottom:18px}
.hero p{font-size:18px;color:var(--muted);max-width:650px;margin-bottom:28px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.hero-points{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:15px;font-weight:700}
.hero-points span{display:flex;align-items:center;gap:8px}
.hero-image-card{background:#fff;border:1px solid var(--border);padding:18px;border-radius:28px;box-shadow:var(--shadow)}
.hero-image-card img{border-radius:20px;width:100%;height:auto}
.section{padding:80px 0}
.soft-bg{background:linear-gradient(180deg,#f8fdff 0%,#fff 100%)}
.section-head{max-width:820px;margin:0 auto 42px;text-align:center}
.section-head-left{text-align:left;margin:0 0 26px 0;max-width:none}
.section-head .tag{display:inline-block;text-transform:uppercase;letter-spacing:.08em;font-size:13px;font-weight:900;color:var(--primary);margin-bottom:10px}
.section-head h2{font-size:clamp(30px,4vw,46px);line-height:1.12;color:var(--secondary);margin-bottom:12px}
.section-head p{font-size:17px;color:var(--muted)}
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.service-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow-sm);transition:.25s ease;display:block}
.service-card:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(8,31,42,.10)}
.service-card .icon{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.2));display:grid;place-items:center;margin-bottom:18px;font-size:24px}
.service-card h3{font-size:21px;color:var(--secondary);margin-bottom:10px}
.service-card p{color:var(--muted);font-size:15px}
.service-card.clickable .mini-link{display:inline-block;margin-top:12px;color:var(--primary);font-weight:800}
.panel,.appointment-form,.table-card,.login-card{background:#fff;border:1px solid var(--border);border-radius:28px;padding:28px;box-shadow:var(--shadow)}
.panel h2,.appointment-form h2,.login-card h1{color:var(--secondary);margin-bottom:10px}
.diagnostic-wrap,.appointment-grid,.about-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:24px}
.check-list{margin-top:16px;display:grid;gap:12px}
.check-list li{list-style:none;padding-left:28px;position:relative;color:var(--text);font-weight:600}
.check-list li:before{content:"✓";position:absolute;left:0;top:0;color:var(--success);font-weight:900}
.empty-state{background:#f8fdff;border:1px dashed var(--border);border-radius:18px;padding:20px;color:var(--muted)}
.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.gallery-card{background:#fff;border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:var(--shadow-sm)}
.gallery-card img{width:100%;height:210px;object-fit:cover}
.gallery-body{padding:16px}
.gallery-body h3{color:var(--secondary);font-size:18px;margin-bottom:6px}
.gallery-body p{color:var(--muted);font-size:14px}
.search-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.search-box{display:flex;gap:10px;align-items:center;flex:1;min-width:0}
.search-box input{flex:1;min-width:0;padding:14px 16px;border-radius:16px;border:1px solid #d8e8ed;background:#fff;outline:none;transition:.2s ease}
.search-box input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(25,195,214,.12)}
.search-btn{white-space:nowrap}
.result-text{margin-bottom:22px;color:var(--muted);font-weight:700}
.doctor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.doctor-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;min-height:100%}
.doctor-card.is-hidden{display:none}
.doctor-photo{height:220px;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.22));display:grid;place-items:center;color:var(--primary);font-size:70px;font-weight:900;overflow:hidden}
.doctor-photo img{width:100%;height:100%;object-fit:cover}
.doctor-content{padding:22px;display:grid;gap:10px;align-content:start}
.doctor-content.compact{gap:8px}
.doctor-content h3{font-size:20px;color:var(--secondary);line-height:1.15}
.doctor-specialty{color:var(--primary-dark);font-weight:900}
.doctor-actions{margin-top:8px}
.doctor-modal{position:fixed;inset:0;display:none;z-index:2000}
.doctor-modal.is-open{display:block}
.doctor-modal-backdrop{position:absolute;inset:0;background:rgba(4,17,25,.58);backdrop-filter:blur(4px)}
.doctor-modal-dialog{position:relative;background:#fff;border-radius:28px;box-shadow:0 30px 80px rgba(8,31,42,.28);width:min(720px,calc(100% - 24px));margin:6vh auto;padding:28px;max-height:88vh;overflow:auto}
.doctor-modal-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border:none;border-radius:50%;background:#eef8fb;color:var(--secondary);font-size:28px;line-height:1;cursor:pointer}
.doctor-modal-header{display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:center;padding-right:26px;margin-bottom:20px}
.doctor-modal-photo{width:120px;height:120px;border-radius:22px;overflow:hidden;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.22));display:grid;place-items:center;color:var(--primary);font-size:54px;font-weight:900}
.doctor-modal-photo img{width:100%;height:100%;object-fit:cover}
.doctor-modal-body{display:grid;gap:14px}
.detail-item{background:#f8fdff;border:1px solid var(--border);border-radius:18px;padding:16px}
.detail-item strong{display:block;color:var(--secondary);margin-bottom:4px}
.detail-item p{color:var(--muted);white-space:pre-line}
.detail-list{display:grid;gap:16px}
.appointment-form form,.form{display:grid;gap:14px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
input,select,textarea{width:100%;padding:14px 16px;border-radius:14px;border:1px solid #d8e8ed;background:#fff;outline:none;transition:.2s ease;color:var(--text)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(25,195,214,.12)}
textarea{min-height:120px;resize:vertical}
.note{font-size:13px;color:var(--muted)}
.flash{padding:14px 16px;border-radius:14px;font-weight:700;margin-top:12px}.flash-success{background:#e7fbf2;color:#0e7550}.flash-error{background:#fff1ef;color:var(--danger)}
.admin-body{background:#f5fbfc}
.admin-shell{display:grid;grid-template-columns:280px 1fr;min-height:100vh}
.sidebar{background:var(--secondary);color:#dceff4;padding:24px;position:sticky;top:0;height:100vh;overflow:auto}
.sidebar-brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.sidebar-brand img{width:100%;max-width:180px;border-radius:10px;background:#fff;padding:8px}
.sidebar h2{font-size:20px;color:#fff;margin-bottom:14px}
.sidebar a{display:block;color:#dceff4;padding:12px 14px;border-radius:14px;font-weight:700;margin-bottom:6px}
.sidebar a:hover{background:rgba(255,255,255,.08)}
.admin-main{padding:26px}
.admin-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{background:#f8fdff;color:var(--secondary);font-size:14px}tbody tr:hover{background:#fcfeff}
.status{display:inline-flex;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800}.status-pending{background:#fff7dc;color:#8a6910}.status-confirmed{background:#e8f7ff;color:#115a86}.status-done{background:#e7fbf2;color:#0e7550}.status-cancelled{background:#fff0ee;color:var(--danger)}
.inline-form{display:grid;gap:8px}
.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e8f8fb,#fff)}
.login-card{width:min(460px,calc(100% - 32px))}
.doctor-admin-list{display:grid;gap:14px;margin-top:18px}
.doctor-admin-card{border:1px solid var(--border);border-radius:18px;padding:14px;display:grid;grid-template-columns:96px 1fr;gap:14px;background:#fff}.doctor-admin-card.is-hidden{display:none}
.doctor-admin-photo{width:96px;height:96px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.22));display:grid;place-items:center;color:var(--primary);font-size:38px;font-weight:900}
.doctor-admin-photo img{width:100%;height:100%;object-fit:cover}
.doctor-admin-info h3{color:var(--secondary);font-size:19px}.admin-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.admin-card-actions form{display:inline}.current-image{display:flex;gap:12px;align-items:center;background:#f8fdff;border:1px solid var(--border);border-radius:16px;padding:12px;color:var(--muted);font-size:14px}.current-image img{width:80px;height:80px;object-fit:cover;border-radius:14px}.check-row{display:flex;gap:10px;align-items:center}.check-row input{width:auto}
.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;align-items:center}.footer-links{display:flex;gap:18px;flex-wrap:wrap}
footer{background:var(--secondary);color:#d5edf2;padding:28px 0}
@media (max-width:1200px){.doctor-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:1024px){.hero-grid,.diagnostic-wrap,.appointment-grid,.about-grid{grid-template-columns:1fr}.services-grid{grid-template-columns:repeat(2,1fr)}.admin-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.sidebar a{display:inline-block;margin-right:6px}.doctor-grid{grid-template-columns:repeat(2,1fr)}.hide-mobile{display:none}}
@media (max-width:768px){
  .container{width:min(var(--max),calc(100% - 24px))}
  .topbar-inner{flex-direction:column;align-items:flex-start}
  .brand-logo-image{height:52px;max-width:220px}
  .nav-links{display:none}
  .nav-links.mobile-open{display:flex;position:absolute;top:78px;left:12px;right:12px;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:18px;flex-direction:column;align-items:flex-start}
  .menu-btn{display:block}
  .hero{padding-top:46px}
  .section{padding:56px 0}
  .services-grid,.gallery-grid,.doctor-grid,.form-row{grid-template-columns:1fr}
  .search-toolbar{align-items:stretch}
  .search-box{flex-direction:column;align-items:stretch}
  .search-btn,.btn-small{width:100%}
  .hero p{font-size:16px}
  .doctor-photo{height:260px}
  .doctor-modal-dialog{width:calc(100% - 16px);margin:3vh auto;padding:20px;border-radius:24px}
  .doctor-modal-header{grid-template-columns:84px 1fr;gap:14px;padding-right:20px}
  .doctor-modal-photo{width:84px;height:84px;border-radius:18px;font-size:38px}
  .admin-main{padding:18px}
  .admin-head{align-items:flex-start;flex-direction:column}
  .doctor-admin-card{grid-template-columns:1fr}.doctor-admin-photo{width:100%;height:180px}
}
@media (max-width:430px){
  body{font-size:15px}
  .hero h1{font-size:34px}
  .brand-logo-image{height:48px;max-width:200px}
  .hero-actions .btn{width:100%}
  .panel,.appointment-form,.table-card,.login-card,.doctor-modal-dialog{padding:18px}
  .doctor-content{padding:18px}
}

/* Doctors carousel: shows 2 cards on desktop, 1 card on mobile */
.doctor-carousel-shell{position:relative;margin-top:8px}
.doctor-carousel{overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;padding:4px 4px 18px;scrollbar-width:thin;scrollbar-color:rgba(15,143,163,.45) rgba(217,235,239,.45)}
.doctor-carousel::-webkit-scrollbar{height:10px}.doctor-carousel::-webkit-scrollbar-track{background:rgba(217,235,239,.45);border-radius:999px}.doctor-carousel::-webkit-scrollbar-thumb{background:rgba(15,143,163,.45);border-radius:999px}
.doctor-track{display:flex;gap:20px;align-items:stretch}.doctor-track .doctor-card{flex:0 0 calc((100% - 20px)/2);scroll-snap-align:start}.doctor-track .doctor-card.is-hidden{display:none}.doctor-track .doctor-card .doctor-photo{height:260px}.carousel-arrow{position:absolute;top:50%;z-index:10;transform:translateY(-50%);width:48px;height:48px;border:none;border-radius:50%;background:#fff;color:var(--primary-dark);box-shadow:var(--shadow);font-size:34px;line-height:1;cursor:pointer;display:grid;place-items:center}.carousel-arrow:hover{background:var(--light)}.carousel-arrow-left{left:-18px}.carousel-arrow-right{right:-18px}
@media (max-width:768px){.doctor-track{gap:14px}.doctor-track .doctor-card{flex-basis:86%}.doctor-track .doctor-card .doctor-photo{height:230px}.carousel-arrow{display:none}.doctor-carousel{padding-bottom:14px;scroll-padding-left:0}}
@media (max-width:430px){.doctor-track .doctor-card{flex-basis:88%}.doctor-track .doctor-card .doctor-photo{height:220px}}

/* Appointment textarea guardrails */
.limited-textarea{
  resize:none;
  min-height:130px;
  max-height:130px;
  overflow-y:auto;
}
.char-counter{
  margin-top:-6px;
  font-size:13px;
  color:var(--muted);
  text-align:right;
}
.char-counter.is-near-limit{color:#9a6a00;font-weight:800}
.char-counter.is-at-limit{color:var(--danger);font-weight:900}

.service-admin-list{display:grid;gap:14px;margin-top:18px}
.service-admin-card{border:1px solid var(--border);border-radius:18px;padding:16px;background:#fff;box-shadow:var(--shadow-sm)}
.service-admin-card h3{color:var(--secondary);display:flex;gap:8px;align-items:center;margin-bottom:4px}
.service-admin-card .service-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.service-admin-card .service-meta span{font-size:12px;font-weight:800;border-radius:999px;padding:7px 10px;background:#f1fbfd;color:var(--primary-dark)}

/* Company profile sections from uploaded profile document */
.profile-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:24px;align-items:stretch}
.profile-intro .tag,.accent-panel .tag,.panel .tag{display:inline-block;text-transform:uppercase;letter-spacing:.08em;font-size:13px;font-weight:900;color:var(--primary);margin-bottom:10px}
.profile-intro h2,.accent-panel h2{font-size:clamp(28px,3.2vw,42px);line-height:1.12;color:var(--secondary);margin-bottom:14px}
.preserve-lines{white-space:pre-line}
.profile-cards{display:grid;gap:14px}
.profile-card{background:linear-gradient(135deg,#fff,#f8fdff);border:1px solid var(--border);border-radius:22px;padding:22px;box-shadow:var(--shadow-sm)}
.profile-card strong{display:block;color:var(--primary-dark);font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.profile-card span{display:block;color:var(--secondary);font-size:30px;font-weight:900;line-height:1;margin-bottom:8px}
.profile-card p{color:var(--muted);font-size:14px}
.vision-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.accent-panel{position:relative;overflow:hidden}
.accent-panel:before{content:"";position:absolute;right:-80px;top:-80px;width:180px;height:180px;border-radius:999px;background:rgba(25,195,214,.12)}
.profile-admin-form{margin-top:18px}
.profile-admin-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:20px;box-shadow:var(--shadow-sm);display:grid;gap:12px}
.profile-admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:4px}
.profile-admin-card-head strong{color:var(--secondary);font-size:18px}
@media (max-width:1024px){.profile-layout,.vision-grid{grid-template-columns:1fr}}
@media (max-width:768px){.profile-card span{font-size:26px}.profile-layout{gap:16px}.vision-grid{gap:16px}}

/* Cleaner diagnostics section: avoid repeating the same service list shown in Our Services */
.diagnostic-gallery-panel{max-width:1100px;margin:0 auto}.gallery-grid-wide{grid-template-columns:repeat(3,1fr)}
@media (max-width:1024px){.gallery-grid-wide{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){.gallery-grid-wide{grid-template-columns:1fr}.diagnostic-gallery-panel{padding:18px}}

/* Polished company profile / vision / mission redesign */
.profile-section{position:relative;background:linear-gradient(180deg,#ffffff 0%,#f9fdff 100%)}
.profile-heading{margin-bottom:26px}
.profile-showcase{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.85fr);gap:24px;align-items:stretch}
.profile-story-card{position:relative;overflow:hidden;padding:34px}
.profile-story-card:before{content:"";position:absolute;right:-90px;top:-90px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(25,195,214,.15),rgba(25,195,214,0) 70%)}
.profile-story-top{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;position:relative;z-index:1}
.profile-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:9px 14px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;box-shadow:0 10px 22px rgba(15,143,163,.18)}
.profile-pill-light{background:#edfafd;color:var(--primary-dark);box-shadow:none}
.profile-lead{font-size:17px;line-height:1.95;color:#446471;max-width:72ch;position:relative;z-index:1}
.profile-summary-card{display:grid;gap:14px;padding:24px}
.summary-item{display:grid;grid-template-columns:54px 1fr;gap:14px;align-items:start;padding:14px 0;border-bottom:1px solid var(--border)}
.summary-item:last-child{border-bottom:none;padding-bottom:0}
.summary-icon{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.22));display:grid;place-items:center;font-size:24px}
.summary-item strong{display:block;color:var(--secondary);font-size:16px;margin-bottom:4px}
.summary-item p{color:var(--muted);font-size:14px;line-height:1.7}
.facility-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
.facility-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:24px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}
.facility-card:before{content:"";position:absolute;left:24px;top:0;width:54px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--accent))}
.facility-floor{display:inline-block;margin-bottom:10px;color:var(--primary-dark);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.facility-card h3{font-size:22px;line-height:1.2;color:var(--secondary);margin-bottom:10px}
.facility-card p{color:var(--muted);font-size:15px;line-height:1.8}
.purpose-section{position:relative;overflow:hidden}
.purpose-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.purpose-card{position:relative;overflow:hidden;padding:32px}
.purpose-card:before{content:"";position:absolute;right:-70px;bottom:-70px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(25,195,214,.15),rgba(25,195,214,0) 72%)}
.purpose-card h2{font-size:clamp(30px,3.2vw,42px);line-height:1.15;color:var(--secondary);margin-bottom:14px}
.purpose-text{font-size:18px;line-height:1.9;color:#456572;max-width:40ch}
.purpose-list{display:grid;gap:12px;margin-top:6px}
.purpose-list li{list-style:none;position:relative;padding-left:28px;color:#456572;line-height:1.8;font-size:16px}
.purpose-list li:before{content:"✓";position:absolute;left:0;top:0;color:var(--success);font-weight:900}
.purpose-vision{background:linear-gradient(180deg,#ffffff 0%,#f9fcff 100%)}
.purpose-mission{background:linear-gradient(180deg,#ffffff 0%,#f8fffd 100%)}
@media (max-width:1024px){
  .profile-showcase,.purpose-grid,.facility-grid{grid-template-columns:1fr}
  .profile-lead{max-width:none}
}
@media (max-width:768px){
  .profile-story-card,.purpose-card{padding:22px}
  .summary-item{grid-template-columns:46px 1fr;gap:12px}
  .summary-icon{width:46px;height:46px;border-radius:14px;font-size:20px}
  .facility-card{padding:20px}
  .facility-card h3{font-size:20px}
  .purpose-text,.profile-lead{font-size:16px;line-height:1.85}
}

/* Separate company profile page and cleaner homepage */
.compact-profile-section{padding-top:30px;padding-bottom:20px}
.compact-profile-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:24px;align-items:stretch;background:linear-gradient(135deg,#ffffff,#f8fcff)}
.compact-profile-copy h2{font-size:clamp(28px,3.2vw,42px);line-height:1.15;color:var(--secondary);margin-bottom:12px}
.compact-actions{margin-top:18px;margin-bottom:0}
.compact-profile-stats{display:grid;gap:14px}
.profile-mini-stat{background:#fff;border:1px solid var(--border);border-radius:22px;padding:20px;box-shadow:var(--shadow-sm)}
.profile-mini-stat strong{display:block;color:var(--primary-dark);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.profile-mini-stat span{display:block;color:var(--secondary);font-size:28px;font-weight:900;line-height:1.05;margin-bottom:8px}
.profile-mini-stat p{color:var(--muted);font-size:14px;line-height:1.6}
.inner-hero{padding:58px 0 24px;background:linear-gradient(180deg,#f8fdff 0%,#ffffff 100%)}
.inner-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:24px;align-items:center}
.inner-hero h1{font-size:clamp(36px,5vw,60px);line-height:1.05;color:var(--secondary);margin:10px 0 14px}
.inner-hero .muted{font-size:18px;max-width:58ch}
.inner-hero-badges{display:grid;gap:14px}
@media (max-width:1024px){.compact-profile-card,.inner-hero-grid{grid-template-columns:1fr}}
@media (max-width:768px){.compact-profile-section{padding-top:10px}.compact-profile-card{gap:18px}.profile-mini-stat span{font-size:24px}.inner-hero{padding:40px 0 18px}.inner-hero .muted{font-size:16px}}

/* Beautiful standalone company profile page */
.profile-hero-beauty{
  position:relative;
  overflow:hidden;
  padding:72px 0 46px;
  background:
    radial-gradient(circle at 12% 20%, rgba(25,195,214,.20), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(15,143,163,.16), transparent 28%),
    linear-gradient(180deg,#f8fdff 0%,#fff 100%);
}
.profile-hero-beauty:before{
  content:"";
  position:absolute;
  inset:auto -120px -180px auto;
  width:420px;
  height:420px;
  border-radius:999px;
  background:rgba(25,195,214,.08);
}
.profile-hero-beauty-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
  gap:34px;
  align-items:center;
  position:relative;
}
.profile-kicker{
  display:inline-flex;
  border-radius:999px;
  padding:9px 14px;
  background:#e8f8fb;
  color:var(--primary-dark);
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.profile-hero-copy h1{
  font-size:clamp(42px,6vw,76px);
  line-height:1.02;
  letter-spacing:-.045em;
  color:var(--secondary);
  margin-bottom:18px;
}
.profile-hero-copy p{
  font-size:19px;
  line-height:1.8;
  color:#526f7a;
  max-width:60ch;
}
.profile-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.profile-hero-card{
  position:relative;
  border-radius:32px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 26px 70px rgba(8,31,42,.16);
  padding:14px;
}
.profile-hero-card img{width:100%;height:390px;object-fit:cover;border-radius:24px}
.profile-hero-card-overlay{
  position:absolute;
  left:30px;
  right:30px;
  bottom:30px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 18px 45px rgba(8,31,42,.18);
  backdrop-filter:blur(14px);
  border-radius:20px;
  padding:16px 18px;
}
.profile-hero-card-overlay strong{display:block;color:var(--secondary);font-size:18px}
.profile-hero-card-overlay span{display:block;color:var(--muted);font-size:14px;margin-top:2px}
.profile-stats-strip{padding:0 0 26px;background:#fff}
.profile-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:-16px;
  position:relative;
  z-index:3;
}
.profile-stats-grid article{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow-sm);
}
.profile-stats-grid span{display:block;color:var(--primary-dark);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:7px}
.profile-stats-grid strong{display:block;color:var(--secondary);font-size:30px;line-height:1;margin-bottom:9px}
.profile-stats-grid p{color:var(--muted);font-size:14px;line-height:1.65}
.profile-beauty-section{background:#fff;padding-top:58px}
.profile-beauty-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:24px;align-items:start}
.profile-beauty-story{padding:34px;background:linear-gradient(180deg,#fff 0%,#fbfeff 100%)}
.profile-beauty-story h2{font-size:clamp(30px,3.5vw,46px);line-height:1.12;color:var(--secondary);margin:8px 0 16px}
.profile-beauty-story p{font-size:17px;line-height:2;color:#435f6b}
.profile-beauty-sidebar{padding:26px;display:grid;gap:16px}
.profile-beauty-sidebar h3{font-size:24px;color:var(--secondary);margin-bottom:2px}
.profile-detail-row{display:grid;grid-template-columns:48px 1fr;gap:13px;align-items:start;border-top:1px solid var(--border);padding-top:16px}
.profile-detail-row span{width:48px;height:48px;border-radius:16px;background:#eaf9fc;display:grid;place-items:center;font-size:22px}
.profile-detail-row strong{display:block;color:var(--secondary);margin-bottom:2px}
.profile-detail-row p{color:var(--muted);font-size:14px;line-height:1.65}
.facility-beauty-section{padding-top:70px}
.facility-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.facility-timeline-card{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius:28px;
  padding:26px;
  box-shadow:var(--shadow-sm);
}
.facility-timeline-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,var(--primary),var(--accent));
}
.facility-number{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  font-size:20px;
  font-weight:900;
  margin-bottom:18px;
}
.facility-timeline-card span{display:block;color:var(--primary-dark);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.facility-timeline-card h3{font-size:22px;line-height:1.2;color:var(--secondary);margin-bottom:10px}
.facility-timeline-card p{color:var(--muted);line-height:1.8;font-size:15px}
.purpose-beauty-section{background:#fff}
.purpose-beauty-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.purpose-beauty-card{position:relative;overflow:hidden;padding:34px;background:linear-gradient(180deg,#fff,#f9fdff)}
.purpose-beauty-card:after{content:"";position:absolute;right:-80px;bottom:-80px;width:210px;height:210px;border-radius:50%;background:rgba(25,195,214,.10)}
.purpose-icon{width:58px;height:58px;border-radius:20px;background:#eaf9fc;display:grid;place-items:center;font-size:26px;margin-bottom:16px}
.purpose-beauty-card h2{font-size:clamp(28px,3.5vw,42px);line-height:1.15;color:var(--secondary);margin:8px 0 12px;position:relative;z-index:1}
.purpose-beauty-card p{color:#486673;line-height:1.9;font-size:17px;position:relative;z-index:1}
.purpose-list-beauty{display:grid;gap:13px;margin-top:10px;position:relative;z-index:1}
.purpose-list-beauty li{list-style:none;position:relative;padding-left:34px;color:#486673;line-height:1.8;font-size:16px}
.purpose-list-beauty li:before{content:"✓";position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e7fbf2;color:var(--success);font-size:13px;font-weight:900}
.why-beauty-section{padding-top:70px}
.why-beauty-grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);gap:28px;align-items:start}
.why-beauty-grid h2{font-size:clamp(32px,4vw,48px);line-height:1.12;color:var(--secondary);margin:8px 0 14px}
.why-beauty-grid>.muted,.why-beauty-grid div>.muted{font-size:17px;line-height:1.9}
.why-beauty-cards{display:grid;gap:16px}
.why-beauty-cards article{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow-sm);
}
.why-beauty-cards span{width:56px;height:56px;border-radius:18px;background:#eaf9fc;display:grid;place-items:center;font-size:25px}
.why-beauty-cards h3{color:var(--secondary);font-size:20px;margin-bottom:6px}
.why-beauty-cards p{color:var(--muted);font-size:15px;line-height:1.75}
.profile-cta-section{padding:70px 0;background:#fff}
.profile-cta-card{
  border-radius:34px;
  padding:34px;
  background:linear-gradient(135deg,var(--secondary),#113d4d);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
  box-shadow:0 26px 70px rgba(8,31,42,.20);
}
.profile-cta-card .tag{color:#9eeef8}
.profile-cta-card h2{font-size:clamp(30px,3.8vw,48px);line-height:1.1;margin:8px 0 10px}
.profile-cta-card p{color:#d6eef3;max-width:62ch;line-height:1.8}
.profile-cta-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.profile-cta-actions .btn-outline{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.24)}
@media (max-width:1100px){
  .profile-hero-beauty-grid,.profile-beauty-layout,.why-beauty-grid{grid-template-columns:1fr}
  .profile-stats-grid,.facility-timeline{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .purpose-beauty-grid{grid-template-columns:1fr}
  .profile-cta-card{align-items:flex-start;flex-direction:column}
  .profile-cta-actions{justify-content:flex-start}
}
@media (max-width:768px){
  .profile-hero-beauty{padding:48px 0 32px}
  .profile-hero-copy h1{font-size:38px}
  .profile-hero-copy p{font-size:16px}
  .profile-hero-card img{height:260px}
  .profile-stats-grid,.facility-timeline{grid-template-columns:1fr}
  .profile-beauty-story,.profile-beauty-sidebar,.purpose-beauty-card,.profile-cta-card{padding:22px}
  .profile-detail-row{grid-template-columns:44px 1fr}
  .profile-detail-row span{width:44px;height:44px;border-radius:14px}
  .why-beauty-cards article{grid-template-columns:1fr}
  .why-beauty-cards span{width:50px;height:50px}
  .profile-hero-actions .btn,.profile-cta-actions .btn{width:100%}
}

/* Mobile doctors directory fix: compact 4-card view */
@media (max-width:768px){
  #doctors .section-head-left p{font-size:14px;line-height:1.7}
  #doctors .search-toolbar{gap:10px;margin-bottom:12px}
  #doctors .search-box{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;width:100%}
  #doctors .search-box input{height:46px;padding:11px 13px;font-size:14px}
  #doctors .search-btn{width:auto;height:46px;padding:0 16px;font-size:13px;min-width:88px}
  #doctorClearBtn{height:42px;font-size:13px}
  #doctorResultText{font-size:14px;margin-bottom:12px}
  .doctor-carousel-shell{margin-top:4px}
  .doctor-carousel{
    overflow-x:hidden;
    overflow-y:auto;
    scroll-snap-type:none;
    max-height:640px;
    padding:4px 4px 12px;
    border-radius:22px;
    scrollbar-width:thin;
  }
  .doctor-track{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    align-items:stretch;
  }
  .doctor-track .doctor-card{
    flex:auto;
    width:100%;
    min-width:0;
    scroll-snap-align:none;
    border-radius:18px;
  }
  .doctor-track .doctor-card .doctor-photo,
  .doctor-photo{
    height:128px;
    font-size:42px;
  }
  .doctor-content,
  .doctor-content.compact{
    padding:12px;
    gap:6px;
  }
  .doctor-content h3{
    font-size:15px;
    line-height:1.2;
  }
  .doctor-specialty{
    font-size:12px;
    line-height:1.2;
  }
  .muted-small{
    font-size:11px;
    line-height:1.35;
  }
  .doctor-actions{margin-top:4px}
  .view-doctor-btn{
    width:100%;
    padding:10px 8px;
    font-size:12px;
  }
  .carousel-arrow{display:none!important}
}

@media (max-width:430px){
  .doctor-carousel{max-height:610px}
  .doctor-track{gap:10px}
  .doctor-track .doctor-card .doctor-photo,
  .doctor-photo{height:116px}
  .doctor-content,
  .doctor-content.compact{padding:10px}
  .doctor-content h3{font-size:14px}
  .doctor-specialty{font-size:11.5px}
  .view-doctor-btn{font-size:11.5px;padding:9px 6px}
}

/* Doctors schedule table layout */
.doctors-table-section .section-head{margin-bottom:24px}
.doctor-table-panel{padding:24px;overflow:hidden}
.doctor-table-toolbar{margin-bottom:12px}
.doctor-schedule-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:var(--shadow-sm)}
.doctor-schedule-table{width:100%;border-collapse:separate;border-spacing:0;min-width:900px;background:#fff}
.doctor-schedule-table th{position:sticky;top:0;z-index:1;background:linear-gradient(180deg,#f8fdff,#eef9fc);color:var(--secondary);font-size:13px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;padding:16px;text-align:left;border-bottom:1px solid var(--border)}
.doctor-schedule-table td{padding:16px;border-bottom:1px solid var(--border);vertical-align:middle;color:var(--text)}
.doctor-schedule-table tbody tr:hover{background:#f8fdff}
.doctor-schedule-table tbody tr:last-child td{border-bottom:none}
.doctor-row.is-hidden{display:none}
.doctor-table-name{display:flex;align-items:center;gap:12px;min-width:240px}
.doctor-table-avatar{width:48px;height:48px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.22));display:grid;place-items:center;flex:0 0 auto;color:var(--primary);font-size:22px;font-weight:900}
.doctor-table-avatar img{width:100%;height:100%;object-fit:cover}
.doctor-table-name strong{display:block;color:var(--secondary);line-height:1.25}
.doctor-table-name small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.schedule-cell{white-space:pre-line;color:#416575;line-height:1.65;min-width:260px}
@media (max-width:768px){
  .doctor-table-panel{padding:16px}
  .doctor-schedule-table-wrap{overflow:visible;border:none;box-shadow:none;background:transparent}
  .doctor-schedule-table{min-width:0;border-collapse:collapse;background:transparent}
  .doctor-schedule-table thead{display:none}
  .doctor-schedule-table tbody{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .doctor-schedule-table tr{display:block;background:#fff;border:1px solid var(--border);border-radius:18px;padding:12px;box-shadow:var(--shadow-sm)}
  .doctor-schedule-table td{display:block;border-bottom:none;padding:4px 0;font-size:13px}
  .doctor-schedule-table td::before{content:attr(data-label);display:block;color:var(--primary-dark);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
  .doctor-table-name{display:block;min-width:0}
  .doctor-table-avatar{width:54px;height:54px;border-radius:16px;margin-bottom:8px}
  .doctor-table-name strong{font-size:14px}
  .schedule-cell{min-width:0;max-height:78px;overflow:auto;line-height:1.45}
  .doctor-schedule-table .btn{width:100%;padding:10px 12px;margin-top:6px}
}
@media (max-width:430px){
  .doctor-schedule-table tbody{grid-template-columns:1fr 1fr;gap:10px}
  .doctor-schedule-table tr{padding:10px;border-radius:16px}
  .doctor-table-avatar{width:48px;height:48px}
  .doctor-schedule-table td{font-size:12px}
  .doctor-table-name strong{font-size:13px}
}

/* FINAL FIX: compact scrollable doctor schedule table, no oversized images */
.doctors-table-section{background:linear-gradient(180deg,#fff 0%,#f8fdff 100%)}
.doctors-table-section .section-head-left{max-width:820px;margin-bottom:18px}
.doctor-table-panel{padding:22px!important;border-radius:28px!important;box-shadow:0 18px 48px rgba(8,31,42,.08)!important}
.doctor-table-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px!important;align-items:center!important;margin-bottom:10px!important}
.doctor-table-toolbar .search-box{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;width:100%}
.doctor-table-toolbar input{height:48px!important;border-radius:999px!important}
.doctor-schedule-table-wrap{
  max-height:520px!important;
  overflow:auto!important;
  border:1px solid var(--border)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:var(--shadow-sm)!important;
  -webkit-overflow-scrolling:touch;
}
.doctor-schedule-table-wrap::-webkit-scrollbar{width:10px;height:10px}
.doctor-schedule-table-wrap::-webkit-scrollbar-track{background:#edf7fa;border-radius:999px}
.doctor-schedule-table-wrap::-webkit-scrollbar-thumb{background:rgba(15,143,163,.45);border-radius:999px}
.doctor-schedule-table{
  width:100%!important;
  min-width:860px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  background:#fff!important;
}
.doctor-schedule-table thead{display:table-header-group!important}
.doctor-schedule-table tbody{display:table-row-group!important}
.doctor-schedule-table tr{display:table-row!important;background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
.doctor-schedule-table th{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  background:linear-gradient(180deg,#f8fdff,#eef9fc)!important;
  color:var(--secondary)!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  font-weight:900!important;
  padding:14px 16px!important;
  text-align:left!important;
  border-bottom:1px solid var(--border)!important;
}
.doctor-schedule-table td{
  display:table-cell!important;
  padding:14px 16px!important;
  border-bottom:1px solid var(--border)!important;
  vertical-align:top!important;
  color:var(--text)!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.doctor-schedule-table td::before{display:none!important;content:none!important}
.doctor-schedule-table th:nth-child(1),.doctor-schedule-table td:nth-child(1){width:28%}
.doctor-schedule-table th:nth-child(2),.doctor-schedule-table td:nth-child(2){width:24%}
.doctor-schedule-table th:nth-child(3),.doctor-schedule-table td:nth-child(3){width:9%}
.doctor-schedule-table th:nth-child(4),.doctor-schedule-table td:nth-child(4){width:29%}
.doctor-schedule-table th:nth-child(5),.doctor-schedule-table td:nth-child(5){width:10%;text-align:center}
.doctor-row.is-hidden{display:none!important}
.doctor-table-name,
.doctor-table-name-clean{display:block!important;min-width:0!important;word-break:normal!important}
.doctor-table-name-clean strong{display:block!important;color:var(--secondary)!important;font-weight:900!important;line-height:1.3!important}
.doctor-table-name-clean small{display:block!important;color:var(--muted)!important;font-size:12px!important;margin-top:4px!important}
.doctor-table-avatar{display:none!important}
.schedule-cell{min-width:0!important;white-space:pre-line!important;line-height:1.55!important;color:#416575!important;max-height:92px!important;overflow:auto!important;padding-right:8px!important}
.schedule-cell::-webkit-scrollbar{width:6px}.schedule-cell::-webkit-scrollbar-thumb{background:rgba(15,143,163,.35);border-radius:999px}
.doctor-schedule-table .btn{padding:9px 12px!important;font-size:13px!important;white-space:nowrap!important}
@media (max-width:768px){
  .doctor-table-panel{padding:14px!important}
  .doctor-table-toolbar{grid-template-columns:1fr!important}
  .doctor-table-toolbar .search-box{grid-template-columns:1fr!important}
  .doctor-table-toolbar .search-btn,#doctorClearBtn{width:100%!important;height:44px!important}
  .doctor-schedule-table-wrap{max-height:470px!important;overflow:auto!important;border-radius:18px!important}
  .doctor-schedule-table{min-width:760px!important}
  .doctor-schedule-table th{font-size:11px!important;padding:12px!important}
  .doctor-schedule-table td{font-size:13px!important;padding:12px!important}
  .doctor-schedule-table .btn{width:auto!important;min-width:72px!important;margin-top:0!important}
}
@media (max-width:430px){
  .doctor-schedule-table-wrap{max-height:430px!important}
  .doctor-schedule-table{min-width:720px!important}
}

/* FINAL FIX: remove homepage Why Choose Us section spacing leftovers */
#about{display:none!important}

/* FINAL FIX: align and polish the standalone Company Profile / Why Choose Us page */
.company-profile-page main{background:#fff}
.company-profile-page .profile-hero-beauty{padding:76px 0 52px;background:radial-gradient(circle at 8% 8%,rgba(25,195,214,.16),transparent 30%),linear-gradient(180deg,#f7fdff 0%,#fff 100%)}
.company-profile-page .profile-hero-beauty-grid{align-items:center;gap:34px}
.company-profile-page .profile-hero-copy h1{max-width:780px;letter-spacing:-.035em}
.company-profile-page .profile-hero-copy p{max-width:620px;line-height:1.8}
.company-profile-page .profile-hero-card{border-radius:30px;padding:14px;background:#fff;border:1px solid var(--border);box-shadow:0 22px 60px rgba(8,31,42,.12)}
.company-profile-page .profile-hero-card img{border-radius:22px;height:360px;object-fit:cover}
.company-profile-page .profile-stats-strip{padding:0 0 42px;background:#fff}
.company-profile-page .profile-stats-grid{margin-top:-18px;position:relative;z-index:2}
.company-profile-page .profile-beauty-section,
.company-profile-page .facility-beauty-section,
.company-profile-page .purpose-beauty-section,
.company-profile-page .why-beauty-section,
.company-profile-page .profile-cta-section{padding:72px 0}
.company-profile-page .why-beauty-grid{align-items:start;gap:34px}
.company-profile-page .why-beauty-grid > div:first-child{background:#fff;border:1px solid var(--border);border-radius:28px;padding:32px;box-shadow:var(--shadow-sm)}
.company-profile-page .why-beauty-grid h2{font-size:clamp(30px,3.5vw,46px);line-height:1.12;color:var(--secondary);margin:8px 0 14px}
.company-profile-page .why-beauty-grid .muted{font-size:16px;line-height:1.9}
.company-profile-page .why-beauty-cards{display:grid;gap:16px}
.company-profile-page .why-beauty-cards article{background:#fff;border:1px solid var(--border);border-radius:24px;padding:24px;box-shadow:var(--shadow-sm)}
.company-profile-page .why-beauty-cards article span{width:52px;height:52px;border-radius:18px;background:#eaf9fc;display:grid;place-items:center;font-size:24px;margin-bottom:12px}
.company-profile-page .why-beauty-cards h3{color:var(--secondary);font-size:20px;margin-bottom:8px}
.company-profile-page .why-beauty-cards p{color:var(--muted);line-height:1.75}
@media (max-width:1024px){
  .company-profile-page .profile-hero-card img{height:300px}
}
@media (max-width:768px){
  .company-profile-page .profile-hero-beauty{padding:46px 0 32px}
  .company-profile-page .profile-hero-card img{height:240px}
  .company-profile-page .profile-beauty-section,
  .company-profile-page .facility-beauty-section,
  .company-profile-page .purpose-beauty-section,
  .company-profile-page .why-beauty-section,
  .company-profile-page .profile-cta-section{padding:52px 0}
  .company-profile-page .why-beauty-grid > div:first-child{padding:22px}
}

/* FINAL DOCTOR SCHEDULE FIX: searchable + scrollable for many doctors */
.doctor-table-panel.panel{
  overflow:hidden!important;
}
.doctor-schedule-table-wrap{
  display:block!important;
  width:100%!important;
  max-height:380px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
  border:1px solid var(--border)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:var(--shadow-sm)!important;
  scrollbar-gutter:stable!important;
}
.doctor-schedule-table-wrap::-webkit-scrollbar{width:12px!important;height:12px!important}
.doctor-schedule-table-wrap::-webkit-scrollbar-track{background:#edf7fa!important;border-radius:999px!important}
.doctor-schedule-table-wrap::-webkit-scrollbar-thumb{background:rgba(15,143,163,.65)!important;border-radius:999px!important;border:3px solid #edf7fa!important}
.doctor-schedule-table{
  width:100%!important;
  min-width:980px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  background:#fff!important;
}
.doctor-schedule-table thead{display:table-header-group!important}
.doctor-schedule-table tbody{display:table-row-group!important}
.doctor-schedule-table tr{display:table-row!important;background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important}
.doctor-schedule-table th{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  background:linear-gradient(180deg,#f8fdff,#eef9fc)!important;
  color:var(--secondary)!important;
  padding:14px 16px!important;
  border-bottom:1px solid var(--border)!important;
  text-align:left!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  font-weight:900!important;
}
.doctor-schedule-table td{
  display:table-cell!important;
  padding:14px 16px!important;
  border-bottom:1px solid var(--border)!important;
  vertical-align:top!important;
  color:var(--text)!important;
  background:#fff!important;
  font-size:14px!important;
}
.doctor-schedule-table td::before{display:none!important;content:none!important}
.doctor-schedule-table tbody tr:hover td{background:#f8fdff!important}
.doctor-row.is-hidden,
.doctor-row[hidden]{display:none!important}
.doctor-schedule-table th:nth-child(1),.doctor-schedule-table td:nth-child(1){width:28%!important}
.doctor-schedule-table th:nth-child(2),.doctor-schedule-table td:nth-child(2){width:24%!important}
.doctor-schedule-table th:nth-child(3),.doctor-schedule-table td:nth-child(3){width:8%!important}
.doctor-schedule-table th:nth-child(4),.doctor-schedule-table td:nth-child(4){width:30%!important}
.doctor-schedule-table th:nth-child(5),.doctor-schedule-table td:nth-child(5){width:10%!important;text-align:center!important}
.schedule-cell{
  max-height:82px!important;
  overflow-y:auto!important;
  white-space:pre-line!important;
  line-height:1.55!important;
}
.doctor-no-results{margin-top:14px!important}
@media (max-width:768px){
  .doctor-table-panel{padding:14px!important}
  .doctor-schedule-table-wrap{max-height:420px!important;border-radius:18px!important;overflow-x:auto!important;overflow-y:scroll!important}
  .doctor-schedule-table{min-width:920px!important}
  .doctor-schedule-table th{font-size:11px!important;padding:12px!important}
  .doctor-schedule-table td{font-size:13px!important;padding:12px!important}
}
@media (max-width:430px){
  .doctor-schedule-table-wrap{max-height:390px!important}
  .doctor-schedule-table{min-width:860px!important}
}

/* DEFINITIVE FIX: doctors schedule uses unique classes so old carousel/card CSS cannot break it */
.nm-doctors-section{
  background:linear-gradient(180deg,#ffffff 0%,#f8fdff 100%)!important;
}
.nm-doctor-panel{
  padding:24px!important;
  overflow:hidden!important;
  border-radius:28px!important;
  box-shadow:0 20px 52px rgba(8,31,42,.09)!important;
}
.nm-doctor-toolbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  margin-bottom:12px!important;
}
.nm-doctor-search-wrap{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
}
.nm-doctor-search-wrap input{
  height:50px!important;
  border-radius:999px!important;
  padding:0 18px!important;
  border:1px solid #d8e8ed!important;
  background:#fff!important;
  color:var(--text)!important;
  outline:none!important;
}
.nm-doctor-search-wrap input:focus{
  border-color:var(--accent)!important;
  box-shadow:0 0 0 4px rgba(25,195,214,.12)!important;
}
.nm-doctor-summary-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-bottom:12px!important;
}
.nm-scroll-hint{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:#eef9fc!important;
  color:var(--primary-dark)!important;
  font-size:13px!important;
  font-weight:800!important;
}
.nm-scroll-hint:before{content:"↕";font-weight:900!important;}
.nm-doctor-table-scroll{
  height:460px!important;
  max-height:460px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
  border:1px solid var(--border)!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:var(--shadow-sm)!important;
  overscroll-behavior:contain!important;
}
.nm-doctor-table-scroll::-webkit-scrollbar{width:12px!important;height:12px!important;}
.nm-doctor-table-scroll::-webkit-scrollbar-track{background:#edf7fa!important;border-radius:999px!important;}
.nm-doctor-table-scroll::-webkit-scrollbar-thumb{background:rgba(15,143,163,.65)!important;border-radius:999px!important;border:3px solid #edf7fa!important;}
.nm-doctor-table{
  width:100%!important;
  min-width:940px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  table-layout:fixed!important;
  background:#fff!important;
}
.nm-doctor-table thead{display:table-header-group!important;}
.nm-doctor-table tbody{display:table-row-group!important;}
.nm-doctor-table tr{display:table-row!important;background:transparent!important;border:none!important;box-shadow:none!important;padding:0!important;}
.nm-doctor-table th{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  background:linear-gradient(180deg,#f8fdff,#eef9fc)!important;
  color:var(--secondary)!important;
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  padding:16px!important;
  text-align:left!important;
  border-bottom:1px solid var(--border)!important;
  white-space:nowrap!important;
}
.nm-doctor-table td{
  display:table-cell!important;
  padding:16px!important;
  border-bottom:1px solid var(--border)!important;
  vertical-align:top!important;
  color:var(--text)!important;
  background:#fff!important;
  font-size:15px!important;
}
.nm-doctor-table tbody tr:hover td{background:#f8fdff!important;}
.nm-doctor-table td::before{display:none!important;content:none!important;}
.nm-doctor-table th:nth-child(1),.nm-doctor-table td:nth-child(1){width:28%!important;}
.nm-doctor-table th:nth-child(2),.nm-doctor-table td:nth-child(2){width:23%!important;}
.nm-doctor-table th:nth-child(3),.nm-doctor-table td:nth-child(3){width:9%!important;}
.nm-doctor-table th:nth-child(4),.nm-doctor-table td:nth-child(4){width:30%!important;}
.nm-doctor-table th:nth-child(5),.nm-doctor-table td:nth-child(5){width:10%!important;text-align:center!important;}
.nm-doctor-name strong{
  display:block!important;
  color:var(--secondary)!important;
  font-weight:900!important;
  line-height:1.3!important;
}
.nm-doctor-name small{
  display:block!important;
  color:var(--muted)!important;
  font-size:12px!important;
  margin-top:5px!important;
}
.nm-room-cell{color:#537282!important;font-weight:700!important;}
.nm-schedule-cell{
  white-space:pre-line!important;
  line-height:1.55!important;
  color:#416575!important;
  max-height:110px!important;
  overflow:auto!important;
  padding-right:8px!important;
}
.nm-schedule-cell::-webkit-scrollbar{width:6px!important;}
.nm-schedule-cell::-webkit-scrollbar-thumb{background:rgba(15,143,163,.35)!important;border-radius:999px!important;}
.nm-details-cell .btn{padding:9px 14px!important;font-size:13px!important;white-space:nowrap!important;}
.nm-doctor-no-results{margin-top:14px!important;}
@media (max-width:768px){
  .nm-doctor-panel{padding:14px!important;border-radius:22px!important;}
  .nm-doctor-toolbar{grid-template-columns:1fr!important;}
  .nm-doctor-search-wrap{grid-template-columns:1fr!important;}
  .nm-doctor-search-wrap .btn,#doctorScheduleClearBtn{width:100%!important;height:44px!important;}
  .nm-doctor-table-scroll{height:430px!important;max-height:430px!important;border-radius:18px!important;}
  .nm-doctor-table{min-width:880px!important;}
  .nm-doctor-table th{font-size:11px!important;padding:12px!important;}
  .nm-doctor-table td{font-size:13px!important;padding:12px!important;}
  .nm-schedule-cell{max-height:90px!important;}
}
@media (max-width:430px){
  .nm-doctor-table-scroll{height:400px!important;max-height:400px!important;}
  .nm-doctor-table{min-width:820px!important;}
  .nm-scroll-hint{font-size:12px!important;width:100%!important;justify-content:center!important;}
}

/* FINAL PROFILE + DOCTORS SEARCH PATCH */
.nm-doctor-toolbar{
  grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)!important;
}
.nm-doctor-filter-wrap{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto!important;
  gap:10px!important;
  align-items:center!important;
}
.nm-doctor-filter-wrap select{
  height:50px!important;
  border-radius:999px!important;
  border:1px solid #d8e8ed!important;
  background:#fff!important;
  padding:0 16px!important;
  color:var(--text)!important;
  outline:none!important;
  min-width:0!important;
}
.nm-doctor-filter-wrap select:focus{
  border-color:var(--accent)!important;
  box-shadow:0 0 0 4px rgba(25,195,214,.12)!important;
}
.nm-doctor-table-scroll{
  height:480px!important;
  max-height:480px!important;
  min-height:300px!important;
  overflow-y:scroll!important;
  overflow-x:auto!important;
}
.nm-doctor-row[hidden]{display:none!important;}
@media (max-width:1024px){
  .nm-doctor-toolbar{grid-template-columns:1fr!important;}
  .nm-doctor-filter-wrap{grid-template-columns:1fr 1fr auto!important;}
}
@media (max-width:768px){
  .nm-doctor-filter-wrap{grid-template-columns:1fr!important;}
  .nm-doctor-filter-wrap select,.nm-doctor-filter-wrap .btn{width:100%!important;}
  .nm-doctor-table-scroll{height:430px!important;max-height:430px!important;}
}

/* FINAL WHY CHOOSE US PAGE FIX: prevent narrow one-word text column */
.company-profile-page .why-beauty-grid{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  align-items:stretch!important;
}
.company-profile-page .why-beauty-cards article{
  display:block!important;
  padding:26px!important;
  min-width:0!important;
}
.company-profile-page .why-beauty-cards article span{
  display:grid!important;
  margin-bottom:14px!important;
}
.company-profile-page .why-beauty-cards article h3,
.company-profile-page .why-beauty-cards article p{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.company-profile-page .why-beauty-cards article p{
  line-height:1.85!important;
  white-space:normal!important;
}
@media (max-width:1024px){
  .company-profile-page .why-beauty-grid{grid-template-columns:1fr!important;}
}

/* Promos section */
.promo-public-section{position:relative;overflow:hidden}
.promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.promo-card-public{background:#fff;border:1px solid var(--border);border-radius:26px;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;min-height:100%;transition:.25s ease}
.promo-card-public:hover{transform:translateY(-4px);box-shadow:0 20px 46px rgba(8,31,42,.10)}
.promo-image-wrap{height:230px;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.20));display:grid;place-items:center;overflow:hidden}
.promo-image-wrap img{width:100%;height:100%;object-fit:cover}
.promo-placeholder{font-weight:900;color:var(--primary-dark);font-size:28px}
.promo-content-public{padding:22px;display:grid;gap:10px;align-content:start;flex:1}
.promo-meta-row span{display:inline-flex;border-radius:999px;padding:7px 11px;background:#effbfe;color:var(--primary-dark);font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.promo-content-public h3{color:var(--secondary);font-size:22px;line-height:1.2}
.promo-content-public p{color:var(--muted);font-size:15px;line-height:1.75}
.promo-admin-list{display:grid;gap:14px;margin-top:18px}
.promo-admin-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:14px;display:grid;grid-template-columns:130px 1fr;gap:16px;box-shadow:var(--shadow-sm)}
.promo-admin-thumb{width:130px;height:100px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,rgba(15,143,163,.14),rgba(25,195,214,.22));display:grid;place-items:center;color:var(--primary-dark);font-weight:900}
.promo-admin-thumb img{width:100%;height:100%;object-fit:cover}
.promo-admin-info h3{color:var(--secondary);font-size:20px;line-height:1.2;margin-bottom:6px}

/* Bigger NeoMedica logo */
.brand-logo-image{height:82px;max-width:310px;width:auto;object-fit:contain}
.nav-inner{padding:12px 0}
.sidebar-brand img{max-width:220px}
@media (max-width:1024px){.promo-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:768px){
  .brand-logo-image{height:62px;max-width:250px}
  .promo-grid{grid-template-columns:1fr}
  .promo-image-wrap{height:210px}
  .promo-admin-card{grid-template-columns:1fr}
  .promo-admin-thumb{width:100%;height:170px}
}
@media (max-width:430px){
  .brand-logo-image{height:56px;max-width:220px}
}

/* Promo package posters should be fully viewable, not cropped */
.promo-grid{grid-template-columns:repeat(4,1fr)!important;align-items:stretch!important}
.promo-card-public{border-radius:24px!important;overflow:hidden!important}
.promo-image-wrap{height:500px!important;background:#fff7f3!important;padding:10px!important;overflow:hidden!important}
.promo-image-link{display:block;width:100%;height:100%}
.promo-image-wrap img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:16px!important;background:#fff7f3!important}
.promo-content-public{padding:18px!important}
.promo-content-public h3{font-size:18px!important}
.promo-content-public p{font-size:14px!important;line-height:1.6!important}
@media (max-width:1200px){.promo-grid{grid-template-columns:repeat(2,1fr)!important}.promo-image-wrap{height:560px!important}}
@media (max-width:768px){.promo-grid{grid-template-columns:1fr!important}.promo-image-wrap{height:620px!important}}
@media (max-width:430px){.promo-image-wrap{height:560px!important;padding:8px!important}}

/* Final navbar + page flow fixes */
html{scroll-padding-top:120px}
section[id]{scroll-margin-top:120px}
.navbar{box-shadow:0 10px 28px rgba(8,31,42,.06)}
.nav-inner{gap:18px!important;min-height:84px!important}
.nav-links{gap:20px!important;white-space:nowrap!important;flex:1!important;justify-content:center!important;min-width:0!important}
.nav-links a{font-size:15px!important;line-height:1.2!important}
.nav-right{flex:0 0 auto!important}
.brand-with-image{flex:0 0 auto!important}
.brand-logo-image{height:72px!important;max-width:280px!important}
@media (max-width:1180px){
  .nav-links{gap:14px!important}
  .nav-links a{font-size:14px!important}
  .hide-mobile{display:none!important}
  .brand-logo-image{height:68px!important;max-width:250px!important}
}
@media (max-width:980px){
  html{scroll-padding-top:105px}
  section[id]{scroll-margin-top:105px}
  .nav-inner{min-height:76px!important;padding:10px 0!important}
  .nav-links{display:none!important}
  .nav-links.mobile-open{display:flex!important;position:absolute!important;top:calc(100% + 8px)!important;left:12px!important;right:12px!important;background:#fff!important;border:1px solid var(--border)!important;border-radius:20px!important;box-shadow:var(--shadow)!important;padding:18px!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;white-space:normal!important;z-index:2000!important}
  .nav-links.mobile-open a{width:100%!important;padding:10px 8px!important;border-radius:12px!important;font-size:15px!important}
  .nav-links.mobile-open a:hover{background:#f2fbfd!important}
  .menu-btn{display:block!important}
  .brand-logo-image{height:62px!important;max-width:235px!important}
}
@media (max-width:430px){
  .brand-logo-image{height:54px!important;max-width:200px!important}
  .nav-inner{min-height:68px!important}
}

/* HMO public page and admin management */
.hmo-hero .inner-hero-grid{align-items:center}
.hmo-hero-card{background:#fff;border:1px solid var(--border);border-radius:28px;padding:14px;box-shadow:var(--shadow)}
.hmo-hero-card img{width:100%;height:auto;max-height:420px;object-fit:contain;border-radius:20px;background:#f8fdff}
.hmo-provider-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;align-items:stretch}
.hmo-provider-grid-small{grid-template-columns:repeat(2,1fr)}
.hmo-provider-card{background:#fff;border:1px solid var(--border);border-radius:26px;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.hmo-provider-card-wide{grid-column:1 / -1}
.hmo-provider-image-wrap{display:block;background:#f8fdff;padding:16px;border-bottom:1px solid var(--border)}
.hmo-provider-image-wrap img{width:100%;max-height:560px;object-fit:contain;margin:0 auto;border-radius:18px;background:#fff}
.hmo-provider-body{padding:22px}
.hmo-provider-body h3{color:var(--secondary);font-size:24px;line-height:1.2;margin:10px 0 8px}
.hmo-provider-body p{color:var(--muted);line-height:1.75}
.hmo-type-badge{display:inline-flex;align-items:center;border-radius:999px;background:#eafafd;color:var(--primary-dark);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;padding:8px 12px}
.hmo-admin-list{display:grid;gap:14px;margin-top:18px}
.hmo-admin-card{border:1px solid var(--border);border-radius:18px;padding:14px;display:grid;grid-template-columns:120px 1fr;gap:14px;background:#fff;box-shadow:var(--shadow-sm)}
.hmo-admin-thumb{width:120px;height:95px;border-radius:16px;background:#f8fdff;border:1px solid var(--border);display:grid;place-items:center;overflow:hidden;color:var(--primary);font-size:36px;font-weight:900}
.hmo-admin-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}
.hmo-admin-card h3{color:var(--secondary);font-size:19px;margin-bottom:8px}
@media (max-width:1024px){.hmo-provider-grid,.hmo-provider-grid-small{grid-template-columns:1fr}.hmo-provider-image-wrap img{max-height:500px}}
@media (max-width:768px){.hmo-hero-card img{max-height:320px}.hmo-provider-body h3{font-size:21px}.hmo-provider-image-wrap{padding:10px}.hmo-provider-image-wrap img{max-height:420px}.hmo-admin-card{grid-template-columns:1fr}.hmo-admin-thumb{width:100%;height:160px}}

/* Keep the company building photo fully visible and not covered */
.company-profile-page .profile-hero-card{display:grid!important;gap:12px!important;overflow:visible!important}
.company-profile-page .profile-hero-card img{height:auto!important;max-height:none!important;object-fit:contain!important;background:#f8fdff!important;width:100%!important}
.company-profile-page .profile-hero-card-overlay{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;background:#fff!important;border:1px solid var(--border)!important;box-shadow:none!important;border-radius:18px!important;padding:16px!important}

/* More room for added HMO navigation item */
@media (max-width:1300px){
  .nav-links{gap:12px!important}
  .nav-links a{font-size:13px!important}
  .brand-logo-image{height:62px!important;max-width:235px!important}
}
@media (max-width:1080px){
  .nav-links{display:none!important}
  .nav-links.mobile-open{display:flex!important;position:absolute!important;top:calc(100% + 8px)!important;left:12px!important;right:12px!important;background:#fff!important;border:1px solid var(--border)!important;border-radius:20px!important;box-shadow:var(--shadow)!important;padding:18px!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;white-space:normal!important;z-index:2000!important}
  .menu-btn{display:block!important}
  .hide-mobile{display:none!important}
}

/* Consistent grouped navbar: same-page links first, page links on the right */
.nav-links .nav-divider{
  width:1px;
  height:32px;
  background:var(--border);
  margin:0 10px 0 18px;
  flex:0 0 auto;
}
.nav-links .nav-page-link{
  color:#006f7f;
  font-weight:900;
}
@media (max-width:1180px){
  .nav-links .nav-divider{display:none!important}
  .nav-links .nav-page-link{color:var(--primary-dark)!important}
}
@media (max-width:1180px){
  .nav-links.mobile-open .nav-divider{
    display:block!important;
    width:100%;
    height:1px;
    margin:8px 0;
    background:var(--border);
  }
}

/* Promo poster modal: no redirect, no new tab */
.promo-image-link{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  cursor:pointer;
  text-align:inherit;
}
.promo-image-link:hover img{transform:scale(1.015)}
.promo-image-link img{transition:transform .25s ease}
.promo-modal{position:fixed;inset:0;display:none;z-index:3000}
.promo-modal.is-open{display:block}
.promo-modal-backdrop{position:absolute;inset:0;background:rgba(4,17,25,.66);backdrop-filter:blur(6px)}
.promo-modal-dialog{position:relative;width:min(980px,calc(100% - 28px));max-height:92vh;margin:4vh auto;background:#fff;border-radius:28px;box-shadow:0 30px 90px rgba(8,31,42,.36);overflow:hidden;display:flex;flex-direction:column}
.promo-modal-head{padding:18px 22px;border-bottom:1px solid var(--border);padding-right:70px}
.promo-modal-head h3{color:var(--secondary);font-size:24px;line-height:1.15;margin:0 0 4px}
.promo-modal-head p{color:var(--muted);font-size:14px;margin:0}
.promo-modal-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border:0;border-radius:50%;background:#eef8fb;color:var(--secondary);font-size:30px;line-height:1;cursor:pointer;z-index:2}
.promo-modal-close:hover{background:#dff5f8}
.promo-modal-image-wrap{padding:18px;background:#fff7f3;overflow:auto;display:grid;place-items:center;min-height:0}
.promo-modal-image-wrap img{max-width:100%;max-height:calc(92vh - 120px);object-fit:contain;border-radius:18px;box-shadow:var(--shadow-sm);background:#fff}
@media (max-width:768px){
  .promo-modal-dialog{width:calc(100% - 16px);max-height:94vh;margin:3vh auto;border-radius:22px}
  .promo-modal-head{padding:16px 18px;padding-right:64px}
  .promo-modal-head h3{font-size:20px}
  .promo-modal-image-wrap{padding:10px}
  .promo-modal-image-wrap img{max-height:calc(94vh - 112px);border-radius:14px}
}

/* Final safe additions: Cash/HMO appointment fields + service contact numbers + aesthetic blue background */
body{
  background:
    radial-gradient(circle at 12% 8%, rgba(78,196,255,.18), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(34,183,209,.16), transparent 30%),
    linear-gradient(180deg,#eefbff 0%,#f7fdff 42%,#ffffff 100%)!important;
}
.section.soft-bg{background:linear-gradient(180deg,rgba(232,249,255,.72),rgba(255,255,255,.88))!important}
.navbar{background:rgba(255,255,255,.94)!important;box-shadow:0 12px 36px rgba(8,31,42,.06)!important}
.panel,.appointment-form,.service-card,.gallery-card,.promo-card-public,.nm-doctor-panel,.table-card,.hmo-provider-card{
  background:rgba(255,255,255,.92)!important;
  backdrop-filter:blur(10px);
}
.service-contact-number{
  margin-top:12px!important;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--primary-dark)!important;
  font-weight:900!important;
  background:#eafafd;
  border:1px solid #d4f0f5;
  border-radius:999px;
  padding:8px 12px;
}
.appointment-payment-box,
.hmo-appointment-fields,
.appointment-id-upload-box{
  border:1px solid var(--border);
  background:#f8fdff;
  border-radius:18px;
  padding:16px;
}
.payment-choice-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}
.payment-choice{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:999px;padding:10px 14px;background:#fff;font-weight:800;color:var(--secondary)}
.payment-choice input{width:auto}
.hmo-appointment-fields{display:grid;gap:14px;margin-top:2px}
.status-approved{background:#e7fbf2;color:#0e7550}.status-rejected{background:#fff0ee;color:var(--danger)}.status-not_applicable{background:#eef3f6;color:#59707c}


/* Final requested fixes: slightly deeper light-blue aesthetic + HMO ID upload wording + facilities safety */
body{
  background:
    radial-gradient(circle at 12% 8%, rgba(55,172,230,.24), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(20,158,194,.22), transparent 30%),
    linear-gradient(180deg,#dff4fb 0%,#edfaff 44%,#ffffff 100%)!important;
}
.section.soft-bg{background:linear-gradient(180deg,rgba(214,241,249,.86),rgba(245,252,255,.94))!important}
.appointment-payment-box,
.hmo-appointment-fields,
.appointment-id-upload-box{
  background:rgba(238,250,254,.92)!important;
}
.diagnostic-gallery-panel{
  border-color:#c8e8f1!important;
}

/* Fix: service contact number should not trigger the service/gallery link */
.service-card .service-contact-number{
  text-decoration:none!important;
  cursor:pointer;
}
.service-card .mini-link{
  display:inline-block;
  margin-top:12px;
  color:var(--primary);
  font-weight:800;
  text-decoration:none;
}
.service-card .mini-link:hover,
.service-card .service-contact-number:hover{
  text-decoration:none;
}


/* Promo carousel layout */
.promo-carousel-shell{position:relative;display:flex;align-items:center;gap:14px;max-width:1320px;margin:0 auto}
.promo-carousel-track{display:flex;gap:22px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:6px 4px 8px;width:100%;scrollbar-width:none;-ms-overflow-style:none}
.promo-carousel-track::-webkit-scrollbar{display:none}
.promo-carousel-card{flex:0 0 min(320px,calc(100% - 8px));scroll-snap-align:center;min-height:100%}
.promo-carousel-btn{flex:0 0 52px;width:52px;height:52px;border-radius:50%;border:1px solid var(--border);background:rgba(255,255,255,.94);color:var(--primary-dark);font-size:24px;font-weight:800;box-shadow:0 12px 28px rgba(8,31,42,.10);cursor:pointer;display:grid;place-items:center;transition:transform .2s ease, background .2s ease, opacity .2s ease}
.promo-carousel-btn:hover{transform:translateY(-1px);background:#fff}
.promo-carousel-btn[disabled]{opacity:.45;cursor:not-allowed;transform:none}
@media (min-width: 1200px){.promo-carousel-card{flex-basis:calc((100% - 44px)/3)}}
@media (min-width: 760px) and (max-width:1199px){.promo-carousel-card{flex-basis:calc((100% - 22px)/2)}}
@media (max-width:759px){.promo-carousel-shell{gap:8px}.promo-carousel-btn{width:42px;height:42px;flex-basis:42px;font-size:20px}.promo-carousel-card{flex-basis:calc(100% - 4px)}}

.appointment-id-upload-box{display:grid;gap:10px;margin-top:2px}
.appointment-id-upload-box input[type="file"],
.hmo-appointment-fields input[type="file"]{background:#fff}

/* Appointment doctor option, Cash/HMO instant switch, admin appointment table, and reports */
.hmo-appointment-fields[hidden]{display:none!important}
.hmo-appointment-fields.is-open{display:grid!important;gap:14px;animation:none!important}
.payment-choice{cursor:pointer;transition:background .12s ease,border-color .12s ease,box-shadow .12s ease,color .12s ease}
.payment-choice.is-selected{background:linear-gradient(135deg,#e8fbff,#f7fdff);border-color:rgba(15,143,163,.35);box-shadow:0 8px 20px rgba(15,143,163,.10);color:var(--primary-dark)}
.payment-choice input{accent-color:var(--primary)}
#preferredDoctor,#preferredDoctorNote{background:#fff}
.admin-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.appointment-filter-card,.report-filter-card{margin-bottom:18px}
.appointment-filter-form{display:grid;grid-template-columns:2fr 1fr 1fr auto auto auto;gap:10px;align-items:center}
.appointment-filter-form input,.appointment-filter-form select{min-width:0}
.appointments-table-card table{min-width:1120px}
.admin-appointments-table th,.admin-appointments-table td{vertical-align:top}
.appointment-patient-cell strong{display:block;color:var(--secondary);margin-bottom:5px}
.appointment-patient-cell span{display:block;color:var(--muted);font-size:13px;line-height:1.5}
.appointment-message-preview{margin-top:8px;padding:8px 10px;border-left:3px solid rgba(15,143,163,.25);background:#f6fdff;border-radius:10px;color:var(--muted);font-size:13px;line-height:1.45;max-width:320px}
.appointment-hmo-lines{margin-top:8px;line-height:1.6}
.appointment-id-links{display:grid;gap:8px;align-content:start}
.appointment-inline-status{margin-top:8px}
.stacked-update-form{display:grid!important;gap:8px!important;min-width:150px}
.stacked-update-form select{width:100%}
.report-print-header{display:none;text-align:center;margin-bottom:18px}
.report-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}
.report-summary-card{padding:20px!important}
.report-summary-card span{display:block;color:var(--muted);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.report-summary-card strong{display:block;color:var(--secondary);font-size:34px;line-height:1}
.report-grid-two{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:16px}
.compact-report-table{width:100%;border-collapse:collapse;margin-top:12px}
.compact-report-table th,.compact-report-table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left}
.compact-report-table td:last-child,.compact-report-table th:last-child{text-align:right;font-weight:900;color:var(--secondary)}
.report-detail-table{margin-top:16px}
@media (max-width:1100px){.appointment-filter-form{grid-template-columns:1fr 1fr}.admin-head-actions{justify-content:flex-start}.report-summary-grid{grid-template-columns:repeat(2,1fr)}.report-grid-two{grid-template-columns:1fr}}
@media (max-width:640px){.appointment-filter-form{grid-template-columns:1fr}.report-summary-grid{grid-template-columns:1fr}}
@media print{body.admin-body{background:#fff!important}.sidebar,.report-no-print,.admin-head.report-no-print{display:none!important}.admin-shell{display:block!important}.admin-main{padding:0!important}.table-card{box-shadow:none!important;border:1px solid #ddd!important}.report-print-header{display:block}.table-wrap{overflow:visible!important}table{font-size:11px!important}.btn{display:none!important}}
