html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #f5f1e8;
}

.navbar {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-family: "Verdana";
  font-size: 18px;
}

.navbar a:hover {
  text-decoration: underline;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background-color: #0f3b63;
  padding: 10px 20px;
}

.title {
  margin: 0;
  font-size: 48px;
  font-family: "Courier New";
  font-weight: normal;
  color: white;
}

.logo {
  width: 80px;
  height: auto;
}

.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(rgba(245, 241, 232, 0.7), rgba(245, 241, 232, 0.85)),
    url("images/UCB campus.jpg") center / cover no-repeat;
}

.hero-content {
  max-width: 700px;
  text-align: center;
}

.hero-tag {
  margin: 0 0 12px;
  font-family: "Verdana";
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0f3b63;
}

.hero-title {
  margin: 0;
  font-family: "Courier New";
  font-size: 52px;
  color: #102a43;
}

.hero-text {
  margin: 20px 0 32px;
  font-family: "Verdana";
  font-size: 20px;
  line-height: 1.6;
  color: #334e68;
}

.hero-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background-color: #0f3b63;
  color: white;
  text-decoration: none;
  font-family: "Verdana";
  font-size: 18px;
}

.hero-button:hover {
  background-color: #174f84;
}

.catalog-section,
.info-section {
  padding: 32px 24px 16px;
}

.section-title {
  margin: 0 0 20px;
  text-align: center;
  font-family: "Courier New";
  font-size: 36px;
  color: #102a43;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto 20px;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Verdana";
  font-size: 14px;
  color: #102a43;
}

.filter-bar select {
  padding: 12px 14px;
  border: 1px solid #d6cfbf;
  border-radius: 12px;
  background-color: white;
  font-family: "Verdana";
  font-size: 15px;
  color: #334e68;
}

#card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 1280px;
}

.card {
  width: 100%;
  max-width: 300px;
  background-color: white;
  border: 1px solid #e5e0d5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.18);
}

.card-content {
  padding: 0 0 18px;
  font-family: "Verdana";
  color: #5d6d7e;
}

.favorite-badge {
  display: inline-block;
  margin: 16px 16px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: #f6d68a;
  color: #7a4b00;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.card-content h2 {
  margin: 16px 16px 8px;
  font-size: 20px;
  color: #102a43;
}

.card-description {
  margin: 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.card-details {
  margin: 14px 16px 0;
}

.card-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: #7b8794;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: #e8f1fa;
  color: #0f3b63;
  font-size: 13px;
  text-transform: capitalize;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.info-section p {
  max-width: 500px;
  margin: 0;
  text-align: left;
  font-family: "Verdana";
  font-size: 18px;
  line-height: 1.6;
  color: #334e68;
}

.about-image {
  width: 280px;
  height: 420px;
  object-fit: cover;
  object-position: 82% center;
  border-radius: 12px;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contact-section {
  padding: 40px 24px 56px;
  background-color: #0f3b63;
}

.contact-section .section-title {
  color: white;
}

.contact-text {
  max-width: 650px;
  margin: 0 auto 24px;
  text-align: center;
  font-family: "Verdana";
  font-size: 18px;
  line-height: 1.6;
  color: white;
}

.recommend-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}

.recommend-form input,
.recommend-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-family: "Verdana";
  font-size: 16px;
  box-sizing: border-box;
}

.recommend-form textarea {
  min-height: 140px;
  resize: vertical;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  font-family: "Verdana";
  font-size: 18px;
  color: #5d6d7e;
}

@media (max-width: 1200px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  #card-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }

  #card-container {
    grid-template-columns: 1fr;
  }

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

  .info-section p {
    text-align: center;
  }
}

button {
  text-align: center;
  background-color: #d89b2b;
  border: none;
  padding-left: 10px;
  padding-right: 10px;
  height: 40px;
  border-radius: 10px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  margin: 5px;
}
