body {
  font-family: 'Comfortaa', sans-serif;
  background-color: #EEF4FA;
  margin: 0;
  padding: 0;
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #EEF4FA;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader {
  border: 6px solid #fff;
  border-top: 6px solid #2F80ED;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.header {
  background: linear-gradient(90deg, #2F80ED, #56CCF2);
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: bold;
}

.header p {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  padding: 30px 20px;
}

.card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(47,128,237,0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(47,128,237,0.2);
}

.card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

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

.card-content {
  padding: 12px;
}

.card-content h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #2F80ED;
}

.card-content p {
  margin: 0;
  color: #ccc;
  font-size: 11px;
}

.badge-terbaru {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #e53935;
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@media (min-width: 768px) {
  .card-container {
    justify-content: center;
  }

  .card {
    flex: 0 0 260px;
    max-width: 260px;
  }
}
