/* Pge blog */
/* ---------- Hero / Cabeçalho ---------- */
.blog-hero {
    padding: clamp(8rem, 7vw, 5rem) 30px 30px;
    background: linear-gradient(135deg, rgba(255, 244, 236, 0.85), rgba(255, 232, 223, 0.9));
}
.blog-hero__wrap {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    width: min(1100px, 90vw);
    margin: 0 auto;
}
.blog-hero__tagline{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: rgba(193, 47, 58, 0.12);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a1422;
}
.blog-hero__title{
    color: #3f1418;
    font-family: "Syne", sans-serif;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}
.blog-hero__subtitle {
    max-width: 60ch;
    color: rgba(63, 20, 24, 0.75);
    margin: 0;
}

.blog-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}
.blog-cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: rgba(193, 47, 58, 0.12);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7a1422;
    text-decoration: none;
    transition: all 0.25s ease;
}
.blog-cat-badge:hover {
    background: rgba(193, 47, 58, 0.2);
    color: #53111c;
}
.blog-cat-badge.active {
    background: #7a1422;
    color: #fff;
}

.post-card {
    width: 400px;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover: apenas sombra e imagem, sem mover o card */
.post-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* --- Imagem destacada --- */
.post-card__thumb {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    height: 250px; /* altura fixa do bloco da imagem */
}

.post-card__thumb img {
    width: 100%;
    height: 100%; /* força ocupar toda a área do thumb */
    object-fit: cover; /* mantém proporção, corta excesso */
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.post-card__thumb:hover img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* --- Corpo --- */
.post-card__body {
    padding: 18px 20px 0;
    flex-grow: 1;
}
.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #777;
}
.post-card__category {
    background: #e7f5ec;
    color: #3a7b52;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
}
.post-card__date {
    color: #999;
    font-size: 0.8rem;
}
.post-card__title {
    font-size: 1.10rem;
    line-height: 1.4;
    margin: 0 0 14px;
    font-weight: 600;
}
.post-card__title a {
    color: #111;
    font-family: Syne,'sans-serif';
    text-decoration: none;
    transition: color 0.25s ease;
}
.post-card__title a:hover {
    color: #53111c;
}

/* --- Rodapé (autor) --- */
.post-card__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.post-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-card__author {
    font-size: 0.85rem;
    color: #444;
}

/* Correção de avatar no card de post */
.post-card__avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
}

/* Evita que estilos globais do tema distorçam imagens do footer */
.post-card__footer img {
    max-width: none;
    height: auto;
}


/* Responsivo */
@media (max-width: 768px) {
    .post-card__body {
        padding: 14px 16px 0;
    }
    .post-card__title {
        font-size: 1rem;
    }
    .post-card__footer {
        padding: 10px 16px 14px;
    }
    .post-card__avatar {
        width: 26px;
        height: 26px;
    }
    .post-card__thumb {
        height: 180px;
    }
    .post-card {
        margin: 0 auto;
    }
}

/* --- Conteúdo do post --- */
.single-post .blog-hero__title{
    color: #3f1418;
    font-family: "Syne", sans-serif;
    font-size: clamp(2.3rem, 5vw, 3rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}
.single-content-section {
    padding: 4rem 0;
}

.single-featured img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.single-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #3f1418;
}

.single-content h2, .single-content h3, .single-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #53111c;
    font-family: "Syne", sans-serif;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.single-content a {
    color: #7a1422;
    text-decoration: underline;
}

.single-content a:hover {
    color: #53111c;
}

/* Autor e navegação */
.single-author img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.single-nav a {
    color: #7a1422;
    font-weight: 500;
    text-decoration: none;
}

.single-nav a:hover {
    color: #53111c;
}
