/*------------------------------------*\

    Posts CSS

    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/

.blog-post__col + .blog-post__col {
    margin-top: 50px;
}

.blog-post__item {
    display: flex;
    flex-direction: column;
    margin: 0 auto 50px auto;
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    max-width: 420px;
    transition: all 0.3s ease-in-out;
}

.blog-post__item > a {
    background: none;
    display: flex;
    flex-direction: column;
    height: inherit;
}

.blog-post__item.blog-post__featured {
    display: block;
    max-width: 100%;
}

.blog-post__img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* for 16:9 aspect ratio */
    overflow: hidden;
}

.blog-post__img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post__title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: none;
}

.blog-post__link,
.blog-post__item .btn,
.blog-post__item .btn-primary {
    margin-top: 10px;
}

.search-result__link,
.blog-post__link {
    padding: 15px 20px;
    background: var(--color-primary);
    width: fit-content;
    text-decoration: none;
    color: var(--color-black);
    border-radius: 0;

}


.blog-post__link:hover {
    color: var(--color-white);
}

.blog-post__body {
    font-size: .8em;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post__title__link ,
.blog-post__bottom ,
.blog-post__featured .blog-post__excerpt ,
.blog-post__tag,
.blog-post__featured .show{
    background: transparent;
}

.blog-post__featured .blog-post__bottom{
    font-weight: normal;
}

.blog-post__tag {
    margin-bottom: 5px;
    text-decoration: none;
    color: var(--color-black);
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1;
}

.blog-post__featured_label {
    padding-bottom: 5px;
}

.blog-post__excerpt {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 20px;
    color: var(--color-black);
    text-decoration: none;
    background: transparent;
    font-weight: normal;
}

.blog-post__featured .blog-post__excerpt {
    padding-bottom: 60px;
}

.post-pagination{
    margin-bottom: 20px;
    width: 100%;
}
.blog-post__featured .blog-post__img-container,
.blog-post__featured .show {
    background: var(--color-white);
    height: 100%;
}

.blog-post__featured .blog-post__meta {
    position: relative;
}

.blog-post__featured .blog-post__img-container img {
    object-fit: contain;
}

.blog-post__bottom {
    display: flex;
    justify-content: space-between;
    border-top: solid 1px #ddd;
    padding-top: 20px;
    text-decoration: none;
    color: var(--color-black);
    font-weight: normal;
    margin-top: auto;
}

.blog-single-container{
    margin-top: 0;
}

@media ( min-width: 600px ) {
    .blog-post__col + .blog-post__col {
        margin-top: 0;
    }

    .blog-post__col:nth-child(n+3) {
        margin-top: 50px;
    }
}

@media (min-width: 1025px) {
    .blog-post__col:nth-child(n+3) {
        margin-top: 0;
    }

    .blog-post__col:nth-child(n+4) {
        margin-top: 50px;
    }

    .blog-post__featured .blog-post__body {
        padding: 20px 20px 20px 0;
    }
    .search-result_left_column {
        width: 30%;
        text-align: center;
    }
    .search-result_right_column {
        width: 70%;
    }
}

.search-image-button__description p{
    font-size: 18px;
    line-height: 1.22em;
    font-weight: 400;
    margin: 0 0 12px 0;
    padding: 0;
    color: var(--color-black);

}
.search-image-button__description p span{
    font-weight: 700;
    margin-bottom: 7px;
    display: block;
}

@media (min-width: 1200px) {
    .dummy-link:hover {
        color: var(--color-black);
    }

    .blog-post__tag:hover {
        color: var(--color-black);
    }

    .blog-post__item:hover {
        box-shadow: 5px 5px 60px rgb(235, 235, 235), -5px -5px 60px rgb(237, 237, 237);
        transition: all .5s;
        transform : translateY(-10px);
    }
    .search-image-button__title p {
        margin: 0 0 10px 0;
    }
    .search-image-button__description p span{
        margin-bottom: 5px;
    }
}


/* Blog Sidebar */

.blog .page-sidebar .widget {
    margin-bottom: 50px;
}


/* Single Post Pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.btn-post-pagination {
    background: #dadada;
    font-size: 15px;
    padding: 10px 20px;
    color: #747474;
    position: relative;
}

.post-pagination-text {
    display: none;
}

.btn-post-pagination:hover {
    background: #ebebeb;
}

.btn-post-pagination strong {
    display: block;
    font-size: 12px;
}

.btn-previous-post,
.btn-next-post {
    max-width: 48%;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.btn-previous-post {
    padding-left: 40px;
}

.btn-next-post {
    padding-right: 40px;
}

.mobile-arrow:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #747474;
}

.mobile-arrow {
    position: absolute;
}

.btn-previous-post .mobile-arrow {
    left: 19px;
}

.btn-next-post .mobile-arrow {
    right: 19px;
}

.btn-previous-post .mobile-arrow:after {
    transform: rotate(180deg);
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align: inherit;
    }
}

/* Search Results */

body.search .tab-accordion__tab {
    font-size: 20px;
}

div.search-results {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.search-result {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 20px 0;
    background: transparent !important;
    border-bottom: 1px solid #ddd;
}

.search-result__title {
    margin-bottom: 16px;
    color: var(--color-black);
}

.search-result__excerpt {
    margin-bottom: 20px;
    color: var(--color-black);
}

.search-result__img-container img {
    max-width: 280px;
    max-height: 280px;
    object-fit: contain;
}

.search-result__img-container.no-thumbnail {
    background: #fec20f;
}

.search-result__img-container.no-thumbnail img {
    max-width: 100%;
}

@media ( min-width: 1200px ) {
    body.search .tab-accordion__tabs {
        gap: 0 15px;
    }
}

.search_bar,
.blog_title_bar {
    padding: 40px 0 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.blog_title_bar {
    margin-bottom: 20px;
}

.blog_title_bar input,
.blog_title_bar select,
.search_bar input,
.search_bar select {
    height: 50px;
    border: 1px solid #ddd;
    width: 100%;
    border-radius: 5px;
    padding-left: 10px;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .search-result {
        flex-direction: column;
    }
}

.blog_title_bar select {
    width: 100%;
    margin-bottom: 5px;
}

.blog_title_bar input.search_bar_input {
    position: initial;
    width: 100%;
    margin-bottom: 5px;
}

.blog_title_bar input.search_bar_submit,
.search_bar input.search_bar_submit {
    position: initial;
    border: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-black);
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    border-radius: 5px;
    transition: background .3s ease-in-out;
}

.blog_title_bar input.search_bar_submit:focus,
.search_bar input.search_bar_submit:focus {
    outline: 0;
    box-shadow: none;
}

.search_bar input.search_bar_input,
.search_form input.search_bar_input {
    height: 50px;
    max-width: 100%;
}

.search_bar input.search_bar_submit,
.search_form input.search_bar_submit {
    height: 50px;
    border: solid 1px var(--color-primary);
}

.search_bar .choices__inner,
.blog_title_bar .choices__inner {
    height: 50px;
    background: var(--color-white);
}

.search_bar .choices__inner .choices__list,
.blog_title_bar .choices__inner .choices__list {
    height: 40px;
    line-height: 22px;
}

.search_bar .choices,
.blog_title_bar .choices {
    width: auto;
    max-width: 100%;
}

.right-title-bar {
    display: flex;
    justify-content: flex-end;
}

.right-title-bar input.search_bar_submit {
    height: 50px;
}

.right-title-bar .choices,
.right-title-bar .search_form {
    width: 50%;
}

.right-title-bar .search_form form {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.search_form form {
    position: relative;
}

.search_form form .search_bar_submit {
    position: absolute;
    top: 0;
    right: -10px;
    height: 100%;
    border: none;
    background: none;
    padding: 0 13px;
}

.toc-container {
    margin: 20px 0;
}
.search_bar input.search_bar_input, .search_form input.search_bar_input{
    margin-bottom: 20px;
    margin-top: 20px;
}
.blog-post__img-container{
    background: var(--color-yellow-dark);
}

.blog-post__img-container.no-thumb {
    background: #fec20f;
}

.blog-post__img.no-thumb{
    object-fit: contain;
}

@media (min-width: 600px) {
    .blog_title_bar input.search_bar_input,
    .search_bar input.search_bar_input {
        position: relative;
        left: 10px;
    }


    .search_bar .choices,
    .blog_title_bar .choices {
        max-width: 363px;
    }

    .search_bar input.search_bar_input,
    .search_form input.search_bar_input {
        /* max-width: 265px; */
    }

    body.archive .search_form input.search_bar_input,
    body.blog .search_form input.search_bar_input {
        max-width: 265px;
    }

    .blog_title_bar input.search_bar_submit,
    .search_bar input.search_bar_submit {
        position: relative;
        color: var(--color-black);
        padding-left: 20px;
        padding-right: 20px;
        margin: 0;
        width: auto;
        border-radius: 0 5px 5px 0;
        background: var(--color-primary);
        text-transform: uppercase;
    }
    .search_form form {
        display: flex;
        justify-content: flex-end;
    }

    .blog_title_bar input.search_bar_submit:hover,
    .search_bar input.search_bar_submit:hover{
        background: var(--color-yellow-dark);
        color: var(--color-black);
        border-color: var(--color-yellow-dark);
    }
    .search_bar input.search_bar_input, .search_form input.search_bar_input{
        margin-bottom: 0;
        margin-top: 0;
    }
    .blog-post__title a:hover{
        background: var(--color-primary);
    }
    .blog-post__bottom.dummy-link:hover{
        background: transparent;
    }
    .featured-posts {
        padding-bottom: 40px;
    }
}

.popular-posts h2 {
    text-align: center;
    padding-bottom: 20px;
}

.blog-single-container {
    margin-bottom: 50px;
    padding-bottom: 50px;
}

.blog-single-container .blog-post__img-container {
    margin-bottom: 20px;
}

.blog-single-meta {
    padding-bottom: 20px;
}

.blog-single-meta .social-share-row {
    padding: 0 !important;
    text-align: right;
}

.blog-listing__pagination,
.post-listing__pagination {
    padding-top: 20px;
}

.search-result__excerpt{
    font-weight: normal;
}

.blog-single-meta,
.post-pagination-wrapper{
    margin-left: auto;
    margin-right: auto;
}

.padding-left-none ,
.post-pagination + .social-share-row li:first-child{
    padding-left: 0;
}

.post-listing-container {
    padding-top: 0;
}

@media( min-width :1200px ) {
    .search-result:hover .search-result__link{
        background: var(--color-yellow-dark) !important;
    }
}

body.search .product-card + .product-card {
    margin-top: 20px;
}

body.search .product-card__inner {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    height: 100%;
    text-decoration: none;
    transition: transform .2s linear;
    background: var(--color-white);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    /* padding-bottom: 34px; */
}

body.search .product-card__img {
    height: 219px;
    width: 100%;
    position: relative;
}

body.search .product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.search .product-card__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px;
}

body.search .product-card__details .btn {
    margin-top: auto;
    align-self: flex-start;
}

body.search .product-card__details > h2 {
    font-size: 24px;
    line-height: 1.208em;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    padding: 0;
    color: var(--color-black);
}

@media ( min-width: 768px ) {
    body.search .product-card + .product-card {
        margin-top: 0;
    }

    body.search .product-card:nth-child(n+3) {
        margin-top: 20px;
    }
}

@media ( min-width: 1025px ) {
    body.search .product-card:nth-child(n+3) {
        margin-top: 0;
    }

    body.search .product-card:nth-child(n+4) {
        margin-top: 20px;
    }
}

@media ( min-width: 1200px ) {
    body.search .product-card:nth-child(n+4) {
        margin-top: 0;
    }

    body.search .product-card:nth-child(n+5) {
        margin-top: 20px;
    }
}


