/* ===================== Life Line Hospital — Public Site ===================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #1c3f8f;
  --navy-dark: #142c66;
  --teal: #2f8f7a;
  --green: #1a8a4a;
  --green-dark: #146b39;
  --footer-navy: #0c1f4d;
  --text: #1f2937;
  --text-dim: #64748b;
  --border: #e5e9f0;
  --accent-soft: #eaf1ff;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-body); }
body { background: #fbfcfe; color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); padding: 14px 50px; display: flex;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(15,23,42,0.03);
  position: sticky; top: 0; z-index: 100; flex-wrap: wrap; gap: 10px;
}
.site-header .logo-area img { height: 46px; object-fit: contain; }
.site-header .nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-header .nav-links a {
  text-decoration: none; color: #33415c; font-weight: 600; font-size: 14px; letter-spacing: 0.1px;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: 0.2s;
}
.site-header .nav-links a:hover, .site-header .nav-links a.active { border-bottom-color: var(--teal); color: var(--navy); }
.btn-report {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white !important; padding: 10px 20px; border-radius: 7px; font-weight: 600; font-size: 13.5px;
  border-bottom: none !important; box-shadow: 0 2px 8px rgba(26,138,74,0.25); transition: 0.2s;
}
.btn-report:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,138,74,0.32); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--navy-dark); cursor: pointer; }

/* ---------- Nav dropdown ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > .dd-trigger {
  cursor: pointer; text-decoration: none; color: var(--navy-dark); font-weight: 600; font-size: 14.5px;
  padding: 6px 2px; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 5px;
}
.nav-dropdown > .dd-trigger i { font-size: 10px; transition: 0.2s; }
.nav-dropdown:hover > .dd-trigger, .nav-dropdown.open > .dd-trigger { border-bottom-color: var(--teal); color: var(--navy); }
.nav-dropdown.open > .dd-trigger i { transform: rotate(180deg); }
.dd-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 8px; z-index: 200; margin-top: 8px;
}
.nav-dropdown:hover > .dd-menu, .nav-dropdown.open > .dd-menu { display: block; }
.dd-menu a {
  display: block; padding: 9px 12px; font-size: 13.5px; font-weight: 500; color: #334155;
  text-decoration: none; border-radius: 6px; border-bottom: none !important;
}
.dd-menu a:hover { background: var(--accent-soft, #eaf1ff); color: var(--navy); }
.dd-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }

@media (max-width: 800px) {
  .dd-menu { position: static; box-shadow: none; border: none; margin-top: 0; padding-left: 12px; display: none; }
  .nav-dropdown.open > .dd-menu { display: block; }
}

/* ---------- Hero ---------- */
.hero-banner {
  background: linear-gradient(135deg, #0d1a3d 0%, #163a5c 35%, #14603f 75%, #0f7a4d 100%);
  padding: 64px 20px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; color: white; text-align: center; animation: fadeIn 0.6s ease;
}
.hero-banner h1 { font-family: var(--font-heading); font-size: 38px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.hero-banner p { font-size: 15px; opacity: 0.92; letter-spacing: 0.2px; max-width: 640px; font-weight: 400; }
.hero-banner .crumb { margin-top: 16px; font-size: 13px; }
.hero-banner .crumb a { color: #dbeafe; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.main-content { max-width: 1100px; margin: 0 auto; padding: 52px 20px; }
.section-heading { text-align: center; font-family: var(--font-heading); font-size: 27px; font-weight: 700; color: #3d4a5c; margin-bottom: 10px; letter-spacing: -0.01em; }
.section-sub { text-align: center; color: var(--text-dim); font-size: 14.5px; margin-bottom: 36px; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04); transition: 0.25s ease; animation: fadeUp 0.5s ease both;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15,23,42,0.09); border-color: #d7deea; }
.info-card .icon { font-size: 25px; color: var(--navy); margin-bottom: 14px; }
.info-card h3 { font-family: var(--font-heading); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; color: #1a2332; }
.info-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

.service-block {
  background: #ffffff; padding: 24px 12px; text-align: center; border-radius: 12px;
  text-decoration: none; color: #33415c; font-size: 14.5px; font-weight: 600; border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,0.03); transition: 0.22s ease; display: block;
}
.service-block:hover { transform: translateY(-3px); border-color: #d7deea; box-shadow: 0 10px 22px rgba(15,23,42,0.08); color: var(--navy); }
.service-block i { display: block; font-size: 21px; margin-bottom: 10px; color: var(--navy); }

/* ---------- Doctor profile ---------- */
.doctor-profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) {
  .doctor-profile-grid { grid-template-columns: 1fr; }
  .doctor-profile-grid > div:first-child { position: static !important; }
}

/* ---------- Buttons ---------- */
.btn-cta {
  display: inline-block; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff !important; border: none;
  padding: 12px 28px; font-size: 14.5px; font-weight: 600; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: 0.2s ease; box-shadow: 0 2px 8px rgba(26,138,74,0.2);
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,138,74,0.28); }
.btn-cta.outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy) !important; box-shadow: none; }
.btn-cta.outline:hover { background: var(--navy); color: #fff !important; box-shadow: 0 4px 12px rgba(28,63,143,0.2); }
.btn-cta.blue { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); box-shadow: 0 2px 8px rgba(28,63,143,0.2); }
.btn-cta.blue:hover { box-shadow: 0 6px 16px rgba(28,63,143,0.28); }
.btn-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; box-shadow: 0 4px 18px rgba(15,23,42,0.05); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #475569; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #dbe2ec; border-radius: 8px; font-size: 14px; outline: none; transition: 0.2s; font-family: var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,63,143,0.1); }
.field .err { color: #dc2626; font-size: 12px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .err { display: block; }
.form-msg { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.form-msg.success { background: #dcfce7; color: #166534; display: block; }
.form-msg.error { background: #fee2e2; color: #991b1b; display: block; }
.price-preview { background: var(--accent-soft); border-radius: 10px; padding: 13px 16px; font-size: 14px; margin-bottom: 16px; }
.price-preview .old { text-decoration: line-through; color: #94a3b8; margin-right: 8px; }
.price-preview .new { font-weight: 700; color: var(--green); font-size: 17px; }
.price-preview .pct { color: var(--green); font-weight: 600; font-size: 12.5px; margin-left: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--footer-navy) 0%, #081538 100%); color: white; padding: 36px 50px; margin-top: 56px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 1100px; margin: 0 auto; }
.footer-left { border-left: 3px solid var(--green); padding-left: 16px; }
.footer-left h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.footer-left p { font-size: 12.5px; opacity: 0.85; margin-bottom: 7px; }
.footer-left .email-info { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: 0.9; }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-center .social-icons { display: flex; gap: 14px; }
.footer-center .social-icons a { color: white; font-size: 17px; text-decoration: none; opacity: 0.85; transition: 0.2s; }
.footer-center .social-icons a:hover { opacity: 1; transform: translateY(-2px); }
.footer-center .copyright { font-size: 11px; opacity: 0.7; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.footer-links a { text-decoration: none; color: #cbd5e1; }
.footer-links a:hover { color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease both; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-header .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .site-header .nav-links.open { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .main-content { padding-left: 14px !important; padding-right: 14px !important; }
  .hero-banner h1 { font-size: 26px !important; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr !important; }
  .site-header { padding: 12px 16px !important; }
  .info-card[style*="align-items:center"] { flex-direction: column; text-align: center; }
}

/* Belt-and-braces: never let any grid overflow its container, regardless
   of a fixed column count set inline on the element. */
.card-grid, .stat-grid { max-width: 100%; }
body { overflow-x: hidden; }

/* ---------- Doctor card availability tag (corner ribbon) ---------- */
.doc-card-wrap { position: relative; overflow: visible; }
.avail-tag {
  position: absolute; top: 14px; right: -8px; z-index: 3;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.2px;
  padding: 5px 12px 5px 14px; border-radius: 999px 6px 6px 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  animation: fadeUp 0.4s ease both;
}
.avail-tag.avail-open { background: var(--green); color: #fff; }
.avail-tag.avail-full { background: #dc2626; color: #fff; }
.avail-tag.avail-off { background: #f59e0b; color: #fff; }
.btn-cta.disabled-btn {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
  background: #94a3b8 !important; border-color: #94a3b8 !important;
}

/* ---------- Site-wide doctor promo banner ---------- */
.promo-banner {
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: #fff;
  padding: 10px 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  position: relative;
  font-size: 13.5px;
  flex-wrap: wrap;
  text-align: center;
}
.promo-banner-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.promo-pic {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.7); flex-shrink: 0;
}
.promo-headline { font-weight: 700; }
.promo-subtext { opacity: 0.9; font-size: 12.5px; }
.promo-cta {
  background: #fff; color: var(--navy); font-weight: 700; font-size: 12px;
  padding: 5px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.promo-cta:hover { background: var(--accent-soft); }
.promo-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 18px; line-height: 1;
  cursor: pointer; opacity: 0.75; padding: 4px;
}
.promo-close:hover { opacity: 1; }

/* Image-mode variant (custom uploaded banner/social-media graphic — the
   graphic itself already contains any text, so we just show it full-bleed
   as a clickable link, no text overlay on top of it). */
.promo-banner-image {
  padding: 0;
  display: block;
  height: 160px;
  max-width: 100%;
  overflow: hidden;
}
.promo-image-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.promo-bg-image {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

@media (max-width: 600px) {
  .promo-banner-image { height: 100px; }
}

@media (max-width: 600px) {
  .promo-banner { padding: 10px 40px 10px 14px; font-size: 12.5px; }
  .promo-subtext { display: none; }
}
