/* Admin Zavier theme-owned stylesheet; visual tokens are finalized by css/theme.css. */
/* Source: app/Modules/Home/Views/index.php */

.home-page {
    --home-blue: #1f5fae;
    --home-blue-dark: #16477f;
    --home-blue-soft: #eaf2fb;
    --home-border: #d8e3ef;
    --home-text: #172b43;
    --home-muted: #64748b;
    min-height: 100vh;
    padding: 92px 20px 76px;
    color: var(--home-text);
    background: #f4f7fa;
}

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

.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;
    -webkit-overflow-scrolling: touch;
}

.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: #dce7f2;
    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, calc(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: #cfe2f6;
    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: #e2ebf4;
    font-size: .8rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    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: #aab9c8;
    border: 0;
    border-radius: 999px;
    transition: width .2s ease, background-color .2s ease;
}

.home-banner-dots button.is-active {
    width: 22px;
    background: var(--home-blue);
}

.home-welcome-banner {
    display: flex;
    min-height: 230px;
    align-items: center;
    gap: 20px;
    padding: 32px;
    color: #fff;
    background: var(--home-blue-dark);
    border-radius: 20px;
}

.home-welcome-banner>span {
    display: inline-flex;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    color: var(--home-blue-dark);
    background: #fff;
    border-radius: 18px;
}

.home-welcome-banner svg {
    width: 31px;
    height: 31px;
}

.home-welcome-banner small {
    color: #c9dbed;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-welcome-banner h1 {
    margin: 3px 0 0;
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
}

.home-welcome-banner p {
    margin: 5px 0 0;
    color: #dbe7f2;
    font-size: .84rem;
}

.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: 0 3px 12px rgba(22, 71, 127, .04);
}

.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-blue);
    background: var(--home-blue-soft);
    border-radius: 11px;
}

.home-search-heading svg {
    width: 19px;
    height: 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>svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #74899e;
    transform: translateY(-50%);
}

.home-search-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 43px;
    color: var(--home-text);
    background: #fff;
    border: 1px solid #b9cadb;
    border-radius: 11px;
    outline: 0;
    font-size: .84rem;
}

.home-search-field input:focus {
    border-color: var(--home-blue);
    box-shadow: 0 0 0 3px rgba(31, 95, 174, .12);
}

.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-blue);
    border: 1px solid var(--home-blue);
    border-radius: 11px;
    font-size: .78rem;
    font-weight: 700;
}

.home-search-panel form>button svg {
    width: 16px;
    height: 16px;
}

.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: 0 12px 28px rgba(23, 43, 67, .16);
}

.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;
}

.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;
}

/* Sering dipinjam hidden pada tema Finexy */
.home-search-popular {
    display: none !important;
}

.home-section {
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(22, 71, 127, .04);
}

.home-section-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #e6edf5;
}

.home-section-header>a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--home-blue);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.home-section-header>a svg {
    width: 15px;
    height: 15px;
}

.home-shortcut-list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}

.home-shortcut-list>a,
.home-shortcut-list>button,
.home-shortcut-list .shortcut-more-btn {
    display: flex;
    min-width: 0;
    min-height: 126px;
    padding: 13px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #dce6ef;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s ease;
}

.home-shortcut-list>a>span,
.home-shortcut-list>button>span,
.home-shortcut-list .shortcut-more-btn>span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
    color: var(--icon-color, var(--home-blue));
    background: var(--icon-bg, var(--home-blue-soft));
    border-radius: 13px;
}

.home-shortcut-list svg {
    width: 23px;
    height: 23px;
}

.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,
.home-shortcut-list>button:hover,
.home-shortcut-list>button:focus,
.home-shortcut-list .shortcut-more-btn:hover,
.home-shortcut-list .shortcut-more-btn:focus {
    background: #f1f6fb;
    border-color: #a7c3df;
}

.home-shortcut-list > a.shortcut-item-mobile-only {
    display: none !important;
}

.home-shortcut-list > a.shortcut-item-modal-only {
    display: none !important;
}

.home-shortcut-list .shortcut-btn-desktop {
    display: flex !important;
}

.home-shortcut-list .shortcut-btn-mobile {
    display: none !important;
}

.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: #f8fafc;
    border: 1px solid #dce6ef;
    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-blue);
    background: var(--home-blue-soft);
    border-radius: 11px;
}

.home-stat-card svg {
    width: 20px;
    height: 20px;
}

.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: #8191a2;
    font-size: .62rem;
    font-style: normal;
}

.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: #f9fbfd;
    border: 1px solid #dce6ef;
    border-radius: 13px;
}

.home-book-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #edf2f7;
    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: #75899e;
    text-align: center;
}

.home-cover-fallback[hidden] {
    display: none;
}

.home-cover-fallback svg {
    width: 24px;
    height: 24px;
}

.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;
    line-clamp: 3;
}

.home-book-card h3 a {
    color: inherit;
    text-decoration: none;
}

.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;
}

.home-book-availability {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 8px;
    font-size: .65rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid transparent;
}

.home-book-avail-yes {
    color: #10b981;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.home-book-avail-no {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
}

.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: #f9fbfd;
    border: 1px solid #dce6ef;
    border-radius: 13px;
}

.home-news-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eaf0f5;
}

.home-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.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-blue);
    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;
    line-clamp: 2;
}

.home-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.home-news-card p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--home-muted);
    font-size: .64rem;
}

.home-news-card p svg {
    width: 13px;
    height: 13px;
}

.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-blue);
    background: var(--home-blue-soft);
    border-radius: 16px;
}

.home-empty svg {
    width: 27px;
    height: 27px;
}

.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;
}

/* Modal Semua Layanan Mandiri */
.home-modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.home-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.home-modal-body {
    padding: 24px;
    background: #ffffff;
}

.home-shortcut-list-modal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-shortcut-list-modal>a {
    display: flex;
    min-width: 0;
    min-height: 126px;
    padding: 13px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-shortcut-list-modal>a:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.home-shortcut-list-modal>a>span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
    color: var(--icon-color, var(--home-blue, #1f5fae));
    background: var(--icon-bg, #eff6ff);
    border-radius: 13px;
}

.home-shortcut-list-modal>a svg {
    width: 23px;
    height: 23px;
}

.home-shortcut-list-modal>a strong {
    margin-bottom: 3px;
    color: #294158;
    font-size: 0.72rem;
    line-height: 1.3;
}

.home-shortcut-list-modal>a small {
    color: #64748b;
    font-size: 0.62rem;
}

@media (max-width: 991.98px) {
    .home-shortcut-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-book-list,
    .home-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-page {
        padding: 68px 5px calc(80px + env(safe-area-inset-bottom));
    }

    .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;
        scroll-snap-align: center;
    }

    .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-banner-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 24px;
        padding-top: 8px;
    }

    .home-banner-dots button {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #b0c4de;
        border: none;
        padding: 0;
        transition: all 0.2s ease;
    }

    .home-banner-dots button.is-active {
        width: 22px;
        border-radius: 999px;
        background: #1959c7;
    }

    .home-welcome-banner {
        min-height: 178px;
        margin: 0 4px;
        padding: 20px;
        border-radius: 16px;
    }

    .home-welcome-banner>span {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .home-welcome-banner h1 {
        font-size: 1.15rem;
    }

    .home-welcome-banner p {
        font-size: .7rem;
    }

    /* Search Panel */
    .home-search-panel {
        display: block;
        margin: 0 0 16px;
        padding: 16px;
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #eef2f6;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }

    .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: #eaf2fb;
        color: #1959c7;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .home-search-heading>span svg {
        width: 20px;
        height: 20px;
    }

    .home-search-heading h2 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #14213d;
        margin: 0;
    }

    .home-search-heading p {
        font-size: 0.74rem;
        color: #64758a;
        margin: 2px 0 0;
    }

    .home-search-panel form {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .home-search-field {
        flex: 1;
        position: relative;
        margin: 0;
    }

    .home-search-field input {
        width: 100%;
        height: 46px;
        padding: 0 12px 0 40px;
        border-radius: 12px;
        border: 1px solid #d7e3e6;
        background: #ffffff;
        font-size: 0.85rem;
        color: #14213d;
        box-sizing: border-box;
    }

    .home-search-field>svg,
    .home-search-field>i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        color: #64758a;
        pointer-events: none;
    }

    .home-search-panel form>button {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: #1959c7;
        border: none;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .home-search-panel form>button span {
        display: none;
    }

    .home-search-panel form>button svg {
        width: 20px;
        height: 20px;
    }

    /* Sections */
    .home-section {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 20px !important;
    }

    .home-section-header {
        min-height: auto;
        padding: 0 2px 10px;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        background: transparent;
        border: none;
    }

    .home-section-header h2 {
        font-size: 1.08rem;
        font-weight: 700;
        color: #14213d;
        margin: 0;
    }

    .home-section-header p {
        font-size: 0.74rem;
        color: #64758a;
        margin: 2px 0 0;
    }

    .home-section-header a {
        font-size: 0.78rem;
        font-weight: 600;
        color: #1959c7;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
        margin-top: 2px;
    }

    .home-section-header a svg {
        width: 14px;
        height: 14px;
    }

    .home-shortcut-list {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 16px 4px !important;
        padding: 4px 0 14px !important;
        overflow: visible !important;
    }

    .home-shortcut-list>a,
    .home-shortcut-list>button,
    .home-shortcut-list .shortcut-more-btn {
        flex: none !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    .home-shortcut-list > a.shortcut-item-mobile-only {
        display: flex !important;
    }

    .home-shortcut-list > a.shortcut-item-modal-only {
        display: none !important;
    }

    .home-shortcut-list .shortcut-btn-desktop {
        display: none !important;
    }

    .home-shortcut-list .shortcut-btn-mobile {
        display: flex !important;
    }

    .home-shortcut-list>a:active,
    .home-shortcut-list>button:active {
        transform: scale(0.95) !important;
    }

    .home-shortcut-list>a>span,
    .home-shortcut-list>button>span,
    .home-shortcut-list .shortcut-more-btn>span {
        width: 52px !important;
        height: 52px !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 8px auto !important;
        background: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(226, 232, 240, 0.6) !important;
        flex-shrink: 0 !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    .home-shortcut-list>a svg,
    .home-shortcut-list>button svg,
    .home-shortcut-list .shortcut-more-btn svg {
        width: 24px !important;
        height: 24px !important;
        stroke-width: 2 !important;
        color: var(--icon-color, #1959c7) !important;
    }

    .home-shortcut-list strong {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: #172b43 !important;
        text-align: center !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    .home-shortcut-list small {
        display: none !important;
    }

    /* Modal Mobile Styles - 4 columns squircle cards matching screenshot */
    #allServicesModal .modal-dialog {
        margin: 16px auto !important;
        max-width: calc(100% - 32px) !important;
    }

    #allServicesModal .home-modal-content {
        border-radius: 20px !important;
        border: none !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15) !important;
    }

    #allServicesModal .home-modal-header {
        background: #ffffff !important;
        border-bottom: none !important;
        padding: 22px 20px 10px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #allServicesModal .home-modal-title {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #172b43 !important;
        margin: 0 !important;
    }

    #allServicesModal .home-modal-header .btn-close {
        padding: 8px !important;
        margin: -8px -4px -8px auto !important;
        opacity: 0.6 !important;
        transition: opacity 0.2s ease !important;
    }

    #allServicesModal .home-modal-header .btn-close:hover {
        opacity: 1 !important;
    }

    #allServicesModal .home-modal-body {
        padding: 8px 14px 24px 14px !important;
        background: #ffffff !important;
    }

    .home-shortcut-list-modal {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 18px 6px !important;
        padding: 0 !important;
    }

    .home-shortcut-list-modal > a {
        flex: none !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    .home-shortcut-list-modal > a:active {
        transform: scale(0.95) !important;
    }

    .home-shortcut-list-modal > a > span {
        width: 52px !important;
        height: 52px !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 8px auto !important;
        background: #ffffff !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(226, 232, 240, 0.6) !important;
        flex-shrink: 0 !important;
        transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    }

    .home-shortcut-list-modal > a svg {
        width: 24px !important;
        height: 24px !important;
        stroke-width: 2 !important;
        color: var(--icon-color, #1959c7) !important;
    }

    .home-shortcut-list-modal > a strong {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: #172b43 !important;
        text-align: center !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    .home-shortcut-list-modal > a small {
        display: none !important;
    }

    /* Horizontal Stat Cards (Ringkasan Perpustakaan) */
    .home-stat-list {
        display: flex !important;
        gap: 10px !important;
        padding: 2px 0 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        background: transparent !important;
        border: none !important;
    }

    .home-stat-list::-webkit-scrollbar {
        display: none !important;
    }

    .home-stat-card {
        flex: 0 0 180px !important;
        min-height: 94px !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        padding: 14px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    .home-stat-card>span {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: #eaf1ff !important;
        color: #1959c7 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .home-stat-card>span svg {
        width: 22px !important;
        height: 22px !important;
    }

    .home-stat-card>div {
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
    }

    .home-stat-card small {
        font-size: 0.68rem !important;
        font-weight: 500 !important;
        color: #64758a !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .home-stat-card strong {
        font-size: 1.35rem !important;
        font-weight: 800 !important;
        color: #14213d !important;
        line-height: 1.15 !important;
        margin: 2px 0 1px !important;
    }

    .home-stat-card em {
        font-size: 0.62rem !important;
        color: #94a3b8 !important;
        font-style: normal !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Books & News Lists */
    .home-book-list,
    .home-news-list {
        display: flex !important;
        gap: 10px !important;
        padding: 2px 0 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .home-book-list::-webkit-scrollbar,
    .home-news-list::-webkit-scrollbar {
        display: none !important;
    }

    .home-book-card {
        flex: 0 0 240px !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        padding: 12px !important;
        display: grid !important;
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 12px !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    .home-book-cover {
        width: 78px !important;
        height: 108px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        background: #f1f5f9 !important;
    }

    .home-book-card h3 a {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: #14213d !important;
    }

    .home-book-card p {
        font-size: 0.72rem !important;
        color: #64758a !important;
        margin: 3px 0 0 !important;
    }

    .home-book-availability {
        font-size: 0.65rem !important;
        border-radius: 6px !important;
        padding: 2px 6px !important;
        margin-top: 6px !important;
        display: inline-block !important;
    }

    .home-book-avail-yes {
        background: rgba(19, 138, 103, 0.1) !important;
        color: #138a67 !important;
        border: 1px solid rgba(19, 138, 103, 0.25) !important;
    }

    .home-book-avail-no {
        background: rgba(220, 38, 38, 0.1) !important;
        color: #dc2626 !important;
        border: 1px solid rgba(220, 38, 38, 0.25) !important;
    }

    .home-news-card {
        flex: 0 0 250px !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #eef2f6 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    .home-news-card h3 {
        min-height: auto;
    }
}

@media (max-width: 390px) {
    .home-search-heading>span {
        display: none;
    }

    .home-search-heading {
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-track {
        scroll-behavior: auto;
    }

    .home-news-thumb img {
        transition: none;
    }
}