.kontener {
  display: flex;
  padding: 10px;
  gap: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  position: relative;
  flex: 1;
  height: auto;
  color: white;
  overflow: hidden;
  transition: background-color 0.3s ease;
  cursor: normal;
}

.card .content {
  padding: 12px;
}

h2 {
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 1;
}

li {
  margin: 0 0 6px 0;
  font-size: 12px;
  line-height: 1;
}

ul {
  margin-left: 15px;
}

/* Kartu pertama (kiri dengan radius) */
.card.first {
  transition: transform 0.3s ease;
  background-color: #14532d;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  clip-path: polygon(
    0 0,
    calc(100% - 30px) 0,
    100% 50%,
    calc(100% - 30px) 100%,
    0 100%
  );
}

.card.first:hover {
  background-color: #0f4224;
}

/* Kartu tengah (kartu 2-5) */
.card.middle {
  transition: transform 0.3s ease;
  margin-left: -25px;
  clip-path: polygon(
    0 0,
    30px 50%,
    0 100%,
    calc(100% - 30px) 100%,
    100% 50%,
    calc(100% - 30px) 0
  );
}

.card.middle:nth-of-type(2),
.card.middle:nth-of-type(3),
.card.middle:nth-of-type(4),
.card.middle:nth-of-type(5),
.card.last {
  line-height: 1;
}

.card.middle:nth-of-type(2) li,
.card.middle:nth-of-type(3) li,
.card.middle:nth-of-type(4) li,
.card.middle:nth-of-type(5) li,
.card.last li {
  margin-left: 25px;
}

.card.middle:nth-of-type(2) h2,
.card.middle:nth-of-type(3) h2,
.card.middle:nth-of-type(4) h2,
.card.middle:nth-of-type(5) h2,
.card.last h2 {
  margin-left: 10px;
  line-height: 1;
}

.card.middle:nth-of-type(4) li,
.card.middle:nth-of-type(4) h2,
.card.middle:nth-of-type(5) li,
.card.middle:nth-of-type(5) h2,
.card.last li,
.card.last h2 {
  color: #14532d;
}

.icon-h2 {
  display: inline-block;
  width: 24px;
  margin-right: -5px;
  vertical-align: top;
}

.content h2 {
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

/* Warna gradasi masing-masing kartu */
.card.middle:nth-of-type(2) {
  background-color: #166534;
}
.card.middle:nth-of-type(2):hover {
  background-color: #134f2a;
}

.card.middle:nth-of-type(3) {
  background-color: #15803d;
}
.card.middle:nth-of-type(3):hover {
  background-color: #116733;
}

.card.middle:nth-of-type(4) {
  background-color: #22c55e;
}
.card.middle:nth-of-type(4):hover {
  background-color: #1da94f;
}

.card.middle:nth-of-type(5) {
  background-color: #4ade80;
}
.card.middle:nth-of-type(5):hover {
  background-color: #3ec96e;
}

/* Kartu terakhir */
.card.last {
  transition: transform 0.3s ease;
  background-color: #86efac;
  margin-left: -25px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  clip-path: polygon(
    0 0,
    30px 50%,
    0 100%,
    100% 100%,
    100% 0
  );
}

.card.last:hover {
  background-color: #6bd491;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* === Responsif (≤768px) === */
@media (max-width: 768px) {
  .kontener {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .card {
    width: 96%;
    margin-left: 0 !important;
    clip-path: none !important;
    border-radius: 10px !important;
  }

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}


  .card.first,
  .card.last {
    border-radius: 10px !important;
  }
}
