.page-template-blog {
    background: url(../img/blog-bg.svg) no-repeat scroll left top / 100% auto;
}

.articles-head {
    padding: 110px 0 0;
    text-align: center;
}

.articles-head h1 {
    color: #123F53;
    font-family: var(--graphik-trial);
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px;
}

.articles-head p {
    color: #123F53;
    font-size: 22px;
}

.hero.blog-hero {
    overflow: visible;
}

.hero.blog-hero .container {
    width: 100%;
}

.articles {
    padding: 70px 0 70px;
}

.article {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.articles>h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark1);
    margin-bottom: 10px;
    text-align: center;
}

.articles>h1 span {
    color: var(--lblue);
}

.articles h2.term-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 0;
}

.term-description {
    margin-bottom: 20px;
}

.articles h2.term-title span {
    border-radius: 4px;
    background: var(--blue-10, #E8F4FB);
    padding: 6px 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    color: var(--black-100, #123F53);
    margin-left: 10px;
}

.articlesGrid {
    display: -ms-grid;
    display: grid;
    gap: 44px 20px;
    padding-bottom: 50px;
}

.article img {
    height: 170px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    width: 100%;
    border-radius: 12px;
    -webkit-transition: 1s -webkit-transform;
    transition: 1s -webkit-transform;
    transition: 1s transform;
    transition: 1s transform, 1s -webkit-transform;
}

.article a:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.articles .articlesGrid .article h2 a,
.articles .articlesGrid .article h3 a {
    color: #123f53;
    -webkit-transition: .3s;
    transition: .3s;
}

.articles .articlesGrid .article h2 a:hover,
.articles .articlesGrid .article h3 a:hover {
    color: var(--blue1);
}

.article .date {
    font-size: 18px;
    color: #000000;
}

.articlesGrid .article .tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 16px;
    font-weight: 600;
    color: var(--lblue);
    margin-bottom: 5px;
}

.articlesGrid .article .tags a {
    white-space: nowrap;
    background: #E8F4FB;
    padding: 2px 0;
    color: var(--dark1);
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;
    -webkit-transition: .3s;
    transition: .3s;
    margin: 0 8px 8px 0;
}

.articlesGrid .article .tags a:hover {
    background: var(--blue1);
    color: var(--white)
}

.articlesGrid .article .tags a:hover span {
    color: var(--white);
}

.article a.readMore {
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    color: var(--lblue);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    padding-right: 20px;
}

.article .readMore:after {
    content: "";
    display: block;
    width: 10px;
    height: 13px;
    background-image: url(../../assets/img/arrowRight.png);
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-transition: all ease-in-out 0.3s;
    transition: all ease-in-out 0.3s;
}

/*categories*/

.categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 1300px;
    position: relative;
    margin: 40px auto 10px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.categories ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 1300px;
    position: relative;
    margin: 0 0 0 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 25px;
}

.categories ul li {
    background: url(/wp-content/themes/abovebits/assets/img/tabs-li-bg.svg) no-repeat scroll 0 0 / 100% 100%;
    border: 0;
    border-radius: 0;
    min-width: 134px;
    min-height: 49px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    list-style-type: none;
    margin: 0 15px 0 0;
    padding: 11px 16px 10px;
    font-size: 14px;
    -webkit-transition: .4s ease-in-out;
    transition: .4s ease-in-out;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.categories ul li a,
.categories ul li a:visited {
    color: var(--dark1);
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
}

.categories ul li:hover {
    background-image: url(/wp-content/themes/abovebits/assets/img/tabs-li-hover-bg.svg);
}

.categories ul li:before {
    content: unset;
}

.articles-categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.articles-label {
    color: #123F53;
    font-size: 16px;
    font-weight: 600;
    margin: 3px 20px 0 0;
    min-width: 90px;
}

.articles-categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.articles-categories ul li:before {
    display: none;
}

.articles-categories ul li {
    margin: 0 8px 8px 0;
    padding: 0;
}

.articles-categories ul li input {
    display: none;
}

.articles-categories ul li label {
    border-radius: 4px;
    padding: 6px 8px;
    color: #123F53;
    font-weight: 500;
    font-size: 12px;
    margin: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid #bebebe;
    box-shadow: 0 4px 20px rgba(238, 238, 238, 0.502);
}

.articles-categories ul li input:checked~label,
.articles-categories ul li label:hover {
    background: #123F53;
    color: #fff;
    border-color: #123F53;
}

.tag-list {
    margin: 0 0 35px;
}

.blog-list {
    position: relative;
    min-height: 100px;
}

#filtered-posts-container .pagination {
    margin-top: 44px;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background: #ffffffe0;
    text-align: center;
    padding: 50px;
}

.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-roller div {
    -webkit-animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    -webkit-transform-origin: 40px 40px;
    transform-origin: 40px 40px;
}

.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #000;
    margin: -4px 0 0 -4px;
}

.lds-roller div:nth-child(1) {
    -webkit-animation-delay: -0.036s;
    animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
    top: 63px;
    left: 63px;
}

.lds-roller div:nth-child(2) {
    -webkit-animation-delay: -0.072s;
    animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
    top: 68px;
    left: 56px;
}

.lds-roller div:nth-child(3) {
    -webkit-animation-delay: -0.108s;
    animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
    top: 71px;
    left: 48px;
}

.lds-roller div:nth-child(4) {
    -webkit-animation-delay: -0.144s;
    animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}

.lds-roller div:nth-child(5) {
    -webkit-animation-delay: -0.18s;
    animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
    top: 71px;
    left: 32px;
}

.lds-roller div:nth-child(6) {
    -webkit-animation-delay: -0.216s;
    animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
    top: 68px;
    left: 24px;
}

.lds-roller div:nth-child(7) {
    -webkit-animation-delay: -0.252s;
    animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
    top: 63px;
    left: 17px;
}

.lds-roller div:nth-child(8) {
    -webkit-animation-delay: -0.288s;
    animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12px;
}

.filter-wrapper {
    position: relative;
    border-bottom: 1px solid #EAECF0;
    padding-top: 44px;
}

.mobile-filter {
    border-radius: 4px;
    border: 1px solid var(--gray-50, #D0D9DD);
    background: var(--white-100, #FFF);
    width: 100%;
    height: 48px;
    padding: 15px 16px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -ms-grid-row-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    display: none;
}

.mobile-filter img {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.article .title {
    font-size: 18px;
    margin: 0 0 10px;
    font-family: var(--graphik-trial);
    font-weight: 500;
    min-height: 72px;
}

.article .title a {
    transition: 0.2s ease;
    color: #123f53;
}

.article .title a:hover {
    color: var(--blue1);
}

.article .text {
    min-height: 100px;
}

.archive.tag .article a.readMore,
.archive.category .article a.readMore {
    display: none;
}

.load-more-wrapper {
    margin-top: 170px;
}

.load-more-wrapper .btn {
    margin: auto;
    border-radius: 24px;
}

.articlesGrid .article .img {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 16px 43px rgba(0, 0, 0, .1);
    margin: 0 0 18px;
}

.article .title a:hover {
    color: var(--primary);
}

.article .btn {
    border-radius: 24px;
    padding: 8px 25px;
}

.article-text {
    padding: 0 14px 28px;
}

.blog-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 8px;
    margin: 0 0 10px;
}

.blog-meta ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}

.blog-meta ul li a {
    color: #123F53;
    text-transform: uppercase;
    font-weight: 700;
}

.blog-meta-date {
    color: #666666;
    font-weight: 500;
}

.article-text p {
    color: #666666;
    font-size: 16px;
}

.article-text .read-more {
    color: #168BFF;
    font-weight: 500;
    font-size: 16px;
    font-family: var(--graphik-trial);
}

.article-text .read-more:hover {
    color: #123F53;
}

@-webkit-keyframes lds-roller {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes lds-roller {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

body.archive.tag .term-description p {
    font-size: 14px;
    line-height: 1.8em;
}

.blog-taxonomy {
    display: flex;
    margin-bottom: 30px;
}

.blog-taxonomy-label {
    min-width: 120px;
    font-weight: 600;
}

.blog-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-taxonomy-item {
    border-radius: 4px;
    background: #E8F4FB;
    padding: 6px 8px;
    color: #123F53;
    font-weight: 500;
    font-size: 12px;
    margin: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.blog-taxonomy-item:hover {
    color: #fff;
    background: #123F53;
}

.blog-area {
    padding: 0 0 80px;
}

@media (min-width: 576px) {
    .article img {
        border-radius: 0;
    }

    .article .title {
        font-size: 16px;
    }

    .articles>h2 {
        margin-bottom: 25px;
    }
}

@media (min-width: 768px) {
    .articles {
        padding: 70px 0 90px;
    }

    .articlesGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles>h1 {
        font-size: 30px;
    }

    .article .title {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .articlesGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .articles-categories {
        display: block;
    }

    .articles-categories h2 {
        margin: 0 0 15px;
    }

    .articles-categories ul {
        gap: 0;
    }

    .articles-categories ul li {
        margin-right: 10px;
        margin-bottom: 10px;
    }

    #category-filter-form {
        border-radius: 4px;
        background: var(--white-100, #FFF);
        box-shadow: 0px 5px 20px 0px rgba(18, 63, 83, 0.13);
        padding: 10px;
        position: absolute;
        left: 0;
        width: 100%;
        -webkit-transition: 0.3s;
        transition: 0.3s;
        top: 200px;
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
        visibility: hidden;
        z-index: -1;
    }

    .open-filter #category-filter-form {
        z-index: 9;
        opacity: 1;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
        visibility: visible;
        top: 100px;
    }

    .open-filter .mobile-filter img {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }

    .tag-list {
        margin: 0;
    }

    .mobile-filter {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        margin-bottom: 30px;
    }

    body:not(.wp-admin) .hero.blog-hero:before,
    body:not(.wp-admin) .hero.blog-hero:after {
        background-size: 100%;
        width: 200px;
    }

    .articlesGrid {
        grid-template-columns: repeat(1, 1fr);
    }

    .load-more-wrapper {
        margin-top: 80px;
    }
}

@media (min-width: 1024px) {
    .articles {
        padding-top: 100px;
    }

    .container .articles>h1,
    .page-template-blog .articles>h2 {
        font-size: 38px;
        margin: 0 0 35px;
        padding: 0;
        font-family: var(--panton);
    }

    .article img {
        height: 230px;
    }

    .article .title {
        font-size: 24px;
    }

    .articles>h1 {
        padding-bottom: 30px;
    }

    .post-info {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

}

@media (min-width: 1280px) {
    .articles {
        padding-top: 110px;
        padding-bottom: 44px;
    }

    .article img {
        height: 279px;
    }
}

@media (min-width: 1600px) {
    .article img {
        height: 350px;
    }
}