/* ==========================================================================
   Section: Posts Grid (BEM)
   ========================================================================== */

.posts-grid-section {
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
}

.posts-grid-section--bg-light {
    background: var(--color-section-bg-alt, #F8F9FC);
    border-top: 1px solid var(--color-border-separator, #f1f1f1);
}

.posts-grid-section--bg-white {
    background: #ffffff;
    border-top: 1px solid var(--color-border-separator, #f1f1f1);
}

.posts-grid-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.posts-grid-section--articles .posts-grid-section__header {
    text-align: left;
    margin-bottom: 32px;
}

.posts-grid-section__subtitle {
    display: block;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-primary-blue, #2252ce);
    margin-bottom: 12px;
}

.posts-grid-section__title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary-navy, #152c5b);
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.posts-grid-section--articles .posts-grid-section__title {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-primary-dark, #12244f);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.posts-grid-section__description {
    font-size: 15px;
    color: var(--color-text-muted, #5e6e8c);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Grid layout */
.posts-grid-section__grid {
    display: grid;
    gap: 32px;
}

.posts-grid-section__grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid-section--articles .posts-grid-section__grid {
    gap: 28px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .posts-grid-section__grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .posts-grid-section__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .posts-grid-section {
        padding: 48px 0;
    }

    .posts-grid-section__header {
        margin-bottom: 24px;
    }

    .posts-grid-section__title {
        font-size: 24px;
    }

    .posts-grid-section__grid--cols-3 {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .posts-grid-section__title {
        font-size: 22px;
    }
}
