/* ============================================
   DR S C SANTRA CLINIC — Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
/* Preconnect for speed; use <link preload> in HTML for full fix */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --primary: #1B5AAF;
  --primary-light: #4A90D9;
  --primary-dark: #0E3A72;
  --primary-bg: #EAF2FB;
  --accent: #E84393;
  --accent-light: #FDE8F3;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --whatsapp: #25D366;
  --call: #4A90D9;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

/* Restore list style inside content areas */
.service-card ul,
.service-card ol,
.faq-answer-inner ul,
.faq-answer-inner ol,
.bio ul,
.bio ol,
div[style*="border-left"] ul {
  list-style: disc;
}

div[style*="border-left"] ol {
  list-style: decimal;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--space-md);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------- Emergency Banner (Redesign) ---------- */
.emergency-banner {
  background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
  padding: 0;
  width: 100%;
  z-index: 1001;
}

.emergency-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.emergency-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.emergency-text {
  font-size: 13px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emergency-text strong {
  font-weight: 700;
}

.emergency-phone {
  color: #FFD700;
  font-weight: 700;
  text-decoration: none;
}

.emergency-phone:hover {
  text-decoration: underline;
}

.emergency-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.banner-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.banner-call-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFD700;
  flex-shrink: 0;
  animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.banner-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.banner-status-badge.open {
  background: #166534;
  color: #dcfce7;
}

.banner-status-badge.closed {
  background: rgba(0, 0, 0, 0.3);
  color: #fef08a;
}

.banner-status-badge .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.banner-status-badge.open .status-dot {
  background: #4ade80;
}

.banner-status-badge.closed .status-dot {
  background: #fef08a;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.nav-logo-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.nav-logo-text span {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
}

.nav-cta .btn,
.nav-cta>* {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Bug #5: hide status badge on medium screens to prevent overflow */
@media (max-width: 1024px) {
  #clinic-status {
    display: none !important;
  }

  #lang-toggle {
    display: none !important;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27, 90, 175, 0.3);
}

/* Removed overridden #2563EB gradients from header CTA */

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 90, 175, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), #20BA5A);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #D63384);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0E3A72 0%, #1B5AAF 40%, #4A90D9 100%);
  padding: 4rem 0 3rem;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 67, 147, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.hero-text h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-text .qualification {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hero-text .specialization {
  font-size: 1.15rem;
  color: #FBD38D;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-text .designation {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
}

.hero-text .location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-card .stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

/* ---------- Section Styles ---------- */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--off-white);
}

.section-blue {
  background: var(--primary-bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-bg);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:has(.service-image) {
  padding: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ---------- Doctor Profile Card ---------- */
.doctor-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.doctor-photo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.doctor-photo {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.doctor-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.doctor-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.doctor-info h2 {
  margin-bottom: 0.25rem;
}

.doctor-info .doc-qualification {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.doctor-info .doc-designation {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.doctor-info .doc-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--success);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.doctor-info .bio {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.doctor-details-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.detail-item .detail-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.detail-item .detail-text {
  font-size: 0.9rem;
}

.detail-item .detail-text strong {
  display: block;
  color: var(--gray-800);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

/* ---------- Timings Table ---------- */
.timings-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.timings-table {
  width: 100%;
  border-collapse: collapse;
}

.timings-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.timings-table th {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timings-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.timings-table tbody tr {
  transition: var(--transition);
}

.timings-table tbody tr:hover {
  background: var(--gray-50);
}

.timings-table tbody tr.today {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
}

.timings-table tbody tr.today td:first-child {
  font-weight: 700;
  color: var(--primary);
}

.timings-table .closed {
  color: var(--danger);
  font-weight: 600;
}

.timings-table .emergency {
  color: var(--warning);
  font-weight: 600;
}

.timings-table .time-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.today-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl);
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.review-card .quote-icon {
  color: var(--primary-bg);
  font-size: 3rem;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: Georgia, serif;
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.review-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-meta h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.review-meta .review-date {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.review-stars {
  color: #FBBF24;
  font-size: 1rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0;
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ---------- Booking Form ---------- */
.booking-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.booking-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.form-group label .required {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(27, 90, 175, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  gap: var(--space-md);
}

.faq-question .faq-icon {
  width: 28px;
  height: 28px;
  background: var(--primary-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question .faq-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ---------- Contact & Map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.contact-item p {
  font-size: 0.95rem;
  color: var(--gray-800);
  font-weight: 500;
  margin-bottom: 0;
}

.contact-item a {
  color: var(--primary);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gray-200);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.footer-brand .footer-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.footer-brand .footer-logo h4 {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.footer-section h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ---------- Floating Buttons ---------- */
.floating-buttons {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.whatsapp {
  background: var(--whatsapp);
  animation: float-pulse 2s ease-in-out infinite;
}

.float-btn.call {
  background: var(--primary);
}

.float-btn .tooltip {
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  background: var(--gray-900);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.float-btn:hover .tooltip {
  opacity: 1;
}

@keyframes float-pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ---------- Page Header Banner ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb .current {
  color: var(--white);
  font-weight: 500;
}

/* ---------- Testimonial Slider (Home) ---------- */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 var(--space-md);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--gray-600);
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ---------- Quick Info Strip ---------- */
.info-strip {
  background: var(--white);
  padding: var(--space-xl) 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-100);
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.info-strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.info-strip-item .info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-strip-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.info-strip-item p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: var(--space-2xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xl);
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* ---------- Clinic Photo ---------- */
.clinic-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.clinic-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ---------- Responsive Breakpoints ---------- */
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .doctor-profile {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.85);
    /* Proper glass effect */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 3rem 0 2rem;
    min-height: auto;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-card .stat-number {
    font-size: 1.3rem;
  }

  .hero-image {
    display: flex;
    margin-top: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .timings-table th,
  .timings-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }

  .floating-buttons {
    bottom: 1rem;
    right: 1rem;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility Classes ---------- */
.text-center {
  text-align: center;
}

/* ---------- UI Fixes & Modifications ---------- */
.nav-links a.btn-primary {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: 0 4px 15px rgba(27, 90, 175, 0.3) !important;
}

.nav-links a.btn-primary:hover {
  background: var(--primary-light) !important;
  color: var(--white) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4) !important;
}

.mb-1 {
  margin-bottom: var(--space-md);
}

.mb-2 {
  margin-bottom: var(--space-xl);
}

/* Bug #5 fix: fadeIn keyframes for form error messages */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bug #9 fix: Focus outline for back-to-top button */
#back-to-top:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---------- Change 1: MTP Badges ---------- */
.mtp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 10px;
  backdrop-filter: blur(4px);
}

.service-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

/* ---------- Change 2: Doctor Photo Upload ---------- */
.doctor-photo-wrapper {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.photo-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: var(--radius-lg);
}

.doctor-photo-wrapper:hover .photo-upload-overlay {
  opacity: 1;
}

/* ---------- Change 3: SVG Placeholders ---------- */
.hero-decoration {
  position: absolute;
  right: -40px;
  bottom: -40px;
  pointer-events: none;
}

.section-alt {
  background-color: var(--off-white);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(27, 90, 175, 0.06) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(232, 67, 147, 0.05) 0%, transparent 50%);
}

/* ---------- Change 4: Timing Notes ---------- */
.timing-note.emergency-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 24px;
  color: #92400E;
}

.badge-open {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* -------- Doctor Profile Card Section -------- */
.doctor-card-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(to bottom,
      var(--primary-bg) 0%,
      #ffffff 100%);
}

.doctor-profile-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(27, 90, 175, 0.1);
}

/* Photo column */
.dpc-photo-col {
  background: linear-gradient(160deg,
      var(--primary-dark) 0%,
      var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
}

.dpc-photo-wrapper {
  position: relative;
  width: 200px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dpc-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.dpc-photo-fallback {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.dpc-mtp-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* Info column */
.dpc-info-col {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dpc-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}

.dpc-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--gray-900);
  margin: 8px 0 4px;
  line-height: 1.1;
}

.dpc-qual {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

.dpc-spec {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 4px 0 0;
}

.dpc-specializations {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dpc-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.dpc-spec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.dpc-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
}

.dpc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: var(--primary-bg);
  border-right: 1px solid var(--gray-100);
}

.dpc-stat:last-child {
  border-right: none;
}

.dpc-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.dpc-stat-label {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dpc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dpc-btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- RESPONSIVE: Doctor Card ---- */
@media (max-width: 768px) {
  .doctor-profile-card {
    grid-template-columns: 1fr;
  }

  .dpc-photo-col {
    padding: 28px 24px 20px;
  }

  .dpc-photo-wrapper {
    width: 150px;
    height: 180px;
  }

  .dpc-info-col {
    padding: 24px 20px 24px;
    gap: 16px;
  }

  .dpc-actions {
    flex-direction: column;
  }

  .dpc-btn {
    width: 100%;
    min-width: unset;
    flex: unset;
  }
}

@media (max-width: 480px) {
  .dpc-name {
    font-size: 1.25rem;
  }

  .dpc-stats {
    gap: 0;
  }

  .dpc-stat-num {
    font-size: 1.2rem;
  }
}

/* ============================================
   RESPONSIVE FIXES — Dr S.C. Santra Clinic
   ============================================ */

/* ---------- BASE: prevent horizontal scroll ---------- */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ---------- EMERGENCY BANNER ---------- */
@media (max-width: 640px) {
  .emergency-text {
    display: none;
  }

  .emergency-banner-inner {
    justify-content: space-between;
    padding: 0 16px;
  }
}

@media (max-width: 380px) {
  .banner-call-btn span {
    display: none;
  }

  .banner-call-btn {
    padding: 6px 10px;
  }
}

/* ---------- NAVBAR ---------- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .logo-name {
    font-size: 13px;
  }

  .logo-sub {
    display: none;
  }

  .nav-cta .btn-primary {
    display: none;
  }
}

@media (max-width: 480px) {

  .header .container,
  .navbar {
    padding: 0 12px;
  }
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  padding: clamp(60px, 10vw, 120px) 0;
}

@media (max-width: 767px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .mtp-badge {
    margin: 10px auto 0;
  }
}

/* Hero stat cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px 18px;
  }

  .stat-card .stat-num {
    font-size: 1.5rem;
    white-space: nowrap;
  }
}

/* ---------- QUICK INFO STRIP ---------- */
.quick-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

@media (max-width: 480px) {
  .quick-info {
    grid-template-columns: 1fr;
  }
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 540px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Service cards: enforce consistent height + no clipping */
.service-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  overflow: visible !important;
  min-height: 220px !important;
}

.service-card h3 {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.service-card p {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  flex: 1;
}

/* ---------- DOCTOR PROFILE TEASER (existing section) ---------- */
.doctor-section .container,
.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {

  .doctor-section .container,
  .about-preview .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-section img,
  .about-preview img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
}

/* ---------- TIMINGS TABLE ---------- */
.timings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.timings-table th,
.timings-table td {
  padding: clamp(8px, 2vw, 14px) clamp(10px, 2vw, 20px);
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .timings-preview-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .timings-table {
    min-width: 480px;
  }
}

/* ---------- TESTIMONIAL SLIDER ---------- */
@media (max-width: 600px) {
  .review-card {
    padding: 20px 16px;
  }

  .review-text {
    font-size: 0.875rem;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 10px;
}

.faq-question {
  font-size: clamp(0.875rem, 2vw, 1rem);
  padding: clamp(14px, 3vw, 20px) clamp(16px, 3vw, 24px);
}

.faq-answer {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  padding: 0 clamp(16px, 3vw, 24px) clamp(14px, 3vw, 20px);
}

/* ---------- CTA BANNER ---------- */
.cta-section .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-section .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ---------- FOOTER ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ---------- FLOATING ACTION BUTTONS ---------- */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

@media (max-width: 480px) {
  .floating-buttons {
    bottom: 16px;
    right: 14px;
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
  }
}

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
}

@media (max-width: 480px) {
  #back-to-top {
    bottom: 16px;
    left: 14px;
  }
}

/* ---------- LOCAL SEO BAR ---------- */
.seo-bar {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  padding: 10px clamp(16px, 4vw, 48px);
  overflow-x: hidden;
  white-space: normal;
  line-height: 1.6;
}

/* ---------- SECTION HEADINGS ---------- */
.section-title {
  font-size: clamp(1.4rem, 4vw, 2.25rem);
}

.section-subtitle {
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ---------- BUTTONS GLOBAL SAFETY ---------- */
.btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .btn {
    font-size: 0.8rem;
    padding: 10px 18px;
  }
}

/* ---------- BOOKING FORM RESPONSIVENESS ---------- */
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Full-width fields */
.booking-form .form-group:has(textarea),
.booking-form .form-group:has(select[name="reason"]),
.booking-form .form-group.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-form .form-group {
    grid-column: 1;
  }
}

.form-control {
  width: 100%;
  font-size: clamp(0.875rem, 2vw, 1rem);
  padding: 12px 16px;
}

/* ---------- TYPOGRAPHY FLUID SCALING OVERRIDES ---------- */
h1 {
  font-size: clamp(1.8rem, 5vw, 3rem) !important;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.25rem) !important;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
}

p,
li {
  font-size: clamp(0.875rem, 2vw, 1rem) !important;
}

.hero-name {
  font-size: clamp(2rem, 6vw, 3.5rem) !important;
}

/* ---------- ADDITIONAL FIXES ---------- */

/* FIX A: Margin Bottom Fixes */
.mb-1 {
  margin-bottom: 0.25rem !important;
  margin-top: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
  margin-top: 0 !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
  margin-top: 0 !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
}



/* FIX D: Smooth scrolling */
html {
  scroll-behavior: smooth !important;
}

/* FIX 1 CSS: Services hero Banner */
.services-hero-banner {
  background: linear-gradient(135deg, #1B5AAF 0%, #4A90D9 100%);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.shb-stethoscope {
  flex-shrink: 0;
  opacity: 0.6;
}

.shb-content {
  flex: 1;
  min-width: 0;
}

.shb-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.2;
}

.shb-subtitle {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 14px;
  line-height: 1.5;
}

.shb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shb-pill {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Mobile: hide stethoscope icon, reduce padding */
@media (max-width: 480px) {
  .services-hero-banner {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .shb-stethoscope {
    display: none;
  }

  .shb-pills {
    gap: 6px;
  }
}

/* FIX 2: Service Badge */
.service-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 10px;
  align-self: flex-start;
  white-space: nowrap;
}

/* FIX 3: View All Services Button Outline */
.btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 32px !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.btn-outline:hover {
  background: var(--primary) !important;
  color: white !important;
}

/* ============================================
   BUSINESS CARD COMPONENT 
   ============================================ */
.visiting-card-wrapper {
  padding: 60px 20px;
  background: var(--off-white);
  display: flex;
  justify-content: center;
}

.visiting-card {
  position: relative;
  width: 100%;
  max-width: 650px;
  background: #fdfdfd;
  margin: 0 auto;
  aspect-ratio: 1.75;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .visiting-card {
    aspect-ratio: auto;
    min-height: 480px;
    max-width: 400px;
  }
}

.vc-top-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 23%;
  background: #2e3e81;
  /* Deep blue from card */
  clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
  z-index: 1;
}

@media (max-width: 640px) {
  .vc-top-shape {
    height: 18%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.vc-bottom-shape-black {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 35%;
  background: #111;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

.vc-bottom-shape-blue {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 45%;
  background: #2e3e81;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

@media (max-width: 640px) {
  .vc-bottom-shape-black {
    width: 100%;
    height: 15%;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
  }

  .vc-bottom-shape-blue {
    width: 100%;
    height: 12%;
    clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  }
}

.vc-content {
  position: relative;
  z-index: 3;
  padding: 4% 6%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vc-header {
  height: 15%;
  display: flex;
  align-items: center;
}

.vc-name {
  color: white;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.5px;
  /* Anaglyph edge effect from the photo */
  text-shadow: -1px 0px 0px #ff6b6b, 1px 0px 0px #4d88ff;
}

.vc-body {
  display: flex;
  margin-top: 5%;
  flex: 1;
}

@media (max-width: 640px) {
  .vc-body {
    flex-direction: column;
    margin-top: 15%;
  }
}

.vc-left {
  flex: 0 0 65%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.vc-qual {
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 2px;
  color: #222;
}

.vc-title {
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-style: italic;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  line-height: 1.35;
}

.vc-contact {
  margin-bottom: 12px;
}

.vc-contact p {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
}

.vc-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  background: #2e3e81;
  color: white;
  border-radius: 50%;
  font-size: 8px;
  box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

.vc-email p {
  font-size: clamp(0.7rem, 2vw, 0.95rem);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
}

.vc-email span {
  font-size: 12px;
  color: #d32f2f;
}

.vc-address p {
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
  color: #222;
}

.vc-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
}

@media (max-width: 640px) {
  .vc-right {
    order: -1;
    margin-top: -30px;
    margin-bottom: 20px;
    align-items: center;
  }
}

.vc-caduceus {
  width: 85%;
  max-width: 140px;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.25));
}

/* Business Card Share Button */
.vc-share-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #2e3e81;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vc-share-btn:hover {
  background: #f0f4f8;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .vc-share-btn {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   MOBILE CRITICAL FIXES — NAV, BANNER, FAQ
   ============================================================ */

/* FIX 1: Emergency banner — always visible */
.emergency-banner {
  position: relative;
  z-index: 1100 !important;
  display: block !important;
  overflow: visible !important;
}

/* FIX 2: Nav overlay above sticky header */
@media (max-width: 767px) {
  .nav-links {
    z-index: 1200 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(10, 22, 50, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 5rem 2rem 3rem !important;
    overflow-y: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateX(0) !important;
    pointer-events: all !important;
  }

  .nav-links a {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 2.5rem !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 12px !important;
    transition: background 0.2s;
    text-decoration: none !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .nav-links .btn-primary {
    background: var(--primary) !important;
    color: white !important;
    width: 80% !important;
    margin-top: 0.5rem !important;
  }

  .hamburger {
    display: flex !important;
    z-index: 1300 !important;
    position: relative !important;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* FIX 3: FAQ accordion — no padding leak when closed */
.faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s ease !important;
  padding: 0 !important;
  font-size: inherit !important;
}

.faq-item.active .faq-answer {
  max-height: 600px !important;
}

/* FIX 4: Header z-index stays below nav overlay */
.header {
  z-index: 1000 !important;
}