body {
    overflow: hidden;
}
#cursos {
    width: 100%;
}

.cursos-all{
    width: 65%;
    margin-top: 100px;
    margin-left: 17.5%;
}

.cursos-all h3 {
    width: 209px;
    font-family: 'Montserrat-Regular';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    color: #7F0B0C;
}

.cursos-all h1 {
    width: 467.5px;
    font-family: 'Roboto-Regular';
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    color: #7F0B0C;
    margin-bottom: 20px;
}

.cursos-all a {
    width: 60%;
    margin-left: 30px;
    height: 42px;
    color: #fff;
    background: #7F0B0C;
    border-radius: 2px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.cursos-all a:hover {
        background-color: #a11013;
        transition: background-color 0.5s ease;
}

.cursos-all p {
    width: 90%;
    margin-top: 10px;
    margin-left: 30px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    color: #7F0B0C;
    overflow: hidden;
}

.cursos-description {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}


.cursos-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    align-items: center;
    justify-content: center;
}

.curs {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.cursos-top {
    margin-bottom: 20px;
}

.cursos-card {
    width: 31%;
}

.cursos-card img {
    width: 100%;
}

.cursos-card div{
    height: 150px;
    width: 99%;
    display: flex;
    align-items: start;
    justify-content: space-around;
    flex-direction: column;
    border-left: #7F0B0C solid 1px;
    border-right: #7F0B0C solid 1px;
    border-bottom: #7F0B0C solid 1px;
}

#introduction{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.sub-introduction {
    margin-top: 100px;
    margin-bottom: 100px;
}

.sobre-img {
    position: absolute;
    margin-top: -350px;
    margin-left: 32%;
}

.sobre-img h1{
    width: 466px;
    font-family: 'Montserrat-Regular';
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    color: #7F0B0C;
}

.sobre-p1 {
    width: 288.5px;
    font-family: 'Montserrat-Regular';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    color: #7F0B0C;
     margin-top: 5px;
}

.sobre-p2 {
    width: 466px;
    font-family: 'Roboto-Regular';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    color: #8C8C8C;
    margin-top: 5px;
}

.sobre-img a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 16px;
    gap: 8px;
    width: 189px;
    height: 42px;
    background: #7F0B0C;
    border-radius: 2px;
    font-family: 'Roboto-Regular';
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
    margin-top: 10px;
}

.sobre-img a:hover {
    background-color: #a11013;
    transition: background-color 0.5s ease;
}

@media screen and (min-width: 1900px) {
    .sobre-img {
        /*margin-top: -18%;*/
    }
}

@media screen and (min-width: 1706px) {
    .sobre-img {
        /*margin-left: 28%;*/
    }
}

@media screen and (max-width:1450px){
    .cursos-all {
        width: 75%;
        margin-left: 12.5%;
    }
    .sobre-img {
        /*margin-top: -26%;*/
        margin-left: 37%;
    }
}

@media screen and (max-width:1380px){
    .photo {
        right: 100px;
        top: 320px;
    }
}

@media screen and (max-width:1250px){
    .photo{
    top: 370px;
    }
    .cursos-all {
        width: 90%;
        margin-left: 5%;
    }
    .sobre-img {
        /*margin-top: -30%;*/
        margin-left: 45%;
    }
}

@media screen and (max-width:1075px){
    .sobre-img {
        /*margin-top: -35%;*/
        margin-left: 50%;
    }
}

@media screen and (max-width:1042px){
    #home{
        height: 632px;
    }
    .photo {
        width: 35%;
        right: 32.5%;
        top: 455px;
    }
    .cursos-description {
        flex-direction: column;
    }
    .sobre-img {
        margin-top: -400px;

        margin-left: 15px;
    }
    .sobre-img h1{
        width: 229px;
    }
    .sobre-p1 {
        width: 290px;
    }
    .sobre-p2 {
        width: 362px;
    }
    .curs {
        flex-direction: column;
        margin-bottom: 0;
        align-items: center;
    }
    .cursos-card  {
        width: 50%;
        margin-bottom: 10px;
    }
}

@media screen and (max-width:900px){
    .cursos-all{
        display: flex;
        flex-direction: column;
        width: 80%;
        margin-left: 10%;
        align-items: center;
        justify-content: center;
    }
    .cursos-card  {
        width: 70%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width:800px){
    #home{
        height: 632px;
        margin-bottom: 140px;
    }
    .photo {
        width: 55%;
        right: 22.5%;
        top: 455px;
    }
}

@media screen and (max-width: 600px) {
    #home{
        height: 529px;
        margin-bottom: 110px;
    }
    .cursos-all h1 {
        width: 350px;
    }
    .cursos-card  {
        width: 80%;
        margin-bottom: 30px;
    }
}


@media screen and (max-width: 450px) {
    #home{
        height: 600px;
        margin-bottom: 130px;
    }
    .cursos-all h1 {
        width: 300px;
    }
    .photo {
        width: 80%;
        right: 10%;
        top: 519px;
    }
    .cursos-card  {
        width: 90%;
    }
}

@media screen and (max-width: 475px) {
    #home {
        height: 630px;
    }
    .photo {
        top: 570px;
    }
    .cursos-all h1 {
        width: 260px;
    }
}
