* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f8f8f8;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

header {
  background: #333;
  color: #fff;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header h1 {
  font-size: 1.8em;
  margin-left: 20px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  transition: 0.3s all ease;
  padding: 10px;
  cursor: pointer;
}

nav ul li:hover {
  background-color: #eee;
}
nav ul li:hover > a {
  color: #000;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

.hero {
  background: url("hospital.jpg") no-repeat center center/cover;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero .container {
  background-color: rgba(51, 51, 51, 0.75);
  width: fit-content;
  padding: 20px;
  border-radius: 10px;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
}

.services h2 {
  color: #fff;
  padding: 20px 0;
}

.doctors {
  background-color: #333;
}

.services .container,
.doctors .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 30px;
}

.about,
.services,
.doctors,
.contact {
  padding: 50px 0;
}

.service,
.doctor {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.doctor img {
  max-width: 100%;
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}

.contact form {
  max-width: 400px;
  margin: 0 auto;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact textarea {
  height: 150px;
}

.contact button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}

.contact button:hover {
  background-color: #555;
}

@media screen and (max-width: 768px) {
  .container {
    width: 90%;
  }
}

@media screen and (max-width: 480px) {
  header h1 {
    font-size: 1.2em;
  }

  nav ul {
    display: none;
  }

  nav {
    text-align: center;
  }

  .hero {
    height: 300px;
  }

  .container {
    width: 95%;
  }
}
