@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "Coolvetica";
  src: url("coolvetica/Coolvetica\ Rg.otf") format("opentype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Coolvetica", "Montserrat", sans-serif;
  line-height: 1.6;
  color: #131010;
  background-color: #f8f8f8;
}

/* Hero */
.hero {
  height: 30vh;
  background: linear-gradient(to bottom, #f8f8f8, #f5e3cc);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
  flex-direction: column;
}

.hero h2 {
  font-size: 34px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  color: #543a14;
}

.hero p {
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #543a14;
}

.search-filter {
  margin-top: 70px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-filter ::placeholder {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.search-bar {
  width: 900px;
  border-radius: 10px;
  padding: 10px 10px;
  background: #ffffff;
  display: flex;
  gap: 10px;
}

#search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
}

.filter {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Coolvetica", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #131010;
  transition: all 0.3s ease;
  min-width: 150px;
}

.dropdown-btn:hover {
  background: #fffbf5;
}

.dropdown-btn.active {
  border-color: #f59e0b;
  background: #fffbf5;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #131010;
  font-size: 14px;
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
  border-radius: 10px;
  margin-bottom: 6px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: #f5e3cc;
  color: #543a14;
}

.dropdown-item.selected {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 600;
}

/* Isi */
.container {
  margin-top: 75px;
  margin-bottom: 75px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  justify-items: center;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  width: 264px;
  height: 318px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.45);
  color: white;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  backdrop-filter: blur(2px);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  color: #543a14;
  margin-bottom: 6px;
}

.card-description {
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #7a7a7a;
  margin-bottom: 16px;
  line-height: 1.4;
}

.btn-learn {
  background: #f0bb78;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-family: "Monserrat", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-learn:hover {
  background: #d97706;
  transform: scale(1.05);
}

.btn-learn:active {
  transform: scale(0.98);
}

/* TABLET */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 36px;
  }

  .hero {
    height: 45vh;
    padding: 0 30px;
  }

  .search-filter {
    margin-top: 50px;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
  }

  .search-bar {
    width: 100%;
    max-width: 600px;
  }

  .dropdown-btn {
    width: 100%;
    max-width: 600px;
    justify-content: center;
  }

  .dropdown-menu {
    width: 100%;
    max-width: 600px;
  }

  .container {
    margin-top: 40px;
    padding: 0 30px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }

  .card {
    width: 100%;
    max-width: 264px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 50vh;
    padding: 30px 15px;
  }

  .hero h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 14px;
  }

  .search-filter {
    margin-top: 30px;
    width: 100%;
    gap: 12px;
  }

  .search-bar {
    width: 100%;
    padding: 8px 10px;
  }

  #search-input {
    font-size: 14px;
  }

  .dropdown-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    min-width: unset;
  }

  .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
  }

  .dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
  }

  .container {
    margin-top: 30px;
    padding: 0 15px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .image-wrapper {
    height: 200px;
  }

  .card-content {
    padding: 15px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .btn-learn {
    width: 100%;
    padding: 12px 20px;
  }
}
