* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f6f9;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b1c2c;
  padding: 15px 30px;
  color: #fff;
}

.navbar .logo {
   font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFD700;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #FFD700;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Login button */
.login-btn {
  background: #FFD700;
  padding: 8px 14px;
  border-radius: 6px;
  color: #0b1c2c !important;
  font-weight: bold;
}

.login-btn:hover {
  background: #fff;
  color: #0b1c2c !important;
}
/*end navbar*/

/* Cards wrapper */
.cards-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;  /* pastikan semua card sama tinggi dalam row */
  flex-wrap: wrap;
  gap: 30px;
  padding: 30px;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #0b1c2c, #1a2e40);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  flex: 1 1 300px;   /* responsive auto resize */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 20px;
}

.card-title {
  margin-bottom: 12px;
  color: #FFD700;
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
}

.card-list {
  flex-grow: 1;
  margin-bottom: 18px;
  margin: 10px;
}

.card-list li {
  margin-bottom: 6px;
  color: #fff;
}

/* Button */
.btn {
  display: inline-block;
  background-color: #FFD700;
  color: #0b1c2c;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: center;
}

.btn:hover {
  background-color: #fff;
  color: #0b1c2c;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background: #0b1c2c;
    position: absolute;
    top: 100%;   /* follow height navbar */
    right: 20px;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
  }

  .navbar ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: #fff;
  }
}
