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

/* Cabeçalho de Páginas (Blog, etc) */
.page-header {
    background-color: var(--dark-color);
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.page-header__title {
    font-size: var(--h1-font-size);
    color: var(--primary-gold);
}

.page-header__subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin-inline: auto;
    margin-top: 1rem;
}

/* Lista de Posts */
.blog-list .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media screen and (min-width: 768px) {
    .blog-list .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-card {
    background-color: var(--container-color);
    border-radius: .75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
}
.post-card:hover {
    transform: translateY(-8px);
}

.post-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz esta área crescer para preencher o espaço */
}

.post-card__meta {
    display: flex;
    gap: 1rem;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
}

.post-card__category {
    color: var(--primary-gold);
    font-weight: var(--font-semibold);
}

.post-card__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.75rem;
}

.post-card__title a {
    color: var(--title-color);
    transition: color .3s;
}
.post-card__title a:hover {
    color: var(--primary-gold);
}

.post-card__excerpt {
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card__read-more {
    font-weight: var(--font-semibold);
    color: var(--primary-gold);
    transition: letter-spacing .3s;
}

.post-card__read-more:hover {
    letter-spacing: 1px;
}

/* Página de Post Individual */
.post-header {
    text-align: center;
    max-width: 720px;
    margin-bottom: 3rem;
}
.post-header__category {
    font-weight: var(--font-bold);
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.post-header__title {
    font-size: var(--h1-font-size);
    margin: 1rem 0;
}
.post-header__excerpt {
    font-size: 1.2rem;
    color: var(--text-color-light);
    line-height: 1.6;
}
.post-header__author-date {
    margin-top: 1.5rem;
    color: var(--text-color-light);
}

.post-full__image {
    margin: 0 0 3rem 0;
}
.post-full__image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: .75rem;
}

.post-content {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.post-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-content p {
    margin-bottom: 1.5rem;
}
.post-content a {
    color: var(--primary-gold);
    text-decoration: underline;
}
.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.post-content li {
    margin-bottom: .5rem;
}
.post-content blockquote {
    border-left: 3px solid var(--primary-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-color-light);
}
.post-content pre {
    background-color: var(--dark-color);
    color: #f8f8f2; /* Cor de texto comum para temas escuros */
    padding: 1.5rem;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto; /* Adiciona scroll se o código for muito longo */
    font-family: 'Courier New', Courier, monospace;
}
