/*
Theme Name: Babilou Family
Theme URI: https://36.agency
Author: 36creative     
Author URI: https://36.agency
Description: Block theme designed to provide a flexible and easy to use editing experience.
Version: 3.2
Requires at least: 6.5.5
Tested up to: 6.5.5
Requires PHP: 8.1.23
Text Domain: blueprint
*/

* {
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased; 
    font-family: var(--wp--preset--font-family--montserrat);   
}

img {
    max-width: 100%;
    height: auto;    
}

:root :where(.is-layout-constrained) > * {
    margin-block-start: 0;
}

#wp--skip-link--target {
    margin: 0;
}



/*=========================*/
.footer .footer-top .container {
    @media screen and (max-width: 1032px) {
        grid-template-columns: 1fr;
    }
}

.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container,
.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(3) > .container > .inner-blocks-container {
    @media screen and (max-width: 1032px) {
        align-items: flex-start;
    }
}

.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-menu-link + .wp-block-blueprint-menu-link,
.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(3) > .container > .inner-blocks-container .wp-block-blueprint-menu-link + .wp-block-blueprint-menu-link {
    margin-top: 38px;
}

.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-menu-link .link > a,
.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(3) > .container > .inner-blocks-container .wp-block-blueprint-menu-link .link > a {
    color: var(--wp--preset--color--white);
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-menu-link .link > a:hover,
.footer .footer-top .container .wp-block-blueprint-grid-item:nth-child(3) > .container > .inner-blocks-container .wp-block-blueprint-menu-link .link > a:hover {
    text-decoration: none;
    color: var(--wp--preset--color--brand-secondary);
}

.footer .footer-bot .container {
    @media screen and (max-width: 1032px) {
        grid-template-columns: 1fr;
    }
}

.footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(1) > .container > .inner-blocks-container .wp-block-blueprint-paragraph p {
    @media screen and (max-width: 1032px) {
        text-align: center;
    }
}

.footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container {
    flex-direction: row;
}

@media screen and (max-width: 1032px) {
    .footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container {
        justify-content: center;
    }
}

.footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-link + .wp-block-blueprint-link {
    margin-left: 14px;
    padding-left: 15px;
    position: relative;
}

.footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-link + .wp-block-blueprint-link::before {
    content: "";
    display: block;
    width: 1px;
    height: 15px;
    background-color: var(--wp--preset--color--white);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-link a.link {
    transition: color 0.3s ease-in-out;
}

.footer .footer-bot .container .wp-block-blueprint-grid-item:nth-child(2) > .container > .inner-blocks-container .wp-block-blueprint-link a.link:hover {
    text-decoration: none;
    color: var(--wp--preset--color--brand-secondary);
}

/*============== counter area ==============*/

#counter-area-wrapper .wp-block-blueprint-grid-item{
    position: relative;
}

#counter-area-wrapper .wp-block-blueprint-grid-item::after{
    content: '';
    width: 1px;
    height: 100%;
    position: absolute;
    right: -4vw;
    top: 0;
    background: var(--wp--preset--color--brand-primary);
}

@media screen and (min-width: 1921px){
    #counter-area-wrapper .wp-block-blueprint-grid-item::after{
        right: -15%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1032px){
    #counter-area-wrapper .wp-block-blueprint-grid-item::after{
        content: '';
        width: 1px;
        height: 100%;
        position: absolute;
        right: -2.5vw;
        top: 0;
        background: var(--wp--preset--color--brand-primary);
    }
    #counter-area-wrapper .wp-block-blueprint-grid-item:nth-child(3):after{
        display: none;
    }
}

@media screen and (max-width: 767px){
    #counter-area-wrapper .wp-block-blueprint-grid-item::after{
        content: '';
        width: 154px;
        height: 1px;
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        bottom: -30px;
        top: auto;
    }    
}

#counter-area-wrapper .wp-block-blueprint-grid-item:last-child::after{
    display: none;
}

/*============== network area ==============*/

#network .wp-block-blueprint-grid:nth-child(1) > .container{
    border-radius: 20px 20px 0 0;
}
#network .wp-block-blueprint-grid:nth-child(2) > .container{
    border-radius: 0 0 20px 20px;
}

#network.network-harvard .wp-block-blueprint-grid:nth-child(2) > .container{
    border-radius: 20px 20px 0 0;
}
#network.network-harvard .wp-block-blueprint-grid:nth-child(3) > .container{
    border-radius: 0 0 20px 20px;
}

/*============== privacy page ==============*/
.privacy .wp-block-blueprint-paragraph p a{
    color: var(--wp--preset--color--brand-primary);
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
    font-weight: 700;
    &:hover{
        color: var(--wp--preset--color--brand-secondary);
        text-decoration: none;
    }
}

/*============== error 404 page ==============*/

.error404 .wp-block-template-part{
    margin-block-start: 0;
}

/*============== about page ==============*/
@media screen and (min-width: 1024px) {
    #about .BackgroundImage{
        width: 51%;
        height: auto;
        max-height: 100%;
        bottom: auto;
        top: 70%;
        aspect-ratio: 849/304;
    }
    #network .BackgroundImage{
        width: 50%;
        height: auto;
        max-height: 100%;
        bottom: -90px;
        top: auto;
        aspect-ratio: 642/211;
    }
    section#about, section#network{
        overflow: visible;
    }
}
@media screen and (min-width: 1440px) {
    #about .BackgroundImage{
        top: 65%;
    }
    #network .BackgroundImage{
        bottom: -100px;
    }
}
@media screen and (min-width: 1920px) {
    #about .BackgroundImage{
        top: 56%;
    }
}
@media screen and (min-width: 1921px) {
    #network .BackgroundImage{
        width: 60%;
    }
}

@media screen and (min-width: 768px) {
    .same-height-heading-grid .wp-block-blueprint-grid-item .wp-block-blueprint-heading{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 64px;
        margin-bottom: 10px !important;
    }
}