/* ═══════════════════════════════════════════════
   SHAKUNTALA HOSPITAL — STYLESHEET
   ═══════════════════════════════════════════════ */

/* ── Light Mode Variables ── */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --navy:        #1e3a8a;
  --navy-dark:   #1e293b;
  --blue-light:  #dbeafe;
  --blue-bg:     #eff6ff;
  --text:        #374151;
  --text-light:  #6b7280;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --bg-light:    #f8faff;
  --bg:          #ffffff;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow:    0 4px 20px rgba(30,58,138,.1);
  --shadow-lg: 0 12px 40px rgba(30,58,138,.15);
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --header-h: 72px;
  --font: 'Inter', system-ui, sans-serif;
}

/* ── Dark Mode Variables ── */
[data-theme="dark"] {
  --blue:        #60a5fa;
  --blue-dark:   #3b82f6;
  --navy:        #1e3a8a;
  --navy-dark:   #f0f9ff;
  --blue-light:  #1e3a8a;
  --blue-bg:     #1e293b;
  --text:        #f1f5f9;
  --text-light:  #cbd5e1;
  --border:      #374151;
  --white:       #1f2937;
  --bg-light:    #0f172a;
  --bg:          #0a0e27;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; transition: background var(--transition), color var(--transition); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
address { font-style: normal; }
button  { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Utility ── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.section    { padding: 6rem 0; opacity: 1; animation: fadeInSection .6s ease-out; }
@keyframes fadeInSection { from { opacity: 0; } to { opacity: 1; } }
.bg-light   { background: var(--bg-light); transition: background var(--transition); }
.txt-blue   { color: var(--blue); }
.center     { text-align: center; }

/* ── Common headings ── */
.section-eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: .75rem;
  transition: color var(--transition);
}
.section-sub {
  color: var(--text-light);
  max-width: 580px;
  margin-inline: auto;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }

/* ── Full-width navbar wrapper ── */
.navbar-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 2.5rem;
  height: var(--header-h);
  gap: 1rem;
}

/* Logo area (left) */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  text-decoration: none;
}

/* Logo frame — clips to emblem only (hides the Kannada text portion of the image) */
.logo-img-frame {
  width: 108px;
  height: 68px;       /* landscape crop → shows top ~58% = just the emblem */
  overflow: hidden;
  flex-shrink: 0;
}
.logo-img {
  width: 108px;       /* scale to frame width */
  height: 108px;      /* keep 1:1 ratio → bottom overflows and is hidden */
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text beside logo */
.logo-identity {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding-left: 1.2rem;
  border-left: 2.5px solid var(--border);
}
.logo-en-top  {
  font-size: .85rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.logo-en-main {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.logo-en-loc  {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: auto; /* pushes nav to far right */
}
.nav-link {
  display: block;
  padding: .5rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-link:hover, .nav-link.active {
  color: var(--blue);
}
.chevron { font-size: .6rem; vertical-align: middle; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 190px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
}
.dropdown li a {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .88rem;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}
.dropdown li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transition: transform var(--transition);
}
.dropdown li a:hover::before {
  transform: scaleY(1);
}
.dropdown li a:hover {
  background: var(--blue-bg);
  color: var(--blue);
  padding-left: 1.5rem;
}
.has-dropdown:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Book appointment button */
.btn-appt {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.25rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.btn-appt:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 2px 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--blue-light);
  transform: rotate(20deg);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

/* Large light-blue blob on right */
.hero-blob {
  position: absolute;
  right: -8%;
  top: -10%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #dbeafe 0%, #bfdbfe 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
}

[data-theme="dark"] .hero-blob {
  background: radial-gradient(ellipse at center, #1e3a8a 0%, #0f172a 40%, transparent 70%);
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero label (DR ILAGER'S) */
.hero-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.label-bar {
  display: inline-block;
  width: 36px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Main title */
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.05;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Years badge */
.years-badge {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue-light);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 2rem;
}
.years-icon { width: 44px; height: 44px; flex-shrink: 0; }
.years-text { display: flex; align-items: baseline; gap: .5rem; }
.years-text strong { font-size: 2.25rem; font-weight: 900; color: var(--navy); line-height: 1; }
.years-text span   { font-size: .82rem; color: var(--text-light); line-height: 1.3; }

/* Hero CTA buttons */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transform: translate(-50%, -50%);
  transition: width .5s, height .5s;
}
.btn:active::before {
  width: 300px;
  height: 300px;
}
.btn-hero-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-hero-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,99,235,.4);
}
.btn-hero-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue-light);
}
.btn-hero-outline:hover {
  background: var(--blue-bg);
  border-color: var(--blue);
}

/* Hero image with decorative rings */
.hero-img-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-ring-outer {
  position: absolute;
  width: 105%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #93c5fd;
  border-right-color: #93c5fd;
  transform: rotate(-30deg);
  pointer-events: none;
}
.hero-ring-inner {
  position: absolute;
  width: 108%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #dbeafe;
  pointer-events: none;
}
.hero-img-circle {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(30,58,138,.25);
}
.hero-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 20%; /* focus on the doctor's face (right side, upper area) */
}

/* ═══════════════════════════════════════════════
   ABOUT CARD
   ═══════════════════════════════════════════════ */
.about-section {
  padding: 0 0 4rem;
  background: var(--white);
}
.about-card {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 1100px;
  margin-inline: auto;
}
.about-logo-wrap { flex-shrink: 0; }
.about-logo-circle {
  width: 120px;
  height: 120px;
  background: var(--blue-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.about-logo-circle svg { width: 100%; height: 100%; }

.about-text {
  flex: 1;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.75;
}
.about-text p + p { margin-top: .85rem; }

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 190px;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.3;
}
.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feat-icon svg { width: 18px; height: 18px; stroke: var(--blue); }

/* ═══════════════════════════════════════════════
   DEPARTMENTS
   ═══════════════════════════════════════════════ */
.departments { background: var(--blue-bg); }

.section-title-dept {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.title-bar {
  width: 48px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0 auto 2.5rem;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dept-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(30,58,138,.07);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.dept-icon-wrap {
  width: 90px;
  height: 90px;
  background: var(--ic-bg, var(--blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.dept-svg { width: 40px; height: 40px; }

.dept-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .6rem;
}
.dept-card p {
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.dept-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  transition: letter-spacing var(--transition);
}
.dept-link:hover { letter-spacing: .03em; }

/* ═══════════════════════════════════════════════
   DOCTORS
   ═══════════════════════════════════════════════ */
.doctors-section { background: var(--white); }

.doctors-section .section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }

/* Doctors — 3-column horizontal grid */
/* ── Doctors list (horizontal cards) ── */
.doctors-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.doctor-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(30,58,138,.07);
  transition: all var(--transition);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

/* Left: portrait photo */
.doc-portrait {
  flex-shrink: 0;
  width: 230px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--blue-bg);
}
.doc-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .45s ease;
  display: block;
}
.doctor-card:hover .doc-portrait img { transform: scale(1.04); }

/* Avatar placeholder (no real photo) */
.doc-portrait--avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #dbeafe 0%, #bfdbfe 100%);
}
.doc-avatar-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(30,58,138,.15);
}
.doc-avatar-wrap svg {
  width: 54px;
  height: 54px;
  color: var(--navy);
  stroke: var(--navy);
}

/* Role tag at bottom of portrait */
.doc-role-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .55rem .9rem;
  background: linear-gradient(transparent, rgba(15,23,42,.80));
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Right: details body */
.doc-body {
  flex: 1;
  padding: 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.doc-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: .45rem;
  letter-spacing: .01em;
  line-height: 1.2;
}

.doc-specialty-pill {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  border: 1px solid var(--blue-light);
  margin-bottom: .7rem;
  line-height: 1.4;
  align-self: flex-start;
}

.doc-credentials {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.doc-divider {
  height: 1px;
  background: var(--border);
  margin: .85rem 0;
}

.expertise-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}

.expertise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem;
  margin-bottom: 1.25rem;
  flex: 1;
}
.expertise-list li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .82rem;
  color: var(--text);
  line-height: 1.4;
}
.chk {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.chk::after {
  content: '✓';
  font-size: .58rem;
  color: var(--white);
  font-weight: 900;
}

.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  padding: .65rem 1.5rem;
  border: 1.5px solid var(--blue);
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  transition: all var(--transition);
  margin-top: auto;
}
.btn-view-profile:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

/* Upcoming specialists */
.upcoming-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 3rem 0 1.25rem;
  position: relative;
}
.upcoming-label::before,
.upcoming-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}
.upcoming-label::before { left: 0; }
.upcoming-label::after  { right: 0; }

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.upcoming-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1.5px dashed #93c5fd;
  border-radius: var(--radius);
  background: var(--blue-bg);
  transition: all var(--transition);
}
.upcoming-card:hover {
  background: var(--blue-light);
  border-color: var(--blue);
}

.upcoming-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--uc-bg, var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upcoming-icon svg { width: 26px; height: 26px; stroke: var(--uc-c, var(--blue)); }

.upcoming-info h4 { font-size: .9rem; font-weight: 800; color: var(--navy-dark); margin-bottom: .4rem; line-height: 1.3; }
.upcoming-info p  { font-size: .82rem; color: var(--text-light); margin-top: .4rem; line-height: 1.5; }

.coming-soon-badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
  border: 1px solid #93c5fd;
}

/* Info note */
.doctors-note {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--blue-bg);
  border: 1px solid var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
}
.note-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════ */
.testimonials { background: var(--white); position: relative; overflow: hidden; }

.testi-dots-head {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: .75rem;
  margin-bottom: .5rem;
}
.tdh {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.tdh.active { background: var(--blue); }

.testi-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.testi-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  flex: 1;
  overflow: hidden;
}

.testi-nav {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light);
  flex-shrink: 0;
  transition: all var(--transition);
  background: var(--white);
}
.testi-nav:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow);
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(30,58,138,.06);
  position: relative;
}

.quote-mark {
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: .8;
  margin-bottom: .75rem;
  font-family: Georgia, serif;
}
.testi-card > p {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .85rem;
}
.testi-stars {
  color: #f59e0b;
  font-size: .95rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 1.5px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .88rem; color: var(--navy-dark); font-weight: 700; }
.testi-author span   { font-size: .78rem; color: var(--text-light); }

.testi-dots {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: .5rem;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active { background: var(--blue); width: 28px; border-radius: 5px; }

/* Blue wave at bottom of testimonials */
.testi-wave {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  margin-top: 2rem;
}
.testi-wave svg { width: 100%; height: 90px; }

/* ═══════════════════════════════════════════════
   APPOINTMENT
   ═══════════════════════════════════════════════ */
.appointment { background: var(--blue-bg); }

.appt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.appt-info > p {
  color: var(--text-light);
  margin: .75rem 0 2rem;
  font-size: .95rem;
}

.appt-contacts { display: flex; flex-direction: column; gap: .85rem; }
.appt-contact  { display: flex; align-items: flex-start; gap: .85rem; }
.ac-icon {
  width: 40px; height: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ac-icon svg { width: 18px; height: 18px; stroke: var(--blue); }
.appt-contact strong { display: block; font-size: .83rem; font-weight: 700; color: var(--navy-dark); }
.appt-contact a,
.appt-contact span  { font-size: .83rem; color: var(--text-light); }
.appt-contact a:hover { color: var(--blue); }

/* Form */
.appt-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.form-group label { font-size: .83rem; font-weight: 700; color: var(--navy-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--navy-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform .35s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
  transform: translateY(-1px);
}
.form-group textarea { resize: vertical; }
.btn-submit {
  width: 100%;
  padding: .8rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-submit:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.form-success {
  display: none;
  margin-top: 1rem;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .88rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-lead { color: var(--text-light); margin: .6rem 0 1.75rem; font-size: .92rem; line-height: 1.7; }

.contact-items { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-item  { display: flex; align-items: flex-start; gap: .85rem; }
.ci-icon {
  width: 40px; height: 40px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; stroke: var(--blue); }
.contact-item strong { display: block; font-size: .85rem; font-weight: 700; color: var(--navy-dark); margin-bottom: .2rem; }
.contact-item address { font-size: .82rem; color: var(--text-light); line-height: 1.65; }
.contact-item a { font-size: .82rem; color: var(--text-light); display: block; }
.contact-item a:hover { color: var(--blue); }

/* Phone rows */
.phone-row { display: flex; gap: .35rem; font-size: .82rem; color: var(--text-light); }
.phone-row a { display: inline; font-weight: 700; color: var(--navy-dark); }
.phone-row a:hover { color: var(--blue); }
.phone-label { color: var(--text-light); }

/* OPD Hours */
.opd-item .ci-icon { margin-top: 2px; }
.opd-wrap { flex: 1; }
.opd-day-label {
  font-size: .82rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .35rem;
  margin-top: .2rem;
}
.opd-day-label + .opd-list { margin-bottom: .65rem; }
.opd-list { display: flex; flex-direction: column; gap: .3rem; }
.opd-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text);
  line-height: 1.5;
}
.opd-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 5px;
}
.opd-note { font-size: .74rem; color: var(--text-light); }

/* Social icons */
.contact-socials { display: flex; gap: .65rem; margin-top: 1.5rem; flex-wrap: wrap; }
.cs-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cs-btn svg { width: 22px; height: 22px; }
.cs-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.cs-wa { background: #25d366; color: white; }
.cs-fb { background: #1877f2; color: white; }
.cs-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: white; }
.cs-gm { background: var(--white); border: 1.5px solid var(--border); }
.cs-gm svg { width: 24px; height: 24px; }

/* Map */
.map-wrap {
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Bottom CTA cards */
.contact-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: .5rem;
}
.contact-cta-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--blue-bg);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.contact-cta-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }

.ccc-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ccc-icon-wrap svg { width: 26px; height: 26px; }
.ccc-phone-bg { background: var(--blue); }
.ccc-cal-bg   { background: var(--blue); }

.ccc-body h4 { font-size: 1rem; font-weight: 800; color: var(--blue); margin-bottom: .35rem; }
.ccc-body > p { font-size: .83rem; color: var(--text-light); line-height: 1.6; margin-bottom: .5rem; }
.ccc-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.ccc-number:hover { color: var(--blue-dark); }
.ccc-number2 {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .2rem;
}
.ccc-number2:hover { color: var(--blue-dark); }
.ccc-note    { font-size: .8rem; color: var(--text-light); }
.ccc-tagline { font-size: .82rem; font-weight: 700; color: var(--blue); font-style: italic; margin-top: .25rem; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer { background: #0f172a; color: #94a3b8; }

.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-brand p { font-size: .88rem; line-height: 1.7; margin: 1.1rem 0 1.25rem; }

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.footer-logo-frame { width: 70px; height: 44px; overflow: hidden; border-radius: 4px; background: #fff; }
.footer-logo-img   { width: 70px; height: 70px; object-fit: cover; object-position: center top; display: block; }
.footer-dr   { display: block; font-size: .72rem; font-weight: 700; color: #93c5fd; letter-spacing: .05em; }
.footer-name { display: block; font-size: .95rem; font-weight: 800; color: var(--white); line-height: 1.2; }

.footer-social { display: flex; gap: .5rem; }
.fsoc {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all var(--transition);
}
.fsoc:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .85rem; color: #94a3b8; transition: color var(--transition); }
.footer-col ul li a:hover { color: #93c5fd; }
.footer-col address p { font-size: .85rem; margin-bottom: .5rem; }
.footer-col address a:hover { color: #93c5fd; }

.footer-emergency {
  display: inline-block;
  margin-top: .85rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 50px;
  padding: .45rem 1.1rem;
  font-size: .83rem;
  font-weight: 700;
  transition: background var(--transition);
}
.footer-emergency:hover { background: var(--blue-dark); }

.footer-bottom { border-top: 1px solid #1e293b; padding: 1rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { color: #64748b; transition: color var(--transition); }
.footer-legal a:hover { color: #93c5fd; }

/* ═══════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
  z-index: 999;
  transform: translateY(20px);
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--blue-dark);
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(37,99,235,.5);
  animation: bounce .6s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MEDIUM ≤ 1100px (hide identity text)
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .logo-identity { display: none; }
  .logo-img-frame { width: 90px; height: 56px; }
  .logo-img { width: 90px; height: 90px; }
  .navbar-wrap { padding-inline: 1.75rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET ≤ 960px
   ═══════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --header-h: 72px; }

  /* Mobile nav */
  .navbar-wrap   { padding-inline: 1rem; gap: .5rem; }
  .hamburger     { display: flex; margin-left: auto; margin-right: .5rem; }
  .theme-toggle  { margin-left: .5rem; }
  .btn-appt      { display: none; }
  .logo-identity { display: none; }
  .logo-img-frame { width: 60px; height: 42px; }
  .logo-img       { width: 60px; height: 60px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 48px rgba(0,0,0,.15);
    z-index: 800;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    gap: 0;
    margin-left: 0;
    animation: slideDown .35s cubic-bezier(.4, 0, .2, 1);
  }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
  .nav-links.open { display: flex; }
  .nav-link {
    width: 100%;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 1.1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    color: var(--text);
  }
  .nav-link::after { display: none; }
  .nav-link:hover { background: var(--blue-light); color: var(--blue); }
  .has-dropdown .nav-link {
    padding-right: 2rem;
    position: relative;
  }
  .has-dropdown .nav-link .chevron {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    opacity: 0.6;
  }
  .has-dropdown.open .nav-link .chevron {
    transform: translateY(-50%) rotate(-180deg);
    opacity: 1;
  }
  .dropdown {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    display: none !important;
    background: var(--blue-bg);
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
  }
  .has-dropdown.open .dropdown {
    display: block !important;
    max-height: 500px;
  }
  .dropdown li a {
    padding: .85rem 1.5rem .85rem 3.2rem;
    border: none;
    font-size: .9rem;
    color: var(--text-light);
    transition: all var(--transition);
  }
  .dropdown li a:hover { color: var(--blue); background: rgba(37,99,235,.08); }

  /* Hero */
  .hero { padding: 3rem 0 3rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-img-area { order: -1; }
  .hero-img-circle { max-width: 320px; margin-inline: auto; }
  .label-bar { display: none; }

  /* About card */
  .about-card { flex-direction: column; align-items: center; text-align: center; gap: 1.75rem; }
  .about-features { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; min-width: auto; }
  .about-feature  { width: 140px; flex-direction: column; text-align: center; gap: .4rem; }

  /* Grids */
  .dept-grid        { grid-template-columns: 1fr 1fr; }
  .upcoming-grid    { grid-template-columns: 1fr 1fr; }
  .appt-grid        { grid-template-columns: 1fr; gap: 2rem; }
  .contact-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-cta-row  { grid-template-columns: 1fr; }
  .map-wrap         { height: 350px; }

  /* Doctors: portrait narrows on tablet */
  .doc-portrait { width: 180px; min-height: 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 640px
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 2.5rem; }

  .hero-title { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .hero-img-circle { max-width: 260px; }

  .dept-grid        { grid-template-columns: 1fr; }
  .upcoming-grid    { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .appt-form        { padding: 1.5rem; }
  /* Doctors: stack vertically on mobile */
  .doctor-card      { flex-direction: column; }
  .doc-portrait     { width: 100%; min-height: 260px; }
  .doc-body         { padding: 1.25rem 1.25rem 1.5rem; }
  .expertise-list   { grid-template-columns: 1fr; }
  .contact-cta-card { flex-direction: column; gap: .75rem; }

  .testi-slider { grid-template-columns: 1fr; }
  .testi-nav    { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .upcoming-card { flex-direction: column; text-align: center; }

  .doctors-note { font-size: .82rem; }
}

@media (max-width: 420px) {
  .about-features { flex-direction: column; align-items: center; }
  .footer-grid    { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   DARK MODE ENHANCEMENTS
   ═══════════════════════════════════════════════ */
[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="dark"] .header {
  background: var(--white);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

[data-theme="dark"] .logo-identity {
  border-left-color: var(--border);
}

[data-theme="dark"] .dropdown {
  background: var(--white);
  border-color: var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,.4);
}

[data-theme="dark"] .btn-appt:hover {
  box-shadow: 0 6px 20px rgba(96,165,250,.4);
}

[data-theme="dark"] .dept-card,
[data-theme="dark"] .doctor-card,
[data-theme="dark"] .testi-card,
[data-theme="dark"] .upcoming-card,
[data-theme="dark"] .fac-card {
  background: var(--white);
  border-color: var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

[data-theme="dark"] .dept-card:hover,
[data-theme="dark"] .doctor-card:hover,
[data-theme="dark"] .testi-card:hover,
[data-theme="dark"] .upcoming-card:hover,
[data-theme="dark"] .fac-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,.25);
  transform: translateY(-6px);
}

[data-theme="dark"] .appt-form {
  background: var(--white);
  border-color: var(--border);
}

[data-theme="dark"] .appt-form input,
[data-theme="dark"] .appt-form select,
[data-theme="dark"] .appt-form textarea {
  background: var(--bg-light);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .appt-form input:focus,
[data-theme="dark"] .appt-form select:focus,
[data-theme="dark"] .appt-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(96,165,250,.1);
}

[data-theme="dark"] .footer {
  background: var(--white);
  border-top-color: var(--border);
}

[data-theme="dark"] .footer a:hover {
  color: var(--blue);
}

[data-theme="dark"] .back-to-top {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(96,165,250,.4);
}

[data-theme="dark"] .back-to-top:hover {
  background: var(--blue-dark);
  box-shadow: 0 6px 24px rgba(96,165,250,.5);
}

[data-theme="dark"] .nav-links {
  background: var(--white);
  border-top-color: var(--border);
}

[data-theme="dark"] .nav-link {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .about-card {
  background: var(--bg-light);
  border-color: var(--border);
}

[data-theme="dark"] .form-success {
  background: rgba(34,197,94,.15);
  border-color: rgba(34,197,94,.4);
  color: #86efac;
}
