/* Category Latest News Carousel */
.category-latest-post {
    /*margin-bottom: 40px;*/
}

.embla {
    display: flex;
    gap: 20px;
    width: 100%;
}

.embla__main-area {
    flex: 0 0 65%;
    position: relative;
}

.embla__viewport {
    overflow: hidden;
    border-radius: 8px;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.category-latest-post-item {
    padding: 0;
}

.category-latest-post-link {
    display: block;
    text-decoration: none;
}

.category-latest-post-thumb {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.category-latest-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.category-latest-post-link:hover .category-latest-post-thumb img {
    transform: scale(1.05);
}

.category-latest-post-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    color: #000000;
    padding: 0 10px;
}

.category-latest-post-link:hover .category-latest-post-title {
    color: #ff8300;
}

.category-latest-post .td-pb-span9 {
    width: 65%;
}

.category-latest-post .td-pb-span3 {
    width: 35%;
}

.category-latest-post .embla {
    flex-direction: column;
}

/* Sidebar with thumbnails */
.category-latest-post .embla .embla__sidebar {
    flex: 0 0 33%;
    display: flex;
    flex-direction: row;
}

.embla__thumbs::-webkit-scrollbar {
    width: 4px;
}

.embla__thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.embla__thumbs::-webkit-scrollbar-thumb {
    background: #ff8300;
    border-radius: 2px;
}

.category-latest-post .embla .embla__thumbs {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    padding-right: 5px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.category-latest-post .embla .embla__thumb {
    display: flex;
    gap: 0px;
    padding: 0px;
    border: 0px solid transparent;
    border-radius: 8px;
    background: #EEE;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 25px;
    height: 5px;
}

.category-latest-post .embla .embla__thumb:hover {
    background: rgba(255, 131, 0, 1);
}

.category-latest-post .embla .embla__thumb.is-active {
    background: rgba(255, 131, 0, 1);
    width: 50px;
}

.category-latest-post .embla .embla__thumb-image {
    flex: 0 0 120px;
    width: 120px;
    border-radius: 6px;
    aspect-ratio: 40 / 25;
    overflow: hidden;
    display: none;
}

.category-latest-post .embla .embla__thumb-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.category-latest-post .embla .embla__thumb-title {
    display: none;
    flex: 1;
    font-family: 'DB Heavent', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
    /*display: -webkit-box;*/
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding: 10px;
    height: 50px;

}

.category-latest-post .embla .category-latest-post .embla .embla__thumb:hover .embla__thumb-title {
    color: #333;
}

.embla__thumb.is-active .embla__thumb-title {
    color: #333;
}


.category-sidebar-ad {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: start;
}

.sidebar-ad-wrapper {
    width: 100%;
    max-width: 300px;
    height: 250px;
    background-color: #f5f5f5;
}

/* Responsive */
/*@media (max-width: 1099.98px) {
    .embla__thumbs {
        display: none;
    }

    .embla__main-area {
        flex: 0 0 100%;
    }
}*/


/* Category Page */


.mati-subcategory {
    background-color: #EFEFEF;
    display: none;
}

.category-header-ad {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.ud-sub-category {
    font-family: 'DB Heavent', sans-serif;
    padding-top: 15px;
    padding-bottom: 15px;
}

.ud-sub-category ul {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: start;
}

.ud-sub-category ul li {
    font-size: 22px;
    text-align: center;
    line-height: 1;
    font-weight: 400;
    list-style: none;
    margin: 0;
}

.ud-sub-category ul li a {
    font-family: 'DB Heavent', sans-serif;
    font-weight: 500;
    color: #111;
    background-color: #FFF;
    padding: 5px 25px;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ud-sub-category ul li a:hover {
    color: #fff;
    background-color: #ff8300;
}

.category-items {
    margin-top: 24px;
    width: 100%;
}


.category-items a.category-item {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-items a.category-item .catgory-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 40 / 21;
    overflow: hidden;
    transition: all 0.2s ease;
    /*background-color: #F2F2F2;*/
}

.category-items a.category-item .catgory-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'DB Heavent', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.category-items a:hover.category-item .catgory-thumbnail img {
    transform: scale(1.02);
}

.category-items a.category-item .category-detail .category-item-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    color: #111;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.category-items a:hover.category-item .category-detail .category-item-title {
    color: #FF8300;
}

.category-items a.category-item .category-detail .category-metadata .category-date {
    font-family: 'DB Heavent', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
}

.category-hero-items {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.category-hero-items .category-item:first-child {
    grid-area: auto / auto / auto / auto;
}

.category-hero-items .category-item:not(:first-child) {
    grid-area: auto / auto / auto / auto;
}

.category-hero-items .category-item a.category-item-link {
    display: block;
}

.category-hero-items .category-item a.category-item-link .category-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 40 / 21;
    overflow: hidden;
    transition: all 0.2s ease;
    background-color: #F2F2F2;
}

.category-hero-items .category-item a.category-item-link .category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.category-hero-items .category-item a:hover.category-item-link .category-thumbnail img {
    transform: scale(1.02);
}

.category-hero-items .category-item a.category-item-link .category-detail .category-item-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    color: #111;
    transition: all 0.2s ease;
}

.category-hero-items .category-item:first-child a.category-item-link .category-detail .category-item-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    color: #111;
    transition: all 0.2s ease;
}

.category-hero-items .category-item:first-child a.category-item-link .category-detail .category-metadata .category-date {
    font-family: 'DB Heavent', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
}

.category-hero-items .category-item a:hover.category-item-link .category-detail .category-item-title {
    color: #FF8300;
}

.category-hero-items .category-item a.category-item-link .category-detail .category-metadata .category-date {
    font-family: 'DB Heavent', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
}

.subcategory-wrapper .subcategory-items {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 30px;
}

.subcategory-wrapper .subcategory-items .subcategory-header {
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.subcategory-wrapper .subcategory-items .subcategory-header .subcategory-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    color: #111;
    margin: 0;
    text-align: center;
}

.subcategory-wrapper .subcategory-items .subcategory-header .subcategory-title.type2 {
    color: #FFF;
}

.subcategory-wrapper .subcategory-items .subcategory-header a.subcategory-view-all {
    font-family: 'DB Heavent', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    padding: 5px 20px;
    border-radius: 50px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.subcategory-wrapper.type2 {
    background-color: #000000;
}

.subcategory-wrapper .subcategory-items .subcategory-header a.subcategory-view-all.type1 {
    color: #FC7A32;
    background-color: #FFF8F2;
    border: 1px solid #FC7A32;
}

.subcategory-wrapper .subcategory-items .subcategory-header a:hover.subcategory-view-all.type1 {
    color: #FC7A32;
    background-color: #ffd3ac;
    border: 1px solid #FC7A32;
}

.subcategory-wrapper .subcategory-items .subcategory-header a.subcategory-view-all.type2 {
    color: #111111;
    background-color: #FFFFFF;
    border: 1px solid #111111;
}

.subcategory-wrapper .subcategory-items .subcategory-header a:hover.subcategory-view-all.type2 {
    color: #111111;
    background-color: #d9d7d7;
    border: 1px solid #111111;
}

.subcategory-wrapper .subcategory-items .subcategory-header a.subcategory-view-all .btn-arrow {
    transition: all 0.2s ease;
}

.subcategory-wrapper .subcategory-items .subcategory-header a:hover.subcategory-view-all .btn-arrow {
    transform: translateX(4px);
}

.category-items.type1,
.category-items.type2 {
    margin-top: 0px;
}

.subcategory-wrapper .subcategory-items .category-items {
    flex-wrap: wrap;
    justify-content: center;
}

.category-items.type2 a.category-item .category-detail .category-item-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    color: #FFF;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.category-items.type2 a:hover.category-item .category-detail .category-item-title {
    color: #FF8300;
}


.infographic-items {
    margin-top: 24px;
    width: 100%;
}


.infographic-items a.infographic-item {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.infographic-items a.infographic-item .infographic-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 21 / 26;
    overflow: hidden;
    transition: all 0.2s ease;
    /*background-color: #F2F2F2;*/
}

.infographic-items a.infographic-item .infographic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'DB Heavent', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.infographic-items a:hover.infographic-item .infographic-thumbnail img {
    transform: scale(1.02);
}

.infographic-items a.infographic-item .infographic-detail .infographic-item-title {
    font-family: 'DB Heavent', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    color: #111;
    transition: all 0.2s ease;
}

.infographic-items a:hover.infographic-item .infographic-detail .infographic-item-title {
    color: #FF8300;
}

.infographic-items a.infographic-item .infographic-detail .infographic-metadata .infographic-date {
    font-family: 'DB Heavent', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
}


@media (min-width: 640px) {
    .category-items a.category-item {
        margin-bottom: 24px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

@media (min-width: 768px) {

    .nosubcat-page .td-pb-row .td-pb-span9 {
        width: 67%;
    }

    .nosubcat-page .td-pb-row .td-pb-span3 {
        width: 33%;
    }

    .category-latest-post .embla .embla__thumb {
        width: 30px;
        height: 8px;
    }

    .category-items.type1 a.category-item .category-detail .category-item-title {
        font-size: 23px;
    }

    .category-items.type2 a.category-item .category-detail .category-item-title {
        font-size: 23px;
    }

    .nosubcat-page .category-items a.category-item .category-detail .category-item-title {
        font-size: 23px;
    }

    .nosubcat-page .category-hero-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 15px;
        grid-row-gap: 15px;
    }

    .nosubcat-page .category-hero-items .category-item:first-child {
        grid-area: 1 / 1 / 4 / 4;
    }

    .nosubcat-page .category-hero-items .category-item:not(:first-child) {
        grid-area: auto / auto / auto / auto;
    }


}

@media (min-width: 1024px) {

    .nosubcat-page .category-hero-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 15px;
        grid-row-gap: 15px;
    }

    .nosubcat-page .category-items a.category-item .category-detail .category-item-title {
        font-size: 26px;
    }

    .subcategory-wrapper .subcategory-items .subcategory-header {
        flex-direction: row;
        gap: 15px;
    }

    .category-items a.category-item {
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nosubcat-page .td-pb-row .td-pb-span3 {
        width: 25%;
    }

}

@media (min-width: 1280px) {
    .nosubcat-page .td-pb-row .td-pb-span9 {
        width: 75%;
    }

    .nosubcat-page .td-pb-row .td-pb-span3 {
        width: 25%;
    }

    .nosubcat-page .category-hero-items {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 15px;
        grid-row-gap: 15px;
    }

    .category-items.type1 a.category-item .category-detail .category-item-title {
        font-size: 26px;
    }

    .category-items.type2 a.category-item .category-detail .category-item-title {
        font-size: 26px;
    }

    .category-latest-post .td-pb-span9 {
        width: 75%;
    }

    .category-latest-post .td-pb-span3 {
        width: 25%;
    }

    .category-latest-post .embla {
        flex-direction: row;
    }

    /* Sidebar with thumbnails */
    .category-latest-post .embla .embla__sidebar {
        flex-direction: column;
    }

    .category-latest-post .embla .embla__thumbs {
        flex-direction: column;
    }

    .category-latest-post .embla .embla__thumbs {
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex: 1;
        overflow-y: auto;
        max-height: 600px;
        padding-right: 5px;
        justify-content: start;
    }

    .category-latest-post .embla .embla__thumb {
        display: flex;
        gap: 0px;
        padding: 0px;
        border: 0px solid transparent;
        border-radius: 8px;
        background: #f9f9f9;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        width: 100%;
        height: auto;
    }

    .category-latest-post .embla .embla__thumb:hover {
        background: rgba(255, 131, 0, 1);
    }

    .embla__thumb.is-active {
        background: rgba(255, 131, 0, 1);
    }

    .category-latest-post .embla .embla__thumb-image {
        flex: 0 0 120px;
        width: 120px;
        border-radius: 6px;
        aspect-ratio: 40 / 25;
        overflow: hidden;
        display: flex;
    }

    .category-latest-post .embla .embla__thumb-image img {
        display: block;
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .category-latest-post .embla .embla__thumb-title {
        flex: 1;
        font-family: 'DB Heavent', sans-serif;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.2;
        color: #111;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        padding: 10px;
        height: 50px;

    }

    .category-latest-post .embla .embla__thumb:hover .embla__thumb-title {
        color: #FFF;
    }

    .category-latest-post .embla .embla__thumb.is-active .embla__thumb-title {
        color: #FFF;
    }

    .category-latest-post .embla .embla__thumb.is-active {
        background: rgba(255, 131, 0, 1);
        width: 100%;
    }
}

@media (min-width: 1536px) {}

@media (min-width: 1920px) {}