:root {
  --navy-900: #0e2a4d;
  --navy-800: #123259;
  --navy-700: #17406f;
  --blue-600: #1a73c1;
  --blue-500: #2e8fe0;
  --teal-500: #16a996;
  --ink: #16232e;
  --muted: #6b7c8c;
  --bg: #ffffff;
  --bg-soft: #eaf3fb;
  --card: #ffffff;
  --border: #e3ecf4;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 77, 0.08);
  --shadow-sm: 0 4px 14px rgba(14, 42, 77, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-900); }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--blue-600); text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 4px; color: var(--navy-900); font-size: 19px; font-weight: 700; }
.brand-dot { color: var(--teal-500); }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--navy-900); font-size: 14.5px; font-weight: 500; }
.main-nav a:hover { color: var(--blue-600); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.link-plain { font-size: 14.5px; font-weight: 600; color: var(--navy-900); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: 0.15s ease; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 999px; }
.btn-pill-dark { background: var(--navy-900); color: #fff; border-radius: 999px; padding: 10px 20px; font-size: 13.5px; }

/* Hero */
.hero { background: var(--bg-soft); padding: 64px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; letter-spacing: -0.5px; }
.hero-copy > p { font-size: 16px; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .ring { position: absolute; inset: -10%; border: 1px dashed #b9d3ea; border-radius: 50%; }
.hero-visual .ring-2 { inset: 6%; }
.hero-photo { width: 78%; position: relative; z-index: 2; filter: drop-shadow(0 20px 30px rgba(14,42,77,0.12)); }
.float-card { position: absolute; z-index: 3; background: var(--navy-900); color: #fff; border-radius: var(--radius-md); padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.float-card.top-left { top: 6%; left: -2%; }
.float-card .fc-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.float-card .fc-title { font-weight: 700; }
.float-card .fc-sub { opacity: 0.7; font-size: 11.5px; }
.float-badge { position: absolute; bottom: 8%; right: -3%; z-index: 3; background: #fff; border-radius: 10px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--navy-900); }
.float-badge .dot-live { width: 10px; height: 10px; border-radius: 50%; background: #1fb570; box-shadow: 0 0 0 4px rgba(31,181,112,0.18); }

/* Partners */
.partners { padding: 46px 0; }
.partners-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.4px; margin-bottom: 26px; }
.partners-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 26px; opacity: 0.75; }
.partners-row span { font-weight: 700; font-size: 16px; color: var(--navy-800); letter-spacing: 0.2px; }

/* About */
.about .container { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.about h2 { font-size: 30px; }
.about p { font-size: 15px; max-width: 480px; }

/* Stats */
.stats { background: var(--bg-soft); padding: 46px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: #fff; border-radius: var(--radius-md); padding: 26px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card strong { display: block; font-size: 26px; color: var(--navy-900); }
.stat-card span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Find doctor / search */
.find-doctor { padding: 80px 0; }
.find-doctor .container { display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
.find-doctor h2 { font-size: 30px; }
.search-bar { display: flex; align-items: center; background: var(--navy-900); border-radius: 999px; padding: 6px 6px 6px 20px; margin: 26px 0; max-width: 380px; }
.search-bar input { flex: 1; border: 0; background: transparent; color: #fff; padding: 12px 8px; font-size: 14px; }
.search-bar input::placeholder { color: rgba(255,255,255,0.6); }
.search-bar button { border: 0; background: var(--blue-500); color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.find-visual { position: relative; display: flex; justify-content: center; }
.find-visual .circle-bg { position: absolute; width: 46%; height: 46%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-soft); border-radius: 50%; z-index: 0; }
.find-visual .ring { position: absolute; inset: -6%; border: 1px dashed #b9d3ea; border-radius: 50%; }
.find-visual img { width: 62%; position: relative; z-index: 1; border-radius: 50%; }
.find-visual .float-badge { bottom: 6%; right: 2%; }

/* Section generic */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-title { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-title h2 { font-size: 30px; }
.section-title p { font-size: 15px; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.section-head-row h2 { font-size: 28px; margin: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #1fb570; background: #e8f9f0; padding: 6px 12px; border-radius: 999px; }
/* .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: #1fb570; box-shadow: 0 0 0 3px rgba(31,181,112,0.18); }
.dot-red { background: #e0523f; box-shadow: 0 0 0 3px rgba(224,82,63,0.18); }
.dot-amber { background: #e0a63f; box-shadow: 0 0 0 3px rgba(224,166,63,0.18); } */

/* Specialists */
.specialist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 10px; }
.specialist-card { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 16px 24px; box-shadow: var(--shadow-sm); }
.specialist-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: #ffffff; border: 1px solid var(--border); }
.specialist-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.specialist-card h3 { font-size: 15px; margin-bottom: 2px; }
.specialist-card span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.view-all { text-align: center; margin-top: 30px; }
.view-all a { font-weight: 700; color: var(--navy-900); font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 5px; }
.link-arrow svg { flex-shrink: 0; }

/* Cards generic (kept from functional sections) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { font-size: 16px; }
.card p { font-size: 14px; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.iomt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.iomt-table th, .iomt-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.iomt-table th { background: #f5f9fc; color: var(--navy-900); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.iomt-table tr:last-child td { border-bottom: none; }
.muted { color: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }

/* Portal */
.portal-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.portal-points { padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.portal-points li { margin-bottom: 8px; }

.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.auth-card h3 { font-size: 19px; }
.auth-card label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.auth-card input, .auth-card textarea {
  width: 100%; margin-top: 7px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 14px; font-family: inherit; background: #fbfdfe;
}
.auth-card input:focus, .auth-card textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }
.auth-status { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; font-weight: 600; }
.auth-status.error { color: #c0392b; }
.auth-status.success { color: #1fb570; }

/* DICOM */
.dicom-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; margin-top: 10px; align-items: start; }
.dicom-upload { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.dicom-upload h3 { font-size: 17px; }
.dicom-upload label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.dicom-upload input { width: 100%; margin-top: 7px; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 13.5px; background: #fbfdfe; }

.dicom-viewer { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy-900); font-size: 14px; margin-bottom: 14px; }
.viewer-canvas { background: #0b1620; border-radius: var(--radius-sm); height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.viewer-placeholder { color: #7a93a6; font-size: 13.5px; }

/* Testimonials */
.testimonial-wrap { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.testimonial-wrap-simple { max-width: 640px; margin: 0 auto; }
.testimonial-person { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.3px; }
.testimonial-name { font-weight: 700; color: var(--navy-900); font-size: 15px; }
.testimonial-loc { font-size: 12.5px; color: var(--muted); }
.stars { color: #f4a825; font-size: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15.5px; color: var(--ink); }
.testimonial-nav { display: flex; gap: 10px; margin-top: 20px; }
.testimonial-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 15px; color: var(--navy-900); display: flex; align-items: center; justify-content: center; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-thumb img { width: 100%; height: 160px; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-body h3 { font-size: 16px; }
.blog-body p { font-size: 13.5px; margin-bottom: 12px; }
.blog-body a { font-weight: 700; font-size: 13.5px; }

/* Newsletter */
.newsletter { background: var(--bg-soft); padding: 64px 0; text-align: center; }
.newsletter h2 { font-size: 26px; }
.newsletter p { max-width: 480px; margin: 0 auto 26px; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); }
.newsletter-form input { flex: 1; border: 0; background: transparent; padding: 12px 18px; font-size: 14px; }
.newsletter-form button { border: 0; background: var(--navy-900); color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.newsletter-status { margin-top: 14px; font-size: 13.5px; font-weight: 600; min-height: 18px; }

/* Footer */
.footer { background: var(--navy-900); color: #cfe1ec; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr 0.9fr; gap: 32px; }
.footer-brand { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #a9c1d6; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-address { font-size: 13.5px; color: #a9c1d6; margin-bottom: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12.5px; color: #7f97ac; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-inner, .about .container, .find-doctor .container, .portal-grid, .dicom-grid, .testimonial-wrap { grid-template-columns: 1fr; }
  .stats-row, .cards, .cards-4, .specialist-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .float-card, .float-badge { display: none; }
}
