@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template: "header header header"
                   "aside section side"
                   "footer footer footer";
    grid-template-columns: 12% 1fr 12%;
    grid-template-rows: 100px 1fr 40px;
    background: #f3f3f3;
}

header{
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container{
    box-sizing: border-box;
    width: 100%;
    height: 100%;

    padding: 0px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.562);

    background: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/iq98/admin/elrecurso/bgheader3.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.cursos-title{
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
}

/* input de buscador */

.container-input {
    position: relative;
}

.input {
    width: 150px;
    padding: 10px 0px 10px 40px;
    border-radius: 9999px;
    border: solid 1px #333;
    transition: all .2s ease-in-out;
    outline: none;
    opacity: 0.8;
}

.container-input svg {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translate(0, -50%);
}

.input:focus {
    opacity: 1;
    width: 250px;
}

/* Fin buscador*/

section{
    grid-area: section;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.cards{
    width: 100%;

    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.card{
    
    max-width: 300px;
    width: 100%;
    /* min-height: 500px; */
    padding: 20px;
    margin: 20px;
    background-color: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;


    min-height: 230px;
}

.card-header{
    width: 100%;
    display: flex;
    padding: 5px;
    border-radius: 25px 0;
    align-items: center;
    justify-content: center;
    background-image: url(https://sfo3.digitaloceanspaces.com/e-fuente/e-fuentedevida.net/iq98/admin/elrecurso/bglogin2.jpg);
    background-position: center center;
    background-size: cover;
}

.card-header img{
    width: 100px;
    filter: drop-shadow(0 0 10px black);
}

.certif-tit{
    font-weight: 600;
    font-size: 16px;
    color: #00243C;
}

.btn-entrar{
    background-color: #012B6F;
    border: 1px solid white;
    width: 100%;
    text-align: center;
    padding: 7px;
    border-radius: 15px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;

    transition: .3s ease all;
}

/* Diseño compaginación */

.pagination{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

.current{
    margin: 0px 10px;
    padding: 3px 22px;

    background-color: white;
    color: #00243C;
    border-radius: 10px;
    border: 1px solid #00243C;

    font-weight: 500;
}

.navegacion{
    margin: 0px 10px;
    padding: 3px 22px;

    background-color: #00243C;
    color: white;
    border-radius: 10px;
    border: 1px solid #00243C;
    
    transition: .3s ease all;    
}

.navegacion:hover{
    transform: scale(1.2);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 15px;
}

.btn-entrar:hover{
    background-color: white;
    border: 1px solid #012B6F;
    transform: scale(.8);
    color: #012B6F;
}

footer{
    grid-area: footer;
}

@media screen and (max-width:650px ) {
    .header-container{
        flex-direction: column;
    }

    body{
        grid-template-rows: 150px 1fr 40px;
    }
    
}

@media screen and (max-width:500px ) {
    .cursos-title{
        font-size: 18px;
    }
    
}

@media screen and (max-width:400px ) {
    .cursos-title{
        display: none;
    }

    body{
        grid-template-rows: 100px 1fr 40px;
    }
    
}
