#post-by-category {
    & .filter-dropdown-group {
        max-width: 428px;
    }

    & .filter-search-box {
        flex: 1 1 0%;
    }

    & .filter-main-bar {
        margin-bottom: 0px;
    }

    .filter-item.supplier {
        @media (min-width: 992px) {
            &:hover {
                .filter-dropdown-box.theme-white {
                    border-color: var(--color-2);
                    width: calc(100% + 10px);
                    left: -4px;
                }
            }
        }
    }
}

.section-post {
    padding-bottom: 70px;

    @media (max-width: 992px) {
        padding-bottom: 30px;
    }
}

.post-grid {
    margin-bottom: 50px;
    gap: 20px 0px;

    & .article-item.type2:not(:last-child) {
        margin-bottom: 20px;
    }

    & .article-item.type2 .article-item__tag {
        order: 1;
        margin-bottom: 10px;
    }

    .article-item__img {
        padding-bottom: calc((9/16) * 100%);
    }

    & .article-item.type2 .article-item__title {
        order: 2;
        margin-bottom: 0px;
    }

    & .first {
        @media (min-width: 768px) {
            & .article-item__title {
                font-size: 40px;
            }

            & .article-item__info {
                padding: 0 30px 26px;
            }

            & .article-item__img {
                padding-bottom: calc((9.4/16) * 100%);
                margin-bottom: 20px;
            }
        }
    }
}

.post-bottom {
    & .row {
        gap: 20px 0px;
    }
}

.detail-page {
    padding: 121px 0px;

    @media (max-width: 992px) {
        padding: 30px 0px;
    }

    & .row {
        --gutter: 16px;
    }
}

.post-detail-main {
    padding-bottom: 60px;

    @media (max-width: 992px) {
        padding-bottom: 30px;
    }
}

.post-detail-header {
    margin-bottom: 40px;
    text-align: left;

    @media (max-width: 992px) {
        margin-bottom: 20px;
    }
}

.post-detail-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-2);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    text-transform: uppercase;

    & .lightning-icon svg {
        width: 20px;
        height: 20px;
    }
}

.post-detail-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--color-2);
}

.post-detail-meta {
    display: flex;
    gap: 30px;
    color: rgb(85, 85, 85);
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;

    & .icon {}

    .icon {
        line-height: 0;
    }
}

.post-detail-thumb {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 30px;

    & img {
        width: 100%;
        display: block;
    }
}

.post-detail-body {
    line-height: 1.9;
    color: rgb(51, 51, 51);
    text-align: justify;
    margin-top: 20px;
}

.post-sidebar {
    position: sticky;
    top: 5px;
}

.rounded-pill {
    border-radius: 50px !important;
}

.widget-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    color: var(--color-2);
    padding-bottom: 15px;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-3);
    border-radius: 2px;
}

.widget-category-custom {
    border: 1px solid rgb(226, 232, 240);
    border-radius: 20px;
    padding: 20px;
    background: rgb(255, 255, 255);
    text-align: center;
    margin-bottom: 30px;
}

.widget-title-custom {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-2);
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.category-dropdown-container {
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid transparent;

    &.active {
        background: var(--color-2);

        & .category-dropdown-header {
            background: var(--color-2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px 20px 0px 0px;
            padding-bottom: 15px;
            margin-bottom: 0px;
        }

        & .dropdown-toggle-icon {
            transform: rotate(180deg);
            background: rgb(255, 255, 255);
            color: var(--color-2);
        }

        & .category-dropdown-content {
            max-height: 213px;
            opacity: 1;
            padding: 20px;
            overflow-y: auto;
        }
    }
}

.category-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-2);
    color: rgb(255, 255, 255);
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.3s;

    & .dropdown-label {
        font-weight: 700;
        font-size: 20px;
        color: rgb(255, 255, 255);
    }

    & .dropdown-toggle-icon {
        min-width: 24px;
        height: 24px;
        background: transparent;
        border: 2px solid rgb(255, 255, 255);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s ease, background 0.3s ease, color 0.3s ease;

        & svg {
            width: 16px;
            height: 16px;
        }
    }
}

ul.category-list .active-item a:hover {
    font-weight: 700;
}

.category-dropdown-content {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.4s ease;
    background: var(--color-2);
    text-align: left;

    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.85) rgba(255, 255, 255, 0.15);

    &::-webkit-scrollbar {
        width: 5px;
    }

    &::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        margin: 8px 0;
    }

    &::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.85);
        border-radius: 20px;
        min-height: 40px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: rgb(255, 255, 255);
    }

    & .category-list {
        list-style: none;
        padding: 0px;
        margin: 0px;

        & li {
            padding: 12px 0px;
            transition: 0.3s;

            & a {
                color: rgba(255, 255, 255, 0.8);
                font-size: 16px;
                font-weight: 500;
                text-decoration: none;
                transition: 0.3s;
            }

            &:hover,
            &.active-item {
                & a {
                    color: var(--color-4);
                    font-weight: 500;
                }
            }

            &:not(:last-child) {
                border-bottom: 0px solid transparent;
            }
        }
    }
}