/* ===== Global Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list & link styles */
ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}



/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  color: #000;
  padding: 1rem 5%;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  position: sticky; /* stays at top */
  top: 0;
  z-index: 100;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.navbar .logo h1 {
  font-size: 1.4rem;
  color: #000;
}

.navbar .logo span {
  font-weight: bold;
  color: #16787C; /* Brand Blue */
}

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar nav li {
  position: relative;
}

.navbar nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  padding: 5px 0;
}
/* Navbar hover effect */
.navbar nav a:hover {
  color: #16787C; /* highlight on hover */
}

/* Navbar sticky shadow (optional) */
.navbar.sticky {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}


/* Active link */
.navbar nav a.active,
.dropdown-content a.active {
  color: #16787C;
  font-weight: 600;
  border-bottom: 2px solid #16787C;
  padding-bottom: 3px; /* ensures space for underline */
  transition: 0.3s ease;
}

.page-title {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(to right, #f5f9ff, #ffffff); /* soft gradient */
  border-bottom: 2px solid #eee;
}

.page-title h2 {
  font-size: 2rem;
  color: #16787C;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-title p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}


/* ===== Dropdown General Styles ===== */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* ===== Dropdown Content ===== */
.dropdown-content {
  display: block; /* block for animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 100;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}

.dropdown-content a:hover {
  background: #fff;
  color : #094d4d;
}

/* Show dropdown on hover */
.dropdown:hover > .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== Sub Dropdown (for Team) ===== */
.dropdown-content .dropdown {
  position: relative;
}

.dropdown-content .dropdown > a::after {
  content: " ▶";
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown-content .dropdown:hover > a::after {
  transform: rotate(90deg);
}

/* Base hidden state for sub-dropdown */
.sub-dropdown {
  position: absolute;
  top: 0;
  left: 100%; /* opens to the right of the parent */
  background: #ffffff;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  z-index: 999;
}
/* Show sub dropdown only when hovering Team */
.dropdown-content .dropdown:hover > .sub-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Executive Leaders Section */
#executive-leaders {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

#executive-leaders h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #16787C; 
}

.leader-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.leader-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader-card2 {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.leader-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.leader-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #16787C;
  object-position: top center;
}
.leader-card2 img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #16787C;
}

.leader-card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}
.leader-card2 h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}
.leader-card2 p {
  margin: 5px 0 15px;
  font-size: 0.95rem;
  color: #666;
}


.leader-card p {
  margin: 5px 0 15px;
  font-size: 0.95rem;
  color: #666;
}

.leader-card button {
  background: #16787C;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}
.leader-card2 button {
  background: #16787C;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.leader-card2 button:hover {
  background: #094d4d;
}

.leader-card button:hover {
  background: #094d4d;
}

/* Make section more responsive on smaller screens */
@media (max-width: 600px) {
  .leader-card img {
    width: 120px;
    height: 120px;
  }

  .leader-card h3 {
    font-size: 1rem;
  }

  .leader-card p {
    font-size: 0.85rem;
  }
}
/* Make section more responsive on smaller screens */
@media (max-width: 600px) {
  .leader-card2 img {
    width: 120px;
    height: 120px;
  }

  .leader-card2 h3 {
    font-size: 1rem;
  }

  .leader-card2 p {
    font-size: 0.85rem;
  }
}

/* ===== Appointment Button in Navbar ===== */
.appointment-btn {
  background: #16787C; /* Brand Green-Blue */
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap; /* prevents breaking into two lines */
}

.appointment-btn i {
  font-size: 1rem;
}

/* Hover effect */
.appointment-btn:hover {
  background: #094d4d;
  transform: translateY(-2px); /* subtle lift */
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .appointment-btn {
    justify-content: center;
    width: 80%;
    margin: 0 auto;
  }
}


/* ===== Hamburger Menu ===== */
.menu-toggle {
  display: none; /* hidden on desktop */
  font-size: 1.8rem;
  cursor: pointer;
  color: #16787C; /* matches brand theme */
  background: none;
  border: none;
  outline: none;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
  }
}


/* ===== Responsive Navbar ===== */
@media (max-width: 768px) {
  .navbar {
    position: relative; /* ensures nav positions correctly */
  }

  .navbar nav {
    display: none;
    width: 100%;
    background: #ffffff;
    position: absolute;
    top: 100%; /* sits just below the header */
    left: 0;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  .navbar nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .navbar nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #16787C;
  }
}


/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 70vh;              /* covers 70% of viewport height */
  min-height: 400px;         /* ensures it’s never too short */
  max-height: 800px;         /* optional: keep slides from being too tall */
  overflow: hidden;
  text-align: center;
  color: #fff;
  display: flex;             /* helps center child content */
  justify-content: center;
  align-items: center;
}

/* Make sure background slides fill hero */
.hero .mySlide {
  height: 100%;
  width: 100%;
}


/* ===== Each Slide ===== */
.mySlide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  height: 100%; /* ensures full height */
  width: 100%;  /* ensures full width */
}

/* ===== Active Slide ===== */
.mySlide.active {
  opacity: 1;
  z-index: 1;
}

/* Optional overlay (for better text readability) */
.mySlide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3); /* dark overlay */
  z-index: 0;
}


/* ===== Hero Text ===== */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff; /* White text for contrast */
  padding: 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* readability */
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-content .btn {
  font-size: 1rem;
  padding: 12px 25px;
  border-radius: 8px;
}
/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}



/* ===== Slider Arrows ===== */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* centers vertically */
  width: 45px;
  height: 45px;
  background: rgba(0,0,0,0.4); /* subtle background */
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  user-select: none;
  z-index: 3;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background: #16787C;   /* NorthCare theme */
  color: #fff;           /* keep white icon */
  transform: translateY(-50%) scale(1.1); /* enlarge slightly */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


/* ===== Slider Dots ===== */
.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%); /* centers horizontally */
  width: auto;
  text-align: center;
  z-index: 3;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: #888; /* slightly darker on hover */
  transform: scale(1.2);  /* enlarge smoothly */
}

.dot.active {
  background-color: #16787C; /* NorthCare brand color */
  transform: scale(1.3); /* highlight active */
}


/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: #16787C; /* Primary color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #094d4d; /* Darker shade */
  color: #ffffff;
  transform: translateY(-2px); /* subtle lift */
}

.btn:active {
  transform: translateY(0); /* reset when clicked */
}


/* ===== Quick Links ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 50px 5%;
  text-align: center;
  background: #ffffff;
}

.link-card {
  background: #f5f9ff; /* Light brand accent */
  padding: 35px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
}

.link-card i {
  font-size: 2.2rem;
  color: #16787C;
  margin-bottom: 12px;
}

.link-card:hover {
  background: #16787C;
  transform: translateY(-5px);
}

.link-card:hover i {
  color: #ffffff;
}

.link-card a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  margin-top: 8px;
  transition: color 0.3s ease;
}

.link-card:hover a {
  color: #ffffff;
}


/* Responsive */
@media (max-width: 1024px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quick-links {
    grid-template-columns: 1fr;
  }

/* ===== Page Title (Reusable) ===== */
.page-title {
  text-align: center;
  padding: 60px 20px 30px;
  background: #f5f5f5;
}

.page-title h2 {
  font-size: 32px;
  color: #16787C;
  margin-bottom: 10px;
}

.page-title p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Services Section ===== */
#services {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #16787C;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.service-card i {
  font-size: 2.5rem;
  color: #16787C;
  margin-bottom: 15px;
}

.service-card h3 {
  margin: 10px 0;
  font-size: 1.3rem;
  color: #333;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.service-card a {
  display: inline-block;
  padding: 10px 18px;
  background: #16787C;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.service-card a:hover {
  background: #094d4d;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .page-title h2 {
    font-size: 26px;
  }

  .page-title p {
    font-size: 16px;
    padding: 0 10px;
  }

  .services-list {
    gap: 20px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .page-title h2 {
    font-size: 22px;
  }

  .page-title p {
    font-size: 15px;
  }

  .service-card i {
    font-size: 2rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }
}
}


/* ===== About Section ===== */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 5%;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row; /* text first, image second */
}

.about-text {
  flex: 1;
  min-width: 280px;
  order: 1; /* text comes first */
}

.about-text h2 {
  color: #16787C; /* theme color */
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #444;
  line-height: 1.6;
}

.about-image {
  flex: 1;
  min-width: 280px;
  order: 2; /* image always last */
  display: flex;
  justify-content: flex-end;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

/* Responsive About */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .about-image {
    justify-content: center;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }
}


/* ===== Vision & Mission Section ===== */
.vision-mission {
  padding: 50px 5%;
  background: #f9f9f9; /* soft contrast background */
  border-radius: 10px;
}

.vision-mission h2 {
  text-align: center;
  color: #16787C;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: bold;
}

.vision-mission h3 {
  margin-top: 20px;
  color: #16787C;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vision-mission p {
  margin: 10px 0 20px;
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

.vision-mission blockquote {
  font-style: italic;
  color: #333;
  background: #fff;
  padding: 15px 20px;
  border-left: 5px solid #16787C;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Responsive Vision & Mission */
@media (max-width: 768px) {
  .vision-mission {
    padding: 40px 20px;
  }

  .vision-mission h2 {
    font-size: 1.6rem;
  }

  .vision-mission h3 {
    font-size: 1.1rem;
  }

  .vision-mission p {
    font-size: 0.95rem;
  }
}



/* ===== Services Section ===== */
.services {
  text-align: center;
  padding: 60px 5%;
  background: #f5f9ff; /* Light brand accent */
}

.services h2 {
  color: #16787C;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card i {
  font-size: 2.5rem;
  color: #16787C;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

/* ===== Responsive Services Section ===== */
@media (max-width: 1024px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}


/* ===== Doctors Section ===== */
#doctors {
  padding: 60px 5%;
  text-align: center;
  background: #f9f9f9; /* Light background for contrast */
}

#doctors h2 {
  color: #16787C;
  margin-bottom: 35px;
  font-size: 2rem;
  font-weight: bold;
}

.doctor-list {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.doctor-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: 260px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.doctor-card h3 {
  margin-bottom: 8px;
  color: #16787C;
  font-size: 1.2rem;
  font-weight: 600;
}

.doctor-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.4;
}

.doctor-card button {
  margin-top: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #16787C;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.doctor-card button:hover {
  background: #094d4d;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* ===== Responsive Doctors Section ===== */
@media (max-width: 768px) {
  .doctor-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .doctor-card {
    width: 100%;
  }
}


/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 550px;
  width: 90%;
  position: relative;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-30px);
  animation: slideIn 0.3s ease forwards;
}

.modal-content h2 {
  color: #16787C;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.modal-content p {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.5;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease, transform 0.2s ease;
}

.close:hover {
  color: #094d4d;
  transform: scale(1.2);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Responsive Modal ===== */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    font-size: 0.95rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }
}

/* ===== Footer ===== */
footer {
  background: #16787C; 
  color: #ffffff;
  padding: 50px 5% 25px;
  margin-top: 40px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-col h4 {
  margin: 12px 0 6px;
  font-weight: bold;
  font-size: 1rem;
}

.footer-col p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s, text-decoration 0.3s;
}

.footer-col ul li a:hover {
  color: #ccecec;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
}

.footer-bottom .socials {
  margin-bottom: 12px;
}

.footer-bottom .socials a {
  margin: 0 10px;
  font-size: 1.3rem;
  display: inline-block;
  color: #ffffff;
  transition: transform 0.3s, color 0.3s;
}

.footer-bottom .socials a:hover {
  color: #0d5d5d; /* darker shade for hover */
  transform: scale(1.15);
}

/* ===== Responsive Footer ===== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  .footer-col {
    min-width: 100%;
  }
}


/* ===== Responsive Design (extra tweaks) ===== */
@media (max-width: 1024px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .quick-links {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .page-banner {
    font-size: 1.8rem;
    padding: 40px 15px;
  }
}

/* ===== Page Banner ===== */
.page-banner {
  background-color: #16787C; /* NorthCare theme color */
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.3;
  border-radius: 5px;
}

/* ===== Map ===== */
.map-container {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* ===== Contact Section ===== */
.contact-section {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.contact-section h2 {
  color: #16787C;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-section p {
  margin-bottom: 30px;
  color: #666;
  font-size: 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #16787C;
  box-shadow: 0 0 4px rgba(22, 120, 124, 0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: #16787C;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #0e5a5d;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 20px;
  }
}


.contact-form button:hover {
  background: #094d4d;
}
/* ===== News Page ===== */
/* News Section */
.news-section {
  padding: 60px 20px;
  background: #fff;
}

.news-title {
  text-align: center;
  font-size: 2rem;
  color: #16787C;
  margin-bottom: 40px;
}

.news-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.news-image img {
  max-width: 280px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-content {
  flex: 1;
}

.news-content h2 {
  font-size: 1.5rem;
  color: #16787C;
  margin-bottom: 15px;
}

.news-content h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
}

.news-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.news-content li {
  margin: 6px 0;
  line-height: 1.6;
}

.news-content p {
  margin-bottom: 15px;
  color: #555;
}

.news-content .highlight {
  font-weight: bold;
  color: #000;
}

.contact-info p {
  margin: 5px 0;
  font-size: 1rem;
  color: #16787C;
}

/* Responsive */
@media (max-width: 768px) {
  .news-wrapper {
    flex-direction: column;
  }

  .news-image img {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* ===== Donation Section ===== */
#donation {
  padding: 60px 20px;
  background: #ffffff;
}

.donation-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.donation-info, .donation-options {
  flex: 1 1 300px;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.donation-info h3, .donation-options h3 {
  color: #16787C;
  margin-bottom: 15px;
}

.donation-options ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.donation-options li {
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.donation-options li i {
  color: #16787C;
  font-size: 1.2rem;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .donation-container {
    flex-direction: column;
  }
}
/* ===== Modal Styling ===== */
.modal1 {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal1 .modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  animation: slideUp 0.5s ease;
}

.modal1 .modal-content h3 {
  color: #16787C;
  margin-bottom: 15px;
}

.modal1 .modal-content p {
  margin: 8px 0;
  font-size: 1rem;
  color: #333;
}

.modal1 .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
}
.modal1.show {
  display: flex;
  opacity: 1;
}

/* Animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Clinical Staff Section */
.clinical-staff {
  padding: 60px 20px;
  background: #f9fafc;
}

.clinical-staff .container {
  max-width: 1100px;
  margin: 0 auto;
}

.staff-title {
  text-align: center;
  font-size: 2rem;
  color: #0066cc;
  margin-bottom: 40px;
}

/* Grid Layout */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.staff-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.staff-card i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #0066cc;
}

/* Role-based colors */
.staff-card:nth-child(3) i,
.staff-card:nth-child(4) i {
  color: #28a745; /* Nurses green */
}

.staff-card:nth-child(5) i {
  color: #dc3545; /* Health worker red */
}

.staff-card h3 {
  font-size: 1.2rem;
  margin: 8px 0;
}

.staff-card p {
  font-size: 1rem;
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  .staff-title {
    font-size: 1.6rem;
  }

  .staff-card {
    padding: 20px;
  }

  .staff-card i {
    font-size: 1.6rem;
  }

  .staff-card h3 {
    font-size: 1rem;
  }

  .staff-card p {
    font-size: 0.9rem;
  }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 500px) {
  .modal1 .modal-content {
    width: 95%;
    padding: 20px;
  }

  .modal1 .modal-content p {
    font-size: 0.9rem;
  }
}
.copy-btn {
  margin-top: 15px;
  background: #16787C;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.copy-btn:hover {
  background: #094d4d;
}

.copy-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  color: green;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Popup Alert Styles ===== */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #fff;
  padding: 25px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  animation: popIn 0.3s ease;
}

.popup-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

#popup-close {
  background: #0078ff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

#popup-close:hover {
  background: #005fd1;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === Fade-in Animation on Scroll === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Community Engagement Section === */
.community {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
}

.community h2 {
  color: #009688;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.community-text {
  max-width: 850px;
  margin: 0 auto 2.5rem;
  text-align: justify;
  line-height: 1.8;
  color: #333;
  font-size: 1rem;
}

.community-text .highlight {
  color: #00796b;
  font-weight: 600;
}

/* Image Gallery Grid */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.img-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
}

.img-card:hover {
  transform: scale(1.03);
}

.img-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #f9f9f9;
  padding: 5px;
  border-radius: 8px;
}

.caption {
  padding: 0.8rem 1rem;
  background: #f7f7f7;
  font-size: 0.95rem;
  color: #444;
}

/* === Fade-in Animation on Scroll === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Mobile Responsive Adjustments === */
@media (max-width: 768px) {
  .community h2 {
    font-size: 1.5rem;
  }

  .community-text {
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 0.5rem;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }

  .img-card img {
    padding: 8px;
  }
}
/* ===== Gallery Section ===== */
.gallery-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.gallery-section h2 {
  color: #009688;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 10px;
}

.gallery-description {
  color: #444;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-size: 1rem;
}

.gallery-grid .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid .gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .gallery-section h2 {
    font-size: 1.6rem;
  }
  .gallery-description {
    font-size: 0.95rem;
  }
}

