@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: radial-gradient(circle at top left, #dbeafe 0, #eef2ff 40%, #e5e7eb 100%);
    color: #0f172a;
}

/* MAIN WRAPPER */
.bp-main {
    min-height: 100vh;
    padding: 24px 6vw 40px;
}

/* HERO ATAS */
.bp-hero {
    margin-bottom: 24px;
}

.bp-hero-inner {
    border-radius: 22px;
    padding: 24px 22px;
    background: linear-gradient(120deg, #1d4ed8, #2563eb, #38bdf8);
    color: #f9fafb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    text-align: center;
}

.bp-hero-inner h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 6px;
    font-weight: 600;
}

.bp-hero-inner p {
    font-size: 0.96rem;
    opacity: 0.96;
    max-width: 720px;
    margin: 0 auto;
}

/* SECTION LIST */
.bp-section {
    max-width: 1080px;
    margin: 0 auto;
}

.bp-search {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.bp-search input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid #cbd5f5;
    background: #f8faff;
    outline: none;
    transition: .2s;
}

.bp-search input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.bp-search button {
    background: #2563eb;
    border: none;
    color: #fff;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.bp-search button:hover {
    background: #1d4ed8;
}


/* GRID 2 KOLOM */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* CARD BERITA */
.bp-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bp-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.bp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
}

/* COVER */
.bp-cover-wrap {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.bp-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.bp-card:hover .bp-cover {
    transform: scale(1.07);
}

/* KONTEN BAWAH */
.bp-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.bp-date i {
    margin-right: 4px;
    font-size: 0.85rem;
}

.bp-tag {
    background: #e0f2fe;
    color: #1d4ed8;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.bp-title {
    padding: 6px 16px 4px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.bp-snippet {
    padding: 0 16px 10px;
    font-size: 0.9rem;
    color: #4b5563;
    min-height: 3.6em;
    /* kira-kira 2 baris */
}

/* FOOTER CARD */
.bp-footer {
    padding: 10px 16px 14px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #1d4ed8;
    font-weight: 500;
}

.bp-footer i {
    font-size: 1rem;
}

/* PAGINATION */
.bp-pagination {
    margin-top: 20px;
}

/* kalau kosong */
.bp-empty {
    margin-top: 12px;
    background: #eff6ff;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

/* DETAIL PAGE */
.bp-detail-hero {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 20px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.bp-detail-cover-wrap {
    background: #020617;
}

.bp-detail-cover {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
}

.bp-detail-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 20px 18px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88), transparent);
    color: #e5e7eb;
}

.bp-detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.bp-detail-title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 600;
}

/* KONTEN DETAIL */
.bp-detail-content {
    max-width: 900px;
    margin: 24px auto 32px;
    padding: 0 8px;
}

.bp-article {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 20px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
    font-size: 0.95rem;
    line-height: 1.7;
    color: #111827;
}

/* GALERI */
.bp-gallery {
    margin-top: 20px;
}

.bp-gallery h2 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.bp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bp-gallery-item img {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

/* BACK LINK */
.bp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 500;
}

.bp-back-link i {
    font-size: 0.95rem;
}

/* FOOTER */
.see-all {
    text-align: center;
    padding: 16px 5vw 20px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ================= FIX PAGINATION LARAVEL ================= */
.bp-pagination {
    margin: 40px 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* sembunyikan text "Showing x to y of z results" */
.bp-pagination p,
.bp-pagination .hidden {
    display: none !important;
}

/* ul pagination */
.bp-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* link dasar */
.bp-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 */
.bp-pagination .page-link:hover {
    background: #1976d2;
    color: #fff;
}

/* active */
.bp-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    border-color: transparent;
}

/* disabled */
.bp-pagination .page-item.disabled .page-link {
    background: #f2f4f8;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

/* ================= FIX ICON SVG (INI PENTING) ================= */
.bp-pagination svg {
    width: 16px !important;
    height: 16px !important;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
    .bp-pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
}


/* FOOTER */
.footer {
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    padding: 20px;
    color: #888;
    background-color: #2F4156;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .bp-grid {
        grid-template-columns: 1fr;
    }

    .bp-main {
        padding-inline: 4vw;
    }
}

@media (max-width: 600px) {
    .bp-main {
        padding-inline: 16px;
    }

    .bp-detail-title {
        font-size: 1.4rem;
    }
}