/* ==========================================================
   AKADEMIS MOBILE APPS SECTION
   ========================================================== */

/* ---------- Root section ---------- */
.akm-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f8fafc;
  padding: 20px 0 0;
}

/* ---------- Background accents ---------- */
.akm-bg {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Accent-2 → kiri bawah */
.akm-bg--left {
  left: -60px;
  bottom: 0;
  width: clamp(200px, 28vw, 420px);
  opacity: 0.9;
}

/* Accent-1 → kanan tengah (di belakang gambar persona) */
.akm-bg--right {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 36vw, 560px);
  z-index: 1;
  /* slider z-index lebih tinggi */
  opacity: 0.85;
}

/* ---------- Container utama ---------- */
.akm-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Kolom kiri: teks ---------- */
.akm-content {
  flex: 1 1 540px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.akm-label {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: -14px;
}

.akm-heading {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #1e293b;
  margin: 0;
}

.akm-desc {
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.75;
  color: #475569;
  max-width: 100%;
  margin: 0;
}

/* ---------- Store buttons ---------- */
.akm-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.akm-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  min-width: 155px;
}

.akm-store-btn:hover {
  background: #016E8D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(1, 110, 141, .35);
  color: #fff;
}

.akm-store-btn__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: currentColor;
}

.akm-store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.akm-store-btn__sub {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.8;
  white-space: nowrap;
}

.akm-store-btn__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Kolom kanan: slider ---------- */
.akm-slider-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  transform: translateX(20px);
}

.akm-slider {
  position: relative;
  width: clamp(320px, 38vw, 540px);
  height: clamp(340px, 42vw, 560px);
  overflow: hidden;
}

/* ---------- Individual slides ---------- */
.akm-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px) scale(0.97);
  transition: opacity 0.55s cubic-bezier(.4, 0, .2, 1),
    transform 0.55s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.akm-slide--active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.akm-slide__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .15));
}

/* Badge (Dosen / Mahasiswa / Tendik) */
.akm-slide__badge {
  position: absolute;
  top: 24px;
  left: 12px;
  z-index: 4;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* ---------- Dots navigasi vertikal ---------- */
.akm-dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
  padding: 10px 6px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.akm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  outline: none;
}

.akm-dot--active {
  background: #016E8D;
  transform: scale(1.4);
}

.akm-dot:focus-visible {
  outline: 2px solid #016E8D;
  outline-offset: 2px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .akm-container {
    padding: 0 32px;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .akm-section {
    padding: 10px 0 0;
  }

  .akm-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    gap: 0px;
  }

  .akm-content {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .akm-desc {
    max-width: 100%;
  }

  .akm-store-buttons {
    justify-content: flex-start;
  }

  .akm-slider-wrap {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    transform: translateX(0);
    margin-top: -180px;
    gap: 0;
  }

  .akm-slider {
    width: clamp(280px, 85vw, 400px);
    height: clamp(360px, 95vw, 500px);
  }

  .akm-dots {
    flex-direction: row;
    align-self: center;
    padding: 6px 10px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: -40px;
    position: relative;
    z-index: 10;
  }

  .akm-dot--active {
    transform: scale(1.4);
    height: 8px;
    width: 8px;
  }

  .akm-bg--left {
    width: 180px;
    left: -40px;
    bottom: 0;
  }

  .akm-bg--right {
    width: 200px;
    right: -20px;
    top: 30%;
  }

  .akm-slide__img {
    object-position: top center;
  }
}

@media (max-width: 480px) {
  .akm-heading {
    font-size: 26px;
  }

  .akm-store-btn {
    min-width: 140px;
    padding: 9px 16px;
  }
}