/*
 * SIHAKI V3 — PATCH 10 | Header dan pagination katalog Guest.
 * Diload setelah guest-ui-v9.css. Menjaga tema hijau dan layout sebelumnya.
 */

/* Gradasi berlapis dengan motif arsitektural gerbang kampus yang halus. */
.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(112deg, #063c30 2%, #0b6246 52%, #247d55 100%);
}

.page-header::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 110% at 92% 105%, rgba(191, 213, 154, 0.15), transparent 72%),
        radial-gradient(ellipse 48% 85% at 16% -30%, rgba(229, 204, 134, 0.12), transparent 84%),
        linear-gradient(125deg, transparent 36%, rgba(255, 255, 255, 0.035) 50%, transparent 65%);
}

/* Motif gapura abstrak: tidak dimaksudkan sebagai foto resmi Gerbang UNNES. */
.page-header::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: -14%;
    width: min(40%, 540px);
    height: 108%;
    pointer-events: none;
    opacity: 0.10;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 570 340'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='9'%3E%3Cpath d='M18 334V135l30-32h474l30 32v199M52 334V158h466v176'/%3E%3Cpath d='M94 334V216a52 52 0 0 1 104 0v118M232 334V216a52 52 0 0 1 104 0v118M370 334V216a52 52 0 0 1 104 0v118'/%3E%3Cpath d='M32 132h504M68 92h434M110 70h350M162 48h246'/%3E%3C/g%3E%3C/svg%3E") no-repeat right bottom / contain;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

/* Navigasi halaman tabel — 20 hasil per halaman, dengan filter tersimpan. */
.ki-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 13px;
    padding: 17px 24px;
    border-top: 1px solid #e4ece6;
    background: #fcfdfc;
}

.ki-pagination-caption {
    color: #62786a;
    font-size: 0.87rem;
    font-weight: 550;
}

.ki-catalog-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ki-catalog-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #dce7de;
    border-radius: 6px !important;
    color: #2b6447;
    background: #fff;
    font-size: 0.85rem;
    line-height: 1.25;
    box-shadow: none;
}

.ki-catalog-pagination .page-item.active .page-link {
    color: #fff;
    background: #146a49;
    border-color: #146a49;
}

.ki-catalog-pagination .page-item:not(.disabled):not(.active) .page-link:hover {
    background: #edf6ef;
    border-color: #9fceb0;
}

.ki-catalog-pagination .page-item.disabled .page-link {
    color: #9caaa0;
    background: #f7faf8;
}

.ki-catalog-pagination .page-link:focus-visible {
    outline: 2px solid #146a49;
    outline-offset: 2px;
}

/* Judul KI berdiri sendiri tanpa nomor pendaftaran di baris bawahnya. */
.ki-catalog-table .ki-catalog-title {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .page-header::after {
        width: 76%;
        opacity: 0.065;
    }

    .ki-catalog-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 18px;
    }
}
