/*solution boxes*/
.solutions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    place-items: center;
    grid-auto-rows: minmax(320px, auto);
    column-gap: 30px;
    row-gap: 70px;
    padding: 0px 10px 0px 10px;
    box-sizing: border-box;
    padding-bottom: 60px;
}

.solution {
    background-color: #fff;
    width: 300px;
   height: 500px;
    border-radius: 10px;    
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    box-sizing: border-box;    
}

.solution-link,
.solution-link:visited,
.solution-link:focus,
.solution-link:hover,
.solution-link:active {
    color: #00161E;
    text-decoration: none;
}

.solution-icon {
    position: relative;
    display: grid;
    place-items: center;
}

.gold-icon {
    background-color: #af9800;
    border-radius: 50%;
    padding: 3px;
    position: absolute;
    z-index: 1;
}

.solution-img {
    border-radius: 10px 10px 0px 0px;
}

.solution-text {
    padding: 10px 20px 0 20px;
    flex: 1 1 auto;    
   
}

.solution h3 {
    font-weight: 600;
    text-align: center;
    margin: 10px 0px 10px ;
}

.solution p {    
    margin: 10px 0px;
}

.solution-text ul {
    margin: 0px;
}

.gold-chevron {
    align-self: flex-end;
    margin: 0px 20px 10px 0px;
} 
/*End of solution boxes settings*/


/*Applicable industries*/
.industries-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 100px;
    justify-content: center;
}

.lefty-container {
    max-width: 530px;
    padding: 15px;
    margin-top: 100px;
    box-sizing: border-box;
}

.righty-container {
    max-width: 480px;
    margin-top: 150px;
    height: 610px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.righty-container img {
    max-width: 100%;
}

.righty-container img:nth-child(1) {
    border-radius: 10px 0px 0px 0px;
    grid-row: span 2;
}

.righty-container img:nth-child(2) {
    border-radius: 0px 0px 0px 10px;    
    grid-row-start: 3;
       
}

.righty-container img:nth-child(3) {
    border-radius: 0px 10px 0px 0px;
}

.righty-container img:nth-child(4) {
    border-radius: 0px 0px 10px 0px;
    grid-row-end: span 2
}

/*Gold check icons in Applicable industries*/
.gold-check-icon {
    background-color: #af9800;
    border-radius: 50%;
    padding: 3px;
    position: relative;
    top: 7px;
    margin-right: 10px;
    margin-left: 30px;
}

/*Change the flex order of Applicable industries so the image stack comes first when the screen size goes below 933px*/
    @media  screen and (max-width: 933px) {
        .industries-container {
            flex-direction: column-reverse;
            align-items: center;
    }

    }

    /*=====    WHY MASTMINDER? SECTION   ===*/
.dark-sec-2 {
    background-color: #005777;
    padding-bottom: 50px;
    
}

.ymm-container {
    padding-top: 100px;
} 

.y-box-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    padding: 10px;
}

.y-box {
   box-sizing: border-box;
   max-width: 25em;
   background-color: #006d95; 
   border-radius: 10px;
   padding: 20px 20px;
}

.y-box svg {
    float: left;
    margin-right: 10px;
}

.y-box h3  {
    font-weight: 600;
    margin: 10px 0;
}

.y-box p {
    margin-left: 60px;
}

/*If screen is more than 650px wide, and less than 728px, for the Why MastMinder section do this:*/
@media screen and (min-width: 650px) and (max-width: 728px) {
    .dark-sec-2 {
        height: auto;
    }
}

/*If screen is less than 650px wide, for the Why MastMinder section do this:*/
@media screen and (max-width:650px) {
    .y-box-container {
        grid-template-columns: 1fr;
        place-items: center;
    }

    .dark-sec-2 {
        height: auto;
    }
    
} /*End of why Mastminder section*/



/*=====    About us section on home page  =====*/
.light-sec-2 {
    margin: 70px 0px;
    padding: 15px;
}

.dtext-container h2,
.center {
    text-align: center;
}/*=== End of About us section ===*/



/*=== Testimonials section ====*/
.dark-sec-3 {
    background-color: #005777;
    padding: 10px 10px 100px;
}

.announcer {
    padding-top: 100px;
}

.announcer h2,
.announcer p {
    text-align: center;
}
.announcer p {
    padding-bottom: 30px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    gap: 70px;
    box-sizing: border-box;
}

.review-card {
    background-color: #ffffff;
    border-radius: 10px;
    max-width: 32em;
    height: 34em;
    padding: 0px 20px 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    
}

.review-text {
    margin: 0px 35px 30px;
    flex: 1 1 auto;
    
}

.review-text p:first-of-type {
    margin-top: 0px;
}

.reviewer-name-tag {
    margin: 20px 35px 0px;
    border-top: 2px solid #af9800;
    padding: 5px;
}

.reviewer-name-tag p:first-of-type {
    margin-bottom: 0px;
}

.reviewer-name-tag p:last-of-type {
    margin-top: 0px;

}
/*Making the testimonials section responsive*/
@media screen and (max-width:953px) {
    .reviews-container {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    row-gap: 70px;    
}
}
/*When screen is less than 390px wide, the review card expands/ contracts to fit the content as needed*/
@media screen and (max-width: 450px) {
    .review-card {
        height: auto;
    }
} /*=== End of Testimonials section ====*/
