/* ============================================================
   CLINICPEER — REUSABLE COMPONENTS (PUBLIC SITE)
   ============================================================ */

/* ── Time Slot Picker ──────────────────────────────────────── */
#timeSlotsWrap {
  max-height: 250px;
  overflow-y: auto;
  padding: 0.75rem 0.5rem 0.75rem 0.75rem;
  margin-top: 0.5rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Custom Fancy Scrollbar for Time Slots */
#timeSlotsWrap::-webkit-scrollbar {
  width: 6px;
}

#timeSlotsWrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-full);
}

#timeSlotsWrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary, #00b4d8));
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: all var(--trans-fast);
}

@keyframes bounceIndicator {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.scroll-indicator-badge {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
  animation: bounceIndicator 2s infinite;
  align-items: center;
  gap: 4px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.time-slot {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  color: var(--gray-800);
  background: var(--white);
}

.time-slot:hover { border-color: var(--primary); color: var(--primary); background: rgba(0, 119, 182, 0.05); }
.time-slot.selected { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2); }
.time-slot.booked { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; border-color: var(--gray-200); text-decoration: line-through; }



/* ── Specialty Grid (Booking Wizard) ───────────────────────── */
.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.specialty-option { border: 2px solid var(--gray-200); border-radius: var(--radius-md); padding: .75rem .5rem; text-align: center; cursor: pointer; transition: all var(--trans-fast); }
.specialty-option:hover { border-color: var(--primary); }
.specialty-option.selected { border-color: var(--primary); background: var(--accent-soft); }
.spec-icon { font-size: 1.5rem; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items:center; justify-content:center; margin: 0 auto .4rem; }
.spec-name { font-size: .72rem; font-weight: 600; }
@media(max-width:480px) { .specialty-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  transition: all var(--trans-base);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-2xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* Transparent on top */
.navbar.transparent {
  background: transparent;
}

/* Scrolled state */
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,119,182,.12);
}

.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover { color: var(--primary); }
.navbar.scrolled .navbar-logo .logo-text { color: var(--dark); }

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 44px; height: 44px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0,119,182,.35);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: all var(--trans-base);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { left: 0.9rem; right: 0.9rem; }
.navbar.scrolled .nav-link:hover::after { background: var(--primary); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--trans-base);
  z-index: 100;
  border: 1px solid var(--gray-200);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--trans-fast);
}

.nav-dropdown a:hover { background: var(--gray-100); color: var(--primary); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  padding: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans-base);
}

.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  background: var(--white);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--trans-base);
  z-index: 999;
  max-height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}

.mobile-nav.open { transform: translateY(0); opacity: 1; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--trans-fast);
}

.mobile-nav a:hover { background: var(--gray-100); color: var(--primary); }
.mobile-nav .mobile-nav-actions { padding-top: var(--space-lg); display: flex; gap: var(--space-sm); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 var(--space-xl);
  margin-left: 5%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Hero Floating Card */
.hero-float-card {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  gap: var(--space-md);
}

.float-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  color: var(--white);
  min-width: 220px;
  animation: float 3.5s ease-in-out infinite;
}

.float-card:nth-child(2) { animation-delay: 0.8s; }
.float-card:nth-child(3) { animation-delay: 1.6s; }

.float-card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.float-card-title { font-weight: 700; font-size: 1.1rem; }
.float-card-sub { font-size: 0.78rem; opacity: 0.75; margin-top: 0.25rem; }

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-indicator .mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: float 1.5s ease-in-out infinite;
}

/* ── Services Section ──────────────────────────────────────── */
.services-section { background: var(--white); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border: 2px solid var(--gray-200);
  transition: all var(--trans-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--trans-base);
}

.service-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon,
.service-card:hover .service-title,
.service-card:hover .service-desc { color: var(--white); }
.service-card:hover .service-icon-wrap { background: rgba(255,255,255,0.2); }
.service-card:hover .service-arrow { color: var(--white); }

.service-icon-wrap {
  width: 72px; height: 72px;
  background: var(--accent-soft);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
  transition: all var(--trans-base);
}

.service-icon { font-size: 2rem; position: relative; z-index: 1; transition: color var(--trans-base); }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; position: relative; z-index: 1; transition: color var(--trans-base); }
.service-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; position: relative; z-index: 1; transition: color var(--trans-base); }
.service-arrow { display: block; margin-top: var(--space-md); color: var(--primary); font-size: 1.2rem; position: relative; z-index: 1; transition: color var(--trans-base); }

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -5%;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Doctors Section ───────────────────────────────────────── */
.doctors-section { background: var(--gray-100); }

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-base);
  position: relative;
}

.doctor-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-8px); }

.doctor-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--grad-primary);
}

.doctor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--trans-slow);
}

.doctor-card:hover .doctor-img-wrap img { transform: scale(1.07); }

.doctor-specialty-badge {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  background: var(--white);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.doctor-social {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  transform: translateY(100%);
  transition: transform var(--trans-base);
}

.doctor-card:hover .doctor-social { transform: translateY(0); }

.doctor-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--trans-fast);
}

.doctor-social a:hover { background: var(--primary); color: var(--white); }

.doctor-info { padding: var(--space-lg); }
.doctor-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.doctor-role { color: var(--primary); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.doctor-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: var(--space-md); }
.doctor-rating .count { font-size: 0.8rem; color: var(--gray-500); }
.doctor-card-actions { display: flex; gap: var(--space-sm); }

/* ── Appointment Section ───────────────────────────────────── */
.appointment-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.appointment-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/about_clinic.png') center/cover;
  opacity: 0.1;
}

.appointment-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-xl);
}

/* Step Progress */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--gray-300);
  z-index: 0;
  transition: background var(--trans-base);
}

.step.completed:not(:last-child)::after { background: var(--primary); }

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  background: var(--gray-200); color: var(--gray-500);
  position: relative; z-index: 1;
  transition: all var(--trans-base);
  border: 2px solid var(--gray-300);
}

.step.active .step-num { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,119,182,0.15); }
.step.completed .step-num { background: var(--success); color: var(--white); border-color: var(--success); }

.step-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); white-space: nowrap; }
.step.active .step-label { color: var(--primary); }
.step.completed .step-label { color: var(--success); }

/* Step Panels */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeInUp 0.4s var(--ease) both; }

/* ── Testimonials Section ──────────────────────────────────── */
.testimonials-section { background: var(--white); }

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - var(--space-lg));
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-right: var(--space-xl);
  border-left: 4px solid var(--primary);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md); right: var(--space-xl);
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text { color: var(--gray-700); line-height: 1.7; margin-bottom: var(--space-lg); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author-info .name { font-weight: 700; font-size: 0.95rem; }
.testimonial-author-info .role { font-size: 0.8rem; color: var(--gray-500); }

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 1.1rem;
  background: var(--white);
}

.slider-btn:hover { border-color: var(--primary); color: var(--primary); }

.slider-dots {
  display: flex; gap: 6px; align-items: center;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all var(--trans-base);
}

.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ── Opening Hours ─────────────────────────────────────────── */
.hours-section { background: var(--gray-100); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--gray-200); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.9rem 1rem; font-size: 0.9rem; }
.hours-table .day { font-weight: 600; color: var(--gray-700); }
.hours-table .time { color: var(--gray-600); text-align: right; }
.hours-table .closed { color: var(--danger); font-weight: 600; }
.hours-table tr.today { background: var(--accent-soft); border-radius: var(--radius-md); }
.hours-table tr.today .day { color: var(--primary); }

.open-now-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ECFDF5;
  color: var(--success);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

.open-now-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ── Blog Section ──────────────────────────────────────────── */
.blog-section { background: var(--white); }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--trans-base);
}

.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.blog-img {
  height: 200px;
  background: var(--grad-primary);
  overflow: hidden;
  position: relative;
}

.blog-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-cat {
  position: absolute;
  top: var(--space-md); left: var(--space-md);
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.blog-body { padding: var(--space-lg); }
.blog-meta { display: flex; gap: var(--space-md); margin-bottom: 0.75rem; }
.blog-meta span { font-size: 0.78rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.3rem; }
.blog-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.4; transition: color var(--trans-fast); }
.blog-card:hover .blog-title { color: var(--primary); }
.blog-excerpt { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: var(--space-md); }
.blog-link { color: var(--primary); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; transition: gap var(--trans-fast); }
.blog-card:hover .blog-link { gap: 0.6rem; }

/* ── FAQ Section ───────────────────────────────────────────── */
.faq-section { background: var(--gray-100); }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: border-color var(--trans-fast);
}

.faq-item.open { border-color: var(--primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-800);
  transition: color var(--trans-fast);
  gap: var(--space-md);
}

.faq-item.open .faq-question { color: var(--primary); }

.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  transition: all var(--trans-base);
}

.faq-item.open .faq-icon { background: var(--primary); color: var(--white); transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.925rem;
  border-top: 1px solid var(--gray-200);
  padding-top: var(--space-md);
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-section { background: var(--white); }

.contact-info-card {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  color: var(--white);
  height: 100%;
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.contact-info-text .label { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.contact-info-text .value { font-weight: 600; font-size: 0.95rem; }

.map-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-top: var(--space-lg);
  border: 2px dashed rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--trans-fast);
}

.map-placeholder:hover { background: rgba(255,255,255,0.15); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text { color: var(--white); font-size: 1.4rem; font-weight: 800; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin: var(--space-md) 0; }

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--trans-fast);
}

.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-title { font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: var(--space-lg); }

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--trans-fast);
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-links a::before { content: '→'; font-size: 0.7rem; opacity: 0; transition: opacity var(--trans-fast); }
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-links a:hover::before { opacity: 1; }

.footer-newsletter input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  outline: none;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { border-color: var(--primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: 0.8rem;
}

.footer-bottom-links { display: flex; gap: var(--space-lg); }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: color var(--trans-fast); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 46px; height: 46px;
  background: var(--grad-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: all var(--trans-base);
}

.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

/* ── About Strip ───────────────────────────────────────────── */
.about-section { background: var(--gray-100); }

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-wrap img { width: 100%; height: 420px; object-fit: cover; }

.about-badge-float {
  position: absolute;
  bottom: var(--space-lg); left: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; gap: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.about-badge-icon { font-size: 2rem; }
.about-badge-text .number { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.about-badge-text .label { font-size: 0.78rem; color: var(--gray-500); }

.about-features { display: flex; flex-direction: column; gap: var(--space-md); margin: var(--space-xl) 0; }

.about-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.about-feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.about-feature h5 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.about-feature p { font-size: 0.85rem; color: var(--gray-600); }

/* ── Responsive Overrides ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero-content { margin-left: 0; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .testimonial-card { flex: 0 0 calc(100% - var(--space-xl)); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

/* ── Custom Booking Calendar ────────────────────────────────── */
.booking-calendar {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  user-select: none;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
}

.cal-header .cal-month-label {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.cal-nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  border-radius: var(--radius-md);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.35); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.cal-weekday {
  text-align: center;
  padding: 0.4rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.5rem;
  background: var(--gray-100);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
  color: var(--gray-700);
  position: relative;
}

.cal-day.empty {
  background: transparent;
  cursor: default;
}

.cal-day.cal-past,
.cal-day.cal-unavailable,
.cal-day.cal-full {
  background: #FEE2E2;
  color: #DC2626;
  cursor: not-allowed;
}
.cal-day.cal-past:hover,
.cal-day.cal-unavailable:hover,
.cal-day.cal-full:hover {
  background: #FECACA;
  transform: none;
}

.cal-day.cal-available {
  background: #F0FDF4;
  color: #16A34A;
  border: 1.5px solid #BBF7D0;
}
.cal-day.cal-available:hover {
  background: #DCFCE7;
  border-color: #4ADE80;
  transform: scale(1.09);
  box-shadow: 0 2px 8px rgba(22,163,74,0.18);
}

.cal-day.cal-today {
  outline: 2.5px solid var(--primary);
  outline-offset: -2px;
}

.cal-day.cal-selected {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  transform: scale(1.09);
  box-shadow: 0 3px 10px rgba(0,119,182,0.35);
}

.cal-legend {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem 0.6rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  font-size: 0.72rem;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cal-legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-no-doctor {
  padding: 1.5rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  background: var(--white);
}

/* ── Compact calendar (used inside narrow booking panels) ────── */
#calendarWrap .booking-calendar,
.cal-compact .booking-calendar {
  font-size: 0.78rem;
}
#calendarWrap .cal-header,
.cal-compact .cal-header {
  padding: 0.45rem 0.7rem;
}
#calendarWrap .cal-month-label,
.cal-compact .cal-month-label {
  font-size: 0.82rem;
}
#calendarWrap .cal-nav-btn,
.cal-compact .cal-nav-btn {
  width: 24px; height: 24px;
  font-size: 0.85rem;
}
#calendarWrap .cal-weekday,
.cal-compact .cal-weekday {
  padding: 0.25rem 0;
  font-size: 0.62rem;
}
#calendarWrap .cal-days,
.cal-compact .cal-days {
  gap: 1px;
  padding: 0.3rem;
}
#calendarWrap .cal-day,
.cal-compact .cal-day {
  font-size: 0.72rem;
  border-radius: 5px;
}
#calendarWrap .cal-legend,
.cal-compact .cal-legend {
  padding: 0.3rem 0.7rem 0.4rem;
  font-size: 0.64rem;
  gap: 0.6rem;
}
#calendarWrap .cal-legend-dot,
.cal-compact .cal-legend-dot {
  width: 8px; height: 8px;
}

/* ── Sort Toggle pills (Earliest / Name A-Z) ────────────────── */
.sort-toggle {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.sort-toggle label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.sort-toggle label input[type="radio"] {
  display: none;
}
.sort-toggle label span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.sort-toggle label:hover span {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft);
}
.sort-toggle label input[type="radio"]:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,119,182,0.25);
}

/* Custom Active State for Available Specialties */
.service-card.active {
  border: 3px solid var(--primary);
  background: var(--accent-soft);
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.25);
  position: relative;
  z-index: 10;
}
.service-card.active .service-icon {
  color: var(--primary);
  transform: scale(1.1);
}
.service-card.active .service-title {
  color: var(--primary-dark);
  font-weight: 800;
}

.specialty-option.active { border: 2px solid var(--primary); background: var(--accent-soft); box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2); transform: scale(1.05); font-weight: 700; color: var(--primary-dark); }


/* Floating Specialties Layout */
.floating-grid {
  position: relative;
  height: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  overflow: hidden;
  box-shadow: inset 0 4px 15px rgba(0,0,0,0.02);
}

.floating-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  z-index: 10;
  border-width: 3px;
  animation: pulseGlow 2s infinite alternate;
}

.floating-center .spec-icon {
  width: 64px;
  height: 64px;
  font-size: 2.2rem;
}
.floating-center .spec-name {
  font-size: 1.1rem;
  font-weight: 700;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.4); }
  100% { box-shadow: 0 0 20px 10px rgba(0, 119, 182, 0); }
}

.floating-side {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.6;
  filter: grayscale(0.8);
  cursor: not-allowed;
  animation: floatAnim 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: var(--radius-md);
  border: 1px dashed var(--gray-300);
  padding: 0.5rem;
}

@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Positions for the 4 inactive niches */
.floating-pos-0 { top: 20px; left: 10%; animation-delay: 0s; }
.floating-pos-1 { top: 30px; right: 10%; animation-delay: -1.5s; }
.floating-pos-2 { bottom: 20px; left: 15%; animation-delay: -3s; }
.floating-pos-3 { bottom: 30px; right: 15%; animation-delay: -4.5s; }

/* Cute Ribbon */
.ribbon-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e63946;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(230, 57, 70, 0.4);
  z-index: 5;
  letter-spacing: 0.05em;
  border: 2px solid white;
}

/* New Static Center Layout */
.specialty-layout-new {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-areas: 
    "small1 main small2"
    "small3 main small4";
  gap: 1rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

@media(max-width: 480px) {
  .specialty-layout-new {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "main main"
      "small1 small2"
      "small3 small4";
  }
}

.spec-main {
  grid-area: main;
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-width: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spec-main .spec-icon {
  width: 64px;
  height: 64px;
  font-size: 2.2rem;
}

.spec-main .spec-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.spec-small {
  width: 100%;
  max-width: 110px;
  padding: 0.5rem;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: white;
  position: relative;
  opacity: 0.6;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

.spec-small .spec-icon {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  margin: 0 auto 0.3rem auto;
}

.spec-small .spec-name {
  font-size: 0.65rem;
  font-weight: 600;
}

.spec-small-0 { grid-area: small1; }
.spec-small-1 { grid-area: small2; }
.spec-small-2 { grid-area: small3; }
.spec-small-3 { grid-area: small4; }
