/* =========================================
   JVM Multi Speciality Hospital – style.css
   Color Palette: Navy Blue (#0a2463) + Cyan (#00b4d8) + White
   ========================================= */

/* ---- CSS Variables ---- */
:root {
  --navy: #0a2463;
  --navy-mid: #1a3a7a;
  --navy-light: #1e4db7;
  --cyan: #00b4d8;
  --cyan-light: #48cae4;
  --cyan-pale: #90e0ef;
  --gold: #f4a261;
  --white: #ffffff;
  --off-white: #f0f7ff;
  --light-bg: #f0f7ff;
  --text-dark: #0d1b2a;
  --text-mid: #2d4059;
  --text-muted: #6b7a99;
  --border: #d0e4f7;
  --shadow-sm: 0 2px 12px rgba(10, 36, 99, 0.08);
  --shadow-md: 0 8px 30px rgba(10, 36, 99, 0.13);
  --shadow-lg: 0 20px 60px rgba(10, 36, 99, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 74px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 100px;
  /* Offset for fixed header */
}

section[id] {
  scroll-margin-top: 100px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

.bg-light {
  background: var(--light-bg);
}

.hidden {
  display: none !important;
}

/* =========================================
   TOP BAR
   ========================================= */
.top-bar {
  background: var(--navy);
  padding: 7px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  transition: transform var(--transition);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.header.scrolled .top-bar {
  display: none;
}

/* =========================================
   NAVBAR
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header.scrolled .navbar {
  background: rgba(10, 36, 99, 0.98);
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(10, 36, 99, 0.3);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.header.scrolled .nav-logo {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left: 2px;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  transition: color var(--transition);
}

.logo-sub {
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header.scrolled .logo-name {
  color: var(--white);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  padding: 8px 13px;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--off-white);
  color: var(--cyan);
}

.nav-link.active-nav {
  color: var(--cyan);
  font-weight: 700;
}

.header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.header.scrolled .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.header.scrolled .nav-link.active-nav {
  color: var(--cyan-light);
}

.nav-btn {
  background: linear-gradient(135deg, var(--navy), var(--navy-light)) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 16px rgba(10, 36, 99, 0.25);
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--cyan), var(--navy)) !important;
  transform: translateY(-1px);
}

.header.scrolled .nav-btn {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light)) !important;
  color: var(--navy) !important;
}

/* ── Mega Dropdown ── */
.has-dropdown {
  position: relative;
}

.chevron {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.has-dropdown:hover .chevron {
  transform: rotate(180deg);
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 2000;
}

.has-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  color: var(--text-dark);
}

.mega-link:hover {
  background: var(--off-white);
  color: var(--navy);
}

.mega-dept-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  margin-top: 2px;
}

.paed-dot {
  background: var(--navy);
}

.obgyn-dot {
  background: #c0392b;
}

.genmed-dot {
  background: #0077b6;
}

.ortho-dot {
  background: #1e8449;
}

.surge-dot {
  background: #6c3483;
}

.mega-link strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.mega-link small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 10px;
  transition: all var(--transition);
}

.header.scrolled .hamburger span {
  background: var(--white);
}

/* =========================================
   SECTION HEADER (shared)
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--cyan);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Dept Cards */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.dept-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dept-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.dept-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.dept-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.dept-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.dept-doctors {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  text-align: left;
}

.dept-doctors li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dept-link {
  margin-top: auto;
  padding: 12px 24px;
  background: rgba(10, 36, 99, 0.05);
  color: var(--navy);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}

/* Pseudo-element to make whole card clickable */
.dept-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.dept-card:hover .dept-link {
  background: var(--navy);
  color: var(--white);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  box-shadow: 0 6px 24px rgba(10, 36, 99, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-light), var(--cyan));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(10, 36, 99, 0.4);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: var(--cyan-pale);
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 180, 216, 0.4);
}

.full-btn {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-sm);
}

/* =========================================
   GRADIENT TEXT
   ========================================= */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  min-height: 380px;
  background: linear-gradient(135deg, #041029 0%, #0a2463 50%, #1a3a7a 100%);
  display: flex;
  align-items: flex-end;
  padding-top: 110px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(0, 180, 216, 0.18) 0%, transparent 55%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero-breadcrumb a {
  color: var(--cyan-light);
}

.page-hero-breadcrumb a:hover {
  color: var(--white);
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--cyan-light);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.75;
}

.page-hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================
   FADE-UP ANIMATION
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ABOUT SECTION (home)
   ========================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
  opacity: 1;
}

.about-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition);
}

.about-card:hover .about-icon {
  transform: scale(1.08);
}

.about-icon--facility {
  background: rgba(10, 36, 99, 0.08);
  color: var(--navy);
}

.about-icon--doctors {
  background: rgba(0, 180, 216, 0.1);
  color: #0077b6;
}

.about-icon--fee {
  background: rgba(244, 162, 97, 0.12);
  color: var(--gold);
}

.about-icon--location {
  background: rgba(30, 132, 73, 0.08);
  color: #1e8449;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================
   DEPARTMENTS SECTION (home)
   ========================================= */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.dept-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.dept-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition);
}

.dept-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.dept-card:hover::after {
  border-color: var(--cyan);
}

.dept-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform var(--transition);
}

.dept-card:hover .dept-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
}

.dept-svg {
  width: 38px;
  height: 38px;
}

.paed-color {
  background: rgba(10, 36, 99, 0.08);
  color: var(--navy);
}

.obgyn-color {
  background: rgba(220, 53, 69, 0.08);
  color: #c0392b;
}

.genmed-color {
  background: rgba(0, 180, 216, 0.1);
  color: #0077b6;
}

.ortho-color {
  background: rgba(39, 174, 96, 0.08);
  color: #1e8449;
}

.surge-color {
  background: rgba(142, 68, 173, 0.08);
  color: #6c3483;
}

.dept-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.dept-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.dept-doctors {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dept-doctors li {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
  padding: 6px 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}

.dept-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dept-link:hover {
  color: var(--cyan);
  gap: 10px;
}

/* =========================================
   DOCTORS SECTION (home)
   ========================================= */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 36, 99, 0.25);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan-pale);
}

.doc-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden; /* Circular clipping */
  position: relative;
}

.doc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paed-gradient {
  background: linear-gradient(135deg, #0a2463, #1a3a7a);
}

.obgyn-gradient {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.genmed-gradient {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
}

.ortho-gradient {
  background: linear-gradient(135deg, #1e8449, #27ae60);
}

.surge-gradient {
  background: linear-gradient(135deg, #6c3483, #8e44ad);
}

.doc-dept-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.paed-dept {
  background: rgba(10, 36, 99, 0.1);
  color: var(--navy);
}

.obgyn-dept {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.genmed-dept {
  background: rgba(0, 119, 182, 0.1);
  color: #0077b6;
}

.ortho-dept {
  background: rgba(30, 132, 73, 0.1);
  color: #1e8449;
}

.surge-dept {
  background: rgba(108, 52, 131, 0.1);
  color: #6c3483;
}

.doc-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.doc-qual {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-style: italic;
}

.doc-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 16px;
}

.doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.doc-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--off-white);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.doctor-card.hidden-card {
  display: none;
}

/* =========================================
   HERO (homepage)
   ========================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #041029 0%, #0a2463 45%, #1a3a7a 80%, #0d3a6e 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 110px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(0, 180, 216, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(0, 119, 182, 0.2) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: var(--cyan-light);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.badge-icon {
  color: var(--cyan);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-badges {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(0, 180, 216, 0.15);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan-light);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.op-fee-card {
  border-color: var(--gold);
}

.op-fee-card .stat-num {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.hero-logo-glow {
  position: relative;
  z-index: 3;
  padding: 30px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.2) 0%, transparent 75%);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-xl);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 180, 216, 0.1);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 180, 216, 0.25);
  animation: pulse-ring 3s ease-out infinite;
}

.hero-ring-1 {
  width: 310px;
  height: 310px;
  animation-delay: 0s;
}

.hero-ring-2 {
  width: 400px;
  height: 400px;
  animation-delay: 0.8s;
}

.hero-ring-3 {
  width: 490px;
  height: 490px;
  animation-delay: 1.6s;
}

.hero-float-card {
  position: absolute;
  background: rgba(10, 36, 99, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 0.85rem;
  animation: float-card 4s ease-in-out infinite;
  z-index: 4;
  box-shadow: 0 8px 32px rgba(10, 36, 99, 0.3);
}

.hero-float-card strong {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-float-card p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.8rem;
}

.hero-float-card .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.25);
  border: 1.5px solid rgba(0, 180, 216, 0.5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Clock icon via CSS */
.fc-icon--clock::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: block;
}

.fc-icon--clock::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 5px solid rgba(255, 255, 255, 0.9);
  transform-origin: bottom center;
  transform: translate(-1px, -90%) rotate(-45deg);
}

/* Phone icon via SVG-like CSS */
.fc-icon--phone::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  display: block;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.9);
}

.card-top {
  top: 60px;
  right: -10px;
  animation-delay: 0.5s;
}

.card-bottom {
  bottom: 80px;
  left: -20px;
  animation-delay: 1.5s;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: .6;
    transform: scale(.95);
  }

  50% {
    opacity: .2;
    transform: scale(1.02);
  }

  100% {
    opacity: .6;
    transform: scale(.95);
  }
}

/* =========================================
   OP FEE HIGHLIGHT
   ========================================= */
.op-highlight {
  background: linear-gradient(135deg, var(--navy), var(--navy-light), #0d6efd);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.op-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 60%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 216, .2) 0%, transparent 65%);
  border-radius: 50%;
}

.op-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.op-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.op-badge-big {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  background: rgba(244, 162, 97, 0.12);
  border: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(244, 162, 97, .5);
  flex-shrink: 0;
}

.op-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.op-info p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 420px;
}

.op-info strong {
  color: var(--gold);
}

/* =========================================
   APPOINTMENT FORM
   ========================================= */
.appt-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.appt-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full-width {
  margin-bottom: 24px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.appt-success {
  background: linear-gradient(135deg, #f0fff4, #e6fffa);
  border: 1px solid #a8d8c4;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 6px 24px rgba(39, 174, 96, .3);
}

.appt-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.appt-success p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.05), rgba(0, 180, 216, 0.1));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
  transition: all var(--transition);
}

.contact-card:hover .contact-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-color: transparent;
  color: var(--white);
  transform: rotate(10deg) scale(1.1);
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-val {
  display: block;
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: 4px;
  font-weight: 500;
  transition: color var(--transition);
}

a.contact-val:hover {
  color: var(--cyan);
}

.contact-sub {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
}

.map-wrap iframe {
  display: block;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-top {
  background: linear-gradient(135deg, #04091a, var(--navy));
  padding: 72px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.footer-brand .footer-logo:hover {
  transform: scale(1.05);
}

.footer-tagline {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  font-weight: 700;
  transition: all var(--transition);
}

.social-btn:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a,
.footer-col p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.6;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--cyan-light);
}

.footer-col p {
  margin-bottom: 8px;
}

.footer-col p strong {
  color: rgba(255, 255, 255, .8);
}

.footer-bottom {
  background: #020b1e;
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
}

.footer-bottom a {
  color: var(--cyan-light);
}



/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 28px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  background-color: #20ba5a;
}

.wa-tooltip {
  position: absolute;
  left: 70px;
  background: #333;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.wa-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float {
  animation: wa-pulse 2s infinite;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }

  .wa-tooltip {
    display: none;
  }
}

/* =========================================
   DEPARTMENT INDIVIDUAL PAGE STYLES
   ========================================= */
.dept-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.dept-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

.dept-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.sidebar-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sidebar-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.sidebar-doc:hover {
  background: rgba(0, 180, 216, 0.08);
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.sidebar-doc-info strong {
  display: block;
  font-size: .85rem;
  color: var(--navy);
}

.sidebar-doc-info span {
  font-size: .75rem;
  color: var(--text-muted);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--transition);
}

.sidebar-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 180, 216, .05);
}

.dept-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.dept-overview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.dept-overview h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.dept-overview p {
  font-size: .98rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.condition-tag {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-mid);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.condition-tag:hover {
  background: rgba(0, 180, 216, .08);
  border-color: var(--cyan);
  color: var(--navy);
}

.condition-tag::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 800;
}

.dept-doctors-full {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.dept-doctors-full h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.doc-profile-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--off-white);
  transition: all var(--transition);
  align-items: flex-start;
}

.doc-profile-card:hover {
  box-shadow: var(--shadow-md);
  background: var(--white);
  border-color: var(--cyan-pale);
}

.doc-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.doc-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doc-profile-info {
  flex: 1;
}

.doc-profile-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.doc-profile-info .qual {
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 4px;
}

.doc-profile-info .role {
  font-size: .9rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 10px;
}

.doc-profile-info p {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.doc-profile-info .regn {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, .04);
  border-radius: 50px;
  display: inline-block;
}

/* Department hero accent bar */
.dept-hero-bar {
  height: 6px;
  border-radius: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* =========================================
   LEGACY PAGE
   ========================================= */
.legacy-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.legacy-intro-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.legacy-intro-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.legacy-intro-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.legacy-intro-text p {
  font-size: .98rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--navy));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, .15);
}

.timeline-year {
  font-size: .75rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.family-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.family-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.family-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}

.family-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.family-card .role-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
}

.family-card .qual {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.family-card p {
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--white), var(--off-white));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform var(--transition);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(-5deg);
}

.value-icon--compassion {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.value-icon--excellence {
  background: rgba(10, 36, 99, 0.08);
  color: var(--navy);
}

.value-icon--afford {
  background: rgba(244, 162, 97, 0.12);
  color: var(--gold);
}

.value-icon--community {
  background: rgba(0, 180, 216, 0.1);
  color: #0077b6;
}

.value-icon--legacy {
  background: rgba(39, 174, 96, 0.08);
  color: #1e8449;
}

.value-icon--innovation {
  background: rgba(108, 52, 131, 0.08);
  color: #6c3483;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.newspaper-quote {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newspaper-quote::before {
  content: '"';
  font-size: 10rem;
  color: rgba(0, 180, 216, .15);
  position: absolute;
  top: -30px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.newspaper-quote p {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.newspaper-quote cite {
  font-size: .85rem;
  color: var(--cyan-light);
  font-weight: 600;
}

/* =========================================
   HEALTH PACKAGES PAGE
   ========================================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.package-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}

.package-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 180, 216, .2);
}

.package-header {
  padding: 28px 28px 20px;
}

.package-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.badge-basic {
  background: rgba(10, 36, 99, .1);
  color: var(--navy);
}

.badge-popular {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--white);
}

.badge-premium {
  background: linear-gradient(135deg, var(--gold), #e8943a);
  color: var(--white);
}

.badge-women {
  background: rgba(192, 57, 43, .1);
  color: #c0392b;
}

.badge-senior {
  background: rgba(39, 174, 96, .1);
  color: #1e8449;
}

.badge-cardiac {
  background: rgba(231, 76, 60, .1);
  color: #e74c3c;
}

.badge-diabetes {
  background: rgba(108, 52, 131, .1);
  color: #6c3483;
}

.package-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.package-header p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.package-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-top: 14px;
}

.package-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.package-body {
  padding: 0 28px 28px;
}

.package-tests {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-tests li {
  font-size: .85rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.package-tests li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 900;
  font-size: .8rem;
  flex-shrink: 0;
}

.featured-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  color: var(--white);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 36px;
  transform: rotate(45deg);
  letter-spacing: .08em;
}

.tpa-section {
  background: var(--navy);
  padding: 60px 0;
}

.tpa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.tpa-badge {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
  font-weight: 600;
  transition: all var(--transition);
}

.tpa-badge:hover {
  background: rgba(0, 180, 216, .15);
  border-color: var(--cyan);
  color: var(--white);
}

/* =========================================
   OPD SERVICES PAGE
   ========================================= */
.opd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.opd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.opd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-pale);
}

.opd-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.opd-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.opd-card p {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.opd-notice {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.opd-notice-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.opd-notice h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.opd-notice p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.7;
}

.opd-tpa-info {
  margin-top: 60px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width:1024px) {
  .dept-detail-grid {
    grid-template-columns: 1fr;
  }

  .dept-sidebar {
    position: static;
  }

  .legacy-intro {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width:768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 100px 0 60px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link {
    display: block;
    font-size: 1.2rem;
    color: var(--white) !important;
    padding: 18px 24px;
    width: 100%;
  }

  .nav-btn {
    background: var(--cyan) !important;
    color: var(--navy) !important;
    margin: 20px auto;
    width: calc(100% - 48px);
    border-radius: var(--radius-sm) !important;
  }

  .mega-dropdown {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    border-radius: 0;
    border: none;
    padding: 0;
    overflow: hidden;
  }

  .has-dropdown.expanded .mega-dropdown {
    display: block;
    animation: slideDownMobile 0.3s ease-out forwards;
  }

  .has-dropdown.expanded .chevron {
    transform: rotate(180deg);
  }

  @keyframes slideDownMobile {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mega-inner {
    gap: 0;
  }

  .mega-link {
    padding: 12px 24px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    justify-content: center;
  }

  .mega-link strong {
    color: var(--white);
  }

  .mega-link small {
    color: rgba(255, 255, 255, .55);
  }

  .mega-link:hover {
    background: rgba(0, 180, 216, .15);
  }

  .has-dropdown:hover .chevron {
    transform: none;
  }

  .hamburger {
    display: flex;
    z-index: 2200;
    position: relative;
  }

  /* Hamburger Animation to X */
  .hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--white);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--white);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc,
  .hero-badges,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .appt-form {
    padding: 32px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .section-padding {
    padding: 60px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .opd-notice {
    flex-direction: column;
    padding: 28px;
  }

  .legacy-intro {
    gap: 32px;
  }

  .legacy-intro-img img {
    height: 260px;
  }
}

@media (max-width:480px) {

  .packages-grid,
  .opd-grid,
  .family-grid {
    grid-template-columns: 1fr;
  }

  .dept-detail-grid {
    gap: 24px;
  }

  .doc-profile-card {
    flex-direction: column;
  }


}
/* =========================================
   SEO ENHANCEMENTS (Trust & Areas)
   ========================================= */
.section-padding-sm {
  padding: 60px 0;
}

/* Insurance Grid */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.ins-logo {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 10px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.ins-logo:hover {
  background: var(--white);
  border-color: var(--cyan);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
  color: var(--cyan);
}

/* Areas Served */
.areas-served {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.areas-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.area-text h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.area-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.area-text strong {
  color: var(--text-mid);
}

@media (max-width: 768px) {
  .insurance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
