/* Hero Dynamic Title */
.resources-hero .thm-archive-title {
    font-weight: 500;
    font-size: 59px;
    line-height: 1em;
    text-align: center;
    color: #fff;
}
@media (max-width: 768px) {
    .resources-hero .thm-archive-title {
        font-size: 48px;
    }
}
/* Dropdown */
.js-dropdown-body {
    display: none;
}
.js-dropdown-body.active {
    display: block;
}
.js-subdropdown-body {
    display: none;
}
.js-subdropdown-body.active,
.hide-level-1 .js-subdropdown-body {
    display: flex;
}
.thm-resources-posts-block.hide-level-1 .cat-level[data-level="1"] > .cat-name,
.thm-resources-posts-block.hide-level-1 .cat-level[data-level="1"] .cat-level-trigger,
.has-subdropdown-open .cat-level[data-level="1"] > .cat-name,
.has-subdropdown-open .cat-level[data-level="1"] .cat-level-trigger,
.thm-resources-posts-block-controls-sort-dropdown-buttons {
    display: none;
}
.thm-resources-posts-block-list,
.thm-resources-posts-block-list ul{
    padding: 0;
    margin: 0;
    list-style-type: none;
}
.thm-resources-posts-block-controls {
    display: flex;
    gap: 32px;
    align-items: center;
    padding-bottom: 24px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f1f2f6;
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-controls {
        padding-right: 4px;
        padding-left: 20px;
    }
}
@media (max-width: 1024px) {
    .thm-resources-posts-block-controls {
        flex-direction: column;
    }
}

.thm-resources-posts-block-controls-sort {
    position: relative;
}
.thm-resources-posts-block-controls-sort-header {
    position: relative;
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    border: 2px solid #b5bec7;
    border-radius: 49px;
    width: 180px;
    padding: 4px;
    color: #353535;
    font-weight: 400;
    cursor: pointer;
    transition: color .3s linear, border-color .3s linear;
}
@media (max-width: 1024px) {
    .thm-resources-posts-block-controls-sort,
    .thm-resources-posts-block-controls-sort-header {
        width: 100%;
    }
    .thm-resources-posts-block-controls-sort-header {
        justify-content: space-between;
        padding: 10px 16px;
    }
}

.thm-resources-posts-block-controls-sort-header.active {
    color: #2170e8;
    border-color: #2170e8;
}
.thm-resources-posts-block-controls-sort-header:after {
    content: '';
    pointer-events: none;
    background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-down.svg");
    background-repeat: no-repeat;
    background-size: 11px 8px;
    background-position: center;
    width: 11px;
    height: 8px;
}
.thm-resources-posts-block-controls-sort-header.active:after {
    background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-down-blue.svg");
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-controls-sort-header:hover {
        color: #2170e8;
        border-color: #2170e8;
    }
    .thm-resources-posts-block-controls-sort-header:hover:after {
        background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-down-blue.svg");
    }
}
.thm-resources-posts-block-controls-sort-dropdown {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    z-index: 25;
    border-radius: 23px;
    box-shadow: 2px 7px 18px 7px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    padding: 14px 14px 20px;
    max-width: 506px;
    min-height: 280px;
    width: 100%;
}
@media (min-width: 1025px) {
    .thm-resources-posts-block-controls-sort-dropdown {
        width: 280%;
        top: 42px;
    }
}
/* Sub-dropdown Categories */
.cat-name {
    position: relative;
    cursor: pointer;
    transition: opacity .3s linear;
    font-weight: 400;
    font-size: 17px;
    color: #6a7c8d;
}
@media (min-width: 1024px) {
    .cat-name:hover {
        opacity: .5;
    }
}
.cat-name.active {
    opacity: .5;
}
/* Last level subdropdown (level-2) */
.list-sublevel .list-sublevel-2 .cat-level-2 .cat-name {
    border: 1px solid #6a7c8d;
    border-radius: 23px;
    font-size: 12px;
    font-weight: 400;
    color: #6a7c8d;
    padding: 1px 4px;
    width: fit-content;
    margin-bottom: 6px;
    transition: background-color .3s linear, border-color .3s linear;
}
@media (min-width: 1024px) {
    .list-sublevel-2 .cat-level-2 .cat-name:hover {
        background-color: #bf4bb1;
        border-color: #bf4bb1;
        color: #ffffff;
        opacity: 1;
    }
}
.list-sublevel-2 .cat-level-2 .cat-name.active,
.thm-resources-posts-block-inner-list-item-content-categories-list-category-link.active {
    background-color: #bf4bb1;
    border-color: #bf4bb1;
    color: #ffffff;
    opacity: 1;
}
.cat-level.has-children {
    width: 100%;
}
.cat-level-2 {
    padding-top: 10px;
}
.list-sublevel-2 {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
/* Middle level subdropdown (level-1) */
.cat-level .has-children {
    padding: 0 20px 12px;
}
.list-sublevel-1 > .cat-level-1.has-children .cat-name {
    padding-left: 0;
}
ul .list-sublevel-1 {
    flex-direction: column;
    padding: 0 10px 0 24px;
}
.list-sublevel-1 > .cat-level {
    padding: 12px 0;
    border-bottom: 2px solid #f1f2f6;
}
.list-sublevel-1 > .cat-level:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.list-sublevel-1 > .cat-level-1 .cat-name {
    font-weight: 300;
    color: #353535;
}
/* First level subdropdown (level-0) */
.cat-level-0 {
    position: relative;
    padding: 6px 10px;
}
.cat-level-0 > .cat-name {
    display: block;
    font-size: 21px;
    color: #353535;
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
}
.cat-level-trigger {
    display: none;
}
.cat-level-0.has-children > .cat-level-trigger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-down.svg");
    background-repeat: no-repeat;
    background-size: 15px 12px;
    background-position: center;
    width: 24px;
    height: 24px;
    border: none;
    transform: rotate(-90deg);
}
.cat-level-0.has-children > .cat-level-trigger:hover,
.cat-level-0.has-children > .cat-level-trigger:focus {
    background-color: transparent;
}
.cat-level-0.active > .cat-name {
    background-color: #f1f2f5;
}
.cat-level-0.has-children.active .cat-level-trigger {
    transform: rotate(180deg);
}
/* Sort buttons */
.has-subdropdown-open .thm-resources-posts-block-controls-sort-dropdown-buttons,
.hide-level-1 .thm-resources-posts-block-controls-sort-dropdown-buttons {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.thm-resources-posts-block-controls-sort-dropdown-buttons button {
    border: none;
    color: #353535;
}
.thm-resources-posts-block-controls-sort-dropdown-buttons button:hover,
.thm-resources-posts-block-controls-sort-dropdown-buttons button:focus {
    background-color: transparent;
    color: #353535;
    opacity: .8;
}
.thm-resources-posts-block-controls-sort-dropdown-buttons button {
    padding: 0;
    font-size: 13px;
}
.thm-resources-posts-block-controls-sort-dropdown-buttons .back-to-first-level {
    position: relative;
    display: flex;
    gap: 4px;
    align-items: center;
}
.thm-resources-posts-block-controls-sort-dropdown-buttons .back-to-first-level:before {
    content: '';
    background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-down.svg");
    background-repeat: no-repeat;
    background-size: 10px 10px;
    background-position: center;
    width: 20px;
    height: 20px;
    border: 1px solid #353535;
    border-radius: 50%;
    transform: rotate(90deg);
}
.thm-resources-posts-block-controls-sort-dropdown-buttons .clear-all-results {
    border: 1px solid #353535;
    border-radius: 27px;
    width: 69px;
    padding: 1px;
}
/* Sort results */
ul.thm-resources-posts-block-sort-results {
    min-height: 24px;
    padding-bottom: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
ul.thm-resources-posts-block-sort-results:has(li) {
    border-bottom: 1px solid #f1f2f6;
}
.thm-resources-posts-block-controls-sort-dropdown ul.thm-resources-posts-block-sort-results {
    padding-left: 0;
}
.thm-resources-posts-block-sort-results .cat-result {
    font-size: 10px;
    font-weight: 400;
    color: #353535;
    border-radius: 21px;
    background-color: #f1f2f5;
    padding: 2px 8px;
    width: fit-content;
    height: fit-content;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-sort-results .cat-result:hover {
        background-color: #bf4bb1;
        border-color: #bf4bb1;
        color: #ffffff;
    }
}
/* Count categories result */
.thm-resources-posts-block-inner-sort {
    display: flex;
    gap: 24px;
    padding-bottom: 16px;
}
@media (max-width: 768px) {
    .thm-resources-posts-block-inner-sort {
        flex-direction: column;
    }
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-inner-sort {
        padding-left: 48px;
    }
}
.thm-resources-posts-block-sort-results-count {
    font-size: 12px;
    color: #353535;
}
/* Search */
.thm-resources-posts-block-controls-search {
    width: 100%;
    position: relative;
}
.thm-resources-posts-block-controls-search input[type=text] {
    width: 100%;
    min-height: 47px;
    border: 2px solid #b5bec7;
    border-radius: 49px;
    padding-right: 48px;
}
.thm-resources-posts-block-controls-search .search-btn[type=button] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #2170e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background-color: transparent;
    transition: opacity .3s linear;
}
.thm-resources-posts-block-controls-search .search-btn:hover {
    opacity: .5;
}
.thm-resources-posts-block-controls-search .search-btn img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    pointer-events: none;
}
.thm-resources-posts-block-controls-search .search-clear {
    display: none;
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #000000;
}
body .thm-resources-posts-block-controls-search .search-clear:hover {
    background-color: transparent;
    color: rgba(0, 0, 0, .5);
}
/* Inner List */
.thm-resources-posts-block-inner-list {
    display: flex;
    flex-direction: column;
    gap: 52px;
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-inner-list {
        padding-right: 4px;
        padding-left: 20px;
    }
}
.thm-resources-posts-block-inner-list-item {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 12px 16px;
    border: 0 solid #f1f2f6;
    border-radius: 41px;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);
}
@media (max-width: 1024px) {
    .thm-resources-posts-block-inner-list-item {
        flex-direction: column;
    }
}
.thm-resources-posts-wrapper {
    position: relative;
    transition: opacity .3s linear;
}
.thm-resources-posts-wrapper:hover {
    opacity: .5;
}
.thm-resources-posts-wrapper-link {
    position: absolute;
    inset: 0;
}
.thm-resources-posts-block-inner-list-item-image {
    border-radius: 32px;
    overflow: hidden;
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-inner-list-item-image {
        flex: 1 1 40%;
    }
}
.elementor .thm-resources-posts-block-inner-list-item-image img {
    width: 100%;
    height: 246px;
    object-fit: contain;
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-inner-list-item-content {
        flex: 1 1 58%;
    }
}
.thm-resources-posts-block-inner-list-item-content-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.thm-resources-posts-block-inner-list-item-content-categories-list-category-link {
    font-size: 11px;
    color: #bf4bb1;
    border: 1.27px solid #bf4bb1;
    border-radius: 22px;
    padding: 2px 12px;
    transition: color .2s linear, background-color .2s linear;
}
.thm-resources-posts-block-inner-list-item-content-categories-list-category-link:hover {
    color: #ffffff;
    background-color: #bf4bb1;
}
.thm-resources-posts-block-inner-list-item-content-title {
    width: 70%;
    font-size: 23px;
    color: #353535;
    margin-bottom: 10px;
}
@media (max-width: 1024px) {
    .thm-resources-posts-block-inner-list-item-content-title {
        width: 100%;
    }
}
.thm-resources-posts-block-inner-list-item-content-excerpt {
    width: 80%;
    font-weight: 300;
    font-size: 15px;
    line-height: 131%;
    color: #353535;
    margin-bottom: 16px;
}
@media (max-width: 1024px) {
    .thm-resources-posts-block-inner-list-item-content-excerpt {
        width: 100%;
    }
}
.thm-resources-posts-block-inner-list-item-content-link {
    position: relative;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    color: #f1f2f6;
    border: 1px solid #bf4bb1;
    padding: 4px 12px;
    width: 145px;
    text-align: center;
    border-radius: 47px;
    background-color: #bf4bb1;
    transition: color .2s linear, background-color .2s linear;
}
.thm-resources-posts-block-inner-list-item-content-link:after {
    content: '';
    pointer-events: none;
    background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-right-white.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 9px;
    height: 12px;
}
@media (min-width: 1024px) {
    .thm-resources-posts-block-inner-list-item-content-link:hover {
        background-color: transparent;
        color: #bf4bb1;
    }
    .thm-resources-posts-block-inner-list-item-content-link:hover:after {
        background-image: url("/wp-content/themes/hello-elementor-child/assets/img/carret-right-pink.svg");
    }
}
@media (max-width: 768px) {
    .thm-resources-posts-block-inner-list-item-content-link {
        width: 100%;
    }
}
/* Pagination */
body .pagination {
    justify-content: center;
    margin: 36px 0 0;
    gap: 4px;
}
@media (min-width: 1200px) {
    body .pagination {
        padding-left: 24px;
    }
}
body .pagination .thm-resources-posts-page {
    font-size: 21px;
    line-height: 131%;
    color: #c5c5c5;
    border-color: transparent;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
}
body .pagination .thm-resources-posts-page.active {
    background-color: #bf4bb1;
    color: #ffffff;
}
body .pagination .thm-resources-posts-page:focus,
body .pagination .thm-resources-posts-page:hover {
    background-color: #bf4bb1;
    color: #ffffff;
}
/* Sidebar */
body .resources-inner-sidebar-blue-block {
    transition: opacity .3s linear;
}
.resources-inner-sidebar-blue-block:hover {
    opacity: .95;
}