.filter-item {
    display: none;
    align-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    height: 44px;
    box-shadow: 0 0 20px 0 #5959590A;
    margin-bottom: 16px;
}

.blog-container .filter-item .filter-sort,
.blog-container .filter-item .filter-items {
    position: relative;
    width: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-container .filter-item .filter-sort:after {
    content: "";
    display: block;
    height: 25px;
    width: 1.5px;
    background: rgba(211, 211, 211, 0.83);
    position: absolute;
    left: 0;
    top: 0;
}

.blog-container .breadcrumbs {
    margin-bottom: 30px;
    margin-top: 60px;
}

.search-bar {
    border: 1px solid #BDBDBD;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    width: 328px;
    margin-right: auto;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    border: none;
    outline: none;
    flex-grow: 1;
    color: #BDBDBD;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    height: 24px;
    margin-left: 5px;
}

.sort-options {
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
}

.sort-options span {
    font-weight: 500;
    margin-left: 10px;
    font-size: 14px;
    color: #4F4F4F;
}

.sort-options a {
    text-decoration: none;
    margin: 0 6px;
    color: #828282;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    text-align: right;
}

.sort-options a.active {
    color: #0031A2;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    text-align: right;
}

.sort-options a:not(:last-child)::after {
    content: '|';
    margin-right: 10px;
    color: #828282;
    border-radius: 10px;
}

.blog-cats {
    padding: 15px 0px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}

.category-title {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.meta-info {
    font-size: 14px;
    color: #777;
    font-weight: 600;
}

.category-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.category-items {
    display: flex;
    gap: 8px;
    max-width: 886px;
}

.category-items::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.category-items::-webkit-scrollbar-track {
    background: transparent;
}

.category-items::-webkit-scrollbar-thumb {
    background-color: #bdbdbd;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.category-items::-webkit-scrollbar-thumb:hover {
    background-color: #888;
}

.category-item {
    padding: 8px 18px;
    font-size: 14px;
    color: #333333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: #f1f1f1;
}

.category-item.active {
    background-color: #0031A2;
    color: #fff;
    border-color: #0031A2;
    font-weight: bold;
}

.sort-options-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    text-align: right;
    color: #4F4F4F;
}

.blog-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 20px;
}

.blog-row .img-wrapper {
    padding: 16px 16px 0;
    width: 100%;
    display: flex;
    height: max-content;
}

.blog-row .img-wrapper img {
    border-radius: 8px;
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown-btn {
    background-color: #FFFFFF;
    box-shadow: 0px 4px 16px 0px #0031A214;
    color: #0031A2;
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    width: 142px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.category-dropdown-content {
    display: flex;
    position: absolute;
    background-color: white;
    min-width: 460px;
    max-width: 460px;
    z-index: 1;
    box-shadow: 0px -4px 10px 0px #2626260F;
    border-radius: 12px;
    top: 103%;
    left: 0;
    right: 0;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 5px;
    padding: 16px;
}

.category-dropdown-content-wrap {
    display: none;
}

.category-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.category-dropdown:hover .category-dropdown-content-wrap {
    display: block;
}

.blog-card {
    flex: 1 1 calc(20% - 20px);
    background-color: #fff;
    border: 1px solid #F5F5F5;
    border-radius: 10px;
    box-shadow: 0 0 20px 0 #5959590A;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: calc(20% - 20px);
    height: auto;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.blog-card-body {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    color: #333333;
    margin: 16px 0 12px;
}

.blog-title a {
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
    color: #333333;
    margin: 16px 0 12px;
}

.blog-description {
    font-size: 14px;
    font-weight: 400;
    color: #4F4F4F;
    margin-top: 0px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-meta {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #999;
    gap: 12px;
}

.blog-meta .author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta .author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.blog-meta .date {
    font-size: 13px;
    display: flex;
    gap: 6px;
}

.blog-card .date p {
    margin: 0;
    color: #4F4F4F;
    font-weight: 600;
}

.blog-meta .author span {
    font-weight: 600;
    font-size: 12px;
    color: #828282;
}

.pagination {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-num {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination .page-num .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #F5F5F5;
    box-shadow: 0 0 20px 0 #5959590A;
    font-weight: 600;
    color: #333333;
}

.pagination .page-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 8px;
}

.pagination .page-text .text {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #F5F5F5;
    box-shadow: 0 0 20px 0 #5959590A;
    font-weight: 600;
    color: #333333;
    padding: 10px;
}

.head-blog .meta-info {
    display: none;
}

.fillter-mobile {
    display: none;
}

/*res archive blog*/
@media (max-width: 1399.98px) {
}

@media (max-width: 1200px) {
    .blog-card {
        flex: 1 1 calc(25% - 20px);
        max-width: calc(25% - 20px);
    }
}

@media (max-width: 992px) {
    .category-items {
        max-width: 401px;
    }
}

@media (max-width: 720px) {
    .blog-card {
        flex: 1 1 calc(33.33% - 20px);
        max-width: calc(33.33% - 20px);
    }

       .fillter-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        border: 1px solid #F5F5F5;
        box-shadow: 0px 0px 20px 0px #5959590A;
        border-radius: 12px;
        padding: 12px 28px;
        flex-wrap: wrap;
    }

    .fillter-mobile button {
        padding: 0;
        background: none;
        border: none;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #333333;
        width: 50%;
    }

    .fillter-mobile button:first-child {
        border-left: 1px solid #E0E0E0;
    }

    .fillter-mobile button:last-child {
        justify-content: flex-end;
    }

    .blog-row .blog-card {
        max-width: 100%;
        flex: auto;
    }

    .blog-row .img-wrapper img {
        height: 133px;
    }

    .blog-row .blog-card-body {
        margin-top: 32px;
    }

    .blog-row .img-wrapper {
        height: 133px;
    }

    .blog-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .blog-meta .date {
        align-items: center;
    }

    .blog-meta .date {
        display: flex;
        align-items: center;
    }

    .blog-meta .author {
        gap: 8px;
    }

    .blog-meta .author span {
        font-weight: 600;
    }

    .filter-item {
        display: flex;
    }

    .search-bar {
        width: 100%;
    }

    .sort-options {
        display: none;
    }

    .blog-cats {
        display: none;
    }

    .head-blog {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1.2rem;
    }

    .blog-container .breadcrumbs {
        margin-bottom: 1rem;
    }

    .pagination .page-text .text {
        display: flex;
    }

    .head-blog .meta-info {
        display: none;
    }

    .blog-cats {
        display: none;
    }
}

@media (max-width: 576px) {
    .blog-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

}

@media (max-width: 400px) {
    .search-bar {
        margin-bottom: 1rem;
    }

    .blog-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}