/* ===================================================================
   SAROJINI HEALTH CENTRE — LUXURY INTERACTIVE MEDICAL JOURNAL & BOOK
   Location: Nagasandra, Bengaluru, Karnataka, India
   Theme: Emerald Green Leather, Champagne Gold Foil & Ivory Deckled Paper
   =================================================================== */

:root {
  /* Royal Emerald Palette */
  --emerald-950: #042018;
  --emerald-900: #063226;
  --emerald-850: #083c2e;
  --emerald-800: #0a4636;
  --emerald-700: #0d5c46;
  --emerald-600: #127459;
  --emerald-500: #1b906f;
  --emerald-400: #2fb48e;
  --emerald-300: #76d4b8;
  --emerald-200: #b5e8d8;
  --emerald-100: #dcf3ea;
  --emerald-50:  #edf9f4;

  /* Champagne & Regal Gold Leaf */
  --gold-800: #7a5a1f;
  --gold-700: #936f2a;
  --gold-600: #b08738;
  --gold-500: #c99f48;
  --gold-400: #dcba69;
  --gold-300: #ebd394;
  --gold-200: #f5e6bd;
  --gold-100: #faf2dc;
  --gold-50:  #fdfaf2;

  /* Cream, Deckled Vellum & Warm Editorial Paper */
  --paper-base:    #fbf9f4;
  --paper-surface: #f5f2e9;
  --paper-warm:    #eee9dc;
  --paper-border:  #e2dbcc;
  --slate-900: #121916;
  --slate-800: #1c2622;
  --slate-700: #2d3b35;
  --slate-600: #4a5c54;
  --slate-500: #6a7d75;
  --slate-400: #95a59e;
  --slate-300: #c5d0cb;
  --slate-200: #e2e8e5;
  --white: #ffffff;

  /* Accent & Action Colors */
  --whatsapp-green: #25d366;
  --whatsapp-dark:  #128c7e;
  --alert-red: #c53030;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-kannada: 'Noto Sans Kannada', var(--font-sans);

  /* Shadows & Book Depths */
  --shadow-book-spine: inset 24px 0 36px -12px rgba(0, 0, 0, 0.45);
  --shadow-book-outer: 0 28px 70px -15px rgba(2, 22, 16, 0.65), 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-page-edge: 5px 0 15px -3px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 10px 30px -4px rgba(6, 50, 38, 0.08), 0 3px 10px -2px rgba(6, 50, 38, 0.04);
  --shadow-hover: 0 20px 45px -8px rgba(6, 50, 38, 0.16);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-page: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--emerald-950);
  color: var(--slate-800);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--gold-500);
  color: var(--emerald-950);
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ================= Gilded Top Header ================= */
.book-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(4, 32, 24, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 159, 72, 0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.book-header-inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 100%;
}

/* Brand Identity - Prominent Complete Official Logo (Pink Hand, DNA Helix, Green Bar, Full Text) */
.book-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-card {
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 5px 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-logo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

.header-original-logo {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

/* Mobile Drawer Brand */
.mobile-drawer-brand {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--paper-border);
  margin-bottom: 0.5rem;
}

.mobile-logo-card {
  background: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 5px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--paper-border);
}

.mobile-original-logo {
  height: 48px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
}

/* Footer / Colophon Brand */
.footer-logo-card {
  background: #ffffff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 6px 14px;
  margin-bottom: 1.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--paper-border);
}

.footer-original-logo {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

/* Navigation Links (Chapter Ribbons - Strict Horizontal Alignment) */
.book-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.book-nav-list,
.book-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-300);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.book-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.book-nav-link:hover,
.book-nav-link.active {
  color: var(--gold-300);
}

.book-nav-link:hover::after,
.book-nav-link.active::after {
  width: 75%;
}

/* Header CTAs */
.book-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-header-call {
  background: rgba(201, 159, 72, 0.12);
  border: 1px solid rgba(201, 159, 72, 0.4);
  color: var(--gold-300);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.btn-header-call:hover {
  background: rgba(201, 159, 72, 0.25);
  color: var(--white);
  border-color: var(--gold-300);
}

.btn-header-wa {
  background: var(--whatsapp-green);
  color: var(--white);
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  white-space: nowrap;
}

.btn-header-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.mobile-book-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-300);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* Mobile Nav Drawer */
.mobile-book-nav {
  position: fixed;
  top: 74px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 74px);
  background: var(--emerald-950);
  padding: 2rem 1.75rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  transition: left var(--transition-smooth);
  z-index: 999;
  border-top: 1px solid rgba(201, 159, 72, 0.25);
}

.mobile-book-nav.open {
  left: 0;
}

.mobile-book-nav .book-nav-link {
  font-size: 1.1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.mobile-drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 159, 72, 0.3);
}

/* ================= The Grand Medical Book Stage ================= */
.book-stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 108px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
  background: radial-gradient(circle at 50% 30%, #063a2c 0%, #042018 75%, #02120e 100%);
  overflow: hidden;
}

/* Ambient 3D Three Canvas Layer */
#three-hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.book-stage-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201, 159, 72, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 2;
}

/* Master Book Frame */
.medical-book {
  position: relative;
  width: 94%;
  max-width: 1380px;
  height: calc(100vh - 196px);
  min-height: 600px;
  background: var(--paper-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-book-outer);
  z-index: 3;
  transform-style: preserve-3d;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--paper-border);
}

/* Decorative Book Spine Layer on Left */
.medical-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 22px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  z-index: 50;
  pointer-events: none;
}

/* Page Stack Effect on Right */
.medical-book::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  background: repeating-linear-gradient(to right, #e8e2d4, #e8e2d4 2px, #f7f4ec 2px, #f7f4ec 4px);
  border-left: 1px solid #dcd4c2;
  z-index: 50;
  pointer-events: none;
}

/* ================= Individual Book Pages ================= */
.book-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--paper-base);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  display: none;
  opacity: 0;
  transition: transform var(--transition-page), opacity var(--transition-page);
  z-index: 5;
}

.book-page.page-active {
  display: block;
  opacity: 1;
  z-index: 10;
  transform: rotateY(0deg);
}

.book-page.turning-forward-out {
  display: block;
  transform-origin: left center;
  animation: pageTurnForwardOut var(--transition-page) forwards;
  z-index: 20;
}

.book-page.turning-backward-out {
  display: block;
  transform-origin: right center;
  animation: pageTurnBackwardOut var(--transition-page) forwards;
  z-index: 20;
}

.book-page.turning-in {
  display: block;
  animation: pageTurnIn var(--transition-page) forwards;
  z-index: 15;
}

@keyframes pageTurnForwardOut {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.85);
  }
  100% {
    transform: rotateY(-110deg) scale(0.96);
    opacity: 0;
    filter: brightness(0.7);
  }
}

@keyframes pageTurnBackwardOut {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.85);
  }
  100% {
    transform: rotateY(110deg) scale(0.96);
    opacity: 0;
    filter: brightness(0.7);
  }
}

@keyframes pageTurnIn {
  0% {
    opacity: 0;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Internal Scroll Container for Each Page */
.book-page-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3rem 3.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-400) var(--paper-warm);
}

.book-page-scroll::-webkit-scrollbar {
  width: 6px;
}
.book-page-scroll::-webkit-scrollbar-track {
  background: var(--paper-warm);
}
.book-page-scroll::-webkit-scrollbar-thumb {
  background-color: var(--gold-400);
  border-radius: 4px;
}

/* ================= PAGE 1: FRONT COVER ================= */
.book-page-cover {
  background: radial-gradient(circle at 20% 30%, #083c2e 0%, #042018 70%);
  color: var(--white);
  padding: 0;
}

.book-page-cover .book-page-scroll {
  padding: 3.5rem 4rem;
  display: flex;
  align-items: center;
}

.cover-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.cover-badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(201, 159, 72, 0.15);
  border: 1px solid rgba(201, 159, 72, 0.45);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  margin-bottom: 1.25rem;
}

.pulse-dot-247 {
  width: 8px;
  height: 8px;
  background-color: var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-400);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cover-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-intro {
  font-size: 1.1rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 640px;
}

.cover-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cover-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 159, 72, 0.22);
}

.cover-metric strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--gold-300);
  line-height: 1;
}

.cover-metric span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-300);
  font-weight: 600;
}

/* Cover Photographic Slideshow Frame */
.cover-visual-col {
  position: relative;
}

.cover-slideshow-frame {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(201, 159, 72, 0.38);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  background-color: var(--emerald-950);
}

.cover-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.cover-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.cover-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.cover-slide.active .cover-slide-img {
  transform: scale(1.06);
}

.cover-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 32, 24, 0.92) 0%, rgba(4, 32, 24, 0.2) 55%, transparent 100%);
  pointer-events: none;
}

.cover-slide-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: var(--white);
  z-index: 2;
}

.cover-caption-sub {
  font-size: 0.78rem;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.cover-caption-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.3;
}

/* Slideshow Controls */
.cover-slideshow-nav {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

.cover-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(4, 32, 24, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 159, 72, 0.4);
  color: var(--gold-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.cover-nav-arrow:hover {
  background: var(--gold-500);
  color: var(--emerald-950);
}

.cover-slideshow-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 10;
}

.cover-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cover-dot.active {
  background: var(--gold-400);
  width: 22px;
  border-radius: 6px;
}

/* ================= EDITORIAL CHAPTER HEADER ================= */
.chapter-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.chapter-number-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-700);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.95rem;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.chapter-subtitle {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ================= PAGE 2: ABOUT US CHAPTER ================= */
.about-journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-journal-lead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--emerald-800);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-journal-body p {
  font-size: 0.98rem;
  color: var(--slate-700);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.about-pillar-box {
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-left: 3.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.about-pillar-box i {
  color: var(--emerald-700);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.about-pillar-box strong {
  display: block;
  font-size: 0.95rem;
  color: var(--emerald-950);
  margin-bottom: 0.25rem;
}

.about-pillar-box p {
  font-size: 0.84rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

.about-media-col {
  position: relative;
}

.about-media-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--white);
}

.about-media-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-trust-badge {
  position: absolute;
  top: -1.25rem;
  right: -1.25rem;
  background: var(--emerald-900);
  border: 2px solid var(--gold-400);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.about-trust-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-300);
  line-height: 1;
}

.about-trust-badge span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-300);
}

/* ================= PAGE 2: CLINICAL FACILITIES ================= */
.facilities-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.facility-book-plate,
.facility-journal-card {
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.facility-book-plate:hover,
.facility-journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--gold-400);
}

.facility-plate-media,
.facility-img-frame {
  position: relative;
  height: 210px;
  width: 100%;
  background-color: var(--emerald-950);
  overflow: hidden;
  cursor: pointer;
}

.facility-plate-media img,
.facility-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.facility-book-plate:hover .facility-plate-media img,
.facility-journal-card:hover .facility-img-frame img {
  transform: scale(1.04);
}

.facility-plate-tag,
.facility-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(4, 32, 24, 0.9);
  backdrop-filter: blur(6px);
  color: var(--gold-300);
  border: 1px solid rgba(201, 159, 72, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.facility-plate-overlay,
.facility-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 32, 24, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.75rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.facility-book-plate:hover .facility-plate-overlay,
.facility-journal-card:hover .facility-img-overlay {
  opacity: 1;
}

.facility-plate-content,
.facility-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-plate-title,
.facility-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.facility-plate-kannada,
.facility-kannada-tag {
  font-family: var(--font-kannada);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-700);
  margin-bottom: 0.5rem;
}

.facility-plate-summary,
.facility-summary {
  font-size: 0.84rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.facility-feature-bullets,
.facility-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  flex-grow: 1;
}

.facility-feature-bullets li,
.facility-bullets li {
  font-size: 0.8rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.facility-feature-bullets li i,
.facility-bullets li i {
  color: var(--gold-600);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.facility-plate-actions,
.facility-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--paper-border);
}

/* ================= PAGE 3: SPECIALITY DEPARTMENTS ================= */
.departments-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.dept-journal-entry {
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.dept-journal-entry:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.dept-entry-header,
.dept-header-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.dept-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.dept-journal-entry:hover .dept-icon-box {
  background: var(--emerald-900);
  color: var(--gold-300);
}

.dept-code-pill,
.dept-entry-code {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.25rem;
  display: inline-block;
}

.dept-name-title,
.dept-entry-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.25;
  margin: 0;
}

.dept-sub-label {
  font-size: 0.72rem;
  color: var(--emerald-700);
  font-weight: 600;
  display: block;
  margin-top: 0.15rem;
}

.dept-entry-desc {
  font-size: 0.83rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.dept-faculty-lead,
.dept-faculty-wrap {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--paper-border);
  margin-bottom: 0.85rem;
}

.dept-faculty-lead strong,
.dept-faculty-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--emerald-800);
  margin-bottom: 0.4rem;
}

.dept-faculty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.doc-chip,
.dept-doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper-surface);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem 0.25rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald-950);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.doc-chip:hover,
.dept-doc-pill:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-300);
}

.doc-chip img,
.dept-doc-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-400);
  flex-shrink: 0;
}

.dept-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

/* ================= CHAPTER IV: SPECIALIST DOCTORS ================= */
.doctors-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.doctor-portrait-card {
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  width: 100%;
}

.doctor-portrait-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--gold-400);
}

.doc-portrait-frame {
  position: relative;
  height: 220px;
  width: 100%;
  background-color: var(--emerald-950);
  overflow: hidden;
  cursor: pointer;
}

.doc-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.doctor-portrait-card:hover .doc-portrait-frame img {
  transform: scale(1.04);
}

.doc-portrait-glaze {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 32, 24, 0.5) 0%, transparent 40%);
  pointer-events: none;
}

.doc-dept-banner {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(4, 32, 24, 0.9);
  backdrop-filter: blur(6px);
  color: var(--gold-300);
  border: 1px solid rgba(201, 159, 72, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  max-width: calc(100% - 1.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.doc-portrait-info {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doc-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.doc-title-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1.3;
  margin: 0;
}

.doc-name-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.doc-name-link:hover {
  color: var(--emerald-700);
}

.verified-badge {
  color: var(--gold-600);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.doc-speciality-line {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-700);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.doc-qual-ribbon {
  background: var(--paper-surface);
  border-left: 3px solid var(--gold-500);
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.doc-qual-ribbon i {
  color: var(--gold-700);
}

.doc-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.doc-pill-reg,
.doc-pill-exp {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doc-pill-reg {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-900);
}

.doc-pill-exp {
  background: var(--gold-50);
  border: 1px solid var(--gold-300);
  color: var(--gold-800);
}

.doc-card-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--paper-border);
}

.doc-designation-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-800);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.doc-pill-achievement {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.modal-doctor-designation {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--emerald-800);
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-achievement-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin-top: 1rem;
}

.modal-achievement-box i {
  font-size: 1.35rem;
  color: #ca8a04;
}

/* Doctor Chapter Volume Navigation Ribbon */
.doctor-volume-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.vol-tab-btn {
  background: var(--paper-warm);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.vol-tab-btn:hover {
  background: var(--white);
  border-color: var(--emerald-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 46, 36, 0.08);
}

.vol-tab-btn.active {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-850));
  border-color: var(--gold-500);
  box-shadow: 0 4px 16px rgba(10, 46, 36, 0.18);
}

.vol-tab-btn .vt-vol {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vol-tab-btn.active .vt-vol {
  color: var(--gold-300);
}

.vol-tab-btn .vt-sub {
  font-size: 0.76rem;
  color: var(--slate-600);
  line-height: 1.25;
}

.vol-tab-btn.active .vt-sub {
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 820px) {
  .doctor-volume-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* Volume Jump Ribbon on Doctor Pages */
.volume-switch-strip {
  margin-top: 2.5rem;
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.volume-switch-strip p {
  font-size: 0.9rem;
  color: var(--slate-700);
}

/* ================= PAGE 7: APPOINTMENTS & CONSULTATION DESK ================= */
.appt-journal-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.appt-helpline-card {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-850));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  border: 1.5px solid rgba(201, 159, 72, 0.4);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.appt-helpline-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201, 159, 72, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.appt-helpline-card h3 {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  color: var(--gold-300);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.appt-helpline-card p {
  font-size: 0.98rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.helpline-box-247 {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 159, 72, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.helpline-tag-247 {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
  margin-bottom: 0.35rem;
}

.helpline-phone-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.helpline-phone-link:hover {
  color: var(--gold-300);
}

.helpline-subtext {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-300);
  margin-top: 0.35rem;
}

/* Right Side: Direct WhatsApp Enquiry Form */
.appt-form-card {
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.appt-form-card h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--emerald-950);
  margin-bottom: 0.35rem;
}

.appt-form-card > p {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.form-input-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.form-input-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-700);
}

.form-input-field input,
.form-input-field select,
.form-input-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  background: var(--paper-base);
  color: var(--slate-800);
  outline: none;
  transition: var(--transition-fast);
}

.form-input-field input:focus,
.form-input-field select:focus,
.form-input-field textarea:focus {
  border-color: var(--emerald-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(18, 116, 89, 0.12);
}

.form-notice-box {
  background: var(--paper-surface);
  border-left: 3px solid var(--gold-500);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ================= PAGE 8: CONTACT & LOCATION ================= */
.contact-journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.contact-pill-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.contact-pill-card:hover {
  border-color: var(--gold-400);
  transform: translateX(4px);
}

.cp-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-pill-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--emerald-950);
  margin-bottom: 0.2rem;
}

.contact-pill-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.contact-map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--paper-border);
  height: 380px;
  background-color: var(--paper-warm);
  margin-bottom: 1.25rem;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Colophon / Book End Notice */
.book-colophon-box {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--paper-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--slate-500);
}

/* ================= FLOATING BOOK NAVIGATION DOCK ================= */
.book-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(4, 32, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 159, 72, 0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.book-dock-inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.book-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  background: rgba(201, 159, 72, 0.15);
  color: var(--gold-300);
  border-color: rgba(201, 159, 72, 0.35);
}

.book-dock-btn:hover:not(.disabled) {
  background: var(--gold-500);
  color: var(--emerald-950);
  transform: translateY(-2px);
}

.book-dock-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.book-dock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.book-page-indicator {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-300);
}

.book-chapter-indicator {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
}

.book-page-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.book-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.book-dot.active {
  background: var(--gold-400);
  width: 18px;
  border-radius: 4px;
}

.book-dock-right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.book-sound-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--slate-400);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.book-sound-btn:hover,
.book-sound-btn.sound-on {
  color: var(--gold-300);
  border-color: var(--gold-400);
  background: rgba(201, 159, 72, 0.1);
}

/* ================= MODAL DIALOGS ================= */
.book-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 18, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.book-modal.active {
  opacity: 1;
  visibility: visible;
}

.book-modal-box {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-base);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--gold-500);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 2.5rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-modal.active .book-modal-box {
  transform: translateY(0) scale(1);
}

.book-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  background: rgba(4, 32, 24, 0.8);
  border: 1px solid rgba(201, 159, 72, 0.4);
  color: var(--gold-300);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-fast);
  z-index: 10;
}

.book-modal-close:hover {
  background: var(--gold-500);
  color: var(--emerald-950);
}

/* Doctor Modal Layout */
.doctor-modal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.25rem;
  align-items: start;
}

.doctor-modal-photo {
  width: 100%;
  height: 330px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--gold-400);
  background: var(--emerald-950);
  box-shadow: var(--shadow-card);
}

.doctor-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-modal-dept {
  margin-top: 0.85rem;
  text-align: center;
  background: var(--emerald-900);
  color: var(--gold-300);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 159, 72, 0.35);
}

.modal-super-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-800);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.modal-doctor-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--emerald-950);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.modal-doctor-spec {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--emerald-700);
  margin-bottom: 1.25rem;
}

.modal-info-block {
  background: var(--white);
  border: 1px solid var(--paper-border);
  border-left: 3.5px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.85rem;
}

.modal-info-block h5 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold-700);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-info-block p {
  font-size: 0.92rem;
  color: var(--slate-800);
}

.modal-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.modal-badge-box {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
}

.modal-badge-box .m-k {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  font-weight: 700;
}

.modal-badge-box .m-v {
  font-size: 0.92rem;
  color: var(--emerald-950);
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-list li {
  font-size: 0.86rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-list li i {
  color: var(--emerald-600);
  font-size: 0.75rem;
}

.modal-consultation-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 1.15rem 0;
}

.modal-consultation-disclaimer i {
  color: var(--gold-700);
  margin-top: 0.2rem;
}

.modal-consultation-disclaimer p {
  font-size: 0.82rem;
  color: var(--slate-700);
  line-height: 1.5;
}

.modal-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Facility Modal Layout */
.facility-modal-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.facility-modal-media {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.facility-modal-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold-400);
}

.facility-modal-sec-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-border);
}

.modal-facility-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--emerald-950);
  margin-bottom: 0.2rem;
}

.modal-facility-kannada {
  font-family: var(--font-kannada);
  font-size: 0.88rem;
  color: var(--gold-700);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.modal-facility-summary {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.modal-facility-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.modal-facility-bullets li {
  font-size: 0.86rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-facility-bullets li i {
  color: var(--gold-600);
}

.modal-facility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ================= BUTTON SYSTEM ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--emerald-950);
  box-shadow: 0 8px 24px -3px rgba(201, 159, 72, 0.4);
  font-weight: 700;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -3px rgba(201, 159, 72, 0.55);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-950));
  color: var(--gold-100);
  border: 1px solid var(--emerald-700);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background: transparent;
  border: 1.5px solid var(--emerald-700);
  color: var(--emerald-800);
}
.btn-outline-emerald:hover {
  background: var(--emerald-50);
  color: var(--emerald-950);
  border-color: var(--emerald-900);
}

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gold-400);
  color: var(--gold-300);
}
.btn-outline-gold:hover {
  background: rgba(201, 159, 72, 0.15);
  color: var(--white);
  border-color: var(--gold-300);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--white);
  box-shadow: 0 6px 20px -3px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.btn-call {
  background-color: var(--emerald-900);
  color: var(--gold-300);
  border: 1px solid rgba(201, 159, 72, 0.4);
}
.btn-call:hover {
  background-color: var(--emerald-800);
  color: var(--white);
  border-color: var(--gold-300);
}

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

.btn-sm {
  padding: 0.52rem 0.95rem;
  font-size: 0.78rem;
  gap: 0.4rem;
}

.btn-block {
  width: 100%;
}

/* ================= RESPONSIVE ADAPTATIONS ================= */
@media (max-width: 1280px) {
  .cover-title {
    font-size: 2.6rem;
  }
  .book-nav-list,
  .book-nav-menu {
    gap: 0.45rem;
  }
  .book-nav-link {
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
  }
  .btn-header-call {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 1024px) {
  .book-header {
    height: 76px;
  }
  .header-logo-card {
    height: 58px;
    padding: 4px 10px;
    width: auto;
  }
  .header-original-logo {
    height: 48px;
    width: auto;
    max-width: 155px;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }
  .book-stage {
    padding-top: 92px;
  }
  .book-nav,
  .book-nav-menu,
  .book-nav-list,
  .btn-header-call {
    display: none;
  }
  .mobile-book-toggle {
    display: block;
  }
  .facilities-book-grid,
  .departments-book-grid,
  .doctors-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .medical-book {
    height: calc(100vh - 170px);
  }
  .cover-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .cover-intro {
    margin-left: auto;
    margin-right: auto;
  }
  .cover-actions,
  .cover-metrics {
    justify-content: center;
  }
  .cover-slideshow-frame {
    height: 380px;
  }
  .about-journal-grid,
  .appt-journal-layout,
  .contact-journal-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .doctor-modal-layout,
  .facility-modal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .doctor-modal-photo {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .book-header {
    height: 72px;
  }
  .header-logo-card {
    height: 54px;
    padding: 3px 8px;
    width: auto;
  }
  .header-original-logo {
    height: 44px;
    width: auto;
    max-width: 140px;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }
  .mobile-book-nav {
    top: 72px;
    height: calc(100vh - 72px);
  }
  .book-stage {
    padding-top: 86px;
    padding-bottom: 74px;
  }
  .medical-book {
    width: 98%;
    height: calc(100vh - 160px);
    border-radius: var(--radius-md);
  }
  .medical-book::before,
  .medical-book::after {
    display: none; /* Full view on mobile */
  }
  .book-page-scroll {
    padding: 1.75rem 1.25rem 2rem;
  }
  .cover-title {
    font-size: 2.2rem;
  }
  .chapter-title {
    font-size: 1.85rem;
  }
  .facilities-book-grid,
  .departments-book-grid,
  .doctors-roster-grid,
  .form-group-grid,
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .cover-slideshow-frame {
    height: 290px;
  }
  .cover-actions {
    flex-direction: column;
    width: 100%;
  }
  .cover-actions .btn {
    width: 100%;
  }
  .book-dock-btn span {
    display: none;
  }
  .book-dock-btn {
    padding: 0.6rem 0.9rem;
  }
  .book-sound-btn {
    display: none;
  }
  .book-modal-box {
    padding: 1.5rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .book-header {
    height: 68px;
  }
  .header-logo-card {
    height: 50px;
    padding: 3px 6px;
    width: auto;
  }
  .header-original-logo {
    height: 40px;
    width: auto;
    max-width: 125px;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }
  .mobile-book-nav {
    top: 68px;
    height: calc(100vh - 68px);
  }
  .book-stage {
    padding-top: 80px;
  }
  .doctor-volume-tabs {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ================= REDUCED MOTION SUPPORT ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
