@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');
.flex-container {
    /*position: absolute;*/
    height: 500px;
    width: 100%;
    display: flex;
    overflow: hidden;

    @media screen and (max-width:768px) {
        flex-direction: column;
    }
}

.flex-slide {
    flex: 1;
    cursor: pointer;
    transition: all 500ms ease;
    position: relative;
    
    @media screen and (max-width:768px) {
        overflow: auto;
        overflow-x: hidden;
    }
}

.flex-slide:hover{
    filter: grayscale(0);
}

.flex-slide p {
    @media screen and (max-width:768px) {
        font-size: 2em
    }
}

.flex-slide:hover {
    flex-grow: 2;
}

.bercario{
    background: url('../img/segmentos/bercario.png');
    background-size: cover;
    background-position: center;
}

.edu-infantil{
    background: url('../img/segmentos/infantil.png');
    background-size: cover;
    background-position: center;
}

.ens-fund-1{
    background: url('../img/segmentos/fundamental-1.png');
    background-size: cover;
    background-position: center;
}

/* .ens-fund-2{
    background: url('../img/unidades/fundamental2-mzschool.png');
    background-size: cover;
    background-position: center;
}

.ensi-medio{
    background: url('../img/unidades/ensinomedio-mzschool.jpg');
    background-size: cover;
    background-position: center;
} */

/* linear-gradient(rgb(0, 46, 93, 0.3), rgb(0, 46, 93, 0.5)), */

.flex-title {
    color: #fff;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    position: relative;
    font-size: 1.5vw;
    margin: auto;
    text-align: center;
    transform: rotate(90deg);
    top: 15%;
    transition: all 500ms ease;

    @media screen and (max-width:768px) {
        transform: rotate(0deg) !important;
    }
}

.flex-title h3{
    color: #fff;
    font-weight: bold;
    text-shadow: 0px 2px rgba(0, 0, 0, 0.418);
}

.flex-title img{
    max-width: 50%;
}

.flex-about {
    opacity: 0;
    color: #f1f1f1;
    position: absolute;
    width: 100%;
    font-size: 1vw;
    padding: 50% 5% 50% 5%;
    bottom: 0;
    line-height: 1.3;
    margin: auto;
    text-align: left;
    transform: rotate(0deg);
    transition: all 500ms ease;
    color: #e6e6e6;
    background: #BC9C55;
    /* background: linear-gradient(180deg, rgba(0,46,93,0.10407913165266103) 0%, rgba(0,46,93,0.6699054621848739) 21%, rgba(0,46,93,1) 67%); */
    /* box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    @media screen and (max-width:768px) {
        padding: 0%;
        border: 0px solid #f1f1f1;
    }
}

.flex-about-2 {
    opacity: 0;
    color: #f1f1f1;
    position: absolute;
    width: 100%;
    font-size: 1vw;
    padding: 50% 5% 50% 5%;
    bottom: 0;
    line-height: 1.3;
    margin: auto;
    text-align: left;
    transform: rotate(0deg);
    transition: all 500ms ease;
    color: #e6e6e6;
    background: #18196D;
    /* background: linear-gradient(180deg, rgba(0,46,93,0.10407913165266103) 0%, rgba(0,46,93,0.6699054621848739) 21%, rgba(0,46,93,1) 67%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    @media screen and (max-width:768px) {
        padding: 0%;
        border: 0px solid #f1f1f1;
    }
}


/* MOBILE */
@media screen and (max-width:768px) {
    .flex-about p{
        text-align: center;
        width: 5%;
        margin-top: 20px !important;
        font-size: 15px !important;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
    }
    .flex-about-2 p{
        text-align: center;
        width: 5%;
        margin-top: 20px !important;
        font-size: 15px !important;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
    }
    .conheca {
        display: none;
    }

    .bercario{
        background: url('../img/segmentos/bercario-mobile.png');
        background-size: cover;
        background-position: center;
    }
    
    .edu-infantil{
        background: url('../img/segmentos/infantil-mobile.png');
        background-size: cover;
        background-position: center;
    }
    
    .ens-fund-1{
        background: url('../img/segmentos/fundamental-1-mobile.png');
        background-size: cover;
        background-position: center;
    }
    
    /* .ens-fund-2{
        background: url('../img/unidades/fundamental2-mzschool-mobile.jpg');
        background-size: cover;
        background-position: center;
    }
    
    .ensi-medio{
        background: url('../img/unidades/ensinomedio-mzschool-mobile.jpg');
        background-size: cover;
        background-position: center;
    } */

}

@media screen and (min-width: 769px) {
    .link-mobile{
        display: none;
    }
    
}
/* FIM MOBILE */

.flex-about p{
    width: 100%;
    font-size: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.flex-about i{
    color: #18196D;
}

.flex-about-2 p{
    width: 100%;
    font-size: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.flex-about-2 i{
    color: #18196D;
}

a{
    text-decoration: none !important;
}

.conheca{
    width: 40%;
    /* margin: 0 auto; */
    border: 3px solid #fff;
    padding: 10px;
    background-color: transparent;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    margin-top: 20px;
}

.conheca:hover{
    background-color: #075285;
    border: solid 3px #075285;
    transition: .5s;
}
