/* ============================== */
/* BLOG POSTS INDEX PAGE STYLES   */
/* ============================== */

/* Base: mantém o fundo azul da marca */
body {
    background: var(--brand-blue);
}

/* ---------------------------------------- */
/* 1. HERO SECTION                          */
/* ---------------------------------------- */
.blog-posts-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--brand-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-posts-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(50, 58, 204, 0.95) 0%,
        rgba(42, 48, 179, 0.98) 100%
    );
    z-index: 1;
}

.blog-posts-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-posts-hero .eyebrow {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-yellow);
    margin-bottom: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.blog-posts-hero h1 {
    font-family: "Dosis", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--brand-yellow);
    margin-bottom: 24px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-posts-hero .hero-description {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------------------------------------- */
/* 2. RECENT ARTICLES SECTION               */
/* ---------------------------------------- */
.blog-recent-posts {
    padding: 80px 0 60px;
    background: white;
}

.blog-recent-posts .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho comum de seção */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .eyebrow {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-blue);
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.7;
}

.section-header h2 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
}

.section-header p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-700);
    max-width: 650px;
    margin: 0 auto;
}

/* Grade de posts do blog */
.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ---------------------------------------- */
/* 3. BLOG POST CARD                        */
/* ---------------------------------------- */
.blog-post-card {
    background: var(--bg-light, #f7f8ff);
    border: 1px solid #eef0ff;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: var(--brand-yellow);
}

.blog-post-card-category {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-blue);
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.7;
}

.blog-post-card h3,
.blog-post-card h4 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-post-card h3 a,
.blog-post-card h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-card h3 a:hover,
.blog-post-card h4 a:hover {
    color: var(--brand-blue-hero);
}

.blog-post-card > p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-700);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Link "Read article" */
.blog-post-card .text-link {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.blog-post-card .text-link::after {
    content: "→";
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.blog-post-card .text-link:hover {
    color: var(--brand-blue-hero);
    border-bottom-color: var(--brand-yellow);
}

.blog-post-card .text-link:hover::after {
    transform: translateX(4px);
}

/* ---------------------------------------- */
/* 4. EDITORIAL GROUPS SECTION              */
/* ---------------------------------------- */
.blog-editorial-groups {
    padding: 60px 0;
    background: white;
}

.blog-editorial-groups > .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grupo editorial individual */
.blog-editorial-group {
    padding: 60px 0;
    border-bottom: 1px solid #eef0ff;
}

.blog-editorial-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.editorial-group-header {
    margin-bottom: 32px;
    position: relative;
    padding-left: 16px;
    border-left: 4px solid var(--brand-yellow);
}

.editorial-group-header h3 {
    font-family: "Dosis", sans-serif;
    font-weight: 600;
    color: var(--brand-blue);
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.editorial-group-header p {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-700);
    max-width: 700px;
}

/* Estado vazio do grupo */
.blog-editorial-group .empty-state {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--ink-400, #9ca3af);
    font-style: italic;
    padding: 20px;
    background: var(--bg-light, #f7f8ff);
    border-radius: 8px;
    text-align: center;
    border: 1px dashed #d1d5db;
}

/* Grade de posts dentro do grupo editorial */
.blog-editorial-group .blog-post-grid {
    margin-top: 16px;
}

/* Ajuste de tamanho para o card quando está dentro de um grupo editorial */
.blog-editorial-group .blog-post-card {
    background: white;
    border: 1px solid #eef0ff;
}

.blog-editorial-group .blog-post-card:hover {
    background: var(--bg-light, #f7f8ff);
    border-color: var(--brand-yellow);
}

/* ---------------------------------------- */
/* 5. RESPONSIVIDADE                        */
/* ---------------------------------------- */
@media (max-width: 768px) {
    .blog-posts-hero {
        padding: 50px 0 40px;
    }

    .blog-posts-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .blog-recent-posts {
        padding: 60px 0 40px;
    }

    .blog-post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-editorial-group {
        padding: 50px 0;
    }

    .editorial-group-header {
        padding-left: 12px;
        border-left-width: 3px;
    }

    .editorial-group-header h3 {
        font-size: 1.4rem;
    }

    .blog-post-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-posts-hero .container,
    .blog-recent-posts .container,
    .blog-editorial-groups .container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .blog-post-card h3,
    .blog-post-card h4 {
        font-size: 1.15rem;
    }

    .blog-editorial-group {
        padding: 40px 0;
    }

    .editorial-group-header h3 {
        font-size: 1.3rem;
    }
}