/*
Theme Name: Bloxby WP
Theme URI: 
Author: 42 Works
Author URI: 
Description: A custom block theme for Bloxby Assistant an AI-powered WordPress platform that streamlines website creation and management.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bloxbywp
Tags: 
*/


/****** Bootstrap Overrides *****/
:root {}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bs-primary);
    font-weight: 700 !important;
}

p:empty {
    display: none;
}

.text-white * {
    color: rgba(var(--bs-white-rgb), var(--bs-text-opacity));
}

.btn {
    border-radius: var(--bs-border-radius-lg) !important;
}

.media-rounded img {
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow);
}

.media-rounded-sm img {
    border-radius: var(--bs-border-radius-sm);
    box-shadow: var(--bs-box-shadow-sm);
}

.media-rounded-lg img {
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-box-shadow);
}


/****** Custom Overflowed Overrides *****/
@media (min-width: 576px) {
    .container.one-side-fluid {
        max-width: calc((100% - 540px)/2 + 540px) !important;
    }
}

@media (min-width: 768px) {
    .container.one-side-fluid {
        max-width: calc((100% - 720px)/2 + 720px) !important;
    }
}

@media (min-width: 992px) {
    .container.one-side-fluid {
        max-width: calc((100% - 960px)/2 + 960px) !important;
    }
}

@media (min-width: 1200px) {
    .container.one-side-fluid {
        max-width: calc((100% - 1140px)/2 + 1140px) !important;
    }
}

@media (min-width: 1400px) {
    .container.one-side-fluid {
        max-width: calc((100% - 1320px)/2 + 1320px) !important;
    }
}

/****** Custom Overflowed Overrides End *****/


@media (min-width: 1200px) {

    .h3,
    h3 {
        font-size: 1.25rem;
    }
}


/****** Custom CSS for blocks styling. Donot use any custom backgrounds and colors  ******/

:root :where(.is-layout-flow)>* {
    margin-block-start: 15px;
    margin-block-end: 0;
}

.wp-block-columns>.wp-block-column {
    height: fit-content;
}

.navbar-nav a {
    text-decoration: none;
}

header.wp-block-template-part {
    background: var(--bs-white) !important;
    color: var(--bs-white) !important;
    box-shadow: 1px 10px 20px -17px #bbb;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.wp-block-site-logo img {
    max-height: 80px;
    object-fit: contain;
}

.navigation-main .navbar-nav a,
.navigation-footer .navbar a {
    text-decoration: none;
    color: var(--bs-dark);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all ease 0.2s;
}

.navigation-main .navbar-nav a:hover,
.navigation-footer .navbar a:hover {
    color: var(--bs-primary);
} 

.navigation-footer nav.navbar a {
    text-decoration: none;
}

.navigation-main .navbar-nav .current-menu-item a,
.navigation-footer .navbar .current-menu-item a {
    text-decoration: none;
    color: var(--bs-primary);
}

.no-social * {
    width: 100% !important;
    text-align: center;
}

.common-padding {
    padding: 70px 10px;
}

ul.wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
}

ul.wp-block-post-template li.wp-block-post {
    margin: 0;
}

.card-body .wp-block-post-title {
    line-height: 1.3;
}

.card-body {
    margin: 0;
}

.card .wp-block-post-featured-image {
    overflow: hidden;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.card-body .wp-block-post-excerpt__excerpt {
    margin-bottom: 25px;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.card a.wp-block-button {
    max-width: 150px;
}

.card .wp-block-post-featured-image {
    transition: all ease 0.2s;
}

.card .wp-block-post-featured-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-box-shadow) !important;
}

.wp-block-button.aligncenter a.wp-block-button__link {
    max-width: 180px;
    margin: auto;
}

.wp-block-button.aligncenter {
    text-align: center;
}

.wp-block-media-text {
    height: 100%;
}

figure.wp-block-media-text__media,
figure.wp-block-media-text__media img {
    height: 100%;
    object-fit: cover;
}

.btn .wp-block-button__link {
    background: none;
    padding: 0;
    color: inherit;
}

.badge.rounded-pill a {
    color: inherit;
    text-decoration: none;
}

.card-img-top.wp-block-post-featured-image img {
    aspect-ratio: 3/2;
    object-fit: cover;
}

.wp-block-query-pagination .page-numbers {
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--color-primary);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    border-radius: 0.25rem;
    margin: 0 2px;
}

.wp-block-query-pagination .page-numbers.current {
    color: var(--bs-light);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn.wp-block-button__link {
    width: auto;
}

.section-heading-wrap {
    margin: auto;
    max-width: 950px;
}

.inner-page-hero {
    min-height: 380px;
}

.category-pills a {
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-font-weight: 700;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
    background-color: RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;
    text-decoration: none;
}

.sidebar-posts-column .wp-block-latest-posts__list>li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wp-block-post-content :first-child {
    margin-top: 0 !important;
}

.position-sticky.single-sidebar {
    top: 150px;
}

.wp-block-query-no-results {
    text-align: center;
}

.banner-height {
    min-height: 70vh;
}

.banner-content-centered * {
    justify-content: center;
}

.banner-content-centered.banner-height::after {
    content: "";
    background: #0000004a;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-content-centered.banner-height * {
    z-index: 1;
}

.banner-content-centered.text-white .btn:hover {
	color: var(--bs-light);
	border-color: var(--bs-light);
}

.wp-block-media-text figure {
    position: relative;
}

.wp-block-media-text figure::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -50px;
    width: calc(100% - 50px);
    height: 120%;
    background: rgba(var(--bs-secondary-bg-rgb), 0.4) !important;
    border-radius: var(--bs-border-radius-lg);
}

.wp-block-media-text.has-media-on-the-right figure::before {
    left: unset;
    right: -50px;
}



.wp-block-media-text figure img {
    z-index: 1;
    position: relative;
}


/** Bloxby Overrides **/
.stats-no-arrow-grid-container .stats-no-arrow-grid-block::after {
    background-color: rgba(var(--bs-primary-rgb), .2) !important;
}

.stats-no-arrow-grid-container .stats-no-arrow-grid-block .wp-block-heading {
    color: var(--bs-primary);
}

.stats-no-arrow-grid-container .stats-no-arrow-grid-block p {
    margin-top: 10px;
}

i.testimonials-icon {
    display: flex;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: var(--bs-primary);
    background: #ddd;
    border-radius: 15px;
}

.testimonial-grid-block .wp-block-image {
    height: 60px !important;
    width: 60px !important;
    background: rgba(var(--bs-secondary-bg-rgb), 0.4);
    border-radius: var(--bs-border-radius-lg);
    padding: 10px;
}

.testimonial-grid-block {
	text-align: center;
}

.bloxby-contact-form .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.bloxby-contact-form textarea.form-control {
	max-height: 180px;
}

.bloxby-contact-form .wpcf7-not-valid-tip {
	text-align: right;
	font-size: 11px;
	position: absolute;
	right: 0;
	width: 100%;
	bottom: 0;
    padding: 0 10px;
}
.bloxby-contact-form p {
    margin: 0;
}
.form-submit-wrap p {
	display: flex;
	align-items: center;
}



/** Responsive */



@media (max-width: 991px) {
    #headerNavbarContent {
        position: fixed;
        right: 0;
        z-index: 99;
        right: 0;
        width: 0%;
        text-align: center;
        top: 0;
        background: #fff;
        height: 100% !important;
        transition: all ease 0.5s;
        white-space: nowrap;
    }

    #headerNavbarContent #menu-header-menu {
        padding: 150px calc(var(--bs-gutter-x) * .5);
        align-items: center;
    }

    #headerNavbarContent.active {
        width: 60%;
    }

    .header-menu-toggle {
        z-index: 999;
    }

    .header-menu-toggle {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 5px;
    }

    .header-menu-toggle span {
        width: 30px;
        display: block;
        height: 3px;
        background: var(--bs-navbar-color);
        border-radius: 20px;
        overflow: hidden;
        transition: all ease 0.5s;
    }

    .header-menu-toggle:not(.collapsed) span:nth-child(2) {
        display: none;
    }

    .header-menu-toggle:not(.collapsed) span {
        transform: rotate(45deg);
        transform-origin: 30% 50%;
    }

    .header-menu-toggle:not(.collapsed) span:last-child {
        transform: rotate(-45deg);
        transform-origin: 30% 50%;
    }

    ul.wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid-container {
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 20px);
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        overflow: scroll;
    }
    .feature-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .common-padding {
        padding: 40px 10px;
    }    
    .bloxby-contact-form .row{
        gap: 1rem;
    }
    .section-featured-content-grid-left .wp-block-columns {
        flex-direction: column-reverse;
    }
}

@media (max-width: 600px) {
    .wp-block-media-text.is-stacked-on-mobile {
        gap: 60px;
    }

    .wp-block-site-logo img {
        max-height: 60px;
    }

    ul.wp-block-post-template {
        grid-template-columns: repeat(1, 1fr);
    }

    .testimonial-grid-container {
        grid-auto-columns: calc(65% - 20px);
    }
    .feature-cards-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    footer {
        text-align: center;
    }
}