/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* BEGIN: custom-filter */
.custom-filter #Filters a
{
	background-color: transparent !important;
	border: 0 !important;
}

.custom-filter #Filters .filters_wrapper ul li
{
    width: auto !important;
    margin: 0 !important;
}

.custom-filter #Filters .filters_wrapper ul li a:hover
{
    color: #3A69F9 !important;
}

.custom-filter #Filters .filters_wrapper ul li.current-cat
{
    border-color: #3A69F9 !important;
    border-bottom-width: 3px !important;
    border-bottom-style: solid !important;
}

.custom-filter #Filters .filters_wrapper ul li.current-cat a
{
    color: #3A69F9 !important;
}
/* END: custom-filter */

/* BEGIN: blog */
.blog-slider
{
    position: relative;
}

.blog-slider .blog-slider-navigator
{
    opacity: 0;
    position: absolute;
    top: 5rem;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background-color: #1f1f1fba;
    animation: blogSliderNavigatorFadeOut 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
    cursor: pointer;
}

.blog-slider .blog-slider-navigator.abs-left
{
    left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-slider .blog-slider-navigator.abs-right
{
    right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
}

.blog-slider:hover .blog-slider-navigator
{
    opacity: 1;
    animation: blogSliderNavigatorFadeIn 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.blog-slider .slick-slider .slick-track
{
    width: 150rem;
    transition: transform 0.5s ease-in-out;
}

.blog-slider .slick-track
{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.blog-slider .slick-track .slick-slide:first-child
{
    margin-left: 0;
}

.blog-slider .slick-track .slick-slide:not(:first-child)
{
    margin-left: 1em;
}

.blog-sub-menu
{
    background-color: #f2f7fff7;
}

.blog-sub-menu.is-sticky
{
    position: fixed;
    width: 100%;
    z-index: 99;
    top: 3.8rem;
    animation: blogSubMenuSlideDown 0.5s linear;
}

.blog-sub-menu .column-blog-sub-menu
{
    margin-bottom: 0;
}

.blog-sub-menu .column-blog-sub-menu ul
{
    display: flex;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
}

.blog-sub-menu .column-blog-sub-menu ul li
{
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
    background-color: #1172ff;
    margin-right: 1.2rem;
    border-radius: 8px;
    
    transition: all 0.3s ease;
}

.blog-sub-menu .column-blog-sub-menu ul li:last-child
{
    margin-right: 0;
}

.blog-sub-menu .column-blog-sub-menu ul li a
{
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;

    transition: all 0.3s ease;
}

.blog-sub-menu .column-blog-sub-menu ul li:hover
{
    background-color: #5b93ff;

    transition: all 0.3s ease;
}

.blog-sub-menu .column-blog-sub-menu ul li:hover,
.blog-sub-menu .column-blog-sub-menu ul li:hover a
{
    transition: all 0.3s ease;
}

.blog-sub-menu .column-blog-sub-menu ul li.active
{
    background-color: #5b93ff;
}

.blog-sub-menu .column-blog-sub-menu ul li.active a
{
    color: #ffffff;
}

@keyframes blogSubMenuSlideDown
{
    0%{
        top: -3.8rem;
    }

    100%{
        top: 3.8rem;
    }
}

@keyframes blogSliderNavigatorFadeIn
{
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}

@keyframes blogSliderNavigatorFadeOut
{
    100%{
        opacity: 0;
    }

    0%{
        opacity: 1;
    }
}

.blog-teaser-custom .teaser-wrapper,
.blog-focus .teaser-wrapper
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.blog-teaser-custom .post,
.blog-focus .post
{
    aspect-ratio: 3 / 2;
    height: 100%;
}

.blog-teaser-custom li:first-child,
.blog-teaser-custom li:not(:first-child),
.blog-focus li:first-child,
.blog-focus li:not(:first-child)
{
    float: none;
    width: 100% !important;
}

.blog-teaser-custom li:first-child,
.blog-focus li:first-child
{
    grid-column: span 2;
    grid-row: span 2;
}

.blog-slider .image_wrapper,
.blog-slider .image_wrapper img
{
    aspect-ratio: 3 / 2;
}

.blog-slider .image_wrapper,
.blog-teaser-custom .photo-wrapper,
.blog-focus .photo-wrapper 
{
    height: 100%;
}

.blog-slider .image_wrapper img,
.blog-teaser-custom .photo-wrapper img,
.blog-focus .photo-wrapper img
{
    height: 100%;
    object-fit: cover;
}

.blog-focus.blog-focus-recent li:first-child
{
    grid-column: span 1;
    grid-row: span 1;
}

.blog-focus.blog-focus-recent .post
{
    aspect-ratio: auto;
}

/* Tablets (Portrait) */
@media only screen and (min-width: 768px) and (max-width: 959px) 
{
    .blog-teaser-custom .teaser-wrapper,
    .blog-focus .teaser-wrapper
    {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media only screen and (max-width: 767px) {
    .blog-teaser-custom .teaser-wrapper,
    .blog-focus .teaser-wrapper
    {
        grid-template-columns: repeat(1, 1fr);
        gap: 0;
        row-gap: 1em;
    }

    .blog-teaser-custom .blog-focus li:first-child,
    .blog-focus li:first-child
    {
        grid-column: span 1;
        grid-row: span 1;
    }
}
/* END: blog */

/* BEGIN: post */
.post .post-photo-wrapper,
.post .image_frame,
.post .image_wrapper,
.post .image_wrapper img
{
    aspect-ratio: 3 / 2;
}

.post .image_wrapper
{
    height: 100%;
}

.post .image_wrapper img
{
    height: 100%;
    object-fit: cover;
}
/* END: post */

/* BEGIN: post-vertical */
.post-vertical
{
    text-align: justify;
}

.post-vertical .post
{
    aspect-ratio: auto;
}

/* .post-vertical .post-photo-wrapper,
.post-vertical .image_frame,
.post-vertical .image_wrapper,
.post-vertical .image_wrapper img
{
    aspect-ratio: 3 / 2;
}

.post-vertical .post-photo-wrapper,
.post-vertical .post-desc-wrapper
{
    float: none;
    width: 100% !important;
}

.post-vertical .image_wrapper
{
    height: 100%;
}

.post-vertical .image_wrapper img
{
    height: 100%;
    object-fit: cover;
} */

.post-vertical .entry-title 
{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* END: post-vertical */


/* BEGIN: wrap-sidebar */
.wrap-sidebar
{
    padding-right: 5rem;
}

.wrap-sidebar *
{
    width: 100%;
}

@media only screen and (min-width: 768px) and (max-width: 959px) 
{
    .wrap-blog
    {
        width: 100% !important;
    }

    .wrap-sidebar
    {
        display: none !important;
    }
}
/* END: wrap-sidebar */

/* BEGIN: btn-highlight */
.btn-highlight .wp-block-button__link
{
    background-color: #1172ff !important;
    color: #ffffff;
    font-size: 1.5rem;
}

.btn-highlight .wp-block-button__link:hover
{
    background-color: #5b93ff !important;
}
/* END: btn-highlight */