.container__archive {
    max-width: 1440px;
    padding: 18px 33px;
    margin: 0 auto;
}

.trending__listPost {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.card__wrapper {
    padding: 12px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 20px;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-template-template-articles .pageRow-sc {
    gap: 0px;
}

.page-template-template-articles .wrap-block {
    padding: 0px 20px;
}


.card__wrapper a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.card__wrapper a img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}


.content__wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    -webkit-box-pack: justify;
    justify-content: space-between;
    padding: 10px 12px;
}

.post__name {
    margin: 8px 0px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    cursor: pointer;
    color: rgb(24, 24, 27);
}

.post__description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgb(113, 113, 122);
    margin: 0px 0px 0px auto;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    letter-spacing: -0.2px;
    height: 40px;
}

.archive-custom__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: 96px;
    padding: 0 0 160px;
}

.archive-custom__wrapper .trending__listPost {
    width: calc(100% - 432px);
    max-width: 980px;
}

#sidebar {
    width: 336px;
    flex-shrink: 0;
}

#sidebar ul {
    list-style: none !important;
    margin: 0px;
    padding: 0px;
}

.card__wrapper_sb {
    display: flex;
    gap: 16px;
}

.widget__sidebar a {
    text-decoration: none;
}

.widget__sidebar li {
    margin-bottom: 10px;
    padding: 0px;
}

.post__name_sb {
    width: 100%;
    font-weight: 700;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
    color: rgb(24, 24, 27);
}

.post__image_sb {
    display: block;
    align-content: center;
}

.post__image_sb img {
    height: 60px;
    object-fit: cover;
    width: 80px;
}

#sidebar h4 {
    font-size: 18px;
    line-height: 1;
    padding: 0 0 16px;
    position: relative;
    margin-bottom: 30px;
}

#sidebar h4:before {
    display: block;
    content: '';
    width: 100%;
    height: 1px;
    background: #111;
    position: absolute;
    bottom: 0;
    left: 0;
}

.tag__item {
    position: relative;
}

#sidebar .tag__item a {
    margin-left: 15px;
    color: inherit;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-top: none;
    line-height: 1.5;
    position: relative;
    font-size: 14px;
    font-weight: bold;
    transition: all .3s ease;
}

#sidebar .tag__item a:hover {
    color: #42b1b3 !important;
}

.widget__sidebar article a .post__name_sb {
    transition: all .3s ease;
}

.widget__sidebar article a:hover .post__name_sb {
    color: #42b1b3 !important;
}

.content__wrapper_sb {
    align-content: center;
}

.search__form {
    display: flex;
}

.search__form button {
    background: #f3f3f3;
    border: 0px;
    padding: 0px 20px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.search__form input {
    background: #f3f3f3;
    border: 0px;
    height: 50px;
    width: 100%;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding-left: 10px;
    font-size: 16px;
    font-weight: 500;
}

.widget__sidebar form {
    position: relative;
}

.search__form input,
.search__form button {
    outline: none;
}

.container__archive .page-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    display: block;
}


.tag__item:before {
    display: block;
    content: '';
    width: 8px;
    height: 1px;
    background: #111;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    transition: .3s ease;
}

.custom-dropdown .dropdown-btn:before {
    display: block;
    content: '';
    width: 1px;
    height: 24px;
    background: #111;
    position: absolute;
    top: 12px;
    right: 48px;
}

.custom-dropdown .dropdown-btn:after {
    display: block;
    content: '';
    width: 0;
    height: 0;
    border-width: 9px 5px;
    border-style: solid;
    border-color: transparent;
    border-top-color: #111;
    position: absolute;
    top: 20px;
    right: 20px;
    transform: rotate3d(0);
    transition: .3s ease;
}


.custom-dropdown {
    position: relative;
    display: none;
    width: 100%;
    max-width: 400px;
}

.dropdown-btn {
    background-color: #f3f3f3;
    color: #000;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    width: 100%;
    font-weight: 600;
}

.dropdown-btn:hover {
    background-color: #f3f3f3;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 200px;
    border-radius: 5px;
    z-index: 10;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.dropdown-menu li:hover {
    background-color: #f1f1f1;
}



@media screen and (max-width: 1024px) {
    .custom-dropdown {
        display: inline-block;
    }

    #sidebar {
        display: none;
    }


    .archive-custom__wrapper .trending__listPost {
        width: auto;
        max-width: 100%;
        margin-top: 40px;
    }


    .dropdown-menu {
        width: 100%;
        font-weight: 600;
    }

    .dropdown-btn {
        height: 50px;
    }
}

@media screen and (max-width: 768px) {
    #sidebar {
        display: none;
    }

    .trending__listPost {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 548px) {
    .card__wrapper {
        width: auto;
    }

    .content__wrapper {
        padding: 10px 0px;
    }

    .container__archive {
        max-width: 1440px;
        padding: 0px 16px;
        margin: 0 auto;
    }

    .card__wrapper a img {
        width: 100%;
        max-height: 116px;
        object-fit: contain;
    }

    .trending__listPost {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 10px;
    }

    .post__name {
        font-size: 14px;
    }

    .post__description {
        font-size: 12px;
        line-height: 17px;
        width: 100%;
        height: auto;
    }

    .container__archive .page-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .archive-custom__wrapper {
        padding-bottom: 80px;
    }

    .page-template-template-articles #crumbs {
        padding-left: 0px;
    }
}