/* =========================
   WRAPPER
========================= */
.aep-wrap {
    max-width: 600px;
    margin: auto;
    padding: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================
   CARD
========================= */
.aep-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
}

/* =========================
   TOP (PRICE + BADGE)
========================= */
.aep-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.aep-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* =========================
   BADGE
========================= */
.aep-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.aep-badge.template { background: #ff3b3b; }
.aep-badge.ebook { background: #3b2bbf; }
.aep-badge.kursus { background: #ff3b3b; }
.aep-badge.studi { background: #ea580c; }
.aep-badge.buku { background: #059669; }
.aep-badge.tools { background: #0891b2; }

/* =========================
   TITLE
========================= */
.aep-title {
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0;
    color: #111;
}

/* =========================
   DESC
========================= */
.aep-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* =========================
   BUTTON AREA
========================= */
.aep-buttons {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* BUTTON */
.aep-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* STYLE */
.aep-btn-download,
.aep-btn-buy {
    background: #000;
    color: #fff;
}

/* =========================
   PASSWORD
========================= */
.aep-password-box {
    margin-top: 6px;
    display: flex;
    gap: 5px;
}

.aep-password-box input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 12px;
}

.aep-password-box button {
    padding: 8px 10px;
    border-radius: 6px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 12px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {

    .aep-price {
        font-size: 16px;
    }

    .aep-title {
        font-size: 15px;
    }

    .aep-btn {
        padding: 9px;
        font-size: 12px;
    }
}

.aep-card {
    transition: 0.2s;
}

.aep-card:hover {
    transform: translateY(-2px);
}

.aep-title {
    min-height: 20px;
}

.aep-desc {
    min-height: 36px;
}

.aep-desc p {
    margin: 0 !important;
}

.aep-card * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.aep-card {
    width: 100%;
}
.aep-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.aep-title a {
    color: #111;
    text-decoration: none;
}

.aep-title a:hover {
    text-decoration: underline;
}

.aep-card {
    position: relative;
}

.aep-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Biar tombol di atas link */
.aep-buttons,
.aep-password-box {
    position: relative;
    z-index: 2;
}

/* =========================
   PAGINATION WRAP
========================= */
.aep-pagination {
    text-align: center;
    margin-top: 20px;
}

/* =========================
   ITEM
========================= */
.aep-pagination a,
.aep-pagination span {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    background: #fff;
    transition: 0.2s;
}

/* HOVER */
.aep-pagination a:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ACTIVE */
.aep-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* NEXT PREV */
.aep-pagination .next,
.aep-pagination .prev {
    font-weight: 600;
}

/* dari sini */

/* =========================
   BUTTON WRAP
========================= */
.aep-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap; /* biar kalau 3 tombol turun rapi */
}

/* =========================
   BUTTON UMUM
========================= */
.aep-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

/* DOWNLOAD */
.aep-btn-download {
    background: #000;
    color: #fff;
}

/* BELI */
.aep-btn-buy {
    background: #000;
    color: #fff;
}

/* ADMIN WA */
.aep-btn-admin {
    background: #16a34a;
    color: #fff;
    flex: 100%; /* full lebar */
}
