@import url('../assets/css/variables.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero {
    text-align: center;
}

.btn {
    background-color: var(--verde-escuro);
}

.btn:hover {
    background-color: var(--verde-hover);
}

.container_hero {
    padding: 18px 10px 26px;
}

.titulohero {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.hero h1 {
    font-size: clamp(30px, 3%, 44px);
    font-family: var(--poppins);
}

.herosubtitulo {
    max-width: 620px;
    margin: 0 auto 18px;
}

.filtros-container {
    width: auto;
    height: auto;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filtros-container .principio {
    width: 1300px;
    h1 {
        font-family: var(--poppins);
    }
}

.filtros-container h1 {
    font-size: 45px;
    margin: 10px 0;
}

.filtros-container .principio h4 {
    color: var(--verde-hover);
    font-weight: bold;
}

.filtros-container .area-busca {
    padding: 30px;
    border-radius: 25px;
    border: 2px solid #d7d4c0;
}

.filtros-container h3 {
    font-family: var(--inter);
    margin-top: 15px;
}

.filters__form {
    margin-bottom: 10px;
    display: flex;
    width: 100%;
    height: 50px;
    border: 2px solid #d7d4c0;
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--inter);
}

#busca {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 16px;
}

.icon {
    width: 60px;
    min-width: 60px;
    height: 100%;
    border-left: 2px solid #d7d4c0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    line-height: 1;
    color: var(--verde-escuro);
}

.filtros-container .btn-filtros {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    padding: 10px 16px;
    border: 1px solid #d7d4c0;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.filtros-container .btn-filtros:hover {
    background-color: var(--verde-hover);
    color: #fff;
}

.btn-filtros.ativo {
    background-color: var(--verde-hover);
    color: #fff;
}

.filtros-container #limpar {
    background-color: #A32638;
    color: #fff;
}

.filtros-container p {
    color: #7e7e7e;
    font-family: var(--inter);
}

.filtros-container hr {
    height: 1px;
    border: none;
    background-color: #d8d5cc;
    margin: 10px 0;
}

.btn-filtros.ativo {
    background-color: var(--verde-hover);
    color: white;
}

#cursos {
    padding-top: 20px;
}

.cards_cursos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
    gap: 20px;
    
}

.course-card {
    max-width: 345px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #000;
    text-decoration: none;
    animation: aparecer 500ms;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

.card_curso .dados {
    position: relative;
    background-color: cadetblue;
    min-height: 180px;
}

.card_curso .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 7px;
    color: #fff;
    font-weight: 600;
}

.card_curso .card__body {
    padding: 5px 20px 20px 20px;
}

.card_curso .card__body h3 {
    min-height: 40px;
    font-family: var(--poppins);
}

.card_curso .card__body p {
    min-height: 48px;
}

.card_curso .card__body span {
    display: inline-block;
    font-weight: 600;
}

.carregar_mais {
    padding: 20px 0;
    text-align: center;
}

@media screen and (max-width: 1000px) {
    #cursos {
        padding: 0 20px;
    }
}

@media screen and (max-width: 420px) {
    #cursos {
        padding: 0 5px;
    }
}