/* =========================
   1. BASE & COLORS
========================= */
:root {
  --primary: #0647aa;
  --secondary: #002d72;
  --glow: rgba(6, 71, 170, 0.45);
  --text: #1a1a1a;
  --white: #ffffff;
  /* Green variable for the Book Now button */
  --green: #28a745; 
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* =========================
   2. HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  /* translucent blue */
  background: rgba(6, 71, 170, 0.85);

  /* glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;

}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
}

.main-nav {
  display: flex;
  gap: 45px; 
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  color: #ffffff; 
}

.header-cta {
  background: var(--green) !important; 
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
}

/* =========================
   3. HERO
========================= */
.hero-blue {
  background: linear-gradient(#0647aa, var(--secondary), var(--primary));
  padding: 100px 0;
  color: #fff;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin: 20px 0;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.award-badge {
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.hero-doctor-box {
  display: flex;
  justify-content: center;
}

.doctor-img-main {
  width: 350px;
  height: 450px;
  object-fit: cover;
  border-radius: 30px;
  border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 40px rgba(255,255,255,0.3);
}

.btn-hero-white,
.btn-hero-outline {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
}

.btn-hero-white {
  background: #fff;
  color: var(--primary);
}

.btn-hero-outline {
  border: 2px solid #fff;
  color: #fff;
}

/* =========================
   4. SERVICES
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px var(--glow);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.read-more {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

.view-all-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
}

/* =========================
   5. GALLERY
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff;
  font-weight: 600;
}

/* =========================
   6. LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 5000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 15px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   7. FOOTER (ENHANCED)
========================= */
.site-footer {
  background: linear-gradient(135deg, #08172d, #0a192f);
  color: #fff;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 50px;
}

.site-footer h4 {
  margin-bottom: 20px;
  position: relative;
}

.site-footer h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--primary);
  display: block;
  margin-top: 8px;
}

.site-footer p,
.site-footer a {
  color: #cfd6e3;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  transform: translateX(6px);
}

.footer-timing {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 15px;
  margin-top: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #9aa4b2;
}

/* Footer animation */
.footer-animate {
  opacity: 0;
  transform: translateY(40px);
  animation: footerFadeUp 1s ease forwards;
}

.footer-animate.delay-1 { animation-delay: 0.2s; }
.footer-animate.delay-2 { animation-delay: 0.4s; }
.footer-animate.delay-3 { animation-delay: 0.6s; }

@keyframes footerFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   8. WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.whatsapp-float img {
  width: 35px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero-grid-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctor-img-main {
    width: 280px;
    height: auto;
  }
}
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  width: 60%;
  height: 3px;
  background: var(--primary);
  display: block;
  margin: 12px auto 0;
  border-radius: 3px;
}
/* =========================
   MOBILE FIT FIX (CRITICAL)
========================= */
@media (max-width: 768px) {

  /* prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* HEADER FIX */
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  /* HERO FIX */
  .hero-grid-container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .doctor-img-main {
    width: 260px;
    height: auto;
    margin: 0 auto;
  }

  /* GRID SECTIONS */
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* BUTTONS */
  .btn-hero-white,
  .btn-hero-outline {
    padding: 12px 26px;
    margin-bottom: 10px;
  }
}

