/* ===========================
   Ortho Smile Dental Clinic
   Main Stylesheet
=========================== */

:root {
  /* Logo-matched navy blue palette */
  --primary: #1b4f7a;
  --primary-dark: #123657;
  --primary-light: #e8f0f8;
  --teal: #2e7da6;
  --teal-dark: #1f5a78;
  --teal-light: #ddedf6;
  /* Silver/grey accent from logo */
  --silver: #8fa3b0;
  --silver-light: #edf2f5;
  --white: #ffffff;
  --light-bg: #f5f8fc;
  --light-gray: #eef2f6;
  --text-dark: #0f1e2e;
  --text-muted: #5a6e80;
  --border: #d4dfe8;
  --shadow: 0 8px 32px rgba(27, 79, 122, 0.10);
  --shadow-hover: 0 16px 48px rgba(27, 79, 122, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== OVERFLOW GUARD ===== */
section, .top-bar, .quick-info-bar, .footer, .stat-counter-section, .cta-banner, .page-hero {
  max-width: 100%;
  overflow-x: hidden;
}
.row { --bs-gutter-x: 1.5rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== UTILITIES ===== */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-title { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.divider {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 2px;
  margin: 14px auto 0;
}
.divider-left { margin: 14px 0 0; }

.bg-light-blue { background: var(--light-bg); }
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--teal) 100%);
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(27, 79, 122, 0.3);
}
.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--teal));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 79, 122, 0.4);
}

.btn-teal-custom {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 169, 157, 0.3);
}
.btn-teal-custom:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--primary));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 169, 157, 0.4);
}

.btn-outline-custom {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm-call {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-sm-call:hover { background: linear-gradient(135deg, #1e7e34, #28a745); color: white; transform: translateY(-1px); }

.btn-sm-enquire {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.btn-sm-enquire:hover { background: linear-gradient(135deg, var(--teal), var(--primary)); color: white; transform: translateY(-1px); }

/* ===== TOP BAR ===== */
.top-bar {
  background: linear-gradient(135deg, #0f2740, var(--primary));
  color: rgba(255,255,255,0.9);
  padding: 8px 0;
  font-size: 0.82rem;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: var(--white); }
.top-bar .top-bar-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar .top-bar-info span { display: flex; align-items: center; gap: 6px; }
.top-bar .social-links { display: flex; gap: 10px; }
.top-bar .social-links a {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  transition: var(--transition);
}
.top-bar .social-links a:hover { background: rgba(255,255,255,0.3); }

/* ===== NAVBAR ===== */
.navbar-main {
  background: var(--white) !important;
  box-shadow: 0 2px 20px rgba(27,79,122,0.08);
  padding: 0;
  transition: var(--transition);
}
.navbar-main.scrolled {
  box-shadow: 0 4px 30px rgba(27,79,122,0.15);
}
.navbar-main .navbar-brand img {
  height: 60px;
  transition: var(--transition);
}
.navbar-main .navbar-brand img:hover { opacity: 0.85; }
.navbar-main .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 28px 14px !important;
  position: relative;
  transition: var(--transition);
}
.navbar-main .nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px; left: 14px; right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transition: var(--transition);
  border-radius: 1px;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active { color: var(--primary) !important; }
.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after { transform: scaleX(1); }
.navbar-main .nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  margin-left: 8px;
  font-weight: 600 !important;
}
.navbar-main .nav-cta::after { display: none; }
.navbar-main .nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--teal-dark)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10,122,191,0.3);
}
.navbar-toggler { border: none; padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .carousel-item {
  height: 100vh;
  min-height: 600px;
}
.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,54,87,0.88) 0%, rgba(27,79,122,0.78) 55%, rgba(46,125,166,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 140px 0 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: white;
  margin-bottom: 18px;
  animation: fadeInUp 0.9s ease 0.1s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-title span { color: #a8cfe8; }
.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 32px;
  animation: fadeInUp 1s ease 0.2s both;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 1.1s ease 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  animation: fadeInUp 1.2s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}
.hero-stat .lbl { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 4px; }
.hero-stat-divider { width: 1px; background: rgba(255,255,255,0.25); align-self: stretch; }

.hero-image-card {
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease 0.3s both;
}
.hero-image-card img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  border: 4px solid rgba(255,255,255,0.2);
}
.hero-badge-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-badge-card.card-1 { bottom: 30px; left: 10px; }
.hero-badge-card.card-2 { top: 30px; right: 10px; }
.hero-badge-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hero-badge-card .card-text .title { font-size: 0.78rem; color: var(--text-muted); }
.hero-badge-card .card-text .value { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }
.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  margin: 0 4px;
  transition: var(--transition);
}
.carousel-indicators .active { background: white; width: 28px; border-radius: 5px; }

/* ===== QUICK INFO BAR ===== */
.quick-info-bar {
  background: white;
  box-shadow: 0 4px 24px rgba(27,79,122,0.1);
  padding: 24px 0;
  position: relative;
  z-index: 10;
  margin-top: -1px;
}
.quick-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.quick-info-item .icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.quick-info-item:hover .icon { background: var(--primary); color: white; transform: scale(1.1); }
.quick-info-item .text .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.quick-info-item .text .value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.quick-info-divider { width: 1px; background: var(--border); align-self: stretch; margin: 4px 0; }

/* ===== ABOUT SECTION ===== */
.about-image-wrap {
  position: relative;
}
.about-image-wrap .main-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}
.about-badge-float {
  position: absolute;
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(27,79,122,0.15);
  min-width: 160px;
}
.about-badge-float.badge-1 { bottom: -16px; right: 16px; }
.about-badge-float.badge-2 { top: -16px; left: 16px; }
.about-badge-float .num { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.about-badge-float .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.experience-badge {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.experience-badge .icon { font-size: 1.5rem; }
.experience-badge .text strong { display: block; font-size: 1.1rem; }
.experience-badge .text span { font-size: 0.82rem; opacity: 0.85; }
.vision-card {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 24px;
}
.vision-card p { margin: 0; color: var(--text-dark); font-style: italic; font-size: 0.95rem; line-height: 1.7; }

/* ===== SERVICES SECTION ===== */
.service-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27,79,122,0.2);
}
.service-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.service-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.service-card:hover .card-img-wrap img { transform: scale(1.08); }
.service-card .card-img-overlay-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: white;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.service-card:hover .card-img-overlay-badge {
  background: var(--primary);
  color: white;
}
.service-card .card-body { padding: 22px; }
.service-card .card-title { font-size: 1.05rem; margin-bottom: 8px; }
.service-card .card-text { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.service-card .card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== WHY CHOOSE US ===== */
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .feature-icon {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: white; transform: scale(1.1); }
.feature-card h5 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ===== DOCTOR SECTION ===== */
.doctor-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.doctor-card .doctor-img-wrap {
  position: relative;
  overflow: hidden;
  height: 480px;
}
.doctor-card .doctor-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.doctor-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(6,93,145,0.9), transparent);
  padding: 32px 24px 20px;
  color: white;
}
.doctor-overlay h3 { font-size: 1.5rem; margin-bottom: 4px; }
.doctor-overlay p { font-size: 0.85rem; opacity: 0.9; margin: 0; }
.doctor-info { padding: 28px; }
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 4px;
  border: 1px solid rgba(27,79,122,0.2);
}
.doctor-stats { display: flex; gap: 0; border-top: 1px solid var(--border); margin-top: 20px; }
.doctor-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  border-right: 1px solid var(--border);
}
.doctor-stat:last-child { border-right: none; }
.doctor-stat .num { font-size: 1.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.doctor-stat .lbl { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border);
  height: 100%;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.testimonial-card .stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 14px; }
.testimonial-card .text { font-size: 0.93rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author-avatar {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-card .author-info .name { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.testimonial-card .author-info .label { font-size: 0.78rem; color: var(--text-muted); }

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,79,122,0.85), rgba(46,125,166,0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-overlay i { color: white; font-size: 2rem; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== CONTACT SECTION ===== */
.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  height: auto;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item .text .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 500; }
.contact-info-item .text .value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); margin-top: 2px; }
.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--light-bg);
  transition: var(--transition);
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(27,79,122,0.1);
}
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--teal) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

/* ===== STATS COUNTER SECTION ===== */
.stat-counter-section { background: linear-gradient(135deg, #0f2740 0%, #1b4f7a 100%); padding: 60px 0; }
.stat-counter-item { text-align: center; color: white; }
.stat-counter-item .num {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}
.stat-counter-item .num span { color: #a8cfe8; }
.stat-counter-item .lbl { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 8px; }

/* ===== FOOTER ===== */
.footer {
  background: #0a1929;
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}
.footer-brand img { height: 55px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-about { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.65); max-width: 300px; margin-bottom: 20px; }
.footer h5 { color: white; font-size: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h5::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--teal)); border-radius: 1px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--teal); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
}
.footer-contact-item i { color: var(--teal); margin-top: 3px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: var(--teal); color: white; border-color: var(--teal); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.float-btn:hover { transform: scale(1.12) translateY(-2px); }
.float-whatsapp { background: #25d366; color: white; }
.float-call { background: var(--primary); color: white; display: none; }
.float-top { background: white; color: var(--primary); border: 2px solid var(--border); }
@media (max-width: 768px) {
  .float-call { display: flex; }
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--teal));
  padding: 130px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: white; font-size: 2.8rem; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 480px; }
.breadcrumb-custom { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.breadcrumb-custom a { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.breadcrumb-custom a:hover { color: white; }
.breadcrumb-custom span { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.breadcrumb-custom .current { color: white; font-size: 0.88rem; font-weight: 500; }

/* ===== APPOINTMENT MODAL ===== */
.modal-content { border-radius: var(--radius); border: none; overflow: hidden; }
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: white;
  border: none;
  padding: 20px 28px;
}
.modal-header .modal-title { font-size: 1.2rem; font-weight: 600; font-family: 'Poppins', sans-serif; }
.modal-header .btn-close { filter: invert(1); }
.modal-body { padding: 28px; }
.modal-footer { border: none; padding: 16px 28px 24px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-up { animation: fadeInUp 0.7s ease both; }
.animate-fade-left { animation: fadeInLeft 0.7s ease both; }
.animate-fade-right { animation: fadeInRight 0.7s ease both; }
.animate-pulse { animation: pulse 2s infinite; }

[data-aos] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}
.lightbox-close:hover { color: var(--teal); transform: rotate(90deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero-badge-card.card-1 { left: 8px; }
  .hero-badge-card.card-2 { right: 8px; }
}

@media (max-width: 992px) {
  .section-pad { padding: 70px 0; }
  .navbar-main .nav-link { padding: 14px 16px !important; }
  .navbar-main .nav-link::after { bottom: 6px; left: 16px; right: 16px; }
  .navbar-main .nav-cta { margin: 8px 16px; }
  .hero-content { padding: 120px 0 60px; }
  .hero-image-card { margin-top: 40px; }
  .about-badge-float.badge-1 { right: 10px; bottom: 10px; }
  .about-badge-float.badge-2 { left: 10px; top: 10px; }
}

@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.5rem; }
  .hero-buttons { gap: 10px; }
  .quick-info-divider { display: none; }
  .top-bar .top-bar-info { gap: 12px; }
  .doctor-card .doctor-img-wrap { height: 340px; }
  .page-hero h1 { font-size: 2rem; }
  .contact-card { padding: 24px; }
  .footer { padding: 50px 0 0; }
  .floating-buttons { bottom: 16px; right: 16px; }
}

@media (max-width: 576px) {
  .section-pad { padding: 50px 0; }
  .hero-content { padding: 100px 0 50px; }
  .hero-buttons .btn-outline-custom { display: none; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stat-divider { display: none; }
  .hero-badge-card { display: none; }
  .service-card .card-actions { flex-direction: column; }
  .service-card .card-actions a { width: 100%; justify-content: center; }
  .about-image-wrap { padding-right: 0 !important; }
  .about-badge-float { display: none; }
  .top-bar-info span:nth-child(2),
  .top-bar-info span:nth-child(3) { display: none; }
}

/* ===== MOBILE HORIZONTAL SCROLL FINAL FIX ===== */
@media (max-width: 991px) {
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
  .hero-image-card, .about-image-wrap { overflow: hidden; }
  .cta-banner::before, .cta-banner::after { display: none; }
  .page-hero::before { display: none; }
}
