/* ============================================
   Blog — listagem e posts (Unitrier)
   Mantém a IDV do site: fonte Manrope (herdada do base.css)
   e a paleta de variáveis já definidas em :root
   ============================================ */

/* ---------------- Hero da listagem ---------------- */
.blog-hero {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 84px 0 72px;
    text-align: center;
}

.blog-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.blog-hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    max-width: 760px;
    margin: 0 auto 18px;
}

.blog-hero p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
}

/* ---------------- Grid de artigos ---------------- */
.blog-list {
    padding: 72px 0 90px;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: var(--text-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(3, 38, 69, 0.08);
    transition: var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(3, 38, 69, 0.16);
}

.blog-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.05);
}

.blog-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px 22px 24px;
}

.blog-card-body h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.blog-card-body p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-gray);
}

.blog-card-link {
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ---------------- Head banner do post ---------------- */
.post-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: var(--text-white);
    background-color: var(--primary-dark);
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 38, 69, 0.55) 0%, rgba(3, 38, 69, 0.9) 100%);
    z-index: 1;
}

.post-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 48px;
}

.post-cat {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.post-hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    max-width: 880px;
    margin-bottom: 18px;
}

.post-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 15px;
    opacity: 0.88;
}

.post-meta .dot {
    opacity: 0.5;
}

/* ---------------- Corpo do artigo ---------------- */
.post-wrap {
    background-color: var(--bg-light);
    padding: 56px 0 80px;
}

.post-back {
    max-width: 820px;
    margin: 0 auto 24px;
}

.post-back a {
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-article {
    background-color: var(--text-white);
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(3, 38, 69, 0.06);
}

.post-lead {
    font-size: 20px !important;
    line-height: 1.6 !important;
    color: var(--primary-dark) !important;
    font-weight: 500;
}

.post-article > p {
    font-size: 17px;
    line-height: 1.8;
    color: #26323d;
    margin-bottom: 22px;
}

.post-article h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin: 42px 0 16px;
}

.post-article h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 26px 0 10px;
}

.post-article ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.post-article ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.7;
    color: #26323d;
}

.post-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}

.post-article strong {
    font-weight: 700;
    color: var(--primary-dark);
}

.post-article a {
    color: var(--primary-blue);
    font-weight: 600;
}

.post-quote {
    font-size: 16px;
    line-height: 1.7;
    color: #3a4854;
    border-left: 3px solid var(--primary-blue);
    padding: 8px 0 8px 18px;
    margin: 0 0 24px;
    background-color: #f4f7fb;
}

.post-sources {
    font-size: 15px;
    color: var(--text-gray);
    margin-top: 28px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.post-tags span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    background-color: var(--bg-light);
    padding: 6px 14px;
    border-radius: 100px;
}

/* ---------------- CTA final ---------------- */
.post-cta {
    max-width: 820px;
    margin: 32px auto 0;
    background: linear-gradient(135deg, var(--primary-dark), #06203c);
    color: var(--text-white);
    border-radius: 16px;
    padding: 46px 48px;
    text-align: center;
}

.post-cta h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-cta p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 auto 24px;
    max-width: 540px;
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 52px;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-hero {
        min-height: 340px;
    }

    .post-hero h1 {
        font-size: 28px;
    }

    .post-article {
        padding: 32px 22px;
    }

    .post-cta {
        padding: 32px 24px;
    }
}
