.hero {
    .d-flex {
        gap: 16px;
        flex-wrap: wrap;
    }

    .blog-cats button {
        text-wrap-mode: nowrap;
    }

    .btn {
        padding: 12px 24px;
        border-radius: 50px;
        border: 2px solid;
        flex: 0 0 auto;

        &.ativo {
            color: #fff !important;

            &:nth-child(3n + 1) {
                background-color: #002035;
            }

            &:nth-child(3n + 2) {
                background-color: #3189BF;
            }

            &:nth-child(3n) {
                background-color: #F58220;
            }
        }

        &:nth-child(3n + 1) {
            border-color: #002035;
            color: #002035;
        }

        &:nth-child(3n + 2) {
            border-color: #3189BF;
            color: #3189BF;
        }

        &:nth-child(3n) {
            border-color: #F58220;
            color: #F58220;
        }
    }

}

.blog-list {
    min-height: 90svh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.nav-btn {
    color: white;
    background-color: #f58220;
    border-radius: 50%;
    width: 58px;
    height: 58px;
    border: solid 1px #F58220;
    text-align: center;
    align-content: center;
    line-height: 34px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.blog-card {
    background: #f8faff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;

    h2 {
        line-height: 27px;
        font-size: 24px;
        font-weight: 600;
    }

    .card-image img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 5 / 3;
        max-height: 300px;
        object-fit: cover;
    }

    .card-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        height: 100%;
        justify-content: space-between;
    }

    .card-meta {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        color: #555;
    }

    .post-category {
        background: #e3f2fd;
        color: #0d47a1;
        padding: 4px 8px;
        border-radius: 8px;
        font-weight: 500;
    }

    .post-title a {
        color: #0d47a1;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: bold;
    }

    .read-more {
        align-self: flex-start;
        padding: 6px 12px;
        border: 1px solid #f57c00;
        border-radius: 20px;
        color: #f57c00;
        text-decoration: none;
        font-size: 0.9rem;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .read-more:hover {
        background: #f57c00;
        color: #fff;
    }
}

.blog-card:hover {
    transform: translateY(-5px);
}