/* Bug #1: Navbar mobile terpotong */
@media (max-width: 991.98px) {
    .offcanvas-nav .offcanvas-body {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .offcanvas-nav .navbar-nav .nav-link,
    .offcanvas-nav .dropdown-item {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
/* Bug #2: Gambar pada Pages responsif */
.page-thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.content-responsive img {
    max-width: 100% !important;
    height: auto !important;
}
/* Laporan Nomor 4: Pagination responsif pada tampilan mobile */
@media (max-width: 575.98px) {
    .pagination {
        flex-wrap: nowrap;
        justify-content: center !important;
        gap: 0.2rem;
    }

    .pagination .page-item {
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .pagination .page-link {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.65rem;
    }
}
/* Laporan Nomor 9: Carousel Tags pada footer */
.footer-tag-carousel {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.footer-tag-scroll {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.footer-tag-scroll::-webkit-scrollbar {
    display: none;
}

.footer-tag-scroll > li {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    scroll-snap-align: start;
}
.footer-tag-scroll a {
    white-space: nowrap;
}

.footer-tag-scroll:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 0.25rem;
}

.footer-tag-nav {
    display: inline-flex;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    line-height: 1;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.footer-tag-nav:hover,
.footer-tag-nav:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.25);
}

.footer-tag-nav:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.footer-tag-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.footer-tag-nav span {
    font-size: 1.5rem;
    line-height: 1;
}
html,
body {
    background-color: #21262c;
}

.content-wrapper {
    background-color: #fefefe;
}

footer {
    margin-bottom: 0;
}

footer > :last-child {
    margin-bottom: 0;
}

/* PDF preview: tinggi konsisten, lebar mengikuti ukuran konten */
iframe[src*="/preview/pdf"] {
    height: 700px !important;
    max-width: 100%;
}
/* Logo navbar mengikuti proporsi gambar */
.header-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .header-logo {
        height: 50px;
    }
}

/* Logo footer mengikuti proporsi gambar */
.footer-logo {
    display: block;
    width: auto;
    height: 70px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
/* Logo pada sidebar menu mobile */
.sidebar-logo {
    display: block;
    width: auto;
    height: 50px;
    max-width: calc(100% - 70px);
    object-fit: contain;
}
.blog.grid-view .post-card-image {
    height: 240px;
    overflow: hidden;
}

.blog.grid-view .post-card-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog.grid-view .post-card-image img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
