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

.blog {
    background-color: var(--cor-branco-fundo);
    padding: 15vh 0;
}

.blog__title {
    grid-column: 2 / span 12;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--cor-preto-texto);
}

.blog__list {
    grid-column: 2 / span 12;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.blog__item {
    background-color: var(--cor-branco-fundo);
    border: 1px solid var(--cor-cinza-cards);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog__link {
    text-decoration: none;
    color: inherit;
}

.blog__item__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--cor-preto-texto);
    transition: color 0.3s ease;
}

.blog__item__excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cor-preto-texto);
}

.blog__item__title:hover {
    color: var(--cor-vermelho-destaque);
}

@media (max-width: 1000px) {
    .blog__list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog__item__title {
        font-size: 1.5rem;
    }

    .blog__item__excerpt {
        font-size: 1rem;
    }
}

@media (min-width: 1001px) and (max-width: 1400px) {
    .blog__list {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1001px) and (max-width: 1800px) {
    .blog__title {
        font-size: 36px;
    }

    .blog__item__title {
        font-size: 26px;
    }

    .blog__item__excerpt {
        font-size: 14px;
    }
}

/* ====== Post Único (single.php) ====== */

.post {
    padding: 15vh 0;
    background-color: var(--cor-branco-fundo);
}

.post__container {
    grid-column: 3 / span 8;
}

.post__meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--cor-preto-texto);
    margin-bottom: 2rem;
}

.post__content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--cor-preto-texto);
}

.post__content p {
    margin-bottom: 1.5rem;
    max-width: 75ch;
}

.post__content h2,
.post__content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cor-preto-texto);
}

.post__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem 0;
}

.post__content blockquote {
    border-left: 4px solid var(--cor-vermelho-destaque);
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.post__content ul,
.post__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

@media (max-width: 1000px) {
    .post__container {
        grid-column: 2 / span 12;
        padding: 0 1rem;
    }

    .post__title {
        font-size: 2rem;
    }

    .post__content {
        font-size: 1rem;
    }
}

@media (min-width: 1001px) and (max-width: 1800px) {
    .post__title {
        font-size: 36px;
        line-height: 1.3;
    }
}