.portfolio.after_header {
    position: relative;
    /* background: var(--page-header-background); */
    padding: 100px 0 300px;
    color: var(--text-primary);
    overflow-x: hidden;
}

.portfolio.after_header:before {
    position: absolute;
    content: '';
    background: url(/wp-content/themes/abagency/assets/images/decor-background.webp);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: .4;
}

.decorated_after_header {
    position: absolute;
    top: -20px;
    right: 5%;
}

.after_header-inner, .after_header-breadcrumbs {
    position: relative;
    z-index: 2;
}

.after_header-breadcrumbs {
    padding: 5px 0;
    margin: 0 0 20px;
    font-size: 14px;
    color: #9a9a9a;
}

.after_header-breadcrumbs a {
    color: #9a9a9a;
}

.after_header-inner-content-qty {
    min-width: 250px;
}

.after_header-inner-titles {
    max-width: 100%;
}

.content-qty__content {
    width: fit-content;
    position: relative;
    font-family: 'Decorated';
    padding: 10px 0;
    margin: 10px 0;
}

.content-qty__content:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    background: #151618;
    top: 0;
}

.content-qty__content {
    width: fit-content;
    position: relative;
    font-family: 'Decorated';
}

.after_header-inner-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.after_header-short-desc {
    max-width: 800px;
}

.portfolio_categories-wrapper {
    position: relative;
    margin: 40px 0 30px;
}

.portfolio_categories-wrapper-inner {
    display: flex;
    align-items: center;
    /* flex-wrap: nowrap;
    overflow-y: scroll; */
    column-gap: 10px;
    row-gap: 10px;
    flex-wrap: wrap;
}

.portfolio_categories-wrapper-item a {
    position: relative;
    display: flex;
    align-items: center;
    color: #9a9a9a;
    transition: all .3s linear;
    -webkit-transition: all .3s linear;
    -moz-transition: all .3s linear;
    -ms-transition: all .3s linear;
    -o-transition: all .3s linear;
    margin-right: 5px;
}

.portfolio_categories-wrapper-item a svg {
    margin-right: 7px;
}

.portfolio_categories-wrapper-item a svg path {
    transition: all .3s linear;
    -webkit-transition: all .3s linear;
    -moz-transition: all .3s linear;
    -ms-transition: all .3s linear;
    -o-transition: all .3s linear;
}

.portfolio_categories-wrapper-item .active {
    color: var(--accent-color);
}

.portfolio_categories-wrapper-item .active svg path {
    stroke: var(--accent-color);
}

.portfolio_categories-wrapper-item a:hover {
    color: var(--accent-color);
}

.portfolio_categories-wrapper-item a:hover svg path {
    stroke: var(--accent-color);
}

#porfolio_container {
    position: relative;
    margin-top: -250px;
}

.load_more_projects-inner-item {
    position: relative;
    display: block;
}

.load_more_projects-inner-item .works {
    overflow: hidden;
    transition: -webkit-clip-path 0.4s ease-out 0s;
    transition: clip-path 0.4s ease-out 0s;
    transition: clip-path 0.4s ease-out 0s, -webkit-clip-path 0.4s ease-out 0s;
    background-color: #333;
    -webkit-clip-path: inset(0% 0% 0% 0% round 10px);
    clip-path: inset(0% 0% 0% 0% round 10px);
    margin-bottom: 30px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.load_more_projects-inner-item:hover .works {
    -webkit-clip-path: inset(4% 4% 4% 4% round 10px);
    clip-path: inset(4% 4% 4% 4% round 10px);
}

.load_more_projects-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin-bottom: 50px;
}

.load_more_projects-item-decor {
    position: relative;
    overflow: hidden;
    width: 8vw;
    min-width: 70px;
}

.load_more_projects-item-decor-item {
    overflow: hidden;
    width: 38px;
    height: 26px;
    position: relative;
    top: -2px;
    left: 0;
    transition: left 0.3s ease-out;
}

.load_more_projects-inner-item:hover .load_more_projects-item-decor-item {
    left: 22px;
    transition: left 0.3s ease-in-out;
}

.load_more_projects-item-decor-item svg {
    width: 100%;
    height: 100%;
    position: absolute;
    right: 100%;
    top: 0;
    transition: right 0.3s ease-out, opacity 0.2s ease;
    opacity: 0;
}

.load_more_projects-item-decor span {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    display: block;
    position: absolute;
    opacity: 1;
    transition: right 0.3s ease, opacity 0.2s ease;
}

.load_more_projects-inner-item:hover .load_more_projects-item-decor span {
    right: 100%;
    transition: right 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.load_more_projects-inner-item:hover .load_more_projects-item-decor svg {
    right: 0;
    opacity: 1;
    transition: right 0.2s ease-out, opacity 0.2s ease;
}

.load_more_projects-item-content {
    width: 100%;
}

.load_more_projects-item-content-desc {
    font-family: 'Decorated';
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    margin-bottom: 10px;
}

.load_more_projects-inner-item:hover .load_more_projects-item-content-desc {
    margin-left: 22px;
}

.load_more_projects-item-content-title {
    margin-bottom: 10px;
}

.load_more_projects-item-content-excerpt {
    font-family: 'Decorated';
    font-size: 16px;
}

@media (max-width: 992px) {

    .latest_projects-item-block {
        flex: 1 100%;
    }

    .load_more_projects-item-decor {
        display: none;
    }

    .latest_projects-item:nth-child(1) .latest_projects-item-content-inner {
        margin-top: 0;
    }

    .latest_projects-item-content-inner {
        padding: 10px 0;
    }

    .latest_projects-item-content-inner-category {
        margin-top: 15px;
    }

}

.preloader_ajax {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    z-index: 1;
}

.preloader_ajax:before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background: url(/wp-content/uploads/2022/03/1488.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 72px;
}

.porfolio_load_more {
    text-align: center;
    margin: 50px 0 100px;
}

#load_projects {
    position: relative;
    display: inline-block;
    width: 320px;
    height: 58px;
    line-height: 56px;
    text-align: center;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
    border: 0;
}

#load_projects svg {
    width: 320px;
    height: 58px;
    position: absolute;
    top: 0;
    left: 0;
}

#load_projects span {
    display: inline-block;
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
}

#load_projects svg rect {
    width: 318px;
    height: 56px;
    stroke-width: 1;
    stroke-dasharray: 353, 0;
    stroke-dashoffset: 0;
    -webkit-transition: all 600ms ease;
    transition: all 600ms ease;
}

#load_projects:hover svg rect {
    stroke-width: 1;
    stroke-dasharray: 210, 500;
    stroke-dashoffset: 340;
}

.not_found_posts {
    text-align: center;
    margin: 50px 0 100px;
    font-size: 1.5rem;
    line-height: 1;
    font-family: 'Decorated';
}

.form_columns {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 50px;
}

.part-title {
    max-width: 400px;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    flex: 40%;
    margin: 0 10px 20px 0;
}

.column_content {
    flex: 60%;
}

.wpcf7-checkbox, .wpcf7-radio {
    display: block;
    margin: 10px 0 20px;
}

input[type=checkbox], input[type=radio] {
    border: none !important;
}

.wpcf7-list-item {
    font-size: 16px;
    margin: 0;
    padding-right: 15px;
    margin-bottom: 15px;
}

.wpcf7-list-item label {
    margin-bottom: 0;
}

.wpcf7-list-item-label {
    background: transparent;
    padding: 10px;
    min-width: 140px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #151615;
}

.wpcf7-list-item label span {
    display: block;
    transition: all .4s linear;
}

.wpcf7-list-item label span:hover {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

input[type="checkbox"]:checked + .wpcf7-list-item-label,
input[type="radio"]:checked + .wpcf7-list-item-label {
    border: 1px solid #000;
    background: #000000;
    color: #ffffff;
}

/*
* FORM STYLES
*/

.term_form-content {
    position: relative;
    padding: 5rem 0;
}

.term_form-content .section-title h2 {
    font-size: 3rem;
}

@media(max-width: 479px) {
    .term_form-content .section-title h2 {
        font-size: 2rem;
    }
}

.section-title {
    margin-bottom: 30px !important;
}