/* ===============================
   LAYOUT BARU (SEPERTI GAMBAR)
================================ */

.avatar-page {
  max-width: 1000px;
  margin: 0 auto;
  min-height: calc(100vh - 400px);
  padding: 3rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    -webkit-transform: translateY(30px);
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    -o-transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
}

.avatar-nav-layout {
  width: 100%;
  position: relative;
}

.avatar-arrow {
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

.avatar-arrow-left {
  left: -84px;
}

.avatar-arrow-right {
  right: -84px;
}

.avatar-arrow img {
  width: 54px;
  height: 54px;
  display: block;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.avatar-arrow:hover img {
  transform: scale(1.14);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
  -webkit-transform: scale(1.14);
  -moz-transform: scale(1.14);
  -ms-transform: scale(1.14);
  -o-transform: scale(1.14);
  -webkit-filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
}

/* FLEX HORIZONTAL */
.avatar-layout {
  display: flex;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  min-width: 0;
}

/* Atur lebar avatar-card lebih kecil, right-items mengisi sisa */
.avatar-layout > .avatar-card {
  flex: 0 0 464px;
  min-width: 0;
}

.avatar-layout > .right-items {
  flex: 1 1 auto;
  min-width: 0;
}

/* CARD GLOBAL */
.card {
  background: white;
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.avatar-layout .card {
  animation: fadeInUp 0.3s ease-out both;
  -webkit-animation: fadeInUp 0.3s ease-out both;
}

.avatar-layout .card:hover {
  transform: translateY(-14px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  -webkit-transform: translateY(-14px);
  -moz-transform: translateY(-14px);
  -ms-transform: translateY(-14px);
  -o-transform: translateY(-14px);
}

/* AVATAR CARD */
.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.avatar-card img {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.desc {
  font-size: 16px;
  font-weight: bold;
  margin-top: 0.8rem;
  line-height: 1.5;
  text-align: justify;
}

/* RIGHT SIDE */
.right-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Make the two cards inside .right-items fill the same height as the
   avatar card and share the available vertical space while keeping the
   defined gap between them. */
.right-items > .card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* ITEM GROUP */
.item-group {
  width: 100%;
  height: 100%;
}

.items {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.item {
  text-align: center;
  font-size: 12px;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.item-icon {
  font-size: 40px;
  margin-bottom: 5px;
}

/* Responsif: saat layar <900px, kembali ke kolom penuh */
@media (max-width: 900px) {
  .avatar-arrow-left {
    left: 8px;
  }

  .avatar-arrow-right {
    right: 8px;
  }

  .avatar-layout {
    flex-direction: column;
  }

  .avatar-layout > .avatar-card {
    flex: 1 1 auto;
  }

  .right-items > .card {
    flex: 1 1 auto;
  }
}
