.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
  width: 320px;
  height: 280px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  justify-self: center;
}

.card.expanded {
  z-index: 2;
}

.card:hover:not(.expanded) {
  transform: translateY(-4px);
}
.card-inner {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-content {
  width: 320px;
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Detail tampil sebagai overlay agar layout tidak berubah */
.card-detail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: white;
  padding: 24px;
  opacity: 0;
  transform: scale(0.98) translateY(8px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  pointer-events: none;
  border-radius: 16px;
}

.card.expanded .card-detail {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.overlay-gradient {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
}

.tab-button.active {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
}

.collapsed-mini-content {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .card,
  .card.expanded {
    width: 100%;
    max-width: 320px;
    grid-column: 1;
  }

  .card.expanded .card-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    border-radius: 16px;
  }
}
