/*
Theme Name: Dr. Jyoti Mishra Dental Clinic
Theme URI: https://drjyotimishra.in
Author: Dr. Jyoti Mishra Dental Care
Author URI: https://drjyotimishra.in
Description: Fast, SEO-optimized, fully responsive, bilingual (English & Hindi) oral & dental surgery clinic theme for Dr. Jyoti Mishra (BDS) at Red Heart Super Speciality Clinic, Rewa (M.P.).
Version: 2.7.1
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dr-jyoti-dental
*/

/* ==========================================================================
   Dr. Jyoti Mishra - Oral & Dental Surgeon (BDS)
   Red Heart Super Speciality Clinic, Rewa (M.P.)
   Complete Mobile-First Responsive & Retina-Sharp Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-dark: #075985;
  
  --secondary: #0d9488;
  --secondary-light: #ccfbf1;
  
  --success: #16a34a;
  --whatsapp: #25d366;
  --whatsapp-hover: #1eb853;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hi: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body.lang-hi {
  font-family: var(--font-hi);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: auto;
  height: auto;
  max-width: none;
}

.btn .svg-icon {
  margin-right: 0.15rem;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  touch-action: manipulation;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #ffffff;
}

.btn-call {
  background-color: #0284c7;
  color: #ffffff;
}

.btn-call:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.btn-lg {
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ================= TOPBAR ================= */
.topbar {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-link {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.topbar-link:hover {
  color: #38bdf8;
}

.topbar-timings {
  color: #94a3b8;
}

/* Clean Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 2px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ================= HEADER & NAVBAR ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
  line-height: 1;
}

/* ================= HERO SECTION ================= */
.hero {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.75rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.highlight-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Doctor Hero Card with Real Image */
.doctor-hero-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}

.doctor-photo-frame {
  width: 100%;
  max-width: 280px;
  height: 310px;
  margin: 0 auto 1.25rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px solid #ffffff;
  background-color: #f1f5f9;
}

.doctor-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.doctor-hero-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.doctor-hero-card .degrees {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.doctor-hero-card .clinic-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.clinic-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
}

/* ================= SECTION COMMON STYLING ================= */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #f1f5f9;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ================= ABOUT SECTION ================= */
.about-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.about-photo-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-height: 380px;
  background-color: #f1f5f9;
}

.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-feature-item {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.about-feature-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.about-feature-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ================= SERVICES / TREATMENTS GRID ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.service-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ================= BOOKING & GOOGLE FORM SECTION ================= */
.booking-section {
  background-color: #ffffff;
}

.booking-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.booking-sidebar {
  background-color: #0f172a;
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-sidebar h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.booking-sidebar .clinic-subtitle {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.booking-sidebar p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.booking-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.booking-info-item svg {
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 2px;
}

.booking-info-item h4 {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
}

.booking-info-item p {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0;
}

.google-form-container {
  padding: 2rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.google-form-container h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.google-form-container p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.google-form-frame-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #fafafa;
}

.google-form-frame-wrapper iframe {
  width: 100%;
  min-height: 650px;
  border: none;
  display: block;
}

/* ================= CONTACT & TIMINGS ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-buttons-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timings-table {
  width: 100%;
  border-collapse: collapse;
}

.timings-table td {
  padding: 0.65rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}

.timings-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--primary);
}

/* ================= REVIEWS SECTION ================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.review-treatment {
  font-size: 0.75rem;
  color: var(--primary);
}

/* ================= STICKY MOBILE BAR ================= */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}




/* ================= CUSTOM CURSOR ANIMATION ================= */
@media (pointer: fine) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.22s ease, height 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
  }

  .custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary, #0284c7);
    margin-top: -4px;
    margin-left: -4px;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.7);
  }

  .custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(2, 132, 199, 0.55);
    background-color: rgba(2, 132, 199, 0.04);
    margin-top: -18px;
    margin-left: -18px;
    backdrop-filter: blur(0.5px);
  }

  .custom-cursor-ring.cursor-hover {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    margin-left: -26px;
    border-color: rgba(2, 132, 199, 0.95);
    background-color: rgba(2, 132, 199, 0.12);
    box-shadow: 0 0 22px rgba(2, 132, 199, 0.3);
  }

  .custom-cursor-dot.cursor-dot-hover {
    width: 10px;
    height: 10px;
    margin-top: -5px;
    margin-left: -5px;
    background-color: #0369a1;
  }

  .custom-cursor-ring.cursor-active {
    width: 28px;
    height: 28px;
    margin-top: -14px;
    margin-left: -14px;
    background-color: rgba(2, 132, 199, 0.25);
    border-color: #0284c7;
  }
}

@media (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}


/* ================= ARTICLE & BLOG STYLES ================= */
.article-page-wrapper,
.blog-archive-wrapper,
.generic-page-wrapper {
  padding: 3rem 0 5rem 0;
  background-color: var(--bg-page);
  min-height: 70vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

.article-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}

.article-breadcrumbs a:hover {
  text-decoration: underline;
}

.bc-sep {
  color: #94a3b8;
}

.bc-current {
  color: var(--text-muted);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-container {
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3.25rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.article-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.article-meta-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.author-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.author-details {
  flex: 1;
  min-width: 200px;
}

.author-name {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1.05rem;
}

.author-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.article-meta-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.meta-dot {
  color: #cbd5e1;
}

/* Article Body Typography */
.article-body {
  font-size: 1.075rem;
  line-height: 1.85;
  color: #334155;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Responsive Table Wrapper & Overflow Prevention */
.table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.table-responsive-wrapper::-webkit-scrollbar {
  height: 6px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

.table-responsive-wrapper table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  margin: 0;
}

/* Fallback for unwrapped tables */
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.75rem 0;
}

.table-responsive-wrapper table {
  display: table;
  margin: 0;
}

.article-body th,
.article-body td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.925rem;
  vertical-align: top;
}

.article-body th {
  background-color: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f8fafc;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.article-body code {
  max-width: 100%;
  word-break: break-word;
}

.article-body iframe,
.article-body video,
.article-body embed {
  max-width: 100%;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
  line-height: 1.35;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
}

.article-body strong {
  color: var(--text-main);
}

.article-callout {
  background: #f0fdf4;
  border-left: 4px solid var(--success);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-size: 1rem;
  color: #166534;
}

.article-callout-blue {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-size: 1rem;
  color: #075985;
}

.article-lang-switch {
  display: flex;
  gap: 0.75rem;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}

.article-lang-pill {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.article-lang-pill.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.article-doctor-card {
  margin-top: 3.5rem;
  padding: 2rem 2.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.doc-card-photo img {
  width: 125px;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid #ffffff;
}

.doc-card-info {
  flex: 1;
}

.doc-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.doc-card-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.doc-card-clinic {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.doc-card-bio {
  font-size: 0.925rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.25rem;
}

.doc-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-back-link {
  margin-top: 2rem;
  text-align: center;
}

/* Blog Archive Grid */
.blog-archive-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.blog-header-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.blog-archive-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.blog-archive-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-tag {
  color: var(--primary);
  font-weight: 700;
}

.blog-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.blog-card-title a {
  color: var(--text-main);
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

.blog-author-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
}

.blog-author-mini img {
  border-radius: 50%;
}

@media (max-width: 768px) {
  .article-container {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-md);
  }
  .article-title {
    font-size: 1.55rem;
    line-height: 1.35;
    word-break: break-word;
  }
  .article-author-bar {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }
  .author-details {
    min-width: 130px;
  }
  .article-doctor-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.15rem;
  }
  .table-responsive-wrapper {
    margin: 1.25rem 0;
  }
  .doc-card-actions {
    justify-content: center;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= DOCTOR'S MESSAGE ================= */
.doctor-msg-wrapper {
  margin-top: 3.5rem;
}

.doctor-msg-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  background-image: radial-gradient(circle at 100% 0%, rgba(2, 132, 199, 0.04) 0%, transparent 60%);
}

.doctor-msg-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.doctor-msg-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doctor-msg-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.doctor-msg-salutation {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.doctor-msg-body p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.doctor-msg-signoff {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
}

.doctor-msg-closing {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.doctor-msg-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.doctor-msg-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bilingual switching rules */
body.lang-hi .msg-lang-en {
  display: none !important;
}

body.lang-hi .msg-lang-hi {
  display: block !important;
}

body:not(.lang-hi) .msg-lang-en {
  display: block !important;
}

body:not(.lang-hi) .msg-lang-hi {
  display: none !important;
}

/* ================= FAQ ACCORDION ================= */
.faq-section {
  padding: 4.5rem 0;
  background-color: var(--bg-page);
}

.faq-container {
  max-width: 920px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-summary {
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
  list-style: none;
  transition: background-color 0.2s;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary:hover {
  background-color: #f8fafc;
}

.faq-q-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.faq-q-en {
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.faq-q-hi {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.2s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  padding: 0 1.35rem 1.25rem 1.35rem;
  border-top: 1px solid #f1f5f9;
  background-color: #fafbfc;
}

.faq-ans-block {
  padding-top: 0.95rem;
}

.faq-ans-en {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.faq-ans-hi {
  color: #334155;
  font-size: 0.935rem;
  line-height: 1.7;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--primary);
  background-color: rgba(2, 132, 199, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.faq-cta-box {
  margin-top: 2.75rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.faq-cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.faq-cta-box p {
  color: #e0f2fe;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.faq-cta-box .faq-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ================= FOOTER ================= */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem 0;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h2 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */

/* Tablets & Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-badge {
    align-self: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-highlights {
    justify-content: center;
  }
  .about-box {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .about-photo-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }
  .booking-wrapper {
    grid-template-columns: 1fr;
  }
  .booking-sidebar {
    padding: 2rem;
  }
  .google-form-container {
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile & Small Tablets (max-width: 860px) */
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .btn-nav-cta {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 64px;
  }
}

/* Phones (max-width: 640px) */
@media (max-width: 640px) {
  .doctor-msg-wrapper {
    margin-top: 2.25rem;
  }
  .doctor-msg-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .doctor-msg-title {
    font-size: 1.25rem;
  }
  .doctor-msg-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  .faq-section {
    padding: 3rem 0;
  }
  .faq-summary {
    padding: 1rem;
    gap: 0.75rem;
  }
  .faq-q-en {
    font-size: 0.95rem;
  }
  .faq-q-hi {
    font-size: 0.875rem;
  }
  .faq-answer {
    padding: 0 1rem 1.15rem 1rem;
  }
  .faq-cta-box {
    padding: 1.5rem 1.25rem;
  }

  .hero {
    padding: 2.5rem 0;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .hero-highlights {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .highlight-num {
    font-size: 1.35rem;
  }
  .about-features-list {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .topbar-hide-xs {
    display: none;
  }
  .topbar-hide-sm {
    display: none;
  }
  .contact-card {
    padding: 1.25rem;
  }
  .google-form-container {
    padding: 1rem;
  }
  .google-form-frame-wrapper iframe {
    min-height: 580px;
  }
}
