/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* START INDEX */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.blog {
    display: block;
}

.blog-header {
    display: block;
}

.blog-header .blog-header-title {
    margin: 20px 0;
}

.blog-header h1 {
    font-weight: 600;
    font-size: 18px;
}

.blog-header .loading-start-blog-cat {
    width: 100%;
    height: 50px;
    margin-bottom: 5px;
}

.blog-header .loading-end-blog-cat {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    display: none;
}

.blog-header .tags-container {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    /* Untuk Internet Explorer dan Edge */
    -ms-overflow-style: none;
    /* Untuk Firefox */
    scrollbar-width: none;
}

.blog-header .tags-container::-webkit-scrollbar {
    /* Untuk browser berbasis Webkit */
    display: none;
}

.blog-header .tags-container .content {
    display: inline-flex;
    gap: 5px;
}

.blog-body {
    margin-top: 5px;
}

.blog-body .loading_start_blog {
    width: 100%;
    height: 230px;
    margin-bottom: 5px;
}

.blog-body .loading-end-blog {
    display: none;
}

.blog-body .content-blog  {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* END INDEX */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

.tag-item {
    background-color: #eff6fc;
    border: 1px solid rgba(76, 135, 230, .6);
    border-radius: 7px;
    color: #2073f9;
    font-size: 12px;
    line-height: 18px;
    padding: 5px 12px;
}

.blog-card {
    background-color: #fff;
    max-width: 100%;
    border: 1px solid rgb(207, 207, 207);
    border-radius: 10px;
}

.blog-card-img {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio (9 / 16 = 0.5625 -> 56.25%) */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.blog-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Menjaga proporsi gambar tetap sesuai */
}

.blog-card-img .blog-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    gap: 5px;
}

.blog-card-desc {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 150px;
}

.blog-title {
    font-weight: 600;
    height: auto;
}

.blog-summary {
    padding: 1px 0;
}

.blog-date {
    font-size: 12px;
    color: #ec631d;
}


.form-input-search {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding-left: 2.375rem;
}

.form-group-search-label {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.2rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

.form-group-search {
    width: auto;
}


/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* blog-categories */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.blog-categories {
    padding: 0;
}

.blog-categories-head {
    margin: 20px 0;
    font-weight: 600;
}

.blog-categories-body {
    padding: 0 0 50px 0;
}

.blog-categories-content {
    display: grid;
    gap: 15px;
    width: 100%;
    /* Mobile first - 2 columns by default */
    grid-template-columns: repeat(2, 1fr);
}

.categories-tag-item {
    margin: 0;
    color: #2073f9;
    background-color: #eff6fc;
    border: 1px solid rgba(76, 135, 230, .6);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    aspect-ratio: 2/1;
}

/* Make the anchor tag fill the entire square */
.blog-categories-content a {
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.categories-tag-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* blog-categories */
/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.blogdet {
    background-color: #fff;
}


.blogdet-tags-container {
    padding: 20px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    overflow-x: auto;
    white-space: nowrap;

    /* Sembunyikan scrollbar untuk Chrome, Safari dan Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Sembunyikan scrollbar untuk IE, Edge dan Firefox */
    -ms-overflow-style: none;
    /* IE dan Edge */
    scrollbar-width: none;
    /* Firefox */
}

.blogdet-article-intro,
.blogdet-action-buttons {
    margin: 20px 0;
}

.blogdet-article-title {
    font-weight: 600;
    font-size: 32px;
    margin: 0;
    padding: 0px 0 30px 0;
    line-height: 40px;
}

.blogdet-image-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    flex: 1;
}

.blogdet-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.blogdet-header-content {
    display: flex;
    gap: 20px;
}

.blogdet-main-content-layout {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.blogdet-artikel-content,
.blogdet-artikel-card-content {
    max-width: 900px;
}

.blogdet-aside-item {
    padding: 0 15px;
}

.blogdet-latest-image {
    width: 100px;
    border-radius: 10px;
}

article div {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
}

article span {
    width: 100% !important;
    height: auto !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
}

article img {
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
}

/* RESPONSIVE */
/* untuk layar 575px ke bawah */
@media screen and (min-width: 320px) and (max-width: 575px) {

    /* blog index & blog category*/
    .blog-body .content-blog  {
        grid-template-columns: repeat(1, 1fr);
    }

    .form-group-search {
        width: 100%;
    }

    /* blog categories */
    .blog-categories-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* blog details */
    .blogdet-header-content {
        flex-direction: column;
    }

    .blogdet-main-content-layout {
        flex-direction: column;
    }
}

/* untuk layar 576px hingga 767px */
@media screen and (min-width: 576px) and (max-width: 767px) {

    /* blog index & blog category*/
    .blog-body .content-blog  {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-group-search {
        width: 100%;
    }

    /* blog categories */
    .blog-categories-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* blog details */
    .blogdet-header-content {
        flex-direction: column;
    }

    .blogdet-main-content-layout {
        flex-direction: column;
    }
}

/* untuk layar 768px hingga 991px */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* blog index & blog category*/
    .blog-body .content-blog  {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-card-desc {
        height: 180px;
    }

    .form-group-search {
        width: 100%;
    }

    /* blog categories */
    .blog-categories-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* blog details */
    .blogdet-header-content {
        flex-direction: column;
    }

    .blogdet-main-content-layout {
        flex-direction: column;
    }
}

/* untuk layar 992px hingga 1199px */
@media screen and (min-width: 992px) and (max-width: 1199px) {

    /* blog index & blog category*/
    .blog-card-desc {
        height: 180px;
    }

    /* blog categories */
    .blog-categories-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* untuk layar 1200px hingga 1399px */
@media screen and (min-width: 1200px) and (max-width: 1399px) {

    /* blog categories */
    .blog-categories-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* untuk layar 1400px ke atas */
@media screen and (min-width: 1400px) {

    /* blog categories */
    .blog-categories-content {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
    }
}

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */