/* =====================================================================
   FINEXY-JENDELA — Tema Finexy adaptasi untuk OPAC jendela (inlislite33)
   Layout home: Full Finexy (home-page / home-shell / hero / search panel
                / shortcut list / stat card / book card / news card)
   Skema: ORANYE (#ea580c)
   ===================================================================== */

/* ── 0. PALET ORANYE (override brand lama) ───────────────────────── */
:root {
    --brand-50: #fff7ed;
    --brand-100: #ffedd5;
    --brand-200: #fed7aa;
    --brand-300: #fdba74;
    --brand-500: #f97316;
    --brand-600: #ea580c;
    --brand-700: #c2410c;
    --brand-800: #9a3412;
    --brand-hover: #c2410c;
    --finexy-icon: #ea580c;
}

body {
    background-color: rgb(244, 247, 250);
}

/* NAVBAR + tombol global tetap oranye */
.navbar-custom {
    background-color: var(--brand-600) !important;
    border-bottom: 1px solid var(--brand-700) !important;
}
.btn-brand {
    background-color: var(--brand-600) !important;
}
.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-800) !important;
}
.btn-primary {
    background-color: var(--brand-600) !important;
}
.pagination .page-link {
    color: var(--brand-700);
}
.pagination .page-item.active .page-link {
    background: var(--brand-600) !important;
    border-color: var(--brand-600) !important;
    color: #fff;
}
.text-brand {
    color: var(--brand-700) !important;
}
.section-title {
    color: var(--brand-700) !important;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-500) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .18) !important;
}
::-webkit-scrollbar-thumb {
    background: var(--brand-300);
}

/* =====================================================================
   HOME — FULL FINEXY LAYOUT (class milik tema Finexy, dialihkan oranye)
   ===================================================================== */

/* ~home-page: shell penuh */
.home-page {
    --home-blue: #ea580c;
    --home-blue-dark: #c2410c;
    --home-blue-soft: #fff3e8;
    --home-border: #f4e3d2;
    --home-text: #172b43;
    --home-muted: #64748b;
    --home-link: #ea580c;
    min-height: 100vh;
    padding: 16px 20px 60px;
    color: var(--home-text);
    background: rgb(244, 247, 250);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.home-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

/* ── HERO / BANNER ─────────────────────────────────────────────── */
.home-hero {
    position: relative;
    margin-bottom: 16px;
}
.home-banner-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.home-banner-track::-webkit-scrollbar,
.home-shortcut-list::-webkit-scrollbar,
.home-stat-list::-webkit-scrollbar,
.home-book-list::-webkit-scrollbar,
.home-news-list::-webkit-scrollbar {
    display: none;
}
.home-banner-slide {
    position: relative;
    flex: 0 0 100%;
    height: 310px;
    overflow: hidden;
    background: var(--home-border);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    scroll-snap-align: center;
}
.home-banner-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-banner-copy {
    position: absolute;
    inset: auto auto 24px 24px;
    width: min(520px, 100% - 48px);
    padding: 16px 18px;
    color: #fff;
    background: rgba(17, 43, 70, .84);
    border-radius: 14px;
}
.home-banner-copy > span {
    display: inline-block;
    margin-bottom: 5px;
    color: #fde3cd;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}
.home-banner-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
}
.home-banner-copy p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: #e8e2e0;
    font-size: .8rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-banner-dots {
    display: flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 8px;
}
.home-banner-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    background: #b8b0a8;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width .2s, background-color .2s;
}
.home-banner-dots button.is-active {
    width: 22px;
    background: var(--home-link);
}

/* ── SEARCH PANEL ──────────────────────────────────────────────── */
.home-search-panel {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 16px;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: rgba(194, 65, 12, .05) 0 3px 12px;
}
.home-search-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}
.home-search-heading > span {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--home-link);
    background: var(--home-blue-soft);
    border-radius: 11px;
}
.home-search-heading > span i {
    font-size: 19px;
}
.home-search-heading h2,
.home-section-header h2 {
    margin: 0;
    color: var(--home-text);
    font-size: .98rem;
    font-weight: 700;
}
.home-search-heading p,
.home-section-header p {
    margin: 2px 0 0;
    color: var(--home-muted);
    font-size: .72rem;
}
.home-search-panel form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}
.home-search-field {
    position: relative;
    margin: 0;
}
.home-search-field > i {
    position: absolute;
    top: 50%;
    left: 14px;
    font-size: 18px;
    color: #74899e;
    transform: translateY(-50%);
    pointer-events: none;
}
.home-search-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 43px;
    color: var(--home-text);
    background: #fff;
    border: 1px solid #d9a98c;
    border-radius: 11px;
    outline: 0;
    font-size: .84rem;
}
.home-search-field input:focus {
    border-color: var(--home-link);
    box-shadow: rgba(249, 115, 22, .12) 0 0 0 3px;
}
.home-search-panel form > button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    color: #fff;
    background: var(--home-link);
    border: 1px solid var(--home-link);
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s;
}
.home-search-panel form > button:hover {
    background: var(--home-blue-dark);
}
.home-search-suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    box-shadow: rgba(23, 43, 67, .16) 0 12px 28px;
}
.home-search-suggestions[hidden] {
    display: none;
}
.home-search-suggestions button {
    display: flex;
    width: 100%;
    padding: 10px 13px;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e8eef4;
    text-align: left;
    cursor: pointer;
}
.home-search-suggestions button:last-child {
    border-bottom: 0;
}
.home-search-suggestions button:hover,
.home-search-suggestions button:focus {
    background: #f2f7fb;
}
.home-search-suggestions strong {
    max-width: 100%;
    overflow: hidden;
    color: #294158;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-search-suggestions small {
    max-width: 100%;
    overflow: hidden;
    color: var(--home-muted);
    font-size: .67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── HOME SECTION (kartu panel) ────────────────────────────────── */
.home-section {
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: rgba(194, 65, 12, .05) 0 3px 12px;
}
.home-section-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #e6ede3;
}
.home-section-header > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--home-link);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}
.home-section-header > a i {
    font-size: 13px;
}

/* ── SHORTCUT LIST (grid 8 kolom desktop) ──────────────────────── */
.home-shortcut-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}
.home-shortcut-list > a {
    display: flex;
    min-width: 0;
    min-height: 126px;
    padding: 13px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: #faf7f4;
    border: 1px solid #f0e2d6;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: .2s;
}
.home-shortcut-list > a > span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
    color: var(--icon-color, var(--home-link));
    background: var(--icon-bg, var(--home-blue-soft));
    border-radius: 13px;
}
.home-shortcut-list > a > span i {
    font-size: 22px;
}
.home-shortcut-list strong {
    color: #294158;
    font-size: .72rem;
    line-height: 1.3;
}
.home-shortcut-list small {
    margin-top: 3px;
    color: var(--home-muted);
    font-size: .62rem;
}
.home-shortcut-list > a:hover,
.home-shortcut-list > a:focus {
    background: #fbf3eb;
    border-color: #e6b48f;
    transform: translateY(-2px);
    box-shadow: rgba(194, 65, 12, .08) 0 8px 20px;
}

/* ── STAT LIST ─────────────────────────────────────────────────── */
.home-stat-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}
.home-stat-card {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    background: #faf7f4;
    border: 1px solid #f0e2d6;
    border-radius: 14px;
}
.home-stat-card > span {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--home-link);
    background: var(--home-blue-soft);
    border-radius: 11px;
}
.home-stat-card > span i {
    font-size: 19px;
}
.home-stat-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.home-stat-card small {
    color: var(--home-muted);
    font-size: .68rem;
    font-weight: 650;
}
.home-stat-card strong {
    color: var(--home-text);
    font-size: 1.35rem;
    line-height: 1.2;
}
.home-stat-card em {
    margin-top: 3px;
    color: #81909a;
    font-size: .62rem;
    font-style: normal;
}

/* ── BOOK LIST ─────────────────────────────────────────────────── */
.home-book-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 16px;
}
.home-book-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
    min-width: 0;
    padding: 10px;
    background: #fdfdfc;
    border: 1px solid #f0e2d6;
    border-radius: 13px;
    transition: box-shadow .2s, transform .2s;
}
.home-book-card:hover {
    transform: translateY(-3px);
    box-shadow: rgba(194, 65, 12, .1) 0 10px 24px;
}
.home-book-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #f0e8e0;
    border-radius: 9px;
}
.home-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-cover-fallback {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 7px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #a89b90;
    text-align: center;
}
.home-cover-fallback[hidden] {
    display: none;
}
.home-cover-fallback i {
    font-size: 22px;
}
.home-cover-fallback small {
    font-size: .55rem;
    font-weight: 650;
}
.home-book-card > div {
    min-width: 0;
    padding-top: 3px;
}
.home-book-card h3 {
    display: -webkit-box;
    margin: 0 0 7px;
    overflow: hidden;
    color: #263e56;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.home-book-card h3 a {
    color: inherit;
    text-decoration: none;
}
.home-book-card h3 a:hover {
    color: var(--home-link);
}
.home-book-card p,
.home-book-card > div > small {
    display: block;
    margin: 0;
    overflow: hidden;
    color: var(--home-muted);
    font-size: .66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-book-card > div > small {
    margin-top: 4px;
    color: #8797a8;
}

/* ── NEWS LIST ─────────────────────────────────────────────────── */
.home-news-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}
.home-news-card {
    min-width: 0;
    overflow: hidden;
    background: #fdfdfc;
    border: 1px solid #f0e2d6;
    border-radius: 13px;
}
.home-news-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f0e8e0;
}
.home-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.home-news-card:hover .home-news-thumb img {
    transform: scale(1.02);
}
.home-news-card > div {
    padding: 11px 12px 12px;
}
.home-news-card > div > span {
    color: var(--home-link);
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
}
.home-news-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 4px 0 8px;
    overflow: hidden;
    color: #263e56;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-news-card h3 a {
    color: inherit;
    text-decoration: none;
}
.home-news-card h3 a:hover {
    color: var(--home-link);
}
.home-news-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--home-muted);
    font-size: .64rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ── EMPTY STATE ───────────────────────────────────────────────── */
.home-empty {
    display: flex;
    min-height: 230px;
    padding: 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.home-empty > span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    color: var(--home-link);
    background: var(--home-blue-soft);
    border-radius: 16px;
}
.home-empty > span i {
    font-size: 24px;
}
.home-empty h3 {
    margin: 0;
    color: var(--home-text);
    font-size: .9rem;
}
.home-empty p {
    margin: 5px 0 0;
    color: var(--home-muted);
    font-size: .72rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .home-shortcut-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-book-list,
    .home-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-page {
        padding: 72px 5px 60px;
    }
    .home-hero {
        margin-bottom: 14px;
    }
    .home-banner-track {
        padding: 0 4px;
        scroll-padding-inline: 4px;
        gap: 10px;
    }
    .home-banner-slide {
        flex: 0 0 calc(100% - 20px);
        height: clamp(170px, 46vw, 210px);
        border-radius: 16px;
    }
    .home-banner-copy {
        inset: auto 10px 10px;
        width: auto;
        padding: 10px 12px;
        border-radius: 10px;
    }
    .home-banner-copy > span {
        margin-bottom: 2px;
        font-size: .57rem;
    }
    .home-banner-copy h1 {
        font-size: .96rem;
    }
    .home-banner-copy p {
        margin-top: 3px;
        font-size: .64rem;
    }
    .home-search-panel {
        display: block;
        margin: 0 0 16px;
        padding: 16px;
        background: #fff;
        border-radius: 16px;
        border: 1px solid #f0e2d6;
        box-shadow: rgba(0, 0, 0, .02) 0 2px 10px;
    }
    .home-search-heading {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }
    .home-search-heading > span {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--home-blue-soft);
        color: var(--home-link);
    }
    .home-search-heading h2 {
        font-size: 1.05rem;
        font-weight: 700;
    }
    .home-search-panel form {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .home-search-field {
        flex: 1 1 0;
    }
    .home-search-field input {
        height: 46px;
        padding: 0 12px 0 40px;
        border-radius: 12px;
        border: 1px solid #e2ded8;
        font-size: .85rem;
    }
    .home-search-panel form > button {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--home-link);
    }
    .home-search-panel form > button span {
        display: none;
    }
    .home-section {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 20px !important;
    }
    .home-section-header {
        min-height: auto;
        padding: 0 2px 10px;
        align-items: flex-start;
        background: transparent;
        border: 0;
    }
    .home-section-header h2 {
        font-size: 1.08rem;
        font-weight: 700;
    }
    .home-section-header a {
        font-size: .78rem;
        font-weight: 600;
        margin-top: 2px;
    }
    .home-shortcut-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px 6px !important;
        padding: 4px 0 14px !important;
        overflow: visible !important;
    }
    .home-shortcut-list > a {
        min-height: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        justify-content: flex-start;
    }
    .home-shortcut-list > a > span {
        width: 52px;
        height: 52px;
        margin-bottom: 8px;
        border-radius: 18px;
        background: #fff;
        box-shadow: rgba(0, 0, 0, .05) 0 4px 14px, rgba(0, 0, 0, .03) 0 1px 3px;
        border: 1px solid rgba(226, 232, 240, .6);
    }
    .home-shortcut-list strong {
        font-size: .68rem;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    .home-shortcut-list small {
        display: none;
    }
    .home-stat-list {
        display: flex !important;
        gap: 10px;
        padding: 2px 0 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .home-stat-card {
        flex: 0 0 180px;
        min-height: 94px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #f0e2d6;
        box-shadow: rgba(0, 0, 0, .03) 0 2px 8px;
        align-items: center;
        gap: 12px;
        scroll-snap-align: start;
    }
    .home-stat-card > span {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .home-book-list,
    .home-news-list {
        display: flex !important;
        gap: 10px;
        padding: 2px 0 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .home-book-card {
        flex: 0 0 240px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #f0e2d6;
        box-shadow: rgba(0, 0, 0, .03) 0 2px 8px;
        grid-template-columns: 78px minmax(0, 1fr);
        scroll-snap-align: start;
    }
    .home-book-cover {
        width: 78px;
        height: 108px;
        border-radius: 10px;
    }
    .home-news-card {
        flex: 0 0 250px;
        border-radius: 16px;
        background: #fff;
        border: 1px solid #f0e2d6;
        box-shadow: rgba(0, 0, 0, .03) 0 2px 8px;
        scroll-snap-align: start;
    }
}

/* =====================================================================
   HEADER (Finexy) — sticky, translucent, logo-kiri + nav-links
   ===================================================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: 56px;
    padding: 8px 0;
    background: rgba(249, 249, 255, .88);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: saturate(180%) blur(20px);
    box-sizing: border-box;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
    margin: 0 auto;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    text-decoration: none;
}
.logo-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
}
.logo-icon-wrap img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
    display: block;
}
.logo-text {
    min-width: 0;
}
.logo-text h1 {
    margin: 0;
    color: var(--brand-600, #ea580c);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.desktop-nav {
    max-width: 100%;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links > li {
    position: relative;
    list-style: none;
}
.nav-links > li > a,
.nav-links > li.nav-drop > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s, color .18s;
}
.nav-links > li > a:hover,
.nav-links > li > a:focus {
    background: #f1f5f9;
    color: #0f172a;
}
.nav-links > li > a.active {
    background: var(--brand-50, #fff7ed);
    color: var(--brand-700, #c2410c);
    font-weight: 600;
}
.nav-links i {
    font-size: 15px;
}
.nav-links .sub-arrow {
    font-size: 10px;
    margin-left: 2px;
}
.nav-login {
    background: var(--brand-600, #ea580c) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.nav-login:hover {
    background: var(--brand-700, #c2410c) !important;
    color: #fff !important;
}

/* submenu dropdown (Layanan / Statistik) */
.has-submenu .submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: rgba(23, 43, 67, .12) 0 12px 28px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .18s ease;
    z-index: 1100;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.has-submenu .submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #294158;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
}
.has-submenu .submenu a:hover {
    background: var(--brand-50, #fff7ed);
    color: var(--brand-700, #c2410c);
}

/* =====================================================================
   MOBILE BOTTOM NAV (Finexy)
   ===================================================================== */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: space-around;
    min-height: 68px;
    padding: 8px 6px max(14px, env(safe-area-inset-bottom, 16px));
    border-top: 1px solid rgba(0, 0, 0, .06);
    background: rgba(255, 255, 255, .96);
    box-shadow: rgba(0, 0, 0, .08) 0 -4px 24px, rgba(0, 0, 0, .04) 0 -1px 0;
    box-sizing: border-box;
    backdrop-filter: saturate(180%) blur(20px);
}
.mobile-nav-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 2px 0;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    transition: .2s cubic-bezier(.4, 0, .2, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.mobile-nav-item i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    transition: .2s;
}
.mobile-nav-item span {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
    white-space: nowrap;
    transition: .2s;
}
.mobile-nav-item.active i {
    color: var(--brand-600, #ea580c);
}
.mobile-nav-item.active span {
    color: var(--brand-700, #c2410c);
    font-weight: 700;
}
.mobile-nav-item:active i {
    transform: scale(.9);
}

/* =====================================================================
   FOOTER (Finexy) — oranye, 3 kolom, strip copyright
   ===================================================================== */
.main-footer {
    background: var(--brand-600, #ea580c);
    color: rgba(255, 255, 255, .92);
    padding: 32px 0 24px;
    margin-top: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.main-footer .footer-section h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.main-footer .footer-section p {
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    margin: 0 0 12px;
    line-height: 1.7;
}
.main-footer .footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-footer .footer-section ul li {
    margin: 0 0 10px;
}
.main-footer .footer-section ul li a {
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    text-decoration: none;
    transition: color .18s;
}
.main-footer .footer-section ul li a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.main-footer .footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}
.main-footer .footer-contact i {
    flex: 0 0 18px;
    font-size: 15px;
    opacity: .9;
    color: #fff !important;
    margin-top: 0;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
}
.footer-license-credit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
    text-decoration: none;
}
.footer-license-credit:hover {
    color: #fff;
}

/* =====================================================================
   GLOBAL OVERRIDE HALAMAN LAIN (OPAC / detail / berita / self-service)
   → tema Finexy oranye agar semua halaman konsisten
   ===================================================================== */

/* Hero & tajuk halaman dalam per-page CSS */
.hero-section {
    background: linear-gradient(135deg, var(--brand-700, #c2410c) 0%, var(--brand-500, #f97316) 100%) !important;
    color: #fff !important;
}
.hero-section p.lead {
    color: #fde3cd !important;
}
.hero-section h1.display-5 i {
    color: #fff;
}

/* Tombol custom halaman */
.btn-primary-custom,
.btn-primary {
    background: var(--brand-600, #ea580c) !important;
    border-color: var(--brand-600, #ea580c) !important;
}
.btn-primary-custom:hover,
.btn-primary:hover {
    background: var(--brand-700, #c2410c) !important;
    border-color: var(--brand-700, #c2410c) !important;
}

/* Pencarian katalog (OPAC) */
.glass-card {
    background: rgba(255, 255, 255, .97);
    border-radius: 18px;
    border: 1px solid var(--home-border, #f4e3d2);
    box-shadow: rgba(194, 65, 12, .08) 0 12px 30px;
}
.custom-input {
    border-radius: 11px;
    border: 1px solid #e2e0da;
}
.custom-input:focus {
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .18) !important;
    border-color: var(--brand-500, #f97316) !important;
}

/* Sidebar filter OPAC */
.sidebar-card {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: rgba(194, 65, 12, .06) 0 6px 20px !important;
    margin-bottom: 20px;
}
.sidebar-card .card-header {
    background: linear-gradient(135deg, var(--brand-600, #ea580c) 0%, var(--brand-500, #f97316) 100%) !important;
    border-bottom: none;
    border-radius: 16px 16px 0 0 !important;
}
.sidebar-card .card-title,
.sidebar-card .card-title i {
    color: #fff !important;
}

/* Kartu katalog */
.catalog-card {
    border: 1px solid #f0e2d6 !important;
    border-radius: 16px !important;
    box-shadow: rgba(194, 65, 12, .06) 0 6px 20px !important;
    overflow: hidden;
}
.catalog-card:hover {
    box-shadow: rgba(194, 65, 12, .13) 0 16px 34px !important;
}
.book-cover-wrapper {
    border-radius: 12px !important;
}

/* Kartu berita */
.news-card {
    border-radius: 16px !important;
    border: 1px solid #f0e2d6 !important;
    box-shadow: rgba(194, 65, 12, .05) 0 6px 18px !important;
    overflow: hidden;
}
.news-image {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}
.news-content {
    padding: 16px;
}
.news-title a {
    color: #263e56;
    text-decoration: none;
}
.news-title a:hover {
    color: var(--brand-700, #c2410c);
}

/* Breadcrumb */
.breadcrumb {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #f0e2d6;
    border-radius: 12px;
    box-shadow: rgba(194, 65, 12, .04) 0 4px 14px;
}
.breadcrumb-item a {
    color: var(--brand-700, #c2410c);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #64748b;
}

/* Pagination konsisten */
.pagination .page-link {
    border-radius: 8px !important;
    border-color: #eee3d8 !important;
}
.custom-pagination .page-item.active .page-link,
.pagination .page-item.active .page-link {
    background: var(--brand-600, #ea580c) !important;
    border-color: var(--brand-600, #ea580c) !important;
    color: #fff !important;
}

/* Form input */
.form-control:focus {
    border-color: var(--brand-500, #f97316) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .18) !important;
}

/* Self-service area (margin top header lama) */
.main-contact-area {
    margin-top: 40px !important;
}
.contact-wrap {
    background: #fff;
    border: 1px solid #f0e2d6;
    border-radius: 18px;
    box-shadow: rgba(194, 65, 12, .05) 0 8px 24px;
}

/* Detail buku */
.book-cover-detail {
    border-radius: 14px;
    box-shadow: rgba(194, 65, 12, .12) 0 14px 34px;
}
.detail-info .info-item {
    border: 1px solid #f0e2d6;
}

/* Tab (detail buku) */
.nav-tabs .nav-link.active {
    color: var(--brand-700, #c2410c) !important;
    border-color: #f0e2d6 #f0e2d6 #fff !important;
    font-weight: 600;
}

/* =====================================================================
   RESPONSIVE HEADER / NAV / FOOTER
   ===================================================================== */
@media (max-width: 991.98px) {
    .main-header {
        min-height: 48px;
    }
    .desktop-nav {
        display: none !important;
    }
    .logo-text h1 {
        font-size: 15px;
    }
    .header-inner {
        padding: 0 14px;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    .main-footer {
        padding-bottom: calc(40px + max(68px, env(safe-area-inset-bottom, 24px)));
    }
}
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
@media (max-width: 390px) {
    .logo-text {
        display: none;
    }
}