/* ==========================================================================
   Dr. Umeshwar Pandey - Cardiology Web Application Design System & Stylesheet
   ========================================================================== */

/* Original Website Fonts: Vidaloka, Roboto, Roboto Slab, Karla, Hind */
@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&family=Karla:wght@400;500;600;700;800&family=Roboto+Slab:wght@400;500;600;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Vidaloka&display=swap');

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-sub: #64748b;
  
  --primary: #384975; /* OceanWP / Original website brand blue */
  --primary-hover: #263457;
  --primary-light: #e8eeef;
  
  --accent-teal: #0284c7;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-amber: #d97706;
  
  --border-color: #e2e8f0;
  --border-glow: rgba(56, 73, 117, 0.25);
  
  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.05);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.09);
  --shadow-lg: 0 20px 40px rgba(30, 41, 59, 0.14);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Color Palette - Dark Mode */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-glass: rgba(30, 41, 59, 0.88);
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-sub: #94a3b8;
  
  --primary: #60a5fa;
  --primary-hover: #93c5fd;
  --primary-light: rgba(96, 165, 250, 0.15);
  
  --border-color: #334155;
  --border-glow: rgba(96, 165, 250, 0.35);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: 'Vidaloka', serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-main);
}

.subheading-font {
  font-family: 'Roboto Slab', serif;
}

.karla-font {
  font-family: 'Karla', sans-serif;
}

.hindi-text {
  font-family: 'Hind', sans-serif;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Glass Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 54px;
  max-height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(56, 73, 117, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(56, 73, 117, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  z-index: 2000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-family: 'Karla', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}

/* Persistent Floating Action Buttons (FAB Container) */
.floating-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.floating-fab {
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 22px;
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: #ffffff !important;
}

.floating-fab:hover {
  transform: scale(1.06) translateY(-3px);
}

.fab-appointment {
  background: linear-gradient(135deg, var(--primary) 0%, #263457 100%);
  box-shadow: 0 8px 25px rgba(56, 73, 117, 0.45);
}

.fab-appointment:hover {
  box-shadow: 0 12px 30px rgba(56, 73, 117, 0.6);
}

.fab-risk {
  background: linear-gradient(135deg, var(--accent-rose) 0%, #be123c 100%);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.45);
  animation: fab-bounce 2s infinite ease-in-out;
}

.fab-risk:hover {
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.6);
}

.fab-risk i {
  font-size: 1.15rem;
  animation: pulse-heart 1.2s infinite;
}

@keyframes pulse-heart {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes fab-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* PDF Hub Cards Styling */
.pdf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.pdf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.pdf-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pdf-header-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pdf-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(225, 29, 72, 0.1);
  color: var(--accent-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pdf-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Karla', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.pdf-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.pdf-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pdf-action-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

/* PDF Preview Modal */
.pdf-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 1000px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pdf-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-modal-body {
  flex-grow: 1;
  width: 100%;
  height: 100%;
}

.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Home Page Upgraded Gallery Preview Grid */
.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.home-gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--bg-card);
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-gallery-item:hover img {
  transform: scale(1.08);
}

.home-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #ffffff;
}

.home-gallery-item:hover .home-gallery-overlay {
  opacity: 1;
}

.home-gallery-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-gallery-expand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.home-gallery-item:hover .home-gallery-expand-icon {
  transform: scale(1.15);
  background: var(--primary);
}

/* Photo Gallery Grid & Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-cat {
  font-family: 'Karla', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-hover);
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.gallery-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.05rem;
  color: #ffffff;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  z-index: 3500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ffffff;
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  text-align: center;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-rose);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
  }
}

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 90%;
}

.doctor-roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.doctor-role-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  color: var(--text-main);
}

.doctor-role-item i {
  color: var(--accent-emerald);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.emergency-contact-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.emergency-contact-box i {
  font-size: 1.3rem;
  color: var(--accent-rose);
}

.emergency-text span {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: block;
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
}

.emergency-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  background: var(--bg-card);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-badge i {
  font-size: 1.75rem;
  color: var(--primary);
}

.floating-badge h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.floating-badge p {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-family: 'Karla', sans-serif;
}

/* Stats Counter Section */
.stats-section {
  padding: 2.5rem 0;
  background: var(--bg-secondary);
  border-y: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-family: 'Vidaloka', serif;
  font-size: 2.25rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: 'Karla', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  font-family: 'Karla', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Section Common Styling */
.section-padding {
  padding: 5rem 0;
}

/* Dil Ki Baaten Feature Section */
.dil-ki-baat-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.hindi-hero-quote {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hindi-hero-quote::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 10rem;
  color: var(--primary-light);
  font-family: serif;
  z-index: 0;
}

.quote-content {
  position: relative;
  z-index: 1;
}

.quote-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.8;
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-card);
  user-select: none;
}

.accordion-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.q-badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.q-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.accordion-icon {
  font-size: 1.1rem;
  color: var(--text-sub);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: var(--bg-primary);
}

.accordion-item.active .accordion-body {
  max-height: 800px;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.answer-text {
  font-size: 1.1rem;
  color: var(--text-main);
  white-space: pre-line;
  line-height: 1.8;
}

/* Interactive Timeline Component */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2.5rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2.5rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: 'Karla', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--accent-teal);
  font-family: 'Roboto Slab', serif;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Research Publications Hub */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(56, 73, 117, 0.3);
}

.search-box-wrap {
  max-width: 500px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sub);
  font-size: 1.1rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.research-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.research-category {
  font-family: 'Karla', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.research-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.research-journal {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-family: 'Roboto Slab', serif;
  margin-bottom: 1rem;
}

.research-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Blog Articles Section & 3x2 Grid */
.blog-grid, .blog-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-main);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.blog-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.08);
}

.blog-category-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  top: auto;
  left: auto;
  background: var(--primary);
  color: #ffffff;
  font-family: 'Karla', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 2;
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Dedicated Article Page Styles */
.article-full-container {
  max-width: 900px;
  margin: 0 auto;
}

.article-hero-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.article-content-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-content-body h3 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  color: var(--primary);
}

.article-content-body h4 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem 0;
}

.article-content-body p {
  margin-bottom: 1.5rem;
}

.article-content-body ul, .article-content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content-body li {
  margin-bottom: 0.5rem;
}

/* Heart Risk Calculator Component */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  color: var(--text-main);
}

.form-select, .form-input {
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.calc-result-box {
  display: none;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  margin-top: 1.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-score {
  font-family: 'Vidaloka', serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.result-advice {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* Healthy Habits Grid */
.habits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.habit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.habit-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.habit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem auto;
}

.habit-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.habit-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact & Appointment Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.info-details p, .info-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.appointment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Modal Overlay & Reader */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-body {
  margin-top: 1rem;
}

.quote-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-weight: 500;
  color: var(--text-main);
}

/* Footer Component */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 1rem 0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* Media Queries & Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .doctor-roles-list {
    align-items: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .floating-badge {
    left: 10px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-dot {
    left: 10px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid, .blog-grid-3x2, .home-gallery-grid, .pdf-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .floating-fab-container {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .floating-fab {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .blog-grid, .blog-grid-3x2, .home-gallery-grid, .pdf-card-grid {
    grid-template-columns: 1fr;
  }
}



/* PDF Modal Styling for Full Multi-Page Reading */
#pdf-modal .modal-card {
  width: 92vw;
  max-width: 1100px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

#pdf-modal-iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
