/* Global Styles */
:root {
  --primary: #099fd1;
  --secondary: #add8e6;
  /* --accent: #ff7f00;  */
  --light: #f8f9fa;
  --dark: #343a40;
  --text: #333;
  --text-color: #333;
  --text-light: #6c757d;
  --white: #fff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --accent: #d32f2f;
  --bg-light: #fff;
  --bg-table: #fdf6f6;
  --action-color: #d80000;
  --border-color: #ddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
}

/* Add these to your existing CSS */
html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
  width: 100%;
  overflow: hidden;
}

footer {
  flex-shrink: 0;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.tb-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background-color: var(--accent);
}

.btn-accent:hover {
  background-color: #e67300;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--light);
  color: var(--light);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  box-sizing: border-box;
  position: relative;
  min-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  /* overflow-x: hidden; */
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  margin-right: 10px;
}

.logo-text h1 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  list-style: none;
  justify-content: flex-start;
  max-width: 50%;
}

.nav-item {
  margin-left: 1em;
}

.nav-link {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active:after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 50, 0.6), rgba(0, 0, 50, 0.6)),
    url("../images/NCRH.webp") no-repeat bottom center/cover;
  /* background-attachment: fixed;  */
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.hero-buttons .btn {
  min-width: 180px;
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-content p {
  margin-bottom: 20px;
}

.mission-vision {
  background-color: #f1f8f5;
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
}

.mission-vision h4 {
  color: var(--primary);
  margin-bottom: 15px;
}

.mission-vision p {
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.mission-vision p:before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 2rem;
  color: var(--accent);
}

/* Services Section */
.services {
  background-color: #f8f9fa;
}

/* .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
} */

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  align-items: flex-start;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  margin-top: 15px;
}

.service-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.service-list li:before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Departments Section */
.departments {
  background-color: var(--white);
}

.departments-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.department-card {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.department-card:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-5px);
}

.department-card:hover h3,
.department-card:hover .department-icon {
  color: var(--white);
}

.department-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.department-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Team Section */
.team {
  background-color: #f8f9fa;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* align-items: center;  */
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-img {
  height: 250px;
  /* height: 300px; */
  overflow: hidden;
}

.team-img img {
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  /* object-position: top;  */
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.team-position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact Section */
.contact {
  background-color: var(--white);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background-color: #f1f8f5;
  padding: 40px;
  border-radius: 10px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
  color: var(--text-light);
}

.contact-map {
  height: 100%;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  min-height: 400px;
  border: none;
}

.contact-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Emergency Banner */
.emergency-banner {
  background-color: var(--accent);
  color: var(--white);
  /* color: var(--dark); */
  text-align: center;
  padding: 15px 0;
  font-weight: 600;
}

.emergency-banner a {
  color: var(--light);
  /* color: var(--dark); */
  text-decoration: underline;
}

/* Footer */
footer {
  box-sizing: border-box;
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: auto;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  margin-bottom: 15px;
  color: #adb5bd;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-contact-icon {
  margin-right: 10px;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 15px 0;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Search Container */
.search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  position: relative;
}

.search-form {
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
}

.search-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 15px;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background-color: var(--secondary);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .search-container {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }

  .search-container {
    order: 4;
    margin-top: 15px;
  }

  .nav {
    order: 5;
  }
}

/* Page Hero */
.page-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/pgh16.webp") no-repeat center center/cover;
  background-attachment: fixed;
  height: 300px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 100px;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-title {
  color: var(--primary);
  position: relative;
  margin-bottom: 15px;
}

.section-header .section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 15px auto 0;
}

.section-header .section-subtitle {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Text Center */
.text-center {
  text-align: center;
}

.bibo {
  margin: 2em 0;
}

/* Button Text */
.btn-text {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
}

.btn-text i {
  margin-left: 5px;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--secondary);
}

.btn-text:hover i {
  transform: translateX(5px);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.value-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Service Category */
.service-category {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.service-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.service-header i {
  font-size: 2rem;
  color: var(--accent);
  margin-right: 15px;
}

.service-header h3 {
  color: var(--primary);
}

.service-details {
  margin-top: 20px;
  padding-left: 55px;
}

.service-details h4 {
  margin-bottom: 10px;
  color: var(--text);
}

.service-details ul {
  list-style: none;
}

.service-details li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.service-details li:before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Department Listing */
.department-listing {
  margin-bottom: 60px;
}

.department-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.department-header i {
  font-size: 2rem;
  color: var(--accent);
  margin-right: 15px;
}

.department-header h3 {
  color: var(--primary);
}

.department-details {
  margin-top: 20px;
  padding-left: 55px;
}

/* Contact Form */
.contact-form-container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.emergency-notice {
  background-color: #fff8f8;
  border-left: 4px solid #d9534f;
  padding: 20px;
  margin-top: 30px;
  border-radius: 4px;
}

.emergency-notice h4 {
  color: #d9534f;
  margin-bottom: 10px;
}

.emergency-notice h4 i {
  margin-right: 10px;
}

/* CTA Section */
.cta {
  background: linear-gradient(rgba(0, 104, 55, 0.9), rgba(0, 104, 55, 0.9)),
    url("../images/cta-bg.jpg") no-repeat center center/cover;
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Team Content */
.team-content {
  background-color: #f8f9fa;
}

.team-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.team-category {
  margin-bottom: 60px;
}

.team-category-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

.team-category-title i {
  margin-right: 15px;
  font-size: 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-img {
  height: 300px;
  overflow: hidden;
  /* align-self: center;  */
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
  opacity: 0.9;
}

.team-card:hover .team-img img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.team-position {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-bio {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.team-qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  font-size: 0.85rem;
}

.team-qualifications span {
  display: flex;
  align-items: center;
}

.team-qualifications i {
  margin-right: 5px;
  color: var(--accent);
}

.team-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.team-cta p {
  max-width: 600px;
  margin: 0 auto 25px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-img {
    height: 250px;
  }
}

.mintags {
  font-size: 0.8em;
}

/* Enhanced Details Pages */
.details-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.details-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/pattern.png") repeat;
  opacity: 0.05;
}

.details-hero .container {
  position: relative;
  z-index: 2;
}

.details-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.details-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.details-content {
  padding: 60px 0;
  background-color: var(--white);
}

.detail-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.detail-card-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px 25px;
  display: flex;
  align-items: center;
}

.detail-card-header i {
  font-size: 1.8rem;
  margin-right: 15px;
  color: var(--white);
  opacity: 0.8;
}

.detail-card-header h3 {
  margin: 0;
  font-size: 1.4rem;
}

.detail-card-body {
  padding: 25px;
}

.service-overview {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-right: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

.feature-content h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

.sub-feature-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.sub-feature-list li {
  position: relative;
  padding: 5px 0;
  border-bottom: none;
}

.sub-feature-list li:before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: -15px;
}

.related-departments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.related-departments h3 {
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.5rem;
}

.related-departments h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent);
}

.department-mini-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.department-mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent);
}

.department-mini-card h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
  transition: var(--transition);
}

.department-mini-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.department-mini-card:hover h4 {
  color: var(--accent);
}

.department-mini-card:hover p {
  color: var(--text);
}

.back-to {
  text-align: center;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .details-hero {
    padding: 60px 0 40px;
  }

  .details-hero h1 {
    font-size: 2rem;
  }

  .detail-card-header {
    padding: 15px 20px;
  }

  .detail-card-header h3 {
    font-size: 1.2rem;
  }

  .detail-card-body {
    padding: 20px;
  }
}

/* Fix link wrapper behavior */
.department-mini-card-link {
  text-decoration: none;
  display: block;
  height: 100%;
}

@media (max-width: 768px) {
  .departments-row {
    grid-template-columns: 1fr;
  }

  .related-departments h3 {
    font-size: 1.3rem;
  }
}

/* Search Results Styles */
.search-results {
  background-color: #f8f9fa;
}

.search-category h3 {
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.no-results h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.no-results p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Enhance search input in header */
.search-container {
  flex: 1;
  max-width: 30%;
  margin: 0 20px;
  position: relative;
}

.search-form {
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 55, 0.1);
}

.search-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 15px;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background-color: var(--secondary);
}

/* Responsive search */
@media (max-width: 992px) {
  .search-container {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
  }
}

/* Same elegant styles from earlier */
.bio-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: "Segoe UI", sans-serif;
}
.bio-img {
  flex: 1 1 250px;
  max-width: 250px;
  border-radius: 10px;
  overflow: hidden;
}
.bio-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.bio-content {
  flex: 2 1 500px;
}
.bio-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #2c3e50;
}
.bio-role {
  font-size: 1.1rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 1rem;
}
.bio-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}
@media (max-width: 768px) {
  .bio-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .bio-content {
    flex: 1 1 auto;
  }
}

.view-bio-link {
  margin: 1em 0;
  display: inline-block;
  padding: 0.6em 1.2em;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: #2c3e50;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  align-self: center;
}

.view-bio-link:hover {
  background: #1a252f;
  transform: translateY(-2px);
}

.view-bio-link:after {
  content: " →";
  margin-left: 0.3em;
  transition: margin 0.3s ease;
}

.view-bio-link:hover:after {
  margin-left: 0.5em;
}

/* Gallery Styles */
.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-container {
  display: flex;
  transition: transform 0.5s ease;
  height: 400px; /* Adjust based on your needs */
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  transition: opacity 0.5s ease;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: var(--primary);
  color: white;
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

/* Modal Styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}

.gallery-modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90vh;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.gallery-close:hover {
  color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-container {
    height: 300px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    height: 250px;
  }

  .gallery-nav {
    width: 35px;
    height: 35px;
    padding: 8px;
    font-size: 1rem;
  }
}

/* Modal Styles */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.gallery-modal-content {
  display: inline-block;
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: auto;
  animation: zoom 0.3s;
  object-fit: contain;
}

/* Center the modal content vertically */
.gallery-modal::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

/* Animation for modal appearance */
@keyframes zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.gallery-close:hover {
  color: var(--accent);
}

/* Navigation buttons in modal */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav:hover {
  background: var(--primary);
  color: white;
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-modal-content {
    max-width: 95%;
    max-height: 85vh;
  }

  .modal-nav {
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 1.2rem;
  }

  .gallery-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

p.intro {
  text-align: left;
  margin-bottom: 2rem;
  color: #555;
}

.table-container {
  overflow-x: auto;
  background-color: var(--bg-table);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

thead {
  background-color: var(--primary);
  color: var(--light);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
}

tbody tr:nth-child(odd) {
  background-color: #fff;
}

tbody tr:hover {
  background-color: #fbe9e9;
}

.action-link {
  color: var(--action-color);
  font-weight: bold;
  text-decoration: none;
}

.action-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  th,
  td {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
}

/* Dropdown Navigation - Fixed Version */
.nav-menu {
  z-index: 9999; /* or higher than headers/other fixed elements */
}

.dropdown {
  position: relative;
}

.dropdown-icon {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  /* width: max-content;  */
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
  padding: 8px 0;
  margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu li {
  padding: 0 8px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  transition: var(--transition);
  font-size: 0.8rem;
  border-radius: 4px;
  margin: 0 4px;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 104, 55, 0.08);
  color: var(--primary);
}

/* Mobile Dropdown Fixes */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 0;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
    padding: 8px 0;
  }

  .dropdown-menu li {
    padding: 0;
  }

  .dropdown-menu a {
    padding: 12px 30px;
    margin: 0;
    border-radius: 0;
    font-size: 0.9rem;
  }

  .dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Make dropdown parent links clickable */
  .nav-item.dropdown > .nav-link {
    pointer-events: auto;
    position: relative;
    padding-right: 30px; /* Space for toggle icon */
  }

  /* Add mobile toggle icon */
  .dropdown > .nav-link::after {
    content: "+";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }

  .dropdown.active > .nav-link::after {
    content: "-";
  }
}

/* Mobile Menu Toggle Fix */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start */
    padding: 20px;
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 10px 0;
    width: 100%;
  }

  .nav-link {
    padding: 12px 0;
    display: block;
    width: 100%;
  }

  /* Ensure dropdown parent links work */
  .dropdown > .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Fix for active link indicator in dropdowns */
.nav-link {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

/* Special styling for dropdown parent links */
.dropdown > .nav-link:after {
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 0;
}

.dropdown:hover > .nav-link:after,
.dropdown > .nav-link.active:after {
  width: calc(100% - 30px); /* Adjust based on your dropdown icon size */
}

/* Mobile view adjustments */
@media (max-width: 992px) {
  .dropdown > .nav-link:after {
    display: none; /* Hide the underline on mobile for dropdown parents */
  }

  .dropdown-menu .nav-link:after {
    display: block; /* Show for dropdown items */
    left: 30px; /* Align with the dropdown item text */
    width: calc(100% - 60px); /* Account for padding */
  }

  .dropdown-menu .nav-link.active:after,
  .dropdown-menu .nav-link:hover:after {
    width: calc(100% - 60px);
  }

  /* Optional: Highlight active dropdown parent */
  .dropdown > .nav-link.active {
    color: var(--primary);
    background-color: rgba(0, 104, 55, 0.05);
    border-radius: 4px;
    padding: 5px 10px;
  }

  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    display: block;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 60vh; /* You can tweak this */
    overflow-y: auto;
    padding: 8px 0;
  }

  .dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }
  .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }

  .nav-link[data-touched="true"] {
    font-weight: bold;
  }
}

/* Scrollable dropdown for desktop */
@media (min-width: 993px) {
  .dropdown-menu {
    max-height: 60vh; /* You can adjust this */
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Optional: customize scrollbar */
  .dropdown-menu::-webkit-scrollbar {
    width: 6px;
  }

  .dropdown-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
}

.hospital-background-section {
  padding: 3rem 1rem;
  background-color: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.hospital-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hospital-logo {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.hospital-title h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--primary);
}

.subtitle {
  font-size: 0.9rem;
  color: #555;
}

.hospital-content h3 {
  margin-top: 1.5rem;
  color: var(--primary);
  font-size: 1.4rem;
}

.hospital-content h4 {
  margin-top: 1.2rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.hospital-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.hospital-content ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}

.hospital-content ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .hospital-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hospital-logo {
    width: 60px;
  }

  .hospital-title h2 {
    font-size: 1.5rem;
  }

  .hospital-content h3,
  .hospital-content h4 {
    font-size: 1.2rem;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Service Card */
.service-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Service Image */
.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.alert {
  padding: 12px 20px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 500;
}
