/* =========================================================
   SKELETON COMMON CSS
   Used by:
   - Blog Index
   - Blog Details
========================================================= */

.blog-skeleton {
    display: block;
    width: 100%;
    background: #fff;
}

.blog-skeleton.is-hidden {
    display: none !important;
}

/* Base */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9e9e9;
    border-radius: 8px;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .65),
        transparent
    );
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   COMMON SKELETON ELEMENTS
========================================================= */

.skeleton-label {
    width: 150px;
    height: 15px;
    border-radius: 20px;
}

.skeleton-title {
    width: 430px;
    max-width: 85%;
    height: 48px;
    border-radius: 10px;
}

.skeleton-description {
    width: 580px;
    max-width: 90%;
    height: 15px;
}

.skeleton-description-short {
    width: 400px;
}


/* =========================================================
   FEATURED BLOG
========================================================= */

.skeleton-featured-card {
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.skeleton-featured-image {
    width: 100%;
    height: 440px;
    border-radius: 0;
}

.skeleton-featured-content {
    padding: 50px;
}

.skeleton-badge {
    width: 120px;
    height: 30px;
    border-radius: 50px;
}

.skeleton-heading {
    width: 90%;
    height: 30px;
}

.skeleton-heading-short {
    width: 65%;
}

.skeleton-text {
    width: 100%;
    height: 14px;
}

.skeleton-text-short {
    width: 70%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-author {
    width: 140px;
    height: 12px;
}

.skeleton-date {
    width: 90px;
    height: 10px;
}

.skeleton-button {
    width: 150px;
    height: 42px;
    border-radius: 50px;
}


/* =========================================================
   BLOG CARDS
========================================================= */

.skeleton-section-title {
    width: 210px;
    height: 30px;
}

.skeleton-dropdown {
    width: 170px;
    height: 40px;
    border-radius: 50px;
}

.skeleton-blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    height: 100%;
}

.skeleton-card-image {
    width: 100%;
    height: 220px;
    border-radius: 0;
}

.skeleton-small-badge {
    width: 90px;
    height: 24px;
    border-radius: 20px;
}

.skeleton-card-title {
    width: 95%;
    height: 18px;
}

.skeleton-card-title-short {
    width: 70%;
}

.skeleton-card-text {
    width: 95%;
    height: 12px;
}

.skeleton-card-text-short {
    width: 65%;
}

.skeleton-card-author {
    width: 100px;
    height: 11px;
}

.skeleton-card-date {
    width: 70px;
    height: 11px;
}


/* =========================================================
   BLOG DETAILS PAGE
========================================================= */

.skeleton-blog-detail-title {
    width: 85%;
    max-width: 850px;
    height: 52px;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-blog-detail-title-short {
    width: 60%;
    max-width: 600px;
    height: 52px;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-blog-author {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-blog-content-image {
    width: 100%;
    height: 450px;
    border-radius: 30px;
}

.skeleton-content-line {
    width: 100%;
    height: 14px;
    margin-bottom: 12px;
}

.skeleton-content-line-short {
    width: 70%;
}

.skeleton-content-heading {
    width: 55%;
    height: 25px;
    margin: 30px 0 18px;
}

.skeleton-sidebar-card {
    width: 100%;
    min-height: 220px;
    border-radius: 20px;
}

.skeleton-sidebar-title {
    width: 70%;
    height: 22px;
}

.skeleton-sidebar-text {
    width: 90%;
    height: 12px;
}

.skeleton-sidebar-input {
    width: 100%;
    height: 42px;
    border-radius: 8px;
}

.skeleton-sidebar-button {
    width: 100%;
    height: 42px;
    border-radius: 8px;
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 991.98px) {

    .skeleton-featured-image {
        height: 320px;
    }

    .skeleton-featured-content {
        padding: 35px;
    }

    .skeleton-blog-content-image {
        height: 380px;
    }
}


@media (max-width: 767.98px) {

    .skeleton-title {
        height: 38px;
    }

    .skeleton-featured-image {
        height: 260px;
    }

    .skeleton-featured-content {
        padding: 25px;
    }

    .skeleton-heading {
        height: 24px;
    }

    .skeleton-section-title {
        width: 170px;
        height: 25px;
    }

    .skeleton-dropdown {
        width: 150px;
        height: 38px;
    }

    .skeleton-card-image {
        height: 210px;
    }

    .skeleton-blog-detail-title {
        width: 95%;
        height: 36px;
    }

    .skeleton-blog-detail-title-short {
        width: 75%;
        height: 36px;
    }

    .skeleton-blog-content-image {
        height: 280px;
        border-radius: 20px;
    }
}


@media (max-width: 575.98px) {

    .skeleton-title {
        width: 85%;
        height: 32px;
    }

    .skeleton-description {
        width: 90%;
    }

    .skeleton-featured-image {
        height: 230px;
    }

    .skeleton-featured-content {
        padding: 22px;
    }

    .skeleton-heading {
        width: 100%;
    }

    .skeleton-heading-short {
        width: 80%;
    }

    .skeleton-card-image {
        height: 220px;
    }

    .skeleton-blog-content-image {
        height: 230px;
    }

    .skeleton-blog-detail-title {
        height: 30px;
    }

    .skeleton-blog-detail-title-short {
        height: 30px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .skeleton::after {
        animation: none;
    }
}