/* ****** ABOUT SECTION  ****** */

#about .container > div {
    display: flex;
    align-items: center;
    padding: 0 100px;
    position: relative;
}

#about .background {
    border: 3px solid #34669A;
    width: 83%;
    height: 80%;
    border-radius: 16px;
    position: absolute;
    margin: auto;
    z-index: -1;
}

#about .image {
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    width: 40%;
}

#about .text {
    border-radius: 0px;
    background-color: #242C59;
    padding: 60px;
    position: absolute;
    right: 0;
    width: 50%;
    margin-right: 40px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition-delay: 0.5s;
}

#about .text p {
    font-size: 17px;
    color: #FFFFFF;
    line-height: 24px;
    display: block;
}

#about .text a {
    transition: all 0.5s ease;
}

#about .text a:hover p {
    color: #4687cc;
}

#about .text p.small {
    font-size: 12px;
    color: #4687cc;
}  

@media screen and (min-width: 1367px) and (max-width: 1500px) {

    #about .background {
        height: 90%;
    }

}

@media screen and (max-width: 1366px) {

    #about .container > div {
        padding: 0 70px;
    }

    #about .image {
        width: 50%;
    }

    #about .text {
        padding: 40px;
        margin-right: 0;
    }
}

@media screen and (max-width: 1190px) {

    #about .container > div {
        padding: 0;
    }

    #about .background {
        height: 90%;
    }
}


@media screen and (max-width: 900px) {
    #about .text {
        position: relative;
        width: auto;
        margin-top: -80px;
    }

    #about .image {
        position: relative;
        min-width: 360px;
    }

    #about .text p {
        font-size: 16px;
    }  

    #about .container > div {
        flex-direction: column;
    }

    #about .background {
        margin-top: 40px;
        min-width: 90%;
    }
}

@media screen and (max-width: 500px) {

    #about {
        padding-top: 40px;
    }
   
    #about .image {
        min-width: 80%;
        border-radius: 16px;
    }
    
    #about .text {
        padding: 20px;
        margin-top: -20px;
        border-radius: 6px;
    }
}


/* ****** SERVICES SECTION  ****** */

#services {
    width: calc(100vw - 5vw);
    margin-left: 2.5vw;
}

#services .leftItem {
    border-radius: 16px;
    border: 3px solid #34669A;
    position: absolute;
    left: 0;
    top: -110px;
    width: 20vw;
    height: 200px;
    margin-right: 40px;
    z-index: -1;
}

#services .rightItem {
    border-radius: 16px;
    border: 3px solid #34669A;
    position: absolute;
    right: 0;
    bottom: -100px;
    width: 20vw;
    height: 200px;
    margin-right: 40px;
    z-index: -1;
}

@media screen and (max-width: 820px) {
    #services .rightItem,
    #services .leftItem {
        width: 50vw;
    }

    #services .leftItem {
        top: -60px;
    } 
    #services .rightItem {
        bottom: -60px;
    }    
}

#services > div {
    background-color: #242C59;
    border-radius: 25px;
    padding: 30px 0;
    margin-top: 250px;
    margin-bottom: 200px;
    position: relative;
}

@media screen and (max-width: 500px) {
    #services > div {
        margin-bottom: 130px;
        margin-top: 200px;
    }
}


#services h1 {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: -1;
}

#services .image-container {
    position: relative;
}

#services .service .hover-mask {
    position: absolute;
    background-color: rgb(0, 0, 0,0.5);
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

#services .service:first-child {
    transition-delay: 0s;
}
#services .service:nth-child(2) {
    transition-delay: 0.4s;
}
#services .service:nth-child(3) {
    transition-delay: 0.8s;
}
#services .service:nth-child(4) {
    transition-delay: 1.2s;
}
#services .service:nth-child(5) {
    transition-delay: 1.6s;
}
#services .service:nth-child(6) {
    transition-delay: 2.0s;
}
#services .service:nth-child(7) {
    transition-delay: 2.4s;
}
#services .service:last-child {
    transition-delay: 2.8s;
}

@media screen and (max-width:1200px) {
    #services .service:first-child, #services .service:nth-child(2), #services .service:nth-child(3),
    #services .service:nth-child(4), #services .service:nth-child(5), #services .service:nth-child(6),
    #services .service:nth-child(7), #services .service:last-child {
        transition-delay: 0.2s;
    }
}

#services .service .hover-mask span {
  font-family: 'Lato-Bold',sans-serif;
  color: #FFFFFF;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
}

#services .service:hover .hover-mask {
    height: 254px;
}

#services a img {
    height: 250px;    
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
}

#services .list-container{
    display: flex;
    align-items: center;
    flex-flow: row;
    flex-wrap: wrap;
    position: relative;
    justify-content: space-around;
}

#services .list-container > div {
    position: relative;
    margin: 20px;
}

@media screen and (max-width: 860px) and (min-width: 800px) {
    #services a img {
        height: 230px;
    }
}


@media screen and (max-width: 500px) {
    #services .list-container > div {
       margin: 20px 0;
    }
    
}


#services .text {
    background-color: #34669A;
    border: 2px solid #FFFFFF;
    padding: 16px;
    width: fit-content;
    position: absolute;
    bottom: 0px;
    right: 0;
    left: 0;
    margin: 0 auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    border-radius: 6px;
    text-align: center;
}

#services .text span {
    font-family: 'Lato-Bold', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}



/* ****** BUTTON CALL SECTION  ****** */

#button_call > div {
    background-color: #34669A;
    padding: 60px 20px;
}

#button_call .container > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#button_call .container > div p {
    font-family: 'Lato-LightItalic', sans-serif;
    color: #FFFFFF;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
}

#button_call .container > div button {
    font-family: 'Lato-BlackItalic', sans-serif;
    color: #FFFFFF;
    font-size: 20px;
    line-height: 32px;
    background-color: #273681;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    cursor: pointer;
    transition: all 0.5s ease;
}

#button_call .container > div button:hover {
    background-color: #101a4b;
}


/* ****** MATERIALS SECTION  ****** */

#materials {
    padding-top: 60px;
    padding-bottom: 100px;
}

#materials .text  {
    display: flex;
    justify-content: center;
    align-items: center;
}

#materials p {
    font-size: 17px;
    color: #FFFFFF;
    line-height: 24px;
    text-align: center;
}

#materials .container {
    max-width: 1000px;
}

#materials .materials_list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
    flex-wrap: wrap;
    position: relative;
    justify-content: space-around;
    margin-top: 80px;
}

#materials .materials_list .centerItem {
    border-radius: 16px;
    border: 3px solid #34669A;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 75%;
    height: calc(100% + 40px);
    z-index: -1;
    transition-delay: 0.2s;
}

#materials .materials_list .centerItem_full {
    border-radius: 16px;
    background-color: #242C59;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 70%;
    height: 100%;
    z-index: -1;
    transition-delay: 0.8s;
}

@media screen and (max-width: 820px) {
    #materials .materials_list .centerItem {
        width: 100%;
    }
    #materials .materials_list .centerItem_full {
        width: calc(100% - 20px);
    }
}

#materials .materials_list .image-container {
    position: relative;
}

#materials .materials_list .material {
    position: relative;
    margin: 40px 20px 
}

#materials .materials_list a img {
    height: 300px;    
    margin-bottom: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
}

@media screen and (max-width: 460px) {
    #materials .materials_list a img {
        height: 250px;
    }
}

#materials .material .hover-mask {
    position: absolute;
    background-color: rgb(0, 0, 0,0.5);
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

#materials .material .hover-mask span {
  font-family: 'Lato-Bold',sans-serif;
  color: #FFFFFF;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
}

#materials .material:hover .hover-mask {
    height: 304px;
}

#materials .material .text {
    background-color: #34669A;
    border: 2px solid #FFFFFF;
    padding: 16px;
    width: fit-content;
    position: absolute;
    bottom: 0px;
    right: 0;
    left: 0;
    margin: 0 auto;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    border-radius: 6px;
}

#materials .material .text span {
    font-family: 'Lato-Bold', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    text-align: center;
}
