/* ===== Blog AFR Advocacia ===== */
.blog-hero {
    position: relative;
    min-height: clamp(180px, 30vh, 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    overflow: hidden;
}

.blog-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(160, 82, 45, 0.28) 0%, rgba(26, 26, 26, 0) 62%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.85) 100%);
}

.blog-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-light);
}

.blog-hero__content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--text-light);
}

.blog-hero__content p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.blog-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 56px 20px 72px;
}

.blog-main--single {
    max-width: 780px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.post-card {
    background: #fff;
    border: 1px solid #e7e5e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card__cover {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
}

.post-card__cover--empty {
    background-image: radial-gradient(120% 120% at 50% 0%, rgba(160, 82, 45, 0.45) 0%, #1a1a1a 70%);
}

.post-card__body {
    padding: 20px 22px 26px;
}

.post-card__date {
    font-size: 0.82rem;
    color: #7d7a74;
    text-transform: lowercase;
}

.post-card__title {
    margin: 8px 0 10px;
    font-size: 1.22rem;
    line-height: 1.3;
    color: var(--primary-color);
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: #55524d;
}

.post-card__more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.pagination__item {
    min-width: 40px;
    padding: 9px 12px;
    text-align: center;
    border: 1px solid #ddd9d2;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
}

.pagination__item.is-current,
.pagination__item:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #55524d;
}

.blog-empty h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.preview-flag {
    background: #fff4e0;
    border: 1px solid #f0cf96;
    color: #7a5312;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.post__header {
    position: static;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 0 8px;
    background: none;
    box-shadow: none;
    color: inherit;
    z-index: auto;
}

.post__title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    line-height: 1.2;
    color: var(--primary-color);
}

.post__subtitle {
    margin-top: 12px;
    font-size: 1.1rem;
    color: #55524d;
}

.post__meta {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    font-size: 0.88rem;
    color: #7d7a74;
}

.post__cover {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px 0 8px;
    display: block;
}

.post__content {
    font-size: 1.07rem;
    line-height: 1.8;
    color: #2e2c29;
}

.post__content h2,
.post__content h3,
.post__content h4 {
    margin: 32px 0 12px;
    color: var(--primary-color);
    line-height: 1.3;
}

.post__content h2 { font-size: 1.6rem; }
.post__content h3 { font-size: 1.3rem; }
.post__content h4 { font-size: 1.12rem; }

.post__content p { margin: 0 0 18px; }

.post__content ul,
.post__content ol {
    margin: 0 0 18px 22px;
}

.post__content li { margin-bottom: 8px; }

.post__content a {
    color: var(--secondary-color);
}

.post__content blockquote {
    margin: 22px 0;
    padding: 14px 20px;
    border-left: 4px solid var(--secondary-color);
    background: #faf7f3;
    color: #44413d;
    border-radius: 0;
}

.post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.post__content code {
    background: #f1efea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.93em;
}

.post__content hr {
    border: none;
    border-top: 1px solid #e2dfd9;
    margin: 32px 0;
}

.post__cta {
    margin-top: 48px;
    padding: 28px 26px;
    background: var(--primary-color);
    border-radius: 12px;
    color: var(--text-light);
    text-align: center;
}

.post__cta h3 {
    color: var(--text-light);
    font-size: 1.25rem;
}

.post__cta p {
    margin: 10px 0 20px;
    color: rgba(255, 255, 255, 0.82);
}

.post__cta a {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 50px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .blog-main {
        padding: 40px 16px 56px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
