@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    background: #eef3ff;
    color: #0f172a;
}

/* MAIN WRAPPER */
.pp-main {
    min-height: 100vh;
    padding: 24px 5vw 40px;
    background: #f3f6ff;
}

/* HERO */
.pp-hero {
    margin-bottom: 20px;
}

.pp-hero-inner {
    background: linear-gradient(120deg, #1d4ed8, #2563eb, #38bdf8);
    color: #f9fafb;
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.35);
    text-align: center;
}

.pp-hero-inner h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    margin-bottom: 6px;
    font-weight: 600;
}

.pp-hero-inner p {
    font-size: 0.96rem;
    max-width: 640px;
    margin: 0 auto;
}

/* SEARCH */
.pp-search-section {
    margin: 18px 0 8px;
}

.pp-search-form {
    max-width: 640px;
    margin: 0 auto;
}

.pp-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid #dbeafe;
}

.pp-search-input-wrap i {
    color: #2563eb;
}

.pp-search-input-wrap input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.9rem;
    font-family: inherit;
    background: transparent;
}

.pp-search-info {
    margin-top: 6px;
    font-size: 0.85rem;
    text-align: center;
    color: #4b5563;
}

/* SECTION GRID */
.pp-section {
    max-width: 1100px;
    margin: 18px auto 0;
}

/* GRID 2 KARTU */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 18px;
}

/* CARD */
.pp-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pp-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.pp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.2);
}

/* COVER */
.pp-cover-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pp-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* META */
.pp-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 0;
    font-size: 0.8rem;
    color: #4b5563;
}

.pp-date i {
    margin-right: 4px;
    color: #1d4ed8;
}

.pp-tag {
    background: #e0f2fe;
    color: #1d4ed8;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* TITLE + SNIPPET */
.pp-title {
    font-size: 1.02rem;
    font-weight: 600;
    padding: 6px 14px 4px;
    color: #0f172a;
}

.pp-snippet {
    padding: 0 14px 10px;
    font-size: 0.88rem;
    color: #4b5563;
}

/* FOOTER */
.pp-footer {
    padding: 8px 14px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #2563eb;
}

.pp-footer i {
    font-size: 0.9rem;
}

/* PAGINATION */
.pp-pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.pp-empty {
    padding: 14px 12px;
    background: #e0e7ff;
    border-radius: 12px;
    font-size: 0.9rem;
}

.bp-pagination {
    margin: 40px 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* sembunyikan text "Showing x to y of z results" */
.pp-pagination p,
.pp-pagination .hidden {
    display: none !important;
}

/* ul pagination */
.pp-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* link dasar */
.pp-pagination .page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid #1976d2;
    background: #fff;
    color: #1976d2;
    font-weight: 600;
    font-size: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    transition: all .25s ease;
}

/* hover */
.pp-pagination .page-link:hover {
    background: #1976d2;
    color: #fff;
}

/* active */
.pp-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    border-color: transparent;
}

/* disabled */
.pp-pagination .page-item.disabled .page-link {
    background: #f2f4f8;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

/* ================= FIX ICON SVG (INI PENTING) ================= */
.pp-pagination svg {
    width: 16px !important;
    height: 16px !important;
}

/* ================= MOBILE ================= */
@media (max-width: 1000px) {
    .bp-pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }

    .pp-grid{
         grid-template-columns: 2fr;
    }
}

/* FOOTER */
.pp-footer-page {
    text-align: center;
    padding: 14px 5vw 18px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .pp-main {
        padding-inline: 16px;
    }
    .pp-grid {
    display: grid;
    grid-template-columns: repeat(automax, minmax(280px, 1fr));
    gap: 18px;
}
}

/* FOOTER */
.footer {
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    padding: 20px;
    color: #888;
    background-color: #2F4156;
}