* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  background-size: cover;
  background-repeat: no-repeat;
}

.topdiv {
  background-image: url('images/DSC.jpg'); /* replace with actual image */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center; 
}
.overlay {
  background-color: #96969648;
}
.topbar {
  background-color: #f9f9f996;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #333;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.topbar span a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.topbar span a:hover {
  color: #0f6f56;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}


.bottombar {
  background-color: #f9f9f996;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #333;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.bottombar span a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.bottombar span a:hover {
  color: #0f6f56;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

header {
  position: fixed;
  top: 44px;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.247);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  top: 0px;
}

header .logo img {
  height: 50px;
  transition: all 0.3s ease;
}

header nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

header nav ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

header.scrolled nav ul li a {
  color: #333;
}

nav ul.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul.nav-list > li {
  position: relative;
}

nav ul.nav-list a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s ease;
}

nav ul.nav-list .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 10px 0;
  display: none;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

nav ul.nav-list .dropdown-menu li {
  display: block;
  padding: 0;
}

nav ul.nav-list .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  white-space: nowrap;
}

nav ul.nav-list .dropdown-menu a:hover {
  background: #f2f2f2;
  color: #214c29;
}

/* Show dropdown on hover */
nav ul.nav-list li.dropdown:hover .dropdown-menu {
  display: block;
}



.logo {
  display: flex;
  align-items: center;
 
}

.logo img {
  height: 70px;
  width: 160px;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.hero {
  background-image: url('clinic.jpg'); /* replace with actual image */
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-text {
  text-align: center;
  font-size: 2rem;
  max-width: 800px;
}

.intro {
  padding: 60px 30px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.intro .tagline {
  color: #e84855;
  font-weight: bold;
  margin-bottom: 10px;
}

.intro p {
  font-size: 1.2rem;
  line-height: 1.5;
}

.heart-divider {
  font-size: 2rem;
  margin-bottom: 20px;
}


.departments {
  padding: 60px 30px;
  text-align: center;
  background-color: #eee;
}

.departments h2 {
  color: #214c29;
  font-size: 2rem;
  margin-bottom: 10px;
}

.department-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.card {
  width: 340px;
  height: auto;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-content a {
  text-decoration: none;
  color: #214c29;
  font-weight: 500;
}

.card-content a span {
  margin-left: 4px;
}

.services-section {
  padding: 60px 30px;
  background-color: #fff;
}

.services-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.services-text {
  flex: 1 1 600px;
  font-size: 1rem;
  color: #333;
}

.services-text h2 {
  margin-top: 30px;
  color: #214c29;
  font-size: 1.5rem;
  font-weight: bold;
}

.services-text ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.services-text ul li {
  margin-bottom: 8px;
  color: #555;
}

.services-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 150px; /* 👈 pushes the image down */
}

.services-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.doctors-section {
  padding: 60px 30px;
  text-align: center;
  background-color: #232f33;
}

.doctors-section h2 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
}

.doctors-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.doctor-card {
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  padding: 20px;
}

.doctor-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
}

.doctor-info h3 {
  font-size: 1rem;
  color: #214c29;
  margin-bottom: 10px;
}

.doctor-info p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 10px;
}

.cta-banner {
  background-color: #34573d; /* deep green */
  padding: 40px 20px;
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.cta-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
}

.cta-button {
  padding: 12px 20px;
  border: 1px solid #fff;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: white;
  color: #34573d;
}

.optometrist-section {
  padding: 60px 30px;
  background-color: #fff;
}

.about-practice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 1.6rem;
  color: #1f3c24;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.about-image img {
  max-width: 320px;
  border-radius: 6px;
}

.optometrist-services h2 {
  text-align: center;
  color: white;
  font-size: 1.4rem;
 margin-bottom: 30px;
  font-weight: bold;
  margin-top: 30px;
}

.optometrist-services {
  background-color: #232f33;
  padding-top: 20px;
  padding-bottom: 20px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 columns */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
   background-color: white;
   border-radius: 10px;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1rem;
  color: #214c29;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

a {
  color: #214c29;
  text-decoration: none;
}

.contact-hero {
  background-color: #396341;
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-top: 0;
}

.contact-hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px 30px;
  max-width: 100%;
  margin: auto;
  background-image: url('images/DSC.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
  margin-bottom: none;
}

.contact-box {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.contact-box h2 {
  color: #214c29;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-navbar {
  margin-top: -50px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #e63946; /* red tone */
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #214c29; /* darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}


/* ============================
   Mobile Responsive Styles
   ============================ */
   @media (max-width: 768px) {
    /* General adjustments */
    body {
      font-size: 0.9rem;
    }
  
    header {
      position: fixed;
      top: 44px;
      width: 100%;
      z-index: 1000;
      background-color: #fff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      top: 0px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 30px;
      transition: background-color 0.4s ease, box-shadow 0.3s ease;
    }
    
  
    .contact-navbar {
      margin-top: 0px;
    }
    
    header .logo img {
      height: 40px;
      width: auto;
    }
  
    header nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
      background: rgba(255, 255, 255, 0.95);
      width: 100%;
      padding: 15px;
      display: none; /* Hide nav on mobile by default */
      position: absolute;
      top: 70px;
      left: 0;
      color: #333;
    }
  
    header nav ul.show {
      display: flex;
      color: #333;
    }
  
    .menu-toggle {
      display: block;
      cursor: pointer;
      font-size: 1.8rem;
      color: #333;
      right: 10px;
    }

  
    nav ul.nav-list {
      display: none; /* hide initially on mobile */
      flex-direction: column;
      /* other styles */
    }

    nav ul.nav-list.show {
      display: flex; /* show when menu open */
    }
  
    nav ul.nav-list li {
      width: 100%;
      text-align: left;
      color: #333;
    }
  
    nav ul.nav-list .dropdown-menu {
      position: relative;
      top: 0;
      background: transparent;
      box-shadow: none;
      display: none;
      color: #333;
    }
  
    nav ul.nav-list li.dropdown:hover .dropdown-menu {
      display: block;
      color: #333;
    }
  
    /* Topbar */
    .topbar {
     display: none;
    }

    .bottombar {
      flex-direction: column;
      gap: 10px;
      padding: 10px;
    }
  
    /* Hero section */
    .hero {
      height: 50vh;
      padding: 20px;
      font-size: 1.5rem;
      text-align: center;
    }
  
    .hero-text {
      font-size: 1.4rem;
    }
  
    /* Intro */
    .intro {
      padding: 40px 20px;
    }
  
    /* Departments section */
    .department-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .card {
      width: 90%;
    }
  
    /* Services section */
    .services-container {
      flex-direction: column;
      align-items: center;
      gap: 30px;
    }
  
    .services-image {
      margin-top: 30px;
    }
  
    /* Doctors section */
    .doctors-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .doctor-card {
      width: 90%;
    }
  
    /* CTA banner */
    .cta-content {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }
  
    /* About Practice section */
    .about-practice {
      flex-direction: column;
    }
  
    .about-text, .about-image {
      flex: 1 1 100%;
      text-align: center;
    }
  
    .about-image img {
      max-width: 80%;
    }
  
    /* Optometrist services */
    .service-cards {
      grid-template-columns: 1fr;
    }
    
    .service-card {
      width: 100%;
      margin-left: 30px;
    }
    /* Contact Page */
    .contact-grid {
      grid-template-columns: 1fr;
      padding: 30px 20px;
    }
  
    .contact-box {
      padding: 20px;
    }

  
    
    header.scrolled .menu-toggle {
      color: #333;
    }

    
    
  }
  
/* Hamburger Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: #333;
  right: 10px;
  position: absolute;
}



/* Responsive Menu */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
  }

  nav ul.nav-list {
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    padding: 20px;
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 999;
  }

  nav ul.nav-list.show {
    display: flex;
  }

  nav ul.nav-list li {
    width: 100%;
    margin: 10px 0;
  }

  nav ul.nav-list li a {
    color: #333;
    width: 100%;
    display: block;
  }

  nav ul.nav-list .dropdown-menu {
    position: relative;
    background: transparent;
    box-shadow: none;
    display: none;
  }

  nav ul.nav-list li.dropdown:hover .dropdown-menu {
    display: block;
  }
}
