/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #e6f7f9, #cdeff2); /* light blue gradient */
  padding: 1rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background-color: rgba(42, 124, 111, 0.95); /* subtle green */
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  color: #2a7c6f;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #2a7c6f;
}

/* Hero */
.hero {
  background: url('gallery15.jpg') 
              center/cover no-repeat;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px; /* offset for navbar */
}
.hero-overlay {
  background: rgba(42, 124, 111, 0.75);
  color: white;
  text-align: center;
  padding: 3rem;
  border-radius: 10px;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff; /* pure white */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* optional glow for readability */
}



.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #2a7c6f, #1e5a52);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: transform 0.2s;
}
.btn:hover {
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.alt-bg {
  background: #f9f9f9;
}
h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2a7c6f;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-img img {
  width: 100%;
  border-radius: 10px;
}

/* Services */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card i {
  font-size: 2rem;
  color: #2a7c6f;
  margin-bottom: 1rem;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Doctors */
.doctor-card {
  text-align: center;
}
.doctor-card img {
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.doctor-card img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-info p {
  margin-bottom: 1rem;
}
.contact-info i {
  color: #2a7c6f;
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background: #2a7c6f;
  color: white;
  text-align: center;
  padding: 1rem 0;
}
/* Our Doctors Section Background */
.doctors {
  background-color: #f0f7f7; /* light minty green/blue shade */
  padding: 4rem 0; /* space above and below the section */
  border-radius: 10px; /* optional, gives soft edges */
}
/* Doctor Cards Shadow */
.doctor-card {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* subtle shadow */
  border-radius: 10px; /* keeps edges smooth */
  overflow: hidden; /* ensures image corners follow card radius */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional hover effect */
.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
/* Fix doctor card sizing */
.doctor-card {
  width: 220px;          /* fixed card width */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  background-color: #fff;
}

/* Image inside doctor card */
.doctor-card img {
  width: 100%;           /* make image fill card width */
  height: auto;          /* maintain aspect ratio */
  display: block;
  object-fit: cover;     /* ensures image covers space without distortion */
}

/* Optional hover effect */
.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
/* Container for all doctor cards */
.doctors-container {
  display: flex;
  justify-content: center; /* centers cards horizontally */
  flex-wrap: wrap;         /* allows cards to wrap to next line on smaller screens */
  gap: 2rem;               /* space between cards */
  margin-top: 2rem;
}
/* Container for doctor cards */
.doctors-container {
  display: flex;
  justify-content: center; /* centers cards horizontally */
  flex-wrap: wrap;         /* allows cards to move to next line if needed */
  gap: 2rem;               /* space between cards */
  margin-top: 2rem;
}
/* Make all doctor images circular and uniform */
.doctor-card img {
  width: 200px;          /* fixed width */
  height: 200px;         /* fixed height */
  border-radius: 50%;    /* makes it circular */
  object-fit: cover;     /* ensures image covers the circle without distortion */
  display: block;
  margin: 0 auto 1rem;   /* centers image and adds space below */
}
.contact-info a {
  text-decoration: none;
  color: #333; /* same color as other contact text */
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #2a7c6f; /* matches your green theme */
}

.contact-info i {
  margin-right: 0.5rem;
  color: #2a7c6f; /* icon color matches theme */
}

/* About Hero */
.about-hero {
  background: url('gallery15.jpg')
              center/cover no-repeat;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  position: relative;
}
.about-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* darker overlay */
}
.about-hero .hero-overlay {
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}
.about-hero .hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.about-hero .hero-overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}


/* Mission & Vision */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.mv-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.mv-card i {
  font-size: 2rem;
  color: #2a7c6f;
  margin-bottom: 1rem;
}

/* Why Choose Us */
.choose-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.choose-card i {
  font-size: 2rem;
  color: #2a7c6f;
  margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 1.5rem;
}
.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
  height: 220px; /* slightly taller */
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: scaleUp 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes scaleUp {
  from {transform: scale(0.9);}
  to {transform: scale(1);}
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}
/* Services Hero */
.services-hero {
  background: url('gallery15.jpg')
              center/cover no-repeat;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  position: relative;
}
.services-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}
.services-hero .hero-overlay {
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}
.services-hero .hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.services-hero .hero-overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center; /* centers the cards in each column */
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.service-card h3 {
  color: #2a7c6f; /* your green */
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
}
.service-card h3 i {
  color: #2a7c6f; /* match your green theme */
  margin-right: 0.5rem;
  font-size: 1.1rem;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* stacked on mobile */
  }
}
.service-card:hover h3 i {
  color: #1e5e50; /* darker green on hover */
  transform: scale(1.2);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card h3 i {
  color: #2a7c6f; /* original green */
  margin-right: 0.5rem;
  font-size: 1.1rem;
  vertical-align: middle;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* subtle shadow */
}
.navbar .logo {
  font-size: 1.8rem; /* increase size to match About Us */
  font-weight: bold;
  color: #2a7c6f;
  text-decoration: none;
}

.navbar .nav-links li a {
  color: #333; /* default link color */
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
  color: #ffffff; /* text color on hover/active */
  background-color: #2a7c6f; /* your green theme */
  border-radius: 5px;
}

/* Contact Hero */
.contact-hero {
  background: url('https://images.unsplash.com/photo-1576765607920-1e8f2eaa8cbb?auto=format&fit=crop&w=1200&q=80')
              center/cover no-repeat;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  position: relative;
}
.contact-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(42, 124, 111, 0.65);
}
.contact-hero .hero-overlay {
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}
.contact-hero .hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.contact-hero .hero-overlay p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Contact Section */
.contact-info p i {
  color: #2a7c6f;
  margin-right: 0.5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Form */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact-form button {
  background-color: #2a7c6f;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: #1e5e50;
}

/* Icon Hover Effect */
.contact-info p i,
.contact-info p a i {
  color: #2a7c6f;
  margin-right: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.contact-info p i:hover,
.contact-info p a i:hover {
  color: #1e5e50;
  transform: scale(1.2);
}

/* Links hover */
.contact-info p a:hover {
  text-decoration: underline;
}

/* Form Field Focus Animation */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2a7c6f; /* green border */
  box-shadow: 0 0 5px rgba(42,124,111,0.5); /* subtle glow */
  outline: none; /* remove default outline */
  transition: all 0.3s ease;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: center;
}
/* Universal Hero Overlay Enhancement */
.hero, .about-hero, .services-hero, .contact-hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.about-hero::before,
.services-hero::before,
.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 30, 0.30); /* Slight dark green tint */
  backdrop-filter: blur(2px); /* soft blur effect */
  z-index: 1;
}

.hero-overlay,
.about-hero .hero-overlay,
.services-hero .hero-overlay,
.contact-hero .hero-overlay {
  position: relative;
  z-index: 2;
}
/* Hero Text Fade-in Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overlay h2,
.hero-overlay p,
.hero-overlay a,
.about-hero .hero-overlay h2,
.services-hero .hero-overlay h2,
.contact-hero .hero-overlay h2 {
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
}

/* Delay the paragraph slightly for a smooth sequence */
.hero-overlay p {
  animation-delay: 0.3s;
}

/* Delay buttons too */
.hero-overlay a {
  animation-delay: 0.6s;
}

/* Core Values Section */
.values {
  background-color: #f7faff;
  text-align: center;
  padding: 60px 20px;
}

.values h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #004a7c;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.value-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.value-card i {
  font-size: 2em;
  color: #0078c2;
  margin-bottom: 10px;
}

.value-card h3 {
  color: #004a7c;
  margin-bottom: 10px;
}

.value-card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.5;
}
/* Slideshow Section */
.slideshow {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: #f7faff;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.slideshow img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
}

/* Animation for fade effect */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Hide all slides by default */
.slide {
  display: none;
}
/* Slideshow Section */
.slideshow {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  padding: 40px 0;
}

.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Optional: subtle shadow and spacing */
.slideshow-container img {
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .slide img {
    height: 250px;
  }
}
.more-services-btn {
  text-align: center;
  margin-top: 30px;
}

.explore-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  border: 2px solid #0077b6; /* same blue tone as your navbar or theme */
  color: #0077b6;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  background-color: #0077b6;
  color: #fff;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.logo-img {
  height: 50px; /* adjust size */
  width: auto;
  margin-right: 10px;
  object-fit: contain;
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float i {
  font-size: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  background-color: #20ba5a;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.4);
  color: white;
}
.navbar {
  height: 80px; /* Neat, fixed height */
  display: flex;
  align-items: center;
  background: #fff; /* or whatever your navbar color is */
  padding: 0 40px; /* space around logo + menu */
  box-sizing: border-box;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem; /* small space between logo and menu */
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 100px;      /* controls vertical size — fits neatly in navbar */
  width: auto;       /* allows it to scale proportionally */
  max-width: 260px;  /* increase this number to allow more width */
  object-fit: contain;
  flex-shrink: 0;    /* prevents logo from shrinking when screen is small */
}