/* =========================================================
   COGNITUS - PÁGINA DE MATERIAIS
========================================================= */

.materiais-page {
    background: #f7faff;
    min-height: 70vh;
}

.materiais-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HERO */

.materiais-hero {
    padding: 72px 0 48px;
    text-align: center;
}

.materiais-eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    color: #2e92df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.materiais-hero h1 {
    max-width: 720px;
    margin: 0 auto 18px;

    color: #102f62;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.materiais-hero p {
    max-width: 620px;
    margin: 0 auto;

    color: #69768a;
    font-size: 17px;
    line-height: 1.7;
}


/* VITRINE */

.materiais-vitrine {
    padding: 12px 0 90px;
}

.materiais-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}


/* CARD */

.material-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #fff;
    border: 1px solid #e3ebf5;
    border-radius: 22px;

    box-shadow: 0 10px 35px rgba(18, 59, 122, .05);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(18, 59, 122, .10);
}


/* IMAGEM */

.material-card-imagem {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 330px;
    padding: 20px;

    background: #f2f7fd;
    text-decoration: none;
}

.material-card-capa {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.material-card-sem-imagem {
    color: #8996a9;
    font-size: 14px;
}


/* CONTEÚDO */

.material-card-conteudo {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 25px;
}

.material-card-tag {
    margin-bottom: 10px;

    color: #2e92df;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
}

.material-card h2 {
    margin: 0 0 10px;

    font-size: 21px;
    line-height: 1.25;
}

.material-card h2 a {
    color: #102f62;
    text-decoration: none;
}

.material-card h2 a:hover {
    color: #2e92df;
}

.material-card-subtitulo {
    margin: 0 0 22px;

    color: #6b778a;
    font-size: 14px;
    line-height: 1.6;
}


/* PREÇOS */

.material-card-precos {
    display: flex;
    align-items: baseline;
    gap: 9px;

    margin-top: auto;
    margin-bottom: 20px;
}

.material-card-preco-antigo {
    color: #929cac;
    font-size: 13px;
    text-decoration: line-through;
}

.material-card-preco {
    color: #123b7a;
    font-size: 25px;
    font-weight: 800;
}


/* BOTÕES */

.material-card-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.material-card-detalhes,
.material-card-comprar {
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition: .2s ease;
}

.material-card-detalhes {
    color: #123b7a;
    background: #edf4fc;
}

.material-card-detalhes:hover {
    background: #e1edf9;
}

.material-card-comprar {
    color: #fff !important;
    background: #123b7a;
}

.material-card-comprar:hover {
    background: #0d3269;
    transform: translateY(-1px);
}


/* SEM PRODUTOS */

.materiais-vazio {
    max-width: 600px;
    margin: 30px auto;
    padding: 70px 30px;

    text-align: center;

    background: #fff;
    border: 1px solid #e4ecf6;
    border-radius: 24px;
}

.materiais-vazio h2 {
    color: #123b7a;
}


/* TABLET */

@media (max-width: 900px) {

    .materiais-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* CELULAR */

@media (max-width: 620px) {

    .materiais-container {
        width: min(100% - 28px, 1180px);
    }

    .materiais-hero {
        padding: 48px 0 36px;
    }

    .materiais-hero h1 {
        font-size: 34px;
    }

    .materiais-hero p {
        font-size: 15px;
    }

    .materiais-grid {
        grid-template-columns: 1fr;
    }

    .material-card-imagem {
        height: 360px;
    }

}