:root {
  --primary-color: #c62828;
  --secondary-color: #ef5350;
  --accent-color: #2e7d32;
  --dark-bg: #212121;
  --light-bg: #f8f9fa;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--light-bg);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Header Styles */
header {
  font-family: 'Poppins', sans-serif;
  background: var(--dark-bg);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 60px;
  margin-right: 15px;
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

nav a:hover {
  background: var(--primary-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--dark-bg);
  padding: 0.75rem 1.5rem;
  display: block;
}

.dropdown-content a:hover {
  background: var(--light-bg);
}

/* Main Content Styles */
/* Main Content Styles */
main {
  padding-top: 80px; /* Adjust this value based on your header height */
  padding-bottom: 60px;
}

.hero-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.jpg');
  background-size: cover;
  color: #fff;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

/* Slideshow Styles */
.slideshow-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin: 2rem 0;
}

.slide {
  display: none;
  height: 500px;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Departments Styles */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.department-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.department-card:hover {
  transform: translateY(-5px);
}

/* Footer Styles */
footer {
  background: var(--dark-bg);
  color: #fff;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.emergency-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-decoration: none;
}

.footer-bottom {
  background: #000;
  padding: 1rem 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }
  
  nav ul {
    flex-direction: column;
    text-align: center;
    margin-top: 1rem;
  }
  
  .slide {
    height: 300px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Dropdown Styles */
.dropdown-content a {
  color: var(--dark-bg);
  padding: 1rem;
  display: block;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content a strong {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.dropdown-content a p {
  font-size: 0.9rem;
  color: #555;
  margin: 0.5rem 0 0;
}

.dropdown-content a:hover {
  background: var(--light-bg);
}

/* Department Cards */
.department-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Legal Section Styles */
.legal-section {
  padding: 2rem 0;
}

.legal-documents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.document-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.document-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.document-card p {
  color: #555;
  margin-bottom: 1.5rem;
}

.document-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.document-btn:hover {
  background: var(--secondary-color);
}

/* Quick Links Section */
.quick-links {
  padding: 4rem 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.link-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.link-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.link-card p {
  color: #555;
  margin-bottom: 0;
}

/* Hero Button Styles */
.hero-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2.5rem; /* Increased padding for better readability */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600; /* Bold text */
  font-size: 1.1rem; /* Larger font size */
  letter-spacing: 0.5px; /* Slight spacing between letters */
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block; /* Ensure padding works correctly */
  margin-top: 1.5rem; /* Space above the button */
}

.hero-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px); /* Slight lift on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    flex-direction: column; /* Stack logo and nav vertically */
    align-items: center;
  }

  .logo {
    font-size: 1.5rem; /* Smaller logo text */
  }

  nav ul {
    flex-direction: column; /* Stack nav links vertically */
    text-align: center;
    margin-top: 1rem;
  }

  nav ul li {
    margin: 0.5rem 0; /* Add space between nav items */
  }

  /* Hero Section */
  .hero-title {
    font-size: 2rem; /* Smaller title */
  }

  .hero-text {
    font-size: 1.2rem; /* Smaller text */
  }

  .hero-btn {
    padding: 0.8rem 1.5rem; /* Smaller button */
    font-size: 1rem;
  }

  /* Quick Links Section */
  .links-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
  }

  .link-card {
    padding: 1.5rem; /* Smaller padding */
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr; /* Single column for mobile */
    text-align: center;
  }

  .footer-section {
    margin-bottom: 1.5rem;
  }

  .footer-section h3::after {
    width: 50%; /* Center the underline */
    left: 25%;
  }
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Department Details Styles */
/* Departments Section */
.departments {
  padding: 4rem 0;
}

.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.department-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.department-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.department-card p {
  color: #555;
  margin-bottom: 0;
}

/* Responsive Styles for Departments */
@media (max-width: 768px) {
  .department-info {
    flex-direction: column;
  }

  .department-image {
    height: 200px;
  }

  .department-description {
    padding: 1.5rem;
  }
}

/* Department Button Styles */
.department-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2.5rem; /* Increased padding for better readability */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600; /* Bold text */
  font-size: 1.1rem; /* Larger font size */
  letter-spacing: 0.5px; /* Slight spacing between letters */
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block; /* Ensure padding works correctly */
  margin-top: 1.5rem; /* Space above the button */
}

.department-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px); /* Slight lift on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Add this to your existing CSS */
/* Add this to your existing CSS */
.logo-link {
  display: flex;
  align-items: center; /* Align items vertically */
  text-decoration: none;
}

.logo-wrapper {
  display: flex;
  flex-direction: column; /* Stack logo and MP-061 vertically */
  align-items: center; /* Center the logo and MP-061 horizontally */
  margin-right: 15px; /* Space between logo and hospital name */
}

.logo-subtext {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 0.25rem; /* Adjust spacing as needed */
  margin-left: -9px
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
