#post-by-category {
    .filter-dropdown-group {
        max-width: 428px;
    }
    .filter-search-box {
        flex: 1;
    }
    .filter-main-bar {
        margin-bottom: 0;
    }
}
.section-post {
    padding-bottom: 70px;
    @media (max-width: 992px) {
        padding-bottom: 30px;
    }
}

.post-grid {
    margin-bottom: 50px;
    gap: 20px 0;
    .article-item.type2:not(:last-child) {
        margin-bottom: 23px;
    }
    .article-item.type2 .article-item__tag {
        order: 1;
        margin-bottom: 10px;
    }
    .article-item.type2 .article-item__title {
        order: 2;
        margin-bottom: 0;
    }
    .first {
        @media (min-width: 768px) {
            .article-item__title {
                font-size: 40px;
            }
            .article-item__img {
                padding-bottom: 67%;
            }
        }
    }
}
.post-bottom {
    .row {
        gap: 20px 0;
    }
}
/* Post Detail */
.detail-page {
    padding: 121px 0;
    @media (max-width: 992px) {
        padding: 30px 0;
    }
    .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;
    font-size: 15px;
    color: #555;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    .icon svg {
        width: 18px;
        height: 18px;
        color: var(--color-2);
    }
}

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

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

.post-detail-body {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
    text-align: justify;
    margin-top: 20px;
}

.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: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-3);
    border-radius: 2px;
}

/* Custom Sidebar Category Widget */
.widget-category-custom {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    background: #fff;
    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: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    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: 30px 30px 0 0;
            padding-bottom: 15px;
            margin-bottom: 0;
        }
        .dropdown-toggle-icon {
            transform: rotate(180deg);
            background: #fff;
            color: var(--color-2);
        }
        .category-dropdown-content {
            display: block;
        }
    }
}

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

    .dropdown-label {
        font-weight: 700;
        font-size: 20px;
    }

    .dropdown-toggle-icon {
        width: 28px;
        height: 28px;
        background: transparent;
        border: 2px solid #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        svg {
            width: 16px;
            height: 16px;
        }
    }
}

.category-dropdown-content {
    display: none;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--color-2);
    text-align: left;

    /* Custom Scrollbar */
    &::-webkit-scrollbar {
        width: 6px;
    }
    &::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    &::-webkit-scrollbar-thumb {
        background: #fff;
        border-radius: 10px;
    }

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

        li {
            padding: 12px 0;
            transition: all 0.3s ease;

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

            &:hover,
            &.active-item {
                a {
                    color: #fff;
                    font-weight: 700;
                }
            }

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