/* =========================================
   BLOG
========================================= */

#blog {
    background: #fff;
}


/* =========================================
   CARD
========================================= */

.blog-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    background: #fff;

    border: 1px solid var(--weet-border);
    border-radius: 18px;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.blog-card:hover {
    transform: translateY(-6px);

    border-color: rgba(0, 105, 110, .18);

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .10);
}


/* =========================================
   IMAGEM
========================================= */

.blog-card-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #f3f6f6;
}


.blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}


.blog-card:hover .blog-card-image img {
    transform: scale(1.045);
}


/* pequeno degradê na imagem */

.blog-card-image::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 35%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .10),
        transparent
    );

    pointer-events: none;
}


/* =========================================
   CONTEÚDO
========================================= */

.blog-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 1.6rem;
}


/* Categoria */

.blog-card-tag {
    display: inline-flex;

    width: fit-content;

    margin-bottom: .9rem;

    padding: .35rem .7rem;

    border-radius: 50px;

    background: var(--weet-surface-soft);

    color: var(--weet-primary);

    font-size: .72rem;
    line-height: 1;

    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .05em;
}


/* =========================================
   TÍTULO
========================================= */

.blog-card-title {
    margin: 0 0 .8rem;

    font-size: 1.18rem;
    line-height: 1.4;

    font-weight: 800;
}


.blog-card-title a {
    color: var(--weet-primary);

    text-decoration: none;

    transition: color .2s ease;
}


.blog-card-title a:hover {
    color: var(--weet-secondary);
}


/* =========================================
   DESCRIÇÃO
========================================= */

.blog-card-description {
    margin-bottom: 1.3rem;

    color: var(--weet-muted);

    font-size: .94rem;
    line-height: 1.65;
}


.blog-card-description p {
    margin: 0;
}


/* =========================================
   LEIA MAIS
========================================= */

.blog-card-link {
    display: inline-flex;
    align-items: center;

    gap: .5rem;

    width: fit-content;

    margin-top: auto;

    color: var(--weet-primary);

    text-decoration: none;

    font-size: .9rem;
    font-weight: 800;
}


.blog-card-link i {
    font-size: 1rem;

    transition: transform .3s ease;
}


.blog-card-link:hover {
    color: var(--weet-primary);
}


.blog-card-link:hover i {
    transform: translateX(5px);
}


/* =========================================
   RESPONSIVO
========================================= */

@media (max-width: 991.98px) {

    .blog-card-content {
        padding: 1.4rem;
    }

}


@media (max-width: 767.98px) {

    .blog-card {
        border-radius: 15px;
    }

    .blog-card-content {
        padding: 1.3rem;
    }

    .blog-card-title {
        font-size: 1.08rem;
    }

    .blog-card-description {
        font-size: .92rem;
    }

}