/* Articles Header */

.article-header {
    height: 100px;
    display: flex;
    align-items: center;
    background: var(--mainColour);
}

.article-header>div {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.article-header .article-search_title {
    display: flex;
    align-items: center;
}

.article-header .article-search_title h1 {
    font-size: 2rem;
    line-height: 1;
    margin: 0;
    font-weight: 800;
    text-transform: capitalize;
    color: #fff;
}


/*Article Search Form*/

.search_form_container {
    max-width: 280px;
    flex-shrink: 0;
}

.article-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    border: 0;
    overflow: hidden;
    border: none;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
}

.article-search-form input[type=text] {
    width: calc(100% - 60px);
    padding: 0 20px;
    box-sizing: border-box;
    background: none;
    height: 100%;
    border: 0;
    outline: 0;
    color: #212121;
    font-size: .875rem;
    background: #fff;
}

.article-search-form input[type=text]::placeholder {
    color: #212121;
    font-size: inherit;
    font-family: inherit;
    opacity: 1;
}

.article-search-form input[type=submit] {
    width: 60px;
    flex-shrink: 0;
    height: 100%;
    background: url(../images/articles/icon-search.svg) no-repeat center;
    cursor: pointer;
    border: 0;
    outline: 0;
    padding: 0;
    position: relative;
    background-color: #fff;
}


/*Article Category*/

.category_wrap {
    padding: 20px 0;
    background: #fff;
}

.category_wrap>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.category_wrap .category_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.category_wrap a {
    padding: 0 28px;
    height: 60px;
    background: var(--secondaryColour);
    color: #fff;
    font-size: .875rem;
    transition: ease-in-out all .3s;
    text-transform: capitalize;
    border-radius: 30px;
    text-decoration: none;
    opacity: .5;
    display: flex;
    align-items: center;
}

.category_wrap a.active,
.category_wrap a:hover {
    opacity: 1;
}


/*Article Search*/

.article-search-results {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}


/*Search Pager*/

.search-pager {
    margin: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
}

.search-pager>div {
    width: 100%;
    display: flex;
    height: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
}

.search-pager>div>a {
    width: 35px;
    height: 35px;
    color: #1D1F20;
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    text-decoration: underline;
}

.search-pager>div>a.pager-prev {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 100%;
}

.search-pager>div>a.pager-prev::after {
    content: "";
    height: 18px;
    width: 18px;
    position: absolute;
    left: 20px;
    top: calc(50% - 9px);
    border: solid #7D807A80;
    border-width: 0 0 3px 3px;
    transform: rotate(45deg);
    transition: ease-in-out all .3s;
}

.search-pager>div>a.pager-next {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
}

.search-pager>div>a.pager-next::after {
    content: "";
    height: 18px;
    width: 18px;
    position: absolute;
    right: 20px;
    top: calc(50% - 9px);
    border: solid #7D807A80;
    border-width: 3px 3px 0 0;
    transform: rotate(45deg);
    transition: ease-in-out all .3s;
}

.search-pager>div>a.active {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #292929;
    border-radius: 20px;
    background: #404042;
}

.search-pager>div>a.pager-prev:hover::after {
    border-color: #7D807A;
}

.search-pager>div>a.pager-next:hover::after {
    border-color: #7D807A;
}


/* Article Block */

.article {
    width: calc((100% - 40px) / 3);
}

.article>div {
    display: flex;
    position: relative;
    flex-direction: column;
    margin: 0 0px 40px;
    overflow: hidden;
}

.article .art-image {
    width: 100%;
    aspect-ratio: 3/2;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.article .art-image>a {
    height: 100%;
    width: 100%;
    background-position: center;
    background-color: #ededed;
    background-size: cover;
    background-repeat: no-repeat;
    transition: ease-in-out all .3s;
}

.article .art-category:not(:empty) {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article .art-category a {
    text-decoration: underline;
    color: #1E2926 !important;
}

.article .art-category a:not(:first-child) {
    border-left: 1px solid #707070;
    padding-left: 10px;
}

.article .art-info {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    position: relative;
    background: var(--background);
}

.article .art-info .art-meta {
    color: #1E2926;
    font-size: .875rem;
    display: flex;
    align-items: center;
    height: 14px;
    gap: 10px;
}

.article .art-title {
    line-height: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 78px;
    overflow: hidden;
    font-size: 1.125rem;
    font-weight: 500;
}

.article .art-date {
    font-size: .75rem;
    line-height: 26px;
}

.article .art-summary {
    color: #1E2926;
    font-size: .875rem;
    line-height: 20px;
    overflow: hidden;
    height: 60px;
}

.article .art-title a {
    color: #1D1F20;
    text-decoration: none;
    transition: ease-in-out all .3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article .art-footer {
    display: flex;
    align-items: center;
}

.article .art-footer a {
    font-size: 1rem;
    color: #1E2926;
    display: flex;
    align-items: center;
    text-decoration: underline;
    font-weight: 400;
}

.article>div:hover .art-image>a {
    transform: scale(1.05);
}


/* Article Details */

.article-image:not(:empty) {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    max-width: 100%;
}

.article-image img {
    max-width: 100%;
}

.AB-editing .article-image[data-editable=true] {
    width: 100%;
    min-height: 400px;
}

.article-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    width: 100%;
}

.article-title {
    font-size: 2rem;
    line-height: 42px;
    font-weight: 800;
    color: #1D1F20;
    margin-bottom: 0;
    padding: 0;
}

.article-description {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 26px;
    color: #404042;
    min-height: 30px;
}

.article-description :is(p, li) {
    font-size: 1rem;
    color: #343434;
    line-height: 30px;
    font-weight: 300;
}

.article-back,
.article-back:hover {
    color: #343434;
    font-weight: 400;
    line-height: 28px;
    text-decoration: underline;
}

.article-details {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
}

.article-left {
    flex: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    max-width: 100%;
}

.article-right {
    width: 450px;
    flex: 0 0 auto;
    position: relative;
}

.article-sidebar-background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: -1;
    width: 10000px;
    background: #F9F9F9;
}

.article-category {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    border-right: 1px solid #707070;
    padding-right: 10px;
}

.article-category a {
    text-decoration: underline;
    color: #1E2926 !important;
}

.article-info .article-meta {
    color: #1E2926;
    font-size: .875rem;
    display: flex;
    align-items: center;
    height: 14px;
    gap: 10px;
}


/*Article Sidebar*/

.article-sidebar {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-sidebar-header {
    font-size: 1.5rem;
    font-weight: 500;
}

.article-sidebar .as-article {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid #E2E2E2;
    padding-bottom: 10px;
}

.as-image {
    aspect-ratio: 3/2;
    width: 100px;
    flex: 0 0 auto;
    border-radius: 4px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.article-sidebar .as-content {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
}

.as-title {
    font-size: .875rem;
    line-height: 22px;
    color: #404042;
    transition: ease-in-out all .3s;
    overflow: hidden;
    font-weight: 500;
    text-decoration: none;
}

.as-footer {
    display: flex;
    align-items: center;
}

.as-read {
    font-size: .875rem;
    color: #1D1F20;
    line-height: 22px;
    position: relative;
    text-decoration: underline;
}

.all-articles-link>a {
    background: #fff;
    color: var(--secondaryColour);
    padding: 0px 28px;
    border-radius: 30px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: .875rem;
    border: 1px solid var(--secondaryColour);
    margin: 20px 0;
    width: auto;
}


/*Article Footer*/

.article-footer_container {
    width: 100%;
    padding: 30px 0;
    background: var(--background);
}

.article-footer>div {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.article-footer-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1A1A1A;
    font-size: 2.25rem;
}

.article-footer-title a {
    background: #fff;
    color: var(--secondaryColour);
    padding: 0px 28px;
    border-radius: 30px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: .875rem;
    border: 1px solid var(--secondaryColour);
    margin: 20px 0;
    width: auto;
}

.article-footer header span {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
}

.article-footer .associated-articles_container {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
}

.article-footer .associated-articles {
    width: 100%;
}

.article-footer .associated-articles .article>div {
    margin: 0;
}

.associated-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    height: 40px;
}

.associated-pagination .associated-bullet {
    height: 10px;
    width: 10px;
    border-radius: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: ease-in-out all .3s;
    background: rgba(30, 41, 38, .1);
}

.associated-pagination .associated-bullet.active {
    height: 20px;
    width: 20px;
    background: var(--mainColour);
}

.associated-pagination.swiper-pagination-lock {
    display: none;
}

.article-footer footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-footer footer a {
    line-height: 40px;
    color: var(--secondaryColour);
    background: #fff;
    border-radius: 14px;
    padding: 0 30px;
    font-size: .75rem;
    font-weight: 500;
    transition: ease-in-out all .3s;
    border: 1px solid var(--secondaryColour);
    margin-right: auto;
}

.article-footer footer a:hover {
    background-color: transparent;
    color: #869077;
}


/* Article List Module*/

.article-list-module {
    position: relative;
    padding: 100px 0;
}

.article-list-module>div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.article-list-module>div>div {
    width: 100%;
}

.article-list-module .al_header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.al_header .al_heading {
    margin: 0;
    font-size: 2rem;
    color: #1A1A1A;
    line-height: 40px;
    font-weight: bold;
}

.al_header .al_subheading {
    font-size: 1.25rem;
    line-height: 28px;
    font-weight: 300;
    color: #1A1A1A;
    margin: 0;
}

.al_button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.al_button a {
    line-height: 56px;
    color: #fff;
    background: #869077;
    border-radius: 27px;
    padding: 0 30px;
    font-weight: 500;
    font-size: 1.063rem;
    transition: ease-in-out all .3s;
}

.al_button a:hover {
    background: #A1B965;
    border-color: #A1B965;
}


/*Article List View*/

.article-list-module.list {
    padding: 30px 0;
    background: #fff;
}

.article-list-module.list .article-slider .swiper-wrapper {
    display: flex;
    margin: 0;
}

.article-list-module.list .article {
    width: 33.333333333%;
}

.article-list-module.list .article>div {
    margin: 0 0 40px 15px;
}

.article-list-module.list :is(.art_pagination) {
    display: none;
}


/*Article Carousel View*/

.article-list-module.carousel .article>div {
    margin: 0;
}


/*Article Carousel Pagination*/

.art_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 40px;
}

.art_pagination .art_bullet {
    height: 10px;
    width: 10px;
    border-radius: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: ease-in-out all .3s;
    background: #fff;
}

.art_pagination .art_bullet.active {
    height: 20px;
    width: 20px;
    background-color: #A1B965;
}

.art_pagination.swiper-pagination-lock {
    display: none;
}

.arts_nav_prev {
    height: 60px;
    width: 40px;
    position: absolute;
    left: -40px;
    top: calc(50% - 30px);
    z-index: 20;
}

.arts_nav_prev::after {
    content: "";
    height: 22px;
    width: 22px;
    border: solid #000;
    border-width: 0 0 5px 5px;
    transform: rotate(45deg);
    position: absolute;
    right: 4px;
    top: 20px;
    transition: ease-in-out all .3s;
}

.arts_nav_next {
    height: 60px;
    width: 40px;
    position: absolute;
    right: -40px;
    top: calc(50% - 30px);
    z-index: 20;
}

.arts_nav_next::after {
    content: "";
    height: 22px;
    width: 22px;
    border: solid #000;
    border-width: 5px 5px 0 0;
    transform: rotate(45deg);
    position: absolute;
    left: 4px;
    top: 20px;
    transition: ease-in-out all .3s;
}

.arts_nav_disabled::after {
    border-color: #959494;
}

.category_container {
    width: 100%;
}

.category_container select {
    width: 100%;
}


/************Responsive states**************/

@media (min-width: 1200px) and (max-width:1400px) {
    /*Article Block*/
    .article .art-image {
        height: 290px;
    }
    .article-list-module .container {
        padding-left: 0;
        padding-right: 0;
    }
}


/* Desktop */

@media (min-width:992px) and (max-width:1199px) {
    /*Search Page*/
    .search_form_container {
        width: 280px;
    }
    .category_wrap .category_container {
        gap: 15px;
    }
    /*Article block*/
    .article>div {
        margin: 0 5px 30px 5px;
    }
    .article .art-image {
        height: 250px;
    }
    .article .art-title a {
        font-size: 1.5rem;
    }
    /*Details Page*/
    .article-details>div>.article-left {
        width: calc(100% - 400px);
    }
    .article-details>div>.article-right {
        width: 400px;
    }
    .article-image .article-title {
        font-size: 2rem;
    }
    /*Article List Module*/
    .article-list-module.list .article>div {
        margin: 0 5px 30px 5px;
    }
}


/*Mobile & Tablet*/

@media (max-width:991px) {
    /*Article Block*/
    .article .art-footer {
        margin: 0;
    }
    /*Article Details*/
    .article-details>.article-left {
        flex: initial;
        width: 100%;
    }
    .article-details>.article-right {
        width: 100%;
        padding: 0 10px;
        margin-top: 40px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
    .article-details {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .article-sidebar-background {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    .article-image img {
        max-width: 100%;
    }
}


/*Tablet*/

@media (min-width:768px) and (max-width:991px) {
    /*Search Page*/
    .search_form_container {
        width: 270px;
    }
    /*Article Block*/
    .article {
        width: calc(50% - 10px);
    }
    .article>div {
        margin: 0 3px 40px 3px;
    }
    .article .art-image {
        height: 244px;
    }
    .article .art-title a {
        font-size: 1.125rem;
    }
    /*Details Page*/
    .as-image {
        width: 100px;
        height: 66px;
    }
    .as-title {
        height: initial;
        display: flex;
    }
    .article-sidebar>header {
        align-items: flex-start;
    }
    /*Article Sidebar*/
    .article-sidebar {
        width: 100%;
        padding: 30px 0;
    }
    .as-offer {
        height: 480px;
        width: 735px;
        background-image: url(../images/blog-cta-md.jpg);
    }
    /*Article List Module*/
    .article-list-module.list .article {
        width: 50%;
    }
    .article-list-module.list .article>div {
        margin: 0 7px 20px 7px;
    }
}


/*Mobile*/

@media (max-width:767px) {
    /*Search Page*/
    .articles .col-12 {
        padding: 0 10px;
    }
    .article-header {
        height: initial;
        min-height: 220px;
        padding: 40px 0;
        background-image: url(../images/article-banner_sm.jpg);
        background-size: cover;
    }
    .article-header>div {
        flex-direction: column;
        gap: 40px;
    }
    .article-header .article-search_title h1 {
        font-size: 2rem;
        text-align: center;
    }
    .search_form_container {
        width: 100%;
    }
    .article-search-results {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .category_wrap .category_container {
        gap: 8px;
    }
    .category_wrap a {
        font-size: .75rem;
    }
    /*Cta blocks*/
    .block_layout_module_cta {
        padding: 0;
    }
    /*Image button blocks*/
    .image_block_module .IB_items .IB_item {
        max-width: unset;
    }
    /*Articles Pager*/
    .search-pager>div>a {
        width: 20px;
        font-size: 1.063rem;
    }
    /*Article Block*/
    .article {
        width: 300px;
    }
    .article>div {
        margin: 0 0 40px 0;
    }
    .article .art-image {
        height: 195px;
    }
    .article .art-title {
        height: 56px;
    }
    .article .art-title a {
        font-size: 1.125rem;
        line-height: 28px;
    }
    .article .art-date span {
        font-size: .875rem;
    }
    .article .art-footer a {
        font-size: 1rem;
        line-height: 50px;
    }
    .article .art-category a {
        font-size: .75rem;
    }
    /*Article Details*/
    .article-title {
        font-size: 2rem;
        line-height: 40px;
    }
    .article-description :is(p, li) {
        font-size: .875rem;
        line-height: 28px;
    }
    /*Sidebar*/
    .article-sidebar {
        width: 100%;
        padding: 30px 0;
    }
    .article-sidebar>header>h2 {
        text-align: center;
    }
    .as-offer {
        height: 236px;
        width: 290px;
        background-image: url(../images/blog-cta-sm.jpg);
    }
    .as-offer>div {
        gap: 10px;
    }
    .as-offer h4 {
        font-size: 1.125rem;
        line-height: 24px;
    }
    .as-offer a {
        font-size: .75rem;
    }
    .article-sidebar .as-article {
        flex-direction: column;
    }
    .as-title {
        height: initial;
        display: flex;
    }
    /*Related Articles*/
    .article-footer {
        padding: 80px 0 60px;
    }
    .article-footer header {
        flex-direction: column;
    }
    .article-footer header h2 {
        font-size: 2rem;
    }
    .article-footer .associated-articles {
        width: 290px;
    }
    /*Article List*/
    .article-list-module {
        padding: 60px 0;
    }
    .article-list-module.list {
        padding: 30px 0;
    }
    .al_header {
        flex-direction: column;
    }
    .al_heading_container {
        justify-content: center;
    }
    .article-list-module>div>div.article-slider {
        width: 290px;
    }
    .article-list-module.list .article {
        width: 100%;
    }
    .al_header .al_heading {
        font-size: 1.375rem;
        line-height: 28px;
    }
    .al_header .al_subheading {
        font-size: 1.125rem;
        line-height: 22px;
    }
    .article-list-module.list .article>div {
        margin: 0 0 30px 0;
    }
    .article-left,
    .article-right {
        width: 100%;
        flex: 0 0 auto;
    }
    .category_container {
        width: 100%;
    }
    .category_container select {
        width: 100%;
    }
}