/*
* Copyright 2012 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*/


/* homepage grid */

.rich-blog-homepage {
    position: relative;
    margin: 0 0 30px;
}

.two-colums-wrapper .blog-post+.blog-post {
    display: none;
}

.rich-blog-homepage .title {
    margin: 25px 0 0px;
    padding: 12px 0 13px;
    text-transform: uppercase;
    text-align: center;
    font-size: 24px;
    color: #444;
}

.rich-blog-homepage .title strong {
    font-weight: bold;
}

.rich-blog-homepage .post-primary {
    margin: 0 auto;
    /* max-width: 620px; */
    text-align: center;
    position: relative;
}

.rich-blog-homepage .post-picture {
    position: relative;
    display: block;
    overflow: hidden;
    font-size: 0;
    z-index: 0;
    border-radius: 10px;
}

.rich-blog-homepage .post-picture:before {
    content: "";
    display: block;
    padding-top: 45%;
}

.rich-blog-homepage .post-picture img {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: auto;
    width: 100%;
    max-width: 100%;
}

.rich-blog-homepage .post-title {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    position: absolute;
    margin: 0;
    padding: 4px 12px;
    background: rgb(10, 36, 57, .66);
    z-index: 1;
    color: #fff;
    width: 100%;
    bottom: 0;
    border-radius: 0 0 10px 10px;
    height: 60px;
    overflow: hidden;
    text-align: left;
}

.rich-blog-homepage .post-title:only-child {
    margin-top: 20px;
}

.rich-blog-homepage .post-details {
    margin: 0 auto;
    max-width: 90%;
    text-align: center;
}

.rich-blog-homepage .post-date {
    float: left;
    display: none;
    margin: 0;
    padding: 5px 0;
    color: #ccc;
}

.rich-blog-homepage .post-description {
    margin: 0 0 20px;
    line-height: 20px;
    font-size: 14px;
    color: #888;
}

.blog-search-box form {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.rich-blog-homepage .view-all {
    position: absolute;
    bottom: -60;
    left: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #57b568;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
}

.rich-blog-homepage .view-all {
    background-color: #717ffd;
    padding: 12px 15px;
    border-radius: 40px;
    margin-top: 8px;
    border: 2px solid #717ffd;
    transition: all ease-in-out .2s;
}

.rich-blog-homepage .view-all:hover {
    border: 2px solid #717FFD;
    background-color: #717ffd4a;
}

.rich-blog-homepage .view-all a {
    color: #fff;
}

.rich-blog-homepage .view-all:hover a {
    color: #717FFD;
}

.rich-blog-homepage .view-all:before {
    content: '\e908';
    display: inline-block;
    margin-right: 5px;
    font-family: prisma;
    font-size: 12px;
    color: #ccc;
    display: none;
}


/* search form */

.blog-search-box .listbox {
    padding: 15px 10px;
}

.blog-search-box {
    font-size: 0;
}

.blog-search-box form:after {
    content: "";
    display: block;
    clear: both;
}

.blog-search-box span.search-box-text {
    float: left;
    width: 100%;
}

.blog-search-box .search-box-button::before {
    content: url(/Themes/Prisma/Content/img/search-p.svg);
    width: 25px;
    height: 25px;
    position: absolute;
    right: 10px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    vertical-align: middle;
}

.tabs-blog {
    display: none;
}

.drop {
    display: none;
}

.block.category-in-tabs ul.list {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.block.category-in-tabs .listbox>ul>li {
    position: relative;
    display: inline-block;
    width: auto;
    margin: 0 5px;
    text-align: center;
    vertical-align: middle;
}

.blog-search-box input.search-box-text {
    float: left;
    border-right: 0;
    height: 45px;
    border-radius: 30px 0 0 30px;
}

.blog-search-box .instant-search-busy {
    background: #fff url('images/ajax-loader-small.gif') right center no-repeat !important;
}

.blog-search-box .search-box-button {
    float: left;
    border: 1px solid #eee;
    border-left: 0;
    width: 45px;
    height: 45px;
    background: #fff;
    font-size: 0;
    border-radius: 0 30px 30px 0;
}

.blog-instant-search {
    border: 1px solid #eee;
    border-top: 0;
    height: auto !important;
    width: 100% !important;
    background-color: #fff;
    font-size: 13px;
    color: #888;
    box-shadow: 0 6px 10px rgba(0, 0, 0, .1);
}

.blog-instant-search .k-list-container {
    position: static !important;
    width: 100% !important;
    height: auto !important;
}

.blog-instant-search .k-item {
    padding: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #57b568;
    cursor: pointer;
}

.blog-instant-search .k-item.rich-blog-autocomplete-last-item {
    border-top: 1px solid #eee;
    background: #f6f6f6;
    color: #444;
}

.blog-instant-search .k-item:first-child {
    border: 0;
}

.blog-instant-search .k-item.k-state-hover,
.blog-instant-search .k-item.k-state-focused {
    background-color: #f6f6f6;
}

.blog-search-results-page .no-results {
    font-size: 13px;
    color: #888;
}


/* blog list & blog post */

.blog-page .blog-posts .post {
    display: flex;
    flex-direction: row-reverse;
    background-color: #fff;
    margin: 5px;
    border-radius: 25px;
    box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.2);
}

.blog-page .post>div {
    width: 50%;
}

.blog-page .blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, .1fr);
    gap: 10px 10px;
    padding: 0 30px;
    grid-template-areas: "p1 p3 p4" "p2 p3 p5" "p6 p8 p9" "p7 p8 p10";
}

.blog-page .blog-posts .post:nth-child(1) {
    grid-area: p1;
}

.blog-page .blog-posts .post:nth-child(2) {
    grid-area: p2;
}

.blog-page .blog-posts .post:nth-child(3) {
    grid-area: p3;
    flex-direction: column;
}

.blog-page .blog-posts .post:nth-child(4) {
    grid-area: p4;
}

.blog-page .blog-posts .post:nth-child(5) {
    grid-area: p5;
}

.blog-page .blog-posts .post:nth-child(6) {
    grid-area: p6;
}

.blog-page .blog-posts .post:nth-child(7) {
    grid-area: p7;
}

.blog-page .blog-posts .post:nth-child(8) {
    grid-area: p8;
    flex-direction: column;
}

.blog-page .blog-posts .post:nth-child(9) {
    grid-area: p9;
}

.blog-page .blog-posts .post:nth-child(10) {
    grid-area: p10;
}

.blog-page .blog-posts .post>div {
    width: 50%;
    margin-bottom: 0;
}

.blog-page .blog-posts .post:nth-child(3)>div,
.blog-page .blog-posts .post:nth-child(8)>div {
    width: 100%;
}

.blog-page .blog-posts .post:nth-child(3) .post-title,
.blog-page .blog-posts .post:nth-child(8) .post-title {
    margin-top: 20px;
}

.blog-page .post-head {
    padding: 0;
    border: 0;
}

.blog-page .post-title {
    margin-bottom: 5px;
}

.blog-page .post-date {
    margin: 0 0 10px;
}

.rich-blog-image {
    margin-bottom: 20px;
    background: #fff;
    font-size: 0;
}

.rich-blog-image a {
    display: block;
    font-size: 0;
}

.blog-page .blog-posts .post:nth-child(3) .rich-blog-image img,
.blog-page .blog-posts .post:nth-child(8) .rich-blog-image img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    max-width: 100%;
    object-fit: fill;
}

.blog-page .blog-posts .post .rich-blog-image img {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    max-width: 100%;
    object-fit: cover;
}

.blogpost-page .rich-blog-image img {
    display: block;
    height: auto;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.blogpost-page .post-wrapper {
    width: 95%;
    margin: 0 auto 30px;
    background-color: #fff;
    box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
}

.page.blogpost-page .page-body {
    background-color: #f6f9fe;
}

.blogpost-page .rich-blog-image {
    margin-bottom: 0;
    padding: 20px 20px 0;
    border-radius: 30px 30px 0 0;
}

.blog-page .tags *,
.blogpost-page .tags * {
    line-height: normal !important;
    /*remove if not needed for current theme*/
}

.blog-page .buttons {
    margin: 15px 0;
}

.blog-page .buttons .read-more {
    display: inline;
    /*this is the first "details" button, currently shown*/
}

.blog-page .post-actions .read-more {
    display: none;
    /*this is the second "details" button, currently hidden*/
}

.post-footer {
    padding: 20px 0;
    clear: both;
    background: #f6f6f6;
}

.post-footer:after,
.post-relations:after,
.post-actions:after {
    content: "";
    display: block;
    clear: both;
}

.blog-details .tags {
    overflow: visible;
    line-height: 1.4;
}

.blog-posts .post-relations {
    line-height: 1.4;
}

.blogpost-page .post-relations {
    padding: 20px 0;
}

.post-relations ul {
    display: inline-block;
    font-size: 0;
}

.post-relations li {
    display: inline-block;
}

.post-relations li.separator {
    margin: 0 5px 0 0;
}

.post-relations li a {
    display: block;
}

.share-post {
    font-size: 0;
}

.share-post li {
    display: inline-block;
    margin-right: 2px;
}

.share-post a {
    display: block;
    width: 34px;
    height: 34px;
    background-image: url('images/share-sprite.png');
    background-repeat: no-repeat;
}

.share-post .facebook a {
    background-position: 0 0;
}

.share-post .twitter a {
    background-position: -34px 0;
}

.share-post .pinterest a {
    background-position: -102px 0
}

.share-post .linkedin a {
    background-position: -69px 0;
}

.share-post .google a {
    background-position: -137px 0;
}

.share-post a:hover {
    opacity: 0.9;
}

.post-navigation {
    display: none;
    overflow: hidden;
    margin: 0 auto 15px;
    max-width: 92px;
    text-align: center;
}

.post-navigation a {
    position: relative;
    width: 41px;
    height: 41px;
    overflow: hidden;
    background: #f6f6f6;
    font-size: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.post-navigation a:before,
.post-navigation a:after {
    display: inline-block;
    line-height: 41px;
    font-family: prisma;
    font-size: 13px;
    color: #bcbcbc;
}

.post-navigation a:empty {
    opacity: 0.5;
}

.post-navigation .prev {
    float: left;
}

.post-navigation a.prev:before {
    content: '\e924';
}

.post-navigation .next {
    float: right;
}

.post-navigation a.next:after {
    content: '\e925';
}


/* search results */

.blog-search-results .page-title {
    text-align: left;
}

.blog-search-results li {
    padding: 20px;
    background: #f6f6f6;
}

.blog-search-results li a {
    display: block;
    position: relative;
    margin-bottom: 20px;
    padding: 5px 0 20px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    color: #444;
}

.search-term-highlighter {
    color: #57b568;
}

.blog-search-results li p {
    font-size: 13px;
    color: #888;
}

.category-list:before,
.related-posts-list:before {
    content: '\e928';
    display: inline-block;
    margin: 5px 5px 0 0;
    font-family: prisma;
    font-size: 14px;
    color: #ccc;
    vertical-align: middle;
}

.related-posts-list:before {
    content: '\e900';
}

.category-list label {
    display: none;
}

.category-list ul,
.related-posts-list {
    font-size: 13px;
    color: #888;
}

@media all and (min-width: 481px) {
    .rich-blog-homepage .post-details {
        max-width: 80%;
    }
    .blog-search-box span.search-box-text {
        width: 81%;
    }
}

@media all and (min-width: 769px) {
    .blog-page .post-head {
        overflow: hidden;
    }
    .blog-page .post-title {
        float: left;
    }
    .blog-page .post-date {
        float: none;
        position: absolute;
        left: 20px;
        bottom: 15px;
        color: #666;
    }
    .blog-page .buttons {
        display: inline-block;
        max-width: 36%;
    }
    .post-relations {
        margin: 0 0 0 20px;
    }
    .post-footer {
        float: right;
        padding: 20px 0 0;
        max-width: 55%;
    }
    .blog-page .post-relations {
        float: left;
        padding: 0;
    }
    .blogpost-page .post-footer {
        float: none;
        padding: 10px 20px 20px;
        width: 100%;
        max-width: 100%;
        background: #f6f6f6;
    }
    .blogpost-page .category-list,
    .blogpost-page .related-posts-list {
        margin: 0 20px 20px 0;
    }
    .blog-page .post-actions .read-more {
        float: left;
        margin: 0;
    }
    .blog-page .post-actions .share-post {
        float: right;
    }
    .blogpost-page .post-actions {
        float: right;
    }
}

@media all and (min-width: 1025px) {
    .blog-search-box span.search-box-text {
        width: 100%;
    }
    .rich-blog-homepage .blog-post:first-child {
        grid-area: a1;
        width: 100%;
    }
    .rich-blog-homepage .blog-post:nth-child(2) {
        grid-area: a2;
    }
    .rich-blog-homepage .blog-post:nth-child(3) {
        grid-area: a3;
    }
    .rich-blog-homepage .blog-post:nth-child(4) {
        grid-area: a4;
    }
    /* .rich-blog-homepage .blog-post:nth-child(4) .post-primary {
        display: flex;
        flex-direction: row;
    } */
    .rich-blog-homepage .blog-post:nth-child(5) {
        grid-area: a5;
    }
    .rich-blog-homepage .blog-post:nth-child(6) {
        grid-area: a6;
    }
    .two-colums-wrapper .rich-blog-homepage {
        float: left;
        width: 49.5%;
    }
    .rich-blog-homepage .blog-posts {
        /* overflow: hidden;
        text-align: center; */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 10px;
        grid-template-areas: 'a1 a1 a2' 'a1 a1 a3' 'a4 a5 a6';
    }
    .two-colums-wrapper .rich-blog-homepage .blog-post {
        width: 100%;
    }
    /* .rich-blog-homepage .blog-post:nth-child(3n+1) {
        clear: both;
        margin-left: 0;
    } */
    .rich-blog-homepage .blog-post:only-child {
        float: none;
        margin: 0 0 30px;
        width: auto;
    }
    .blogpost-page {
        position: relative;
    }
    .blogpost-page .page-title {
        padding-right: 0;
    }
    .post-navigation {
        position: absolute;
        top: -4px;
        right: 0;
        width: 50%;
        max-width: none;
        text-align: right;
    }
    .post-navigation a {
        width: 49%;
        line-height: 19px;
        font-size: 13px;
        color: #57b568;
    }
    .post-navigation a:only-child {
        display: inline-block;
        float: none;
        width: auto;
    }
    .post-navigation a:before,
    .post-navigation a:after {
        position: absolute;
        top: 0;
    }
    .post-navigation a.prev:before {
        left: 10px;
    }
    .post-navigation a.next:after {
        right: 10px;
    }
    .post-navigation .prev {
        padding: 11px 12px 8px 40px;
        text-align: left;
    }
    .post-navigation .next {
        padding: 11px 40px 8px 12px;
        text-align: right;
    }
    .blog-search-box form {
        width: 68%;
    }
    .blog-search-box input.search-box-text {
        margin: 0 -1px 0 0;
        border-radius: 30px 0 0 30px;
    }
    .blogpost-page .rich-blog-image {
        padding: 20px;
    }
    .blogpost-page .post-date,
    .blogpost-page .post-body,
    .blogpost-page .tags {
        padding: 10px 30px;
    }
    .rich-blog-homepage .post-title span:first-child {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 365px;
    }
}

@media all and (max-width: 1024px) {
    .blog-search-box .search-box-button,
    .blog-search-box input.search-box-text {
        position: relative;
        height: 40px;
    }
    .blog-page .blog-posts {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        gap: 0;
    }
    .blog-page .blog-posts .post {
        width: 48%;
        flex-direction: column;
    }
    .blog-page .blog-posts .post>div {
        width: 100%;
    }
    .blog-page .post-title {
        margin-top: 15px;
    }
    .drop {
        display: block;
        text-align: center;
    }
    .block.category-in-tabs ul.list {
        flex-wrap: wrap;
    }
    .block.category-in-tabs .listbox>ul>li {
        width: auto;
    }
    .rich-blog-homepage .blog-posts {
        display: flex;
        justify-content: flex-end;
        align-items: start;
        flex-wrap: wrap;
    }
    .rich-blog-homepage .blog-posts .blog-post:last-child,
    .rich-blog-homepage .blog-posts .blog-post:nth-child(2) {
        margin: 3px 8px 64px;
        width: 47%;
    }
    .rich-blog-homepage .blog-post:first-child {
        width: 96%;
        margin: 0 6px 58px;
    }
    .rich-blog-homepage .post-picture:before {
        padding-top: 70%;
    }
    .rich-blog-homepage .post-picture {
        z-index: 2;
    }
    .rich-blog-homepage .post-title {
        display: block;
        text-transform: uppercase;
        font-weight: normal;
        font-size: 10px;
        margin-top: 5px;
        text-align: left;
    }
    .rich-blog-homepage .post-title {
        display: block;
        text-transform: uppercase;
        font-weight: normal;
        font-size: 10px;
        margin-top: 5px;
        text-align: left;
        position: absolute;
        bottom: -50px;
        margin: 0;
        padding: 19px 11px;
        line-height: 18px;
        background: rgb(10 36 57 / 82%);
        z-index: 1;
        color: #fff;
        width: 100%;
        border-radius: 0px 0px 10px 10px;
    }
    a.post-title span {
        font-size: 12px;
    }
}

@media all and (max-width: 768px) {
    .blogpost-page .image-container .page-title h1 {
        font-size: 2rem;
    }
    .image-container img {
        height: 150px;
    }
    .blog-page .blog-posts .post {
        width: 100%;
        padding: 5px;
    }
    .rich-blog-homepage .blog-post {
        margin: 3px 7px 64px;
    }
    .rich-blog-homepage .title {
        margin: 12px 0 0px;
    }
    .rich-blog-homepage .blog-posts .blog-post:last-child,
    .rich-blog-homepage .blog-posts .blog-post:nth-child(2) {
        margin: 3px 5px 64px;
        width: 47%;
    }
    .rich-blog-homepage .view-all {
        font-size: 12px;
    }
}