/* Existing styles from previous examples */
body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
    background-color: #f8f8f8;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-family: 'Lora', serif;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #e9a50d;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin-left: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
}

nav ul li a:hover {
  color: #e9a50d;
}

/* Hero Section */
#cities-directory-hero {
  background: linear-gradient(135deg, #f0e6d2, #e0c8a1);
  padding: 60px 0;
  text-align: center;
}

#cities-directory-hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: "Lora", serif;
}
#cities-directory-hero p {
  font-size: 1.1rem;
}

/* Directory Section */
#cities-directory {
  padding: 40px 0;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); 
  gap: 20px;
}

.directory-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
  margin: auto; 
  width: 90%; 
  max-width: 500px;
}

.directory-card:hover {
  transform: translateY(-5px);
}
.directory-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.directory-card h3 {
  padding: 15px;
  margin: 0;
  font-family: "Lora", serif;
}
.directory-card p {
  padding: 0 15px 15px 15px;
}
.explore-btn {
  display: inline-block;
  background-color: #e9a50d;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  margin: 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}
.explore-btn:hover {
  background-color: #d4940b;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

.hamburger-menu {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  header nav ul li {
    margin-left: 10px;
  }
  header nav ul li a {
    font-size: 0.9rem;
  }
  #cities-directory-hero h2 {
    font-size: 2.5rem;
  }
  #cities-directory-hero p {
    font-size: 1rem;
  }
  header .container {
    position: relative;
  }
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 1000;
  }
  nav ul {
    display: flex;
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav.open {
    display: flex;
  }
  .hamburger-menu {
    display: block;
  }
}
/* smaller screens */
@media (max-width: 480px) {
  #cities-directory-hero h2 {
    font-size: 2rem;
  }
  #cities-directory-hero p {
    font-size: 0.9em;
  }
  .directory-card {
    width: 100%;
  }
}
