/* Homepage loading placeholders, adapted from kemendag-reborn. */
.home-carousel-skeleton, .home-news-skeleton, .home-exim-skeleton,
.blog-slider-skeleton, .blog-news-button-skeleton { display: none; }
    html.home-skeleton-enabled .publication-slider-shell {
        min-height: 332px;
        position: relative;
    }
    html.home-skeleton-enabled .majalah:not(.is-ready) {
        height: 332px;
        overflow: hidden;
    }
    html.home-skeleton-enabled .majalah:not(.is-ready) .box-majalah {
        opacity: 0;
        visibility: hidden;
    }
    html.home-skeleton-enabled .majalah.is-ready .box-majalah {
        opacity: 1;
        visibility: visible;
    }
    html.home-skeleton-enabled .home-banner-swiper,
    html.home-skeleton-enabled .home-related-links-shell {
        position: relative;
    }
    html.home-skeleton-enabled .home-banner-swiper:not(.is-ready) .swiper-wrapper,
    html.home-skeleton-enabled .home-related-links:not(.is-ready) .carausel-3-columns-item {
        opacity: 0;
        visibility: hidden;
    }
    html.home-skeleton-enabled .home-related-links:not(.is-ready) {
        height: 58px;
        overflow: hidden;
    }
    html.home-skeleton-enabled .home-banner-swiper.is-ready .swiper-wrapper,
    html.home-skeleton-enabled .home-related-links.is-ready .carausel-3-columns-item {
        opacity: 1;
        visibility: visible;
    }
    html.home-skeleton-enabled .home-carousel-skeleton {
        display: flex;
        gap: 20px;
        inset: 10px;
        overflow: hidden;
        pointer-events: none;
        position: absolute;
        z-index: 6;
    }
    html.home-skeleton-enabled .home-banner-swiper.is-ready .home-carousel-skeleton,
    html.home-skeleton-enabled .home-related-links.is-ready + .home-carousel-skeleton,
    html.home-skeleton-enabled .majalah.is-ready + .publication-carousel-skeleton {
        display: none;
    }
    html.home-skeleton-enabled .home-carousel-skeleton__item {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
        background-size: 220% 100%;
        border-radius: 10px;
        flex: 0 0 calc((100% - 60px) / 4);
        min-height: 100%;
        overflow: hidden;
        position: relative;
    }
    html.home-skeleton-enabled .home-carousel-skeleton__item::before,
    html.home-skeleton-enabled .home-carousel-skeleton__item::after {
        background: rgba(255, 255, 255, 0.75);
        border-radius: 999px;
        content: "";
        left: 18px;
        position: absolute;
    }
    html.home-skeleton-enabled .home-carousel-skeleton__item::before {
        bottom: 56px;
        height: 16px;
        width: 58%;
    }
    html.home-skeleton-enabled .home-carousel-skeleton__item::after {
        bottom: 28px;
        height: 12px;
        width: 76%;
    }
    html.home-skeleton-enabled .home-carousel-skeleton--links {
        gap: 30px;
        inset: 0 -15px;
        min-height: 58px;
        position: absolute;
    }
    html.home-skeleton-enabled .home-carousel-skeleton--links .home-carousel-skeleton__item {
        align-items: center;
        display: flex;
        flex-basis: calc((100% - 180px) / 7);
        justify-content: center;
        min-height: 58px;
    }
    html.home-skeleton-enabled .home-carousel-skeleton--links .home-carousel-skeleton__item::before {
        background: rgba(255, 255, 255, 0.82);
        border-radius: 8px;
        bottom: auto;
        height: 30px;
        left: 18%;
        top: calc(50% - 15px);
        width: 64%;
    }
    html.home-skeleton-enabled .home-carousel-skeleton--links .home-carousel-skeleton__item::after {
        background: rgba(15, 98, 254, 0.08);
        bottom: auto;
        height: 8px;
        left: 30%;
        top: calc(50% - 4px);
        width: 40%;
    }
    html.home-skeleton-enabled .publication-carousel-skeleton {
        inset: 0;
    }
    html.home-skeleton-enabled .publication-carousel-skeleton .home-carousel-skeleton__item {
        flex: 0 0 100%;
        min-height: 332px;
    }
    html.home-skeleton-enabled .publication-carousel-skeleton .home-carousel-skeleton__item::before {
        border-radius: 8px;
        bottom: 96px;
        height: 18px;
        left: 16px;
        width: 82%;
    }
    html.home-skeleton-enabled .publication-carousel-skeleton .home-carousel-skeleton__item::after {
        border-radius: 8px;
        bottom: 58px;
        height: 36px;
        left: 16px;
        width: calc(100% - 32px);
    }
    html.home-skeleton-enabled .publication-carousel-skeleton .publication-carousel-skeleton__cover {
        background: rgba(255, 255, 255, 0.78);
        border-radius: 8px;
        height: 180px;
        left: 16px;
        position: absolute;
        top: 16px;
        width: calc(100% - 32px);
    }
    html.home-skeleton-enabled .home-exim-skeleton {
        margin-top: 30px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__tabs {
        border-bottom: 1px solid #dce3ec;
        display: flex;
        gap: 20px;
        overflow: hidden;
        padding-bottom: 62px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__tab {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 100%);
        background-size: 220% 100%;
        border-radius: 12px;
        height: 86px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__tab:nth-child(1) {
        flex: 0 0 29%;
    }
    html.home-skeleton-enabled .home-exim-skeleton__tab:nth-child(2) {
        flex: 0 0 12%;
    }
    html.home-skeleton-enabled .home-exim-skeleton__tab:nth-child(3) {
        flex: 0 0 34%;
    }
    html.home-skeleton-enabled .home-exim-skeleton__tab:nth-child(4) {
        flex: 1 1 auto;
    }
    html.home-skeleton-enabled .home-exim-skeleton__panel {
        background: #ffffff;
        border-radius: 18px;
        margin-top: 60px;
        overflow: hidden;
        padding: 34px 16px 20px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__head,
    html.home-skeleton-enabled .home-exim-skeleton__row {
        display: grid;
        gap: 18px;
        grid-template-columns: 2fr repeat(4, 1fr);
        padding: 14px 24px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__head {
        border-bottom: 3px solid #dce3ec;
        padding-top: 0;
    }
    html.home-skeleton-enabled .home-exim-skeleton__row {
        border-bottom: 1px solid #dce3ec;
        min-height: 78px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__row:nth-child(even) {
        background: #eef6ff;
    }
    html.home-skeleton-enabled .home-exim-skeleton__line {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        align-self: center;
        background: linear-gradient(90deg, #e4ebf3 0%, #f8fafc 45%, #e4ebf3 100%);
        background-size: 220% 100%;
        border-radius: 999px;
        height: 18px;
        width: 100%;
    }
    html.home-skeleton-enabled .home-exim-skeleton__head .home-exim-skeleton__line {
        height: 24px;
    }
    html.home-skeleton-enabled .home-exim-skeleton__line:first-child {
        width: 70%;
    }
    html.home-skeleton-enabled .home-news-skeleton {
        width: 100%;
    }
    html.home-skeleton-enabled .home-news-skeleton__header {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        background: linear-gradient(90deg, #e4ebf3 0%, #f8fafc 45%, #e4ebf3 100%);
        background-size: 220% 100%;
        border-radius: 999px;
        height: 24px;
        margin: 0 0 30px;
        width: 240px;
    }
    html.home-skeleton-enabled .home-news-skeleton__grid {
        display: grid;
        gap: 20px 30px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.home-skeleton-enabled .home-news-skeleton__item {
        align-items: center;
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
        display: flex;
        gap: 15px;
        min-height: 112px;
        padding: 16px;
    }
    html.home-skeleton-enabled .home-news-skeleton__thumb,
    html.home-skeleton-enabled .home-news-skeleton__line {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        background: linear-gradient(90deg, #e4ebf3 0%, #f8fafc 45%, #e4ebf3 100%);
        background-size: 220% 100%;
    }
    html.home-skeleton-enabled .home-news-skeleton__thumb {
        border-radius: 8px;
        flex: 0 0 80px;
        height: 80px;
    }
    html.home-skeleton-enabled .home-news-skeleton__content {
        flex: 1 1 auto;
    }
    html.home-skeleton-enabled .home-news-skeleton__line {
        border-radius: 999px;
        display: block;
        height: 14px;
        margin-bottom: 12px;
        width: 100%;
    }
    html.home-skeleton-enabled .home-news-skeleton__line:nth-child(2) {
        width: 72%;
    }
    html.home-skeleton-enabled .home-news-skeleton__line:nth-child(3) {
        height: 12px;
        margin-bottom: 0;
        width: 56%;
    }
    html.home-skeleton-enabled .blog-news-button-skeleton {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        background: linear-gradient(90deg, #e4ebf3 0%, #f8fafc 45%, #e4ebf3 100%);
        background-size: 220% 100%;
        border-radius: 10px;
        display: inline-block;
        height: 31px;
        width: 150px;
    }
    html.home-skeleton-enabled .home-news-skeleton__button {
        margin-top: 24px;
        text-align: center;
    }
    html.home-skeleton-enabled .home-featured-news-shell {
        min-height: 520px;
        position: relative;
    }
    html.home-skeleton-enabled .home-featured-news-shell:not(.is-ready) > :not(.home-featured-news-skeleton) {
        display: none;
    }
    html.home-skeleton-enabled .home-featured-news-shell.is-ready .home-featured-news-skeleton {
        display: none;
    }
    html.home-skeleton-enabled .home-featured-news-skeleton {
        position: relative;
    }
    html.home-skeleton-enabled .home-featured-news-skeleton .home-news-skeleton__header {
        height: 48px;
        width: 100%;
    }
    html.home-skeleton-enabled .home-featured-news-skeleton .home-news-skeleton__item {
        align-items: stretch;
        display: block;
        min-height: 300px;
        padding: 0;
        overflow: hidden;
    }
    html.home-skeleton-enabled .home-featured-news-skeleton .home-news-skeleton__thumb {
        border-radius: 10px 10px 0 0;
        height: 178px;
        width: 100%;
    }
    html.home-skeleton-enabled .home-featured-news-skeleton .home-news-skeleton__content {
        padding: 18px;
    }
    html.home-skeleton-enabled .home-eselon-list-shell {
        min-height: 510px;
        position: relative;
    }
    html.home-skeleton-enabled .home-eselon-list:not(.is-ready) {
        display: none;
    }
    html.home-skeleton-enabled .home-eselon-list.is-ready + .home-eselon-skeleton {
        display: none;
    }
    html.home-skeleton-enabled .home-eselon-skeleton {
        position: relative;
    }
    html.home-skeleton-enabled .home-eselon-skeleton .home-news-skeleton__grid {
        display: block;
    }
    html.home-skeleton-enabled .home-eselon-skeleton .home-news-skeleton__item {
        display: block;
        margin-bottom: 24px;
        min-height: 120px;
        padding: 0;
        overflow: hidden;
    }
    html.home-skeleton-enabled .home-eselon-skeleton .home-news-skeleton__thumb {
        border-radius: 10px 10px 0 0;
        height: 70px;
        width: 100%;
    }
    html.home-skeleton-enabled .home-eselon-skeleton .home-news-skeleton__content {
        padding: 18px;
    }
    html.home-skeleton-enabled .publication-button-shell:not(.is-ready) .blog-news__button {
        display: none;
    }
    html.home-skeleton-enabled .publication-button-shell.is-ready .blog-news-button-skeleton {
        display: none;
    }
    html.home-skeleton-enabled .blog-slider:not(.is-ready) .blog-slider__wrp,
    html.home-skeleton-enabled .blog-slider:not(.is-ready) .blog-slider__pagination {
        opacity: 0;
        visibility: hidden;
    }
    html.home-skeleton-enabled .blog-slider.is-ready .blog-slider__wrp,
    html.home-skeleton-enabled .blog-slider.is-ready .blog-slider__pagination {
        opacity: 1;
        visibility: visible;
    }
    html.home-skeleton-enabled .blog-slider.is-ready .blog-slider-skeleton {
        display: none;
    }
    html.home-skeleton-enabled .blog-slider-skeleton {
        align-items: center;
        display: flex;
        inset: 5px;
        overflow: hidden;
        pointer-events: none;
        position: absolute;
        z-index: 20;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__image,
    html.home-skeleton-enabled .blog-slider-skeleton__line,
    html.home-skeleton-enabled .blog-slider-skeleton__button,
    html.home-skeleton-enabled .blog-slider-skeleton__dot {
        animation: homeSkeletonPulse 1.1s ease-in-out infinite;
        background: linear-gradient(90deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.42) 45%, rgba(255,255,255,0.18) 100%);
        background-size: 220% 100%;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__image {
        border-radius: 20px;
        box-shadow: rgba(0, 0, 0, 0.08) 0 4px 12px;
        flex: 0 0 260px;
        height: 220px;
        margin-left: 35px;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__content {
        flex: 1 1 auto;
        max-width: 650px;
        padding-left: 110px;
        padding-right: 75px;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__line {
        border-radius: 999px;
        display: block;
        height: 22px;
        margin-bottom: 18px;
        width: 82%;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__line:nth-child(2) {
        width: 64%;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__line:nth-child(3) {
        height: 16px;
        width: 92%;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__line:nth-child(4) {
        height: 16px;
        margin-bottom: 30px;
        width: 72%;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__button {
        border-radius: 10px;
        display: block;
        height: 50px;
        width: 170px;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__pagination {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: absolute;
        right: 28px;
        top: 50%;
        transform: translateY(-50%);
    }
    html.home-skeleton-enabled .blog-slider-skeleton__dot {
        border-radius: 999px;
        height: 11px;
        opacity: 0.55;
        width: 11px;
    }
    html.home-skeleton-enabled .blog-slider-skeleton__dot:nth-child(4) {
        height: 34px;
        opacity: 0.95;
    }
    @media screen and (max-width: 768px) {
        html.home-skeleton-enabled .home-exim-skeleton__tabs {
            gap: 12px;
            padding-bottom: 36px;
        }
        html.home-skeleton-enabled .home-exim-skeleton__tab {
            flex: 0 0 72% !important;
            height: 64px;
        }
        html.home-skeleton-enabled .home-exim-skeleton__panel {
            margin-top: 34px;
            padding: 22px 10px 16px;
        }
        html.home-skeleton-enabled .home-exim-skeleton__head,
        html.home-skeleton-enabled .home-exim-skeleton__row {
            gap: 10px;
            grid-template-columns: 1.5fr repeat(2, 1fr);
            padding: 12px;
        }
        html.home-skeleton-enabled .home-exim-skeleton__head .home-exim-skeleton__line:nth-child(n+4),
        html.home-skeleton-enabled .home-exim-skeleton__row .home-exim-skeleton__line:nth-child(n+4) {
            display: none;
        }
        html.home-skeleton-enabled .home-news-skeleton__grid {
            grid-template-columns: 1fr;
        }
        html.home-skeleton-enabled .blog-slider-skeleton {
            align-items: center;
            flex-direction: column;
            overflow: visible;
        }
        html.home-skeleton-enabled .blog-slider-skeleton__image {
            flex-basis: auto;
            height: 200px;
            margin-left: 0;
            margin-top: -60px;
            width: 90%;
        }
        html.home-skeleton-enabled .blog-slider-skeleton__content {
            max-width: none;
            padding: 10px 30px 0;
            width: 100%;
        }
        html.home-skeleton-enabled .blog-slider-skeleton__line,
        html.home-skeleton-enabled .blog-slider-skeleton__line:nth-child(2),
        html.home-skeleton-enabled .blog-slider-skeleton__line:nth-child(3),
        html.home-skeleton-enabled .blog-slider-skeleton__line:nth-child(4) {
            margin-left: auto;
            margin-right: auto;
        }
        html.home-skeleton-enabled .blog-slider-skeleton__button {
            margin: 0 auto;
        }
        html.home-skeleton-enabled .blog-slider-skeleton__pagination {
            bottom: 28px;
            flex-direction: row;
            left: 50%;
            right: auto;
            top: auto;
            transform: translateX(-50%);
        }
        html.home-skeleton-enabled .blog-slider-skeleton__dot:nth-child(4) {
            height: 11px;
            width: 34px;
        }
    }
    @media screen and (max-width: 982px) {
        html.home-skeleton-enabled .home-carousel-skeleton__item {
            flex-basis: calc((100% - 60px) / 3);
        }
        html.home-skeleton-enabled .home-carousel-skeleton--links .home-carousel-skeleton__item {
            flex-basis: calc((100% - 150px) / 6);
        }
    }
    @media screen and (max-width: 768px) {
        html.home-skeleton-enabled .home-carousel-skeleton__item {
            flex-basis: calc((100% - 10px) / 2);
        }
        html.home-skeleton-enabled .home-carousel-skeleton--links .home-carousel-skeleton__item {
            flex-basis: calc((100% - 60px) / 3);
        }
    }
    @keyframes homeSkeletonPulse {
        0% {
            background-position: 100% 0;
        }
        100% {
            background-position: -100% 0;
        }
    }

html.home-skeleton-enabled .home-news-skeleton,
html.home-skeleton-enabled .home-exim-skeleton { display: block; }
html.home-skeleton-enabled .is-ready > .home-news-skeleton,
html.home-skeleton-enabled .home-eselon-list.is-ready + .home-eselon-skeleton { display: none; }
@media (prefers-reduced-motion: reduce) {
    html.home-skeleton-enabled [class*="skeleton"] { animation: none; }
}
