/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/



.mjm-template{
    width: 100%;
    font-family: "lato";
}

.mjm-template p, .mjm-template li{
    font-size: 18px;
    font-size: 400;
    color: #000;
}

.contract-m-hero, .product-hero, .markets-hero{
    width: 100%;
    background-repeat: no-repeat;
    background-position: right top;
}

/* Contract Manufacturing */
.contract-m-hero{
    height: 450px;     
    background-image:
    linear-gradient(to right,rgba(0, 0, 0, 1),rgba(0, 0, 0, 0)),
    var(--contract-hero-image);
}

@media screen and (max-width: 801px) {
.contract-m-hero{    
        background-image: linear-gradient(to bottom,rgba(0, 0, 0, 1),rgba(0, 0, 0, 0));
}    
}

.contract-m-hero h1, .markets-hero h1{
    font-size: 45px;
    color: #fff;
    position: relative;
    width: 35%;
    font-weight: 700;
}

@media screen and (min-width: 801px) {
    .contract-m-hero h1, .markets-hero h1{
        top: 45%;
        left: 15%;
    }
}    

.mjm-intro{
    width: 66%;
    margin: 55px auto 40px auto;
}

.mjm-intro-title, .mjm-grid-text-title{
    font-size: 40px;
    font-weight: 700;
    color: #0079C1;
}

@media screen and (max-width: 800px) {
        .mjm-intro-title, .mjm-grid-text-title{
        font-size: 28px;
        font-weight: 700;
        color: #0079C1;
        }
        .mjm-grid-text-title{        
            text-align: center;
        }
}    

.mjm-flex-grid{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.mjm-flex-grid ul{
    margin: 0;
    margin-block-start: 0;
    padding-inline-start: 20px;
}

.mjm-flex-grid ul li::marker {
    color: #0079C1;
}

.mjm-grid-img-text, .mjm-grid-text-img{
    width: 100%;
    display: flex;
    flex-direction: row;
}

@media screen and (max-width: 800px) {
.mjm-grid-img-text, .mjm-grid-text-img{
    flex-direction: column;
    background: #e5e5e5;
}

  .mjm-grid-text-img .mjm-grid-img,
  .mjm-grid-img-text .mjm-grid-img {
    order: -1;
    flex-grow: 1;
  }

  .mjm-grid-text-img .mjm-grid-text,
  .mjm-grid-img-text .mjm-grid-text {
    order: 0;
    flex-grow: 1;
  }

  .mjm-grid-img{
    height: 390px;
  }

}

.mjm-grid-text, .mjm-grid-img{
    width: 50%;
}

@media screen and (max-width: 1500px) {
    .mjm-grid-text, .mjm-grid-img{
        /* width: 100% !important;
        max-width: 100% !important; */
        flex-direction: column;
        height: 700px;
        width: 100%;
    }

    .mjm-grid-img-text .mjm-text-box{
        margin-left: 15%;
        flex-wrap: wrap;
        min-width: 0;   /* For rows */
        min-height: 0;  /* For columns */
        margin-block-end: -0.5em !important;
    }
}    

.mjm-grid-img .mjm-grid-text{
    padding: 0;
}

.mjm-grid-text{
    background: #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mjm-text-box{
    font-weight: 700;
}

.mjm-text-box p{
    width: 55%;
}

.mjm-grid-img-text .mjm-text-box{
    margin-left: 15%;
    flex-wrap: wrap;
    min-width: 0;   /* For rows */
    min-height: 0;  /* For columns */
}

.mjm-grid-text-img .mjm-text-box{
    margin-left: 36%;
    /* flex-wrap: wrap-reverse; */
}

.mjm-grid-button-container{
    width: auto;
}

.mjm-grid-button{
    padding: 13px 30px;
    color: #fff !important;
    background-image: linear-gradient(to bottom,#0087CC, #005CA3);
}

@media screen and (max-width: 800px) {
    .mjm-grid-text-img .mjm-text-box, .mjm-grid-img-text .mjm-text-box, .mjm-grid-button{
        margin: 0 auto;
        align-self: center;
    }
}    

.mjm-grid-button-container{
    margin: 30px auto 0 auto;
}

.mjm-grid-img{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contract-g1{
    background-image: var(--contract-g1);
    height: 488px;
}

.contract-g2{
    background-image: var(--contract-g2);
    height: 468px;
}

.contract-g3{
    background-image: var(--contract-g3);
    height: 406px;
}

.contract-g4{
    background-image: var(--contract-g4);
    height: 670px;
}

.lets-talk-container{
    background-color: #e5e5e5;
}

.lets-talk{
    background-image: var(--lets-talk);
    height: 388px;
    width: 50%;
    background-repeat: no-repeat;
    background-size: cover;  
    background-color: #e5e5e5 !important;
}

.gray-bg{
    background: #e5e5e5;
}

@media screen and (max-width:800px)
{

    .mjm-grid-button-container{
        text-align: center;
    }
    .mjm-grid-text{
        width: 50%;
        max-width: 50%;
        flex-grow: 1;
    }

    .contract-m-hero{
        display: flex;
        flex-direction: column;
        height: 559px; 
        width: 100%;
        background-image:
        linear-gradient(to bottom,rgba(0, 0, 0, 1),rgba(0, 0, 0, 0)),
        var(--contract-hero-image-m);
        background-repeat: no-repeat;
        background-position: 0 -65px;
        background-size: cover;
        align-items: center;
        align-content: center;
        flex-wrap: wrap;
    }


    .contract-m-hero h1{
        width: 80%;
        margin: 0 auto;
        text-align: center;
        margin-top: 36%;
    }    

    .mjm-intro{
        width: 84%;
    }


    .mjm-grid-text{
        padding-top: 40px;
        padding-bottom: 40px;
        align-self: center;
    }

        .mjm-text-box{
        width: 88%;
        margin: 0;
    }


    .contract-g1{
        background-image: var(--contract-g1-m);
        height: 390px;
    }

    .contract-g2{
        background-image: var(--contract-g2-m);
        height: 390px;
    }

    .contract-g3{
        background-image: var(--contract-g3-m);
        height: 390px;
    }

    .contract-g4{
        background-image: var(--contract-g4-m);
        height: 390px;
    }

    .lets-talk{
        width: 100%;
        background-image: var(--lets-talk-m);
    }

     .product-g1{
        margin-top: 20px;
     }

    .lets-talk p{
        height: 550px;
        width: 100%;
        text-align: center;
        background-repeat: no-repeat;
        background-size: cover;
        flex-grow: 1;   
        background-position: 0 0 0 -15%;
        
    }

    .mjm-grid-text-img, .mjm-grid-img-text{
        flex-wrap: wrap;
        align-content: center;
    }

    .mjm-grid-img{
        width: 100%;
    }

    .mjm-grid-text{
        width: 100%;
        min-width: 100%;
    }

    .contract-g2{
        width: 100%;
    }

}    

@media screen and (max-width: 1500px) {
    .mjm-grid-text{
         padding: 30px 0;
    }

    .lets-talk{

    }
}    

@media screen and (min-width: 801px) and (max-width: 1480px) {
    .mjm-grid-text-img .mjm-text-box {
        align-items: center;
        margin-left: 0;
        justify-content: space-evenly;
    }        

    .lets-talk-container{
        height: 388px;
        background-color: #e5e5e5;
    }

    .mjm-grid-img-text, .mjm-grid-text-img, .lets-talk{
        width: 100%;
        display: flex;
        flex-direction: row;
        background: #e5e5e5;
        background-repeat: no-repeat;
    }

    .mjm-grid-text{
        height: 100%;
    }

    .product-g1{
        background-image: var(--product-g1-m) !important;
        height: 100%;
        background-size: 100% 100%;
    }

    .product-g2{
        background-image: var(--product-g2-m) !important;   
        height: 100%;
        background-size: 100% 100%;        
    }

    .product-g3{
        background-image: var(--product-g3-m) !important;
        height: 100%;
        background-size: 100% 100%;        
    }

    .product-g4{
        background-image: var(--product-g4-m) !important;
        height: 100%;
        background-size: 100% 100%;        
    }

}

@media screen and (min-width: 801px) and (max-width: 1579px) {

    .lets-talk{
        background-image: var(--lets-talk);
        height: 600px;
        background-repeat: no-repeat;
    }
    .mjm-text-box{
        width: 68%;
        margin: 0;
    }

    .mgm-grid-button{

    }

    .mjm-grid-img, .mjm-grid-text{
        width: 100%;
        display: flex;
        
    }    
}    
@media screen and (max-width: 800px){
    .mjm-text-box p{
        text-align: center !important;
    }
}

@media screen and (max-width: 1579px) {
    .mjm-grid-text-img .mjm-text-box {
        margin: 0 auto;
    }        

    .mjm-grid-text-img, .mjm-grid-button{
        margin: 0;
        align-self: center;
        width: auto;
    }
}

/* Product Overview */
.product-hero-container{
    width: 100%;
    background-color: #000;
}
.product-hero{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: left;
    background-position: right;
    background-image:
    linear-gradient(to right,rgba(0, 0, 0, 1),rgba(0, 0, 0, 0)),
    var(--product-hero-image);  
    color: #fff; 
    height: 540px; 
}

@media screen and (min-width: 801px) and (max-width: 1500px) {
    .product-hero{
        min-height: 0px;
    }
}

.product-hero p{
    color: #fff;
    font-size: 18px;
}

.product-hero-text{
    position: relative;
    align-self: center;
    font-weight: 700;
}

@media screen and (min-width: 801px) {
    .mjm-grid-button-container.mjm-product-grid-button{
        margin-top: 50px;
    }
}    

.mjm-grid-button-container.mjm-product-grid-button{
    margin-top: 0;
}

.mjm-product-grid-button{
    margin: 0 auto !important;
}

.product-hero h1{
    font-size: 45px;
    color: #fff;
    position: relative;
    font-weight: 700;
}

.product-hero-text, .product-hero-text p{
    font-weight: 700;
}

.product-g1{
    background-image: var(--product-g1);
    height: 437px;
}

.product-g2{
    background-image: var(--product-g2);   
    height: 437px;    
}

.product-g3{
    background-image: var(--product-g3);
    height: 411px;    
}

.product-g4{
    background-image: var(--product-g4);
        height: 478px;
}

.mjm-bottom-text{
    width: 66%;
    margin: 120px auto;
}

.mjm-bottom-text ul{
    margin: 0;
    margin-block-start: 0;
    padding-inline-start: 20px;
}

.mjm-bottom-text ul li::marker {
    color: #0079C1;
}


@media screen and (min-width: 801px) and (max-width: 1024px) {
    .product-g1{
        background-image: var(--product-g1-m) !important;
        height: 100%;
    }

    .product-g2{
        background-image: var(--product-g2-m) !important;   
        height: 100%;      
    }

    .product-g3{
        background-image: var(--product-g3-m) !important;
        height: 100%;     
    }

    .product-g4{
        background-image: var(--product-g4-m) !important;
        height: 100%;
        background-size: 100% 100%;        
    }
}


@media screen and (max-width: 1024px) {
    .product-g1{
        background-image: var(--product-g1-m);

    }
    .product-g2{
        background-image: var(--product-g2-m);   
    }

    .product-g3{
        background-image: var(--product-g3-m);
    }

    .product-g4{
        background-image: var(--product-g4-m);
    }
    .product-g1, .product-g2, .product-g3, .product-g4{
        width: 100%; /* or another specific width */
        height: 790px;
    }

    .mjm-product-grid-button{
        overflow: visible;
    }
}



@media screen and (max-width: 800px) {

    .product-hero{
    height: 559px;
    background-size: 100%;
    background-image:
    linear-gradient(to bottom,rgba(0, 0, 0, 1) 40%,rgba(0, 0, 0, 0) 60%),
    var(--product-hero-image-m); 
        
    }

    .product-hero , .product-hero-text{
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .product-hero-text{
        width: 90%;
    }

    .product-hero-text p{
        font-size: 16px;
        font-weight: 700;
        text-align: center;
    }

    .product-hero h1{
        font-size: 36px;
        color: #fff;
        position: relative;
        font-weight: 700;
        text-align: center;
    }

    .product-g1{
        height: 390px;
    }

    .product-g2{ 
        height: 390px;    
    }

    .product-g3{
        height: 390px;    
    }

    .product-g4{
        background-image: var(--product-g4-m);
            height: 390px;
    }

    .mjm-bottom-text{
        width: 88%;
        margin: 40px auto;
    }

    .mjm-bottom-text  div.mjm-grid-text-title{
        text-align: left !important;
    }

    div.mjm-grid-text-title{
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .mjm-bottom-text ul{
        margin: 0;
        margin-block-start: 0;
        padding-inline-start: 20px;
    }

    .mjm-bottom-text ul li::marker {
        color: #0079C1;
    }

}

@media screen and (min-width: 801px) and (max-width: 1024px) {
    .product-hero-text{
        width: 80%;
        left: 5%;
        /* top: 15%; */
    }
}

@media screen and (min-width: 1025px) {
    .product-hero-text{
        width: 60%;
        /* top: 15%; */
        left: 15%;
    }
}

@media screen and (min-width: 1500px) {
    .product-hero-text{
        width: 40%;
        /* top: 8%; */
        left: 15%;
    }
}


/* Markets Served */

.mjm-img-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 66%;
    margin: 40px auto;
    justify-items: center;    
}

@media (max-width: 1024px){
    .mjm-img-grid{
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }
    .mjm-img-grid-img:last-child:nth-child(2n + 1) {
        grid-column: 1 / span 2;
        justify-self: center;
    }    
}

.mjm-img-grid-img{
    width: 100%;
    max-width: 360px;    
    height: 195px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    color: #fff;
    box-sizing: border-box;
}

.mjm-img-grid-img:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

/* REMOVE ALL MARGINS ON P */
.mjm-img-grid-img p{
    margin: 0;
    line-height: 1.2;
    color: #fff;
    width: 100%;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;    
}

.markets-hero{
    height: 532px;
    width: 100%;
    background-image: var(--markets-hero-image);
}

.markets-g1{
    background-image: var(--markets-g1);
}

.markets-g2{
    background-image: var(--markets-g2);    
}

.markets-g3{
    background-image: var(--markets-g3);    
}

.markets-g4{
    background-image: var(--markets-g4);    
}

.markets-g5{
    background-image: var(--markets-g5);    
}

.markets-g6{
    background-image: var(--markets-g6);    
}

.markets-g7{
    background-image: var(--markets-g7);    
}

.markets-g8{
    background-image: var(--markets-g8);    
}

.markets-g9{
    background-image: var(--markets-g9);    
}


@media screen and (max-width: 800px) {
    .markets-hero{
    display: flex;        
    height: 559px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-image: var(--markets-hero-image-m);
    }

    .mjm-img-grid-img{
        width: 100%;
        max-width: 100%;    
        height: 195px;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: flex-end;
        padding: 18px;
        color: #fff;
        box-sizing: border-box;
    }


    .markets-hero h1{
        text-align: center;
        width: 100%;
        margin-top: 40%;
    }

    .markets-g1{     
        width: 100%;
        height: 232px;
        background-image: var(--markets-g1-m);
    }

    .markets-g2{   
        width: 100%;
        height: 232px;             
        background-image: var(--markets-g2-m);    
    }

    .markets-g3{ 
        width: 100%;
        height: 232px;           
        background-image: var(--markets-g3);    
    }

    .markets-g4{ 
        width: 100%;
        height: 232px;           
        background-image: var(--markets-g4-m);    
    }

    .markets-g5{
        width: 100%;
        height: 232px;        
        background-image: var(--markets-g5-m);    
    }

    .markets-g6{ 
        width: 100%;
        height: 232px;          
        background-image: var(--markets-g6-m);    
    }

    .markets-g7{   
        width: 100%;
        height: 232px;             
        background-image: var(--markets-g7-m);    
    }

    .markets-g8{   
        width: 100%;
        height: 232px;        
        background-image: var(--markets-g8-m);    
    }

    .markets-g9{  
        width: 100%;
        height: 232px;         
        background-image: var(--markets-g9-m);    
    }
        
}