@charset "UTF-8";

/*Typical Devices Breakpoints
-----------------------------
Pequenas telas: até 600px
Celular: 600px até 768px
Tablet: 769px até 992px
desktop: 993 até 1200px
Grandes telas: 1201px e acima
*/

main {
    padding-top: 180px;
    padding-bottom: 40px;
}

#cursos {
    width: 80%;
    margin: auto;
}

#tituloCursos {
    display: flex;
    gap: 10px;
    width: fit-content;
    color: #484848;
    background-color: #fff;
    padding: 12px 15px;
    align-items: center;
    font-weight: normal;
    font-size: 18px;
}

#cursoMaisRecente {
    background-color: white;
}

#cursoExibTop {
    background-color: #484848;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    color: white;
}

#cursoExibTop > div:last-child {
    width: 100%;
    background-color: white;
}

#cursoExibTop > div {
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#cursoExibTop > div h2 {
    font-size: 20px;
}

#cursoExibTop > div > div {
    display: flex;
    align-items: center;
}

#cursoExibTop > div > div > img {
    width: 25px;
    margin-right: 5px;
    color: white;
}

#cursoExibTop > div > div > div > p:first-child {
    font-size: 20px;
    color: #c8e7ff;
}

#cursoExibTop > div > div > div {
    width: 100%;
}

#cursoExibTop > div > div > div > p {
    font-size: 18px;
    height: fit-content;
}

#cursoExibTop > div > div a {
    font-size: 18px;
    color: #2d2d2d;
    cursor: pointer;
    background-color: white;
    padding: 15px;
    display: block;
    height: fit-content;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

#cursoExibBottom {
    padding: 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#cursoExibBottom > div {
    display: flex;
    justify-content: space-between;
}

.cursosExibBottomLine {
    height: 1px;
    background-color: #474545;
}

#cursoExibBottom a {
    font-size: 15px;
    color: #40A9FF;
    text-decoration: none;
}

#cursoExibBottom p {
    font-size: 15px;
    color: #2d2d2d;
}

#cursoExibBottom > div > p:first-child {
    font-weight: bold;
}

/* Tabela de Cursos */
#cursosAntigos {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.anoCurso {
    background-color: white;

}

.anoCurso > h1 {
    padding: 15px;
    padding-bottom: 5px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table th {
    background-color: #484848;
    text-align: left;
    color: white;
    padding: 15px;
}

table th:nth-last-child(1), table th:nth-last-child(2) {
    width: 14%;
}

table td {
    cursor: pointer;
    user-select: none;
    padding: 15px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

table tr:nth-child(even) {
    background-color: #666666;
    color: #c8e7ff;
}

table tr {
    transition: background-color 0.15s ease-in-out;
}

table tr:hover {
    background-color: #ff7c01;
}

@media screen and (min-width: 600px) and (max-width: 768px) {
    #cursos {
        width: 500px;
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    #cursos {
        width: 600px;
    }
}

@media screen and (min-width: 993px) {
    main {
        padding-top: 15vw;
        padding-bottom: 3vw;
    }

    #cursos {
        width: 70vw;
        margin: auto;
    }

    #tituloCursos {
        gap: 1vw;
        padding: 0.81vw 1.3vw;
        font-size: 1.5vw;
    }

    #cursoExibTop {
        flex-direction: row;
        justify-content: space-between;
    }

    #cursoExibTop > div:last-child > img {
        margin: auto 0;
    }

    #cursoExibTop > div {
        padding: 2.5vw 2.5vw;
        gap: 0vw;
    }

    #cursoExibTop > div h2 {
        font-size: 2vw;
        margin-bottom: 2vw;
    }

    #cursoExibTop > div > div {
        margin-bottom: 2vw;
    }

    #cursoExibTop > div > div:last-child {
        margin-bottom: 0vw;
    }

    #cursoExibTop > div > div > img {
        width: 3vw;
        margin-right: 1vw;
        margin-top: 0;
        margin-bottom: auto;
    }

    #cursoExibTop > div > div > div > p:first-child {
        font-size: 1.8vw;
    }

    #cursoExibTop > div > div > div > p {
        font-size: 1.2vw;
    }

    #cursoExibTop > div > div a {
        font-size: 1.8vw;
        padding: 1vw;
        margin-top: 0.5vw;
    }

    #cursoExibBottom {
        padding: 2vw 3vw;
        gap: 2vw;
    }

    .cursosExibBottomLine {
        height: 0.05vw;
    }

    #cursoExibBottom > div {
        justify-content: start;
    }

    #cursoExibBottom a {
        font-size: 1.3vw;
        width: 19vw;
    }

    #cursoExibBottom p {
        font-size: 1.3vw;
    }

    #cursoExibBottom p:first-child {
        width: 18vw;
    }
    /* Tabela de Cursos */
    #cursosAntigos {
        margin-top: 3vw;
        gap: 3vw;
    }

    .anoCurso > h1 {
        padding: 1.5vw;
    }

    table th {
        text-align: left;
        padding: 1vw;
        font-size: 1.2vw;
        height: 5vw;
    }
    
    table td {
        padding: 1vw;
        font-size: 1.2vw;
        height: 5vw;
    }

    #cursoExibTop > div:last-child {
        padding: 0;
        background-color: #718292;
        width: 50%;
    }
}