/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background-color: #fff;
  padding: 1em 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  color: #1e5f74;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1e5f74;
}

.phone {
  color: #1e5f74;
  font-weight: 700;
  text-decoration: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  font-size: 24px;
  z-index: 1001;
  width: 30px;
  height: 25px;
  position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #1e5f74;
  transition: all 0.3s ease;
}

.menu-btn span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  left: 0;
}

.menu-btn span::before {
  top: -8px;
}

.menu-btn span::after {
  bottom: -8px;
}

/* Transform to X when menu is active */
.menu-btn.active span {
  background-color: transparent;
}

.menu-btn.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn.active span::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.sidebar-overlay.active {
  display: block;
}

body.sidebar-open {
  overflow: hidden;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("assets/blur-hospital.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: #1e5f74;
  color: #fff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #16465a;
}

/* Services Section */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  color: #1e5f74;
}

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

.service-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  background-color: #ddd;
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: #1e5f74;
}

/* About Section */
.about {
  background-color: #fff;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
  height: 400px;
  background-color: #ddd;
  border-radius: 10px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: #1e5f74;
  margin-bottom: 20px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-member {
  text-align: center;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 auto 15px;
}

.team-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.team-role {
  color: #777;
  font-size: 14px;
}

/* Testimonials Section */
.testimonials {
  background-color: #f0f8ff;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
}

/* Contact Section */
.contact {
  background-color: #fff;
}

.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: #1e5f74;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.footer-services {
  margin-left: 2rem;
}

.footer-column {
  flex: 1;
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.copyright {
  margin-top: 30px;
  opacity: 0.7;
  font-size: 14px;
}

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

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .menu-btn {
    display: block;
    order: -1; /* Move to the left */
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -280px; /* Start off-screen */
    width: 250px;
    height: 100vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    border-bottom: 1px solid #f2f2f2;
  }

  .about-content {
    flex-direction: column;
  }

  .services-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-content {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}
