* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

header {
  display: flex;
  position: static;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: #cf1b1b;
}
header a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 2.375rem;
  font-family:
    "Luckiest Guy" "Knewave",
    system-ui;
  font-weight: 600;
  font-style: normal;
  padding: 1.25rem;
  color: #fff;
  text-shadow: 1px 1px 2px rgb(0, 0, 1);
}

header nav ul {
  display: flex;
  align-items: center;
}
header nav ul a {
  font-family: "Knewave", system-ui;
  font-size: 1.5rem;
  letter-spacing: 0;
}
.header-list {
  list-style: none;
  padding-left: 1.25rem;
  text-decoration: none;
}

/*________________________________________places-conainer____________________________________________________*/

#places-container img {
  height: 22.625rem;
  width: 17.5rem;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  box-shadow: 0.063rem 0.063rem 0.125rem black;
}

#places-container {
  display: flex;
  background-color: #cf1b1b;
  color: #fff;
  border-radius: 0.938rem;
  text-shadow: 1px 1px 2px rgb(0, 0, 1);
  box-shadow: 0.063rem 0.063rem 0.125rem black;
  overflow: hidden;
}

#places {
  width: 95%; 
  max-width: 75rem; 
  margin: 2rem auto; 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
li:nth-of-type(3) {
  grid-column: 1 / span 2;
}

#places-data {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#places-data h2 {
  font-family: "Luckiest Guy";
  text-transform: capitalize;
}

#places-data p {
  font-family: "Knewave", system-ui;
}
#item-content {
  text-align: end;
}
#places-data a {
  font-size: 1.375rem;
  font-family: "Knewave", system-ui;
  color: #fff;
  padding: 0.313rem;
}

/*________________________________________footer_____________________________________________________________*/

footer {
  background: #cf1b1b;
  padding: 0.625rem 0;
  text-align: center;
}

footer li {
  height: 6.25rem;
  width: 6.25rem;
  margin-left: 3.125rem;
}

footer img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

footer ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 
  RESPONSIVE DESIGN 
*/

/* For Tablets and smaller (Screens smaller than 1200px) */
@media (max-width: 1200px) {
  #places {
    width: 95%; 
    grid-template-columns: 1fr 1fr; 
  }
}

/* For Mobile Phones (Screens smaller than 768px) */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    flex-direction: column;
    padding: 1rem;
  }

  header a {
    font-size: 1.8rem;
    padding: 0.5rem;
  }

  header nav ul a {
    font-size: 1.2rem;
  }

  /* Places Grid adjustment */
  #places {
    grid-template-columns: 1fr; 
  }

  li:nth-of-type(3) {
    grid-column: auto;
  }

  /* Places Card adjustment */
  #places-container {
    flex-direction: column; 
  }

  #places-container img {
    width: 100%; 
    height: 250px; 
  }

  #places-data {
    padding: 1rem;
  }

  /* Footer adjustments */
  footer li {
    height: 4rem;
    width: 4rem;
    margin: 0 1rem;
  }
}
