body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #222;
  padding: 10px 20px;
}

.logo {
  height: 50px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

h1 {
  text-align: center;
  margin: 20px 0;
  font-size: 1.5rem;
}

.images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px;
}

.responsive-img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.grid-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px;
}

.grid-text h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.grid-text p {
  margin: 0;
  font-size: 0.9rem;
}

/* Small screens: 0–599px */
@media (max-width: 599px) {
  .images img:nth-child(2) {
    display: none;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1rem;
  }

  p {
    font-size: 0.8rem;
  }
}

/* Medium screens: 600–1199px */
@media (min-width: 600px) {
  .menu a {
    font-size: 1.2rem;
  }

  .grid-text {
    grid-template-columns: 1fr 1fr;
  }

  .responsive-img {
    max-width: 300px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }
}

/* Large screens: 1200px and up */
@media (min-width: 1200px) {
  .menu a {
    font-size: 1.4rem;
  }

  .grid-text {
    grid-template-columns: repeat(4, 1fr);
  }

  .responsive-img {
    max-width: 250px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1.2rem;
  }
}
