/* Shyamal Orthopedic Hospital - Main CSS Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-font: 'Inter', sans-serif;
  --heading-font: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-red: #d62828;
  --accent-red-hover: #b91c1c;
  --accent-red-light: #fef2f2;
  --accent-red-glow: rgba(214, 40, 40, 0.15);
  
  --border-color: #e2e8f0;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --card-bg: #ffffff;
  --footer-bg: #0f172a;
  --footer-text: #e2e8f0;
  --footer-text-secondary: #94a3b8;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 25px 50px -12px rgba(214, 40, 40, 0.1);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
  
  /* Max width for layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* Dark Mode Color Palette overrides */
body.dark-mode {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-red: #ef4444;
  --accent-red-hover: #f87171;
  --accent-red-light: rgba(239, 68, 68, 0.1);
  --accent-red-glow: rgba(239, 68, 68, 0.25);
  
  --border-color: #334155;
  --navbar-bg: rgba(15, 23, 42, 0.85);
  --card-bg: #1e293b;
  --footer-bg: #020617;
  --footer-text: #f1f5f9;
  --footer-text-secondary: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.25);
  --card-shadow-hover: 0 25px 50px -12px rgba(239, 68, 68, 0.2);
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Loading Animation Overlay */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

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

/* Grid Layouts */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
}

/* Section Header Utility */
.section-header {
  max-width: 700px;
  margin: 0 auto 56px auto;
}
.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-red);
  border-radius: 2px;
}
.section-header.text-left h2::after {
  left: 0;
  transform: none;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--accent-red);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--accent-red-glow);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--accent-red);
  color: var(--accent-red);
}
.btn-secondary:hover {
  background-color: var(--accent-red-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
}

/* Common Sticky Header & Navbar */
.header-top {
  background-color: var(--accent-red);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
}
.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-info {
  display: flex;
  gap: 24px;
}
.header-top-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-top-socials {
  display: flex;
  gap: 16px;
}
.header-top-socials a:hover {
  opacity: 0.8;
}

.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}
.main-header.scrolled .logo-img {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--heading-font);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle-btn, .search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.theme-toggle-btn:hover, .search-toggle-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--accent-red);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* Mobile Nav Styles */
@media (max-width: 992px) {
  .hamburger-btn {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 24px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid var(--border-color);
  }
  .nav-menu.open {
    left: 0;
  }
  .main-header.scrolled + .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  .nav-actions .btn {
    display: none; /* Hide main CTA on mobile header, show in menu or floaters */
  }
  .nav-menu .mobile-appointment-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
  }
}

@media (min-width: 993px) {
  .nav-menu .mobile-appointment-btn {
    display: none;
  }
}

/* Footer Section */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 24px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
}
.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0.9) contrast(1.1); /* ensures logo is crisp */
}
.footer-about p {
  color: var(--footer-text-secondary);
  margin-bottom: 24px;
}
.footer-title {
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 1.15rem;
  margin-bottom: 24px;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-red);
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--footer-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: var(--accent-red);
  transform: translateX(4px);
}
.footer-contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--footer-text-secondary);
}
.footer-contact-info li svg {
  color: var(--accent-red);
  flex-shrink: 0;
}
.footer-map-placeholder {
  height: 150px;
  background-color: #1e293b;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid #334155;
  position: relative;
}
.footer-map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--footer-text-secondary);
  font-size: 0.875rem;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a:hover {
  color: var(--accent-red);
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.float-whatsapp {
  background-color: #25d366;
}
.float-call {
  background-color: #3b82f6;
}
.float-appointment {
  background-color: var(--accent-red);
}
.float-scroll-top {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
.float-scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.float-btn-tooltip {
  position: absolute;
  right: 60px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.float-btn:hover .float-btn-tooltip {
  opacity: 1;
  visibility: visible;
}

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

.animate-zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-zoom-in.appear {
  opacity: 1;
  transform: scale(1);
}

/* Hero Section (Home) */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  overflow: hidden;
  padding: 100px 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}
.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.hero-text-content {
  max-width: 650px;
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(214, 40, 40, 0.1);
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero-title span {
  color: var(--accent-red);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: 16px;
}
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image-bg-effect {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  position: relative;
  border: 8px solid var(--bg-primary);
  transform: rotate(1deg);
  transition: transform 0.5s ease;
}
.hero-img:hover {
  transform: rotate(0deg) scale(1.02);
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text-content {
    margin: 0 auto;
  }
  .hero-tagline {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image-bg-effect {
    width: 300px;
    height: 300px;
  }
}

/* Card System - Rounded, Soft Shadow */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(214, 40, 40, 0.2);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover::before {
  transform: scaleX(1);
}

/* Card Icons */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.card:hover .card-icon {
  background-color: var(--accent-red);
  color: #ffffff;
  transform: rotateY(180deg);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Stats Section counters */
.stats-section {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: var(--heading-font);
}
.stat-item p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .stat-item h3 {
    font-size: 2.75rem;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonial Slider System */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  min-height: 280px;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 16px;
}
.testimonial-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}
.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 20px;
}
.testimonial-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.8;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-red-light);
}
.testimonial-author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.testimonial-author-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.testimonial-control-btn {
  background-color: var(--bg-tertiary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.testimonial-control-btn:hover {
  background-color: var(--accent-red);
  color: #ffffff;
}

/* Appointment CTA Banner */
.cta-banner-section {
  position: relative;
  background-color: var(--accent-red);
  color: #ffffff;
  overflow: hidden;
  z-index: 1;
}
.cta-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(214, 40, 40, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  z-index: -1;
}
.cta-banner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.cta-banner-content h2 {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 12px;
}
.cta-banner-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 768px) {
  .cta-banner-container {
    flex-direction: column;
    text-align: center;
  }
}

/* Subpage Header & Breadcrumb */
.subpage-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.subpage-header h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--accent-red);
}
.breadcrumb-separator {
  color: var(--text-muted);
}

/* About Story Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-primary);
  border: 4px solid var(--accent-red);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}
@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 25px;
  }
  .timeline-item::after {
    left: 10px;
    top: 15px;
  }
}
.timeline-left {
  left: 0;
}
.timeline-right {
  left: 50%;
}
@media (max-width: 768px) {
  .timeline-right {
    left: 0;
  }
}
.timeline-left::after {
  right: -10px;
}
.timeline-right::after {
  left: -10px;
}
.timeline-content {
  padding: 24px;
  background-color: var(--card-bg);
  position: relative;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}
.timeline-date {
  font-weight: 700;
  color: var(--accent-red);
  font-family: var(--heading-font);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* Doctors Card Grid */
.doctor-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.doctor-image-container {
  height: 320px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
  position: relative;
}
.doctor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.doctor-card:hover .doctor-image {
  transform: scale(1.05);
}
.doctor-info {
  padding: 24px;
}
.doctor-specialty {
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.doctor-name {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.doctor-details-list {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.doctor-details-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doctor-details-list svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Modal Popup System */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background-color: var(--card-bg);
  width: 90%;
  max-width: 700px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal.open .modal-content {
  transform: scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  z-index: 10;
  transition: all 0.3s ease;
}
.modal-close-btn:hover {
  background-color: var(--accent-red);
  color: #ffffff;
}
.modal-body {
  padding: 40px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header-layout {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-tertiary);
}
@media (max-width: 576px) {
  .modal-header-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
.modal-title-layout h3 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}
.modal-section-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-top: 24px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 6px;
  color: var(--accent-red);
}

/* Services Detailed Layout */
.service-details-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
@media (max-width: 992px) {
  .service-details-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.service-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.service-nav-list {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-nav-btn {
  width: 100%;
  padding: 16px 24px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--heading-font);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-nav-btn:last-child {
  border-bottom: none;
}
.service-nav-btn:hover, .service-nav-btn.active {
  background-color: var(--accent-red-light);
  color: var(--accent-red);
}
.service-content-panel {
  display: none;
  background-color: var(--card-bg);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
}
.service-content-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ Accordion System */
.faq-accordion {
  margin-top: 32px;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  background-color: var(--card-bg);
}
.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-family: var(--heading-font);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}
.faq-trigger:hover {
  color: var(--accent-red);
}
.faq-icon-arrow {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: var(--text-secondary);
}
.faq-item.active .faq-content {
  padding: 0 24px 20px 24px;
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Gallery Filter & Lightbox */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 4px 10px var(--accent-red-glow);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  height: 280px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(214, 40, 40, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay svg {
  margin-bottom: 12px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-overlay svg {
  transform: translateY(0);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  position: relative;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 4px solid #ffffff;
}
.lightbox-caption {
  color: #ffffff;
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.4);
}
.lightbox-prev {
  left: -80px;
}
.lightbox-next {
  right: -80px;
}
@media (max-width: 768px) {
  .lightbox-prev { left: -20px; }
  .lightbox-next { right: -20px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

/* Forms System (Appointment & Contact) */
.form-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
}
@media (max-width: 576px) {
  .form-card { padding: 24px; }
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--heading-font);
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  color: var(--text-primary);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px var(--accent-red-glow);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Success Validation Overlay Popup */
.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.success-popup.show {
  opacity: 1;
  visibility: visible;
}
.success-popup-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-popup.show .success-popup-card {
  transform: scale(1);
}
.success-checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  font-size: 2.5rem;
}
.success-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.success-msg {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.search-modal.open {
  opacity: 1;
  visibility: visible;
}
.search-modal-container {
  width: 90%;
  max-width: 600px;
  position: relative;
}
.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 3px solid #ffffff;
  color: #ffffff;
  font-size: 1.75rem;
  padding: 12px 0;
  outline: none;
}
.search-close-btn {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}
.search-results {
  margin-top: 24px;
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-xl);
}
.search-result-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  display: block;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background-color: var(--bg-tertiary);
}
.search-result-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.search-result-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Contact Specific Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 992px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
.contact-info-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
}
.contact-method {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.contact-method:last-child {
  margin-bottom: 0;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background-color: var(--accent-red-light);
  color: var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.contact-method-info p, .contact-method-info a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.contact-map-card {
  margin-top: 48px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 350px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* Blog Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
@media (max-width: 992px) {
  .blog-layout { grid-template-columns: 1fr; gap: 32px; }
}
.blog-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  margin-bottom: 32px;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-image {
  height: 240px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}
.blog-card-content {
  padding: 32px;
}
.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.blog-sidebar-widget {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}
.blog-widget-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}
.blog-categories-list li {
  margin-bottom: 12px;
}
.blog-categories-list a {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-weight: 500;
}
.blog-categories-list a:hover {
  color: var(--accent-red);
}
.blog-search-form {
  position: relative;
}
.blog-search-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
}
.blog-search-submit {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}

/* Chatbox Widget Placeholder */
.chat-widget {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 350px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-widget.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.chat-widget-header {
  background-color: var(--accent-red);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-widget-header h4 {
  font-size: 1rem;
}
.chat-widget-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}
.chat-widget-messages {
  height: 250px;
  overflow-y: auto;
  padding: 16px;
  background-color: var(--bg-secondary);
}
.chat-msg {
  margin-bottom: 12px;
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  font-size: 0.9rem;
}
.chat-msg-bot {
  background-color: var(--card-bg);
  border-bottom-left-radius: 0;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}
.chat-msg-user {
  background-color: var(--accent-red);
  color: #ffffff;
  border-bottom-right-radius: 0;
  margin-left: auto;
}
.chat-widget-input-area {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}
.chat-widget-input {
  flex-grow: 1;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 8px 12px;
  outline: none;
}
.chat-widget-send {
  background-color: var(--accent-red);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 0;
}
.newsletter-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.newsletter-text h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.newsletter-text p {
  color: var(--text-secondary);
}
.newsletter-form {
  display: flex;
  gap: 12px;
}
.newsletter-input {
  flex-grow: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md);
}
@media (max-width: 768px) {
  .newsletter-container { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form { flex-direction: column; }
}
