/* Mega-menu navbar gaya Uxcel: item berjudul + deskripsi, kolom bergaris, kartu promo.
   Stylesheet bersama untuk semua halaman (navbar disalin manual ke tiap dist/**.html; markup-nya
   dipasang oleh scripts/navbar_layanan.py). Ditulis CSS polos supaya tidak bergantung pada
   utilitas Tailwind yang belum tentu ada di tiap bundle CSS halaman. */

.an-wrap-submenu .an-popup.an-mega {
  width: 880px;
  max-width: calc(100vw - 32px);
  padding: 16px;
}

.an-mega .an-mega-grid {
  display: flex;
  align-items: stretch;
}

.an-mega .an-mega-col {
  flex: 1 1 0;
  padding: 8px 16px;
}

.an-mega .an-mega-col + .an-mega-col {
  border-left: 1px solid #E5E5EA;
}

.an-mega .an-mega-label {
  display: block;
  padding: 0 12px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8E8E93;
}

.an-mega .an-mega-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background-color 0.15s;
}

.an-mega .an-mega-item:hover {
  background-color: #F2F2F7;
}

.an-mega .an-mega-title {
  display: block;
  font-size: 16px;
  line-height: 24px;
  color: #121212;
}

.an-mega .an-mega-desc {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 20px;
  color: #8E8E93;
}

.an-mega .an-mega-card {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin-left: 8px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #FFF0F6 0%, #F6F2FF 100%);
}

.an-mega .an-mega-card-title {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
  color: #121212;
}

.an-mega .an-mega-card-desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: #636366;
}

.an-mega .an-mega-link {
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
  color: #FF2D85;
}

.an-mega .an-mega-link:hover {
  text-decoration: underline;
}

.an-mega .an-mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background-color: #F7F7F9;
  font-size: 15px;
  line-height: 22px;
  color: #636366;
}

/* Footer situs bergaya kolom (scripts/footer_situs.py). Kelas .afx-* sendiri supaya tidak
   bergantung pada aturan .an-footer bersarang di tiap bundle CSS halaman. */
.an-footer .an-wrap > .afx-top + * {
  margin-top: 64px !important;
}

.afx {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}

@media (min-width: 1024px) {
  .afx {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 72px;
  }
}

.afx-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.afx-logo {
  height: 38px;
  width: auto;
}

.afx .afx-label {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  color: #121212;
}

.afx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.afx .afx-pill {
  padding: 6px 12px;
  border: 1px solid #E5E5EA;
  border-radius: 999px;
  font-size: 13px;
  line-height: 18px;
  color: #3A3A3C;
  background: #FFFFFF;
  transition: border-color .15s, color .15s;
}

.afx .afx-pill:hover {
  border-color: #FF2D85;
  color: #FF2D85;
}

.afx ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afx ul a {
  font-size: 15px;
  line-height: 22px;
  color: #636366;
  transition: color .15s;
}

.afx ul a:hover {
  color: #FF2D85;
}

.afx-sosials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.afx .afx-sosial {
  font-size: 20px;
  line-height: 1;
  color: #3A3A3C;
}

.afx .afx-sosial:hover {
  color: #FF2D85;
}

.afx-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.afx-apps img {
  height: 40px;
  width: auto;
}

.afx-bayar {
  width: 190px;
  height: auto;
}

.afx-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 24px;
}

@media (min-width: 768px) {
  .afx-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tombol hero halaman /layanan: di mobile menumpuk atas-bawah, lebar penuh, supaya label tidak
   terpotong dua baris. Kelas .an-hero-cta dipasang di 19 halaman layanan + build-exam-pages.py. */
@media (max-width: 767px) {
  .an-hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .an-hero-cta > a {
    display: flex;
    width: 100%;
    justify-content: center;
  }
}
