/* =========================================================
   A-ONE SPECIALITY HOSPITAL — Premium CSS
   Theme: White + Blue + Cyan | Glassmorphism + Medical Luxury
   ========================================================= */

:root {
  --blue:      #0066CC;
  --blue-dark: #004A99;
  --blue-light:#E8F4FD;
  --cyan:      #00B4D8;
  --cyan-light:#90E0EF;
  --accent:    #FF6B35;
  --white:     #FFFFFF;
  --off-white: #F7FAFD;
  --text:      #1A2332;
  --text-muted:#5A7080;
  --border:    rgba(0,102,204,0.12);
  --glass:     rgba(255,255,255,0.85);
  --glass-blur:blur(16px);
  --shadow-sm: 0 2px 12px rgba(0,102,204,0.08);
  --shadow:    0 8px 40px rgba(0,102,204,0.14);
  --shadow-lg: 0 20px 60px rgba(0,102,204,0.18);
  --gradient:  linear-gradient(135deg, #0066CC 0%, #00B4D8 100%);
  --gradient-r:linear-gradient(135deg, #00B4D8 0%, #0066CC 100%);
  --radius:    16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 40px; margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; }
.mt-2 { margin-top: 20px; }

/* ---- LOADER ---- */
#loader {
  position: fixed; inset: 0; background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity .6s, visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; color: white; }
.loader-cross {
  width: 72px; height: 72px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px; animation: pulse 1s ease-in-out infinite;
}
.loader-text { font-family: 'Playfair Display',serif; font-size: 1.3rem; margin-bottom: 20px; }
.loader-bar { width: 200px; height: 4px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; background: white; border-radius: 2px; animation: loadFill 2s ease-in-out forwards; }
@keyframes loadFill { from{width:0} to{width:100%} }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }

/* ---- NOTIFICATION BAR ---- */
.notif-bar {
  background: var(--gradient);
  color: white; font-size: .82rem; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px; position: relative; z-index: 200;
  overflow: hidden;
}
.notif-content { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.notif-content i { flex-shrink: 0; }
.notif-content span { animation: ticker 28s linear infinite; display: inline-block; }
@keyframes ticker { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }
.notif-close { background: none; border: none; color: white; font-size: 1rem; cursor: pointer; opacity: .7; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--glass); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1260px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--gradient);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-main { font-family: 'Playfair Display',serif; font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.logo-sub { font-size: .65rem; color: var(--text-muted); line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px; font-size: .88rem; font-weight: 500;
  color: var(--text); border-radius: 8px; transition: all .2s;
}
.nav-links a:hover { background: var(--blue-light); color: var(--blue); }
.nav-emergency {
  background: var(--gradient) !important; color: white !important;
  padding: 8px 18px !important; border-radius: 40px !important; font-weight: 600 !important;
}
.nav-emergency:hover { box-shadow: 0 4px 16px rgba(0,102,204,.35); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: .3s; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #001F4D 0%, #003585 40%, #0066CC 75%, #00B4D8 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-medical-icons { position: absolute; inset: 0; pointer-events: none; }
.hero-medical-icons i {
  position: absolute; color: rgba(255,255,255,.05); font-size: 80px;
  animation: floatIcon 6s ease-in-out infinite;
}
.hi-1 { top: 10%; left: 5%; font-size: 120px; animation-delay: 0s; }
.hi-2 { top: 60%; right: 8%; font-size: 100px; animation-delay: 1.5s; }
.hi-3 { bottom: 15%; left: 15%; font-size: 80px; animation-delay: 3s; }
.hi-4 { top: 25%; right: 20%; font-size: 70px; animation-delay: 2s; }
.hi-5 { bottom: 30%; right: 5%; font-size: 90px; animation-delay: 4s; }
@keyframes floatIcon { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-18px) rotate(5deg)} }
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 860px; padding: 40px 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: white; font-size: .82rem; font-weight: 600;
  padding: 8px 20px; border-radius: 40px; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.8rem); color: white;
  line-height: 1.15; margin-bottom: 20px; font-weight: 700;
}
.hero-sub {
  color: rgba(255,255,255,.8); font-size: clamp(.95rem, 2vw, 1.15rem);
  margin-bottom: 36px; letter-spacing: .03em;
}
.hero-highlight {
  display: inline-block; margin-top: 10px;
  color: var(--accent); font-weight: 600;
  font-size: clamp(.85rem, 1.8vw, 1.02rem); letter-spacing: .02em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 52px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--blue);
  padding: 14px 28px; border-radius: 40px;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: all .3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.btn-emergency {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 14px 28px; border-radius: 40px;
  font-weight: 600; font-size: .95rem;
  animation: emergencyPulse 2s ease-in-out infinite;
  transition: all .3s;
}
.btn-emergency:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,107,53,.5); }
@keyframes emergencyPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,107,53,.6)} 50%{box-shadow:0 0 0 12px rgba(255,107,53,0)} }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: white;
  padding: 14px 28px; border-radius: 40px;
  font-weight: 600; font-size: .95rem; transition: all .3s;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,.4); }

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: rgba(255,255,255,.12); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 20px 36px;
  gap: 8px;
}
.hstat { text-align: center; padding: 0 24px; }
.hstat-num { font-size: 2rem; font-weight: 700; color: white; font-family: 'Playfair Display',serif; }
.hstat-plus { font-size: 1.3rem; color: var(--cyan-light); font-weight: 700; }
.hstat-label { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.hstat-divider { width: 1px; height: 48px; background: rgba(255,255,255,.25); }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; text-align: center;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* Animate in */
.animate-in { animation: fadeUp .8s ease forwards; opacity: 0; }
.animate-in:nth-child(1){animation-delay:.1s}
.animate-in:nth-child(2){animation-delay:.3s}
.animate-in:nth-child(3){animation-delay:.5s}
.animate-in:nth-child(4){animation-delay:.7s}
.animate-in:nth-child(5){animation-delay:.9s}
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:none} }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s cubic-bezier(.25,.8,.25,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---- QUICK INFO BAR ---- */
.quick-info-bar {
  background: var(--gradient);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; padding: 0;
}
.qi-item {
  display: flex; align-items: center; gap: 10px;
  color: white; font-size: .88rem; font-weight: 500;
  padding: 14px 28px; border-right: 1px solid rgba(255,255,255,.2);
}
.qi-item:last-child { border-right: none; }
.qi-item i { font-size: 1rem; opacity: .85; }

/* ---- ABOUT ---- */
.about { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-placeholder {
  background: var(--gradient); border-radius: var(--radius-lg);
  height: 420px; display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,.3); position: relative;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.about-img-placeholder::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.1) 0%, transparent 60%);
}
.about-badge-float {
  position: absolute; bottom: 24px; left: 24px;
  background: white; color: var(--blue);
  padding: 10px 18px; border-radius: 40px;
  font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.about-stat-card {
  position: absolute; background: white; border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow);
  font-size: .85rem; display: flex; align-items: center; gap: 12px;
}
.about-stat-card i { font-size: 1.4rem; color: var(--blue); }
.about-stat-card strong { display: block; font-size: 1.1rem; color: var(--text); }
.ac1 { top: -20px; right: -20px; }
.ac2 { bottom: 80px; right: -20px; }
.about-content h3 { font-size: 1.6rem; margin-bottom: 18px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.af-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.af-item i { color: var(--blue); font-size: 1rem; }

/* Spotlight experience badge (Doctor Spotlight / MD section) */
.spotlight-badge {
  position: static;
  margin-top: 16px;
  background: white; color: var(--blue);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.spotlight-badge i { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

/* Professional Memberships card */
.membership-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px; margin: 20px 0;
}
.membership-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 12px;
}
.membership-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.membership-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .87rem; color: var(--text); line-height: 1.4;
}
.membership-list li i { color: var(--blue); font-size: .85rem; margin-top: 3px; flex-shrink: 0; }

/* ---- STATS ---- */
.stats-section { background: var(--gradient); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item {
  text-align: center; color: white; padding: 24px 16px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-item i { font-size: 2rem; opacity: .8; margin-bottom: 12px; }
.stat-num { font-family: 'Playfair Display',serif; font-size: 2.8rem; font-weight: 700; }
.stat-label { font-size: .85rem; opacity: .8; margin-top: 4px; }

/* ---- DEPARTMENTS ---- */
.specialities { background: white; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.dept-card {
  background: var(--off-white); border-radius: var(--radius);
  padding: 28px 22px; border: 1px solid var(--border);
  transition: all .35s; position: relative; overflow: hidden; cursor: pointer;
}
.dept-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.dept-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); background: white; }
.dept-card:hover::before { transform: scaleX(1); }
.dept-icon {
  width: 56px; height: 56px; background: var(--blue-light);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--blue); margin-bottom: 16px;
  transition: all .35s;
}
.dept-card:hover .dept-icon { background: var(--gradient); color: white; }
.dept-card h4 { font-size: 1rem; margin-bottom: 8px; }
.dept-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }
.dept-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: .82rem; font-weight: 600;
  transition: gap .2s;
}
.dept-card:hover .dept-btn { gap: 10px; }
.featured-dept { background: linear-gradient(135deg, #FFF5F0, #FFF); border-color: rgba(255,107,53,.2); }
.featured-dept .dept-icon { background: rgba(255,107,53,.1); color: var(--accent); }
.featured-dept:hover .dept-icon { background: var(--accent); color: white; }
.emergency-dept-btn { color: var(--accent) !important; }

/* ---- DOCTORS ---- */
.doctors { background: var(--off-white); }
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.doctor-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: all .35s;
}
.doctor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.doctor-img { position: relative; background: var(--gradient); height: 180px; display: flex; align-items: flex-end; justify-content: center; }
.doctor-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 4px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.8);
  margin-bottom: -20px;
}
.doctor-avatar.female { background: rgba(255,182,193,.3); }
.doctor-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px);
  color: white; font-size: .72rem; font-weight: 600;
  padding: 5px 12px; border-radius: 40px; border: 1px solid rgba(255,255,255,.3);
}
.doctor-info { padding: 30px 22px 22px; text-align: center; }
.doctor-info h4 { font-size: 1.05rem; margin-bottom: 6px; }
.doctor-qual { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.doctor-exp { font-size: .83rem; color: var(--blue); font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-consult {
  display: inline-block; width: 100%;
  background: var(--gradient); color: white;
  padding: 11px 20px; border-radius: 40px; font-weight: 600;
  font-size: .9rem; text-align: center; transition: all .3s;
}
.btn-consult:hover { box-shadow: 0 6px 20px rgba(0,102,204,.35); transform: translateY(-2px); }

/* ---- APPOINTMENT ---- */
.appointment { background: linear-gradient(160deg, #001F4D 0%, #003585 50%, #005BB5 100%); }
.appt-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.appt-info .section-tag { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.appt-info h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.appt-info p { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.appt-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.appt-feat { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .9rem; }
.appt-feat i { color: var(--cyan-light); }
.contact-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.cpill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); color: white;
  border: 1px solid rgba(255,255,255,.25);
  padding: 10px 20px; border-radius: 40px; font-size: .88rem; font-weight: 500;
  transition: all .3s;
}
.cpill:hover { background: rgba(255,255,255,.25); }
.cpill.wa { background: rgba(37,211,102,.2); border-color: rgba(37,211,102,.4); }
.cpill.wa:hover { background: rgba(37,211,102,.35); }

/* Appointment Form */
.appt-form-wrap {
  background: white; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.appt-form h3 { font-size: 1.3rem; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 16px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.form-group label i { color: var(--blue); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: 'DM Sans',sans-serif;
  font-size: .92rem; color: var(--text);
  background: var(--off-white); transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.1);
  background: white;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit {
  width: 100%; background: var(--gradient); color: white;
  border: none; border-radius: 40px;
  padding: 15px; font-size: 1rem; font-weight: 600; font-family: 'DM Sans',sans-serif;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .3s; margin-top: 4px;
}
.btn-submit:hover { box-shadow: 0 8px 24px rgba(0,102,204,.4); transform: translateY(-2px); }

/* Appointment Payment/QR Security Notice */
.appt-notice {
  margin-top: 20px; background: var(--blue-light);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; align-items: flex-start; gap: 14px;
}
.appt-notice i { color: var(--blue); font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.appt-notice-text p {
  font-size: .84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px;
}
.appt-notice-text p:last-child { margin-bottom: 0; }
.appt-notice-text .appt-notice-hi { color: var(--text); }

/* ---- EMERGENCY ---- */
.emergency {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230066CC' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #001230 0%, #002060 40%, #003399 100%);
  position: relative; padding: 90px 0;
}
.emergency-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.1); }
.emg-content { position: relative; z-index: 1; text-align: center; }
.emg-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,53,.2); color: #FF8C5A;
  border: 1px solid rgba(255,107,53,.3);
  padding: 8px 20px; border-radius: 40px; font-size: .82rem; font-weight: 600;
  margin-bottom: 20px;
}
.emg-content h2 { color: white; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.emg-content p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 40px; }
.emg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.emg-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all .3s;
}
.emg-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.emg-card i { font-size: 2rem; color: var(--cyan-light); margin-bottom: 14px; display: block; }
.emg-card h4 { color: white; margin-bottom: 10px; font-size: 1rem; }
.emg-card p { color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 18px; }
.emg-call-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,107,53,.85); color: white;
  padding: 10px 20px; border-radius: 40px; font-size: .85rem; font-weight: 600;
  transition: all .3s;
}
.emg-call-btn:hover { background: var(--accent); box-shadow: 0 4px 16px rgba(255,107,53,.4); }
.emg-number {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,107,53,.2); border: 1px solid rgba(255,107,53,.4);
  color: white; padding: 16px 32px; border-radius: 40px;
  font-size: 1.2rem; font-weight: 700;
}
.emg-number i { color: var(--accent); font-size: 1.4rem; animation: shake .5s linear infinite; }
@keyframes shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-10deg)} 75%{transform:rotate(10deg)} }

/* ---- FACILITIES ---- */
.facilities { background: var(--off-white); }
.facilities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.fac-card {
  background: white; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); text-align: center; transition: all .35s;
}
.fac-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.fac-icon {
  width: 64px; height: 64px; background: var(--gradient);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white; margin: 0 auto 16px;
  transition: all .35s;
}
.fac-card:hover .fac-icon { transform: scale(1.1) rotate(-5deg); }
.fac-card h4 { font-size: 1rem; margin-bottom: 8px; }
.fac-card p { font-size: .84rem; color: var(--text-muted); }

/* ---- MEMBERSHIP & OFFER CTA CARDS SECTION ---- */
.cta-offers { background: var(--white); }

/* ---- LIFETIME MEMBERSHIP CARD ---- */
.membership-why {
  max-width: 720px; margin: 8px auto 40px; text-align: center;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 36px; box-shadow: var(--shadow-sm);
}
.membership-why h3 { font-size: 1.3rem; margin-bottom: 12px; }
.membership-why p { color: var(--text-muted); font-size: .95rem; }
.membership-cta {
  background: var(--gradient); border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center; box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}
.membership-cta h3 { color: white; font-size: 1.5rem; margin-bottom: 14px; }
.offer-price { display: inline-block; color: var(--accent); font-size: 1.9rem; font-weight: 700; margin-top: 4px; }
.membership-benefit {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  color: white; font-size: .88rem; font-weight: 700;
  padding: 9px 20px; border-radius: 40px; margin-bottom: 16px;
}
.membership-benefit i { color: var(--accent); }
.membership-cta p { color: rgba(255,255,255,.85); font-size: .95rem; max-width: 560px; margin: 0 auto 26px; }
.membership-terms { text-align: center; font-size: .78rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* ---- WHY CHOOSE US ---- */
.why-us { background: white; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-card {
  position: relative; padding: 32px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .35s; overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.why-card:hover::before { transform: scaleX(1); }
.why-num { font-family: 'Playfair Display',serif; font-size: 3rem; font-weight: 700; color: var(--border); position: absolute; top: 16px; right: 16px; line-height: 1; }
.why-icon { font-size: 1.8rem; color: var(--blue); margin-bottom: 14px; }
.why-card h4 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: .85rem; color: var(--text-muted); }

/* ---- HEALTH TIPS ---- */
.health-tips { background: var(--off-white); }
.tips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tip-card {
  background: white; border-radius: var(--radius); padding: 28px 22px;
  border-top: 3px solid transparent; transition: all .35s;
  border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.tip-card:hover { border-top-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.tip-icon { font-size: 1.8rem; color: var(--blue); margin-bottom: 14px; }
.tip-card h4 { font-size: .98rem; margin-bottom: 8px; }
.tip-card p { font-size: .83rem; color: var(--text-muted); }

/* ---- TESTIMONIALS ---- */
.testimonials { background: linear-gradient(160deg, #F0F8FF 0%, #E8F4FD 100%); }
.testimonial-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-card {
  min-width: 100%; background: white;
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.stars { color: #F59E0B; margin-bottom: 16px; font-size: 1.1rem; }
.testimonial-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 48px; height: 48px; background: var(--gradient);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.testi-author strong { font-family: 'Playfair Display',serif; display: block; margin-bottom: 2px; }
.testi-author span { font-size: .82rem; color: var(--text-muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.slider-btn {
  width: 44px; height: 44px; background: white; border: 1.5px solid var(--border);
  border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.slider-btn:hover { background: var(--gradient); color: white; border-color: transparent; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all .3s;
}
.slider-dot.active { background: var(--blue); transform: scale(1.2); }

/* ---- GALLERY ---- */
.gallery { background: white; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gi-large { grid-column: span 2; }
.gallery-placeholder {
  height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; font-size: .9rem; font-weight: 600; color: white; transition: all .35s;
}
.gi-large .gallery-placeholder { height: 240px; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }
.gallery-placeholder i { font-size: 2.5rem; opacity: .85; }
.gp1 { background: linear-gradient(135deg, #0066CC, #003585); }
.gp2 { background: linear-gradient(135deg, #00B4D8, #0096C7); }
.gp3 { background: linear-gradient(135deg, #023E8A, #0066CC); }
.gp4 { background: linear-gradient(135deg, #0077B6, #00B4D8); }
.gp5 { background: linear-gradient(135deg, #005BB5, #00BFFF); }
.gp6 { background: linear-gradient(135deg, #00698F, #00B4D8); }

/* ---- FAQ ---- */
.faq { background: var(--off-white); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-weight: 600;
  font-size: .95rem; transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-q i { transition: transform .3s; color: var(--blue); flex-shrink: 0; }
.faq-q.open i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s;
  font-size: .9rem; color: var(--text-muted); line-height: 1.65; padding: 0 22px;
}
.faq-a.open { max-height: 200px; padding: 0 22px 18px; }

/* ---- CONTACT ---- */
.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; background: var(--off-white);
  border-radius: var(--radius); border: 1px solid var(--border); transition: all .3s;
}
.contact-card:hover { background: var(--blue-light); border-color: rgba(0,102,204,.2); }
.cc-icon {
  width: 44px; height: 44px; background: var(--gradient);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; flex-shrink: 0;
}
.contact-card h4 { font-size: .9rem; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: .88rem; color: var(--text-muted); }
.contact-card a:hover { color: var(--blue); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; }
.map-directions-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue-light); color: var(--blue);
  padding: 14px; font-size: .88rem; font-weight: 600;
  transition: background .3s;
}
.map-directions-btn:hover { background: var(--gradient); color: white; }
.contact-card a.address-link:hover { color: var(--blue); }

/* ---- FOOTER ---- */
.footer { background: var(--text); color: rgba(255,255,255,.75); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo .logo-icon { background: var(--gradient); }
.footer-logo .logo-main { color: white; font-size: 1.1rem; }
.footer-logo .logo-sub { color: rgba(255,255,255,.5); font-size: .6rem; }
.footer-brand p { font-size: .87rem; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; background: rgba(255,255,255,.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: rgba(255,255,255,.7); transition: all .3s;
}
.footer-social a:hover { background: var(--blue); color: white; transform: translateY(-3px); }
.footer-col h5 { color: white; font-size: .95rem; margin-bottom: 18px; font-family: 'DM Sans',sans-serif; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .87rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--cyan-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.footer-contact-item i { color: var(--cyan-light); margin-top: 2px; font-size: 1rem; }
.footer-contact-item strong { display: block; color: white; font-size: .82rem; margin-bottom: 2px; }
.footer-contact-item a, .footer-contact-item span { font-size: .85rem; }
.footer-contact-item a:hover { color: var(--cyan-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.45);
  display: flex; flex-direction: column; gap: 4px;
}

/* ---- FLOATING BUTTONS ---- */
.float-wa, .float-call {
  position: fixed; z-index: 500; border-radius: 50%;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: all .3s; right: 24px;
}
.float-wa { background: #25D366; bottom: 100px; }
.float-call { background: var(--accent); bottom: 168px; animation: emergencyPulse 2s ease-in-out infinite; }
.float-wa:hover, .float-call:hover { transform: scale(1.12); }
.float-tooltip {
  position: absolute; right: 68px;
  background: var(--text); color: white;
  padding: 6px 12px; border-radius: 6px; font-size: .78rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.float-wa:hover .float-tooltip, .float-call:hover .float-tooltip { opacity: 1; }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 46px; height: 46px; background: var(--blue); color: white;
  border: none; border-radius: 50%; font-size: 1rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all .3s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ---- POPUPS ---- */
.popup-overlay, .emg-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.popup-overlay.show, .emg-popup-overlay.show { display: flex; }
.popup-box {
  background: white; border-radius: var(--radius-lg);
  padding: 40px; max-width: 420px; width: 100%; text-align: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from{transform:scale(.7);opacity:0} to{transform:scale(1);opacity:1} }
.popup-icon { font-size: 3.5rem; color: #22C55E; margin-bottom: 16px; }
.popup-box h3 { font-size: 1.5rem; margin-bottom: 10px; }
.popup-box p { color: var(--text-muted); font-size: .95rem; margin-bottom: 18px; }
.popup-contact { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: 1.05rem; margin-bottom: 22px; }
.popup-close { background: var(--gradient); color: white; border: none; padding: 12px 32px; border-radius: 40px; cursor: pointer; font-size: .95rem; font-weight: 600; font-family: 'DM Sans',sans-serif; }
.emg-popup-box {
  background: linear-gradient(135deg, #001230, #003385);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 40px; max-width: 460px; width: 100%; text-align: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
.emg-popup-header { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.emg-popup-header i { font-size: 1.8rem; color: var(--accent); }
.emg-popup-header h3 { color: white; font-size: 1.4rem; }
.emg-popup-box p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.emg-popup-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; margin-bottom: 16px; width: 100%; border-radius: 40px; }
.emg-popup-skip {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: .9rem; cursor: pointer;
  background: none; border: none; font-family: 'DM Sans',sans-serif;
  transition: color .2s;
}
.emg-popup-skip:hover { color: white; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .appt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .tips-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .emg-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 99; font-size: 1.1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 100; }
  .hero-title { font-size: 1.9rem; }
  .hero-stats { flex-direction: column; gap: 10px; }
  .hstat-divider { width: 80px; height: 1px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions a { width: 100%; max-width: 280px; justify-content: center; }
  .dept-grid { grid-template-columns: repeat(2,1fr); }
  .doctors-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gi-large { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Mobile-only: Preferred Date & Preferred Time side-by-side, everything else in this pair untouched */
  .form-pair-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .form-pair-wrap .form-row { display: contents; }
  .form-pair-wrap .pair-full { grid-column: 1 / -1; }
  .qi-item { padding: 10px 14px; font-size: .8rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .emg-number { font-size: .95rem; padding: 14px 20px; }
  .membership-why { padding: 24px 22px; }
  .membership-cta { padding: 34px 24px; }
  .membership-cta h3 { font-size: 1.25rem; }

  /* Doctor Spotlight mobile image fix — show image again, stacked above content, no cropping */
  .doctor-spotlight .about-visual {
    display: block; order: -1; margin-bottom: 24px;
  }
  .doctor-spotlight .about-img-wrap img {
    width: 100%; height: auto; max-width: 100%;
  }
  .doctor-spotlight .spotlight-badge {
    font-size: .74rem; padding: 10px 14px; margin-top: 12px;
  }

  /* About Us & Managing Director mobile image fix — show images again, stacked above content, no cropping/overflow */
  #about .about-visual,
  #managing-director .about-visual {
    display: block; order: -1; margin-bottom: 24px;
  }
  #about .about-img-placeholder {
    height: 260px;
  }
  #managing-director .about-img-wrap img {
    width: 100%; height: auto; max-width: 100%;
  }
  #about .about-stat-card,
  #managing-director .spotlight-badge {
    font-size: .74rem; padding: 10px 14px;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .dept-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-large { grid-column: span 1; }
  .hero-badge { font-size: .72rem; }
  .quick-info-bar { flex-direction: column; }
  .qi-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); width: 100%; justify-content: center; }
  .qi-item:last-child { border-bottom: none; }
}

/* Smooth FA shake */
.fa-shake { animation: shake .6s linear infinite; }
