#katalog_section {
    position: relative;
    overflow: hidden;
}

#katalog_section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 49, 109, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.12), transparent 30%);
    pointer-events: none;
}

.katalog-shell {
    position: relative;
    z-index: 1;
}

.katalog-panel {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.katalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.katalog-header h5 {
    margin-bottom: 6px;
    font-weight: 700;
    color: #0f172a;
}

.katalog-header p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 13px;
}

.katalog-search {
    margin-bottom: 22px;
}

.katalog-search .input-group {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.katalog-search .form-control {
    height: 52px;
    border: 0;
    box-shadow: none !important;
    padding-left: 18px;
    font-size: 15px;
}

.katalog-search .btn_cari {
    min-width: 130px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #facc15 0%, #f59e0b 100%);
    color: #7c2d12;
    font-weight: 700;
}

.katalog-search .btn_cari:hover,
.katalog-search .btn_cari:focus {
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
    color: #7c2d12;
}

.lists_rusun {
    margin-left: -10px;
    margin-right: -10px;
}

.rusun-card-wrap {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.rusun-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rusun-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    border-color: rgba(250, 204, 21, 0.55);
}

.rusun-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(0, 49, 109, 0.08), rgba(250, 204, 21, 0.18));
    overflow: hidden;
}

.rusun-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rusun-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: #00316d;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.rusun-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.rusun-card-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.rusun-card-title:hover {
    color: #00316d;
    text-decoration: none;
}

.rusun-card-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rusun-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rusun-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
}

.rusun-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.rusun-card-actions .btn {
    border-radius: 10px;
    min-width: 120px;
    font-weight: 700;
    padding: 10px 14px;
}

.rusun-card-actions .btn-warning {
    background: linear-gradient(180deg, #facc15 0%, #f59e0b 100%);
    border-color: transparent;
    color: #7c2d12;
}

.rusun-card-actions .btn-primary {
    background: linear-gradient(180deg, #06408a 0%, #03316d 100%);
    border-color: transparent;
}

.rusun-empty,
.rusun-loading {
    background: #fff;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    padding: 26px 18px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .katalog-panel {
        padding: 16px;
        border-radius: 12px;
    }

    .katalog-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
    }

    .katalog-search .input-group {
        border-radius: 10px;
    }

    .katalog-search .form-control {
        height: 48px;
        font-size: 14px;
    }

    .katalog-search .btn_cari {
        min-width: 100px;
    }

    .rusun-card-body {
        padding: 14px;
    }

    .rusun-card-title {
        font-size: 16px;
    }

    .rusun-card-actions .btn {
        min-width: 0;
        flex: 1 1 100%;
    }
}