/* ======================================== */
/*                BLOG MAIN                 */
/* ======================================== */

.blogMain {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ======================================== */
/*               BLOG SEARCH                */
/* ======================================== */

.blogSearch {
    margin-bottom: 60px;
}

.blogSearch__form {
    display: flex;
    gap: 16px;
}

.blogSearch__input {
    flex: 1;
    height: 58px;

    padding: 0 20px;

    border: 1px solid #DDDDDD;
    border-radius: 14px;

    outline: none;

    font-size: 1rem;
    font-family: inherit;

    transition: 0.2s ease;
}

.blogSearch__input:focus {
    border-color: #1B9849;
}

.blogSearch__button {
    height: 58px;

    padding: 0 28px;

    border: none;
    border-radius: 14px;

    background: #1B9849;
    color: #FFF;

    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;

    cursor: pointer;
    transition: 0.2s ease;
}

.blogSearch__button:hover {
    background: #15793A;
}

/* ======================================== */
/*                BLOG POSTS                */
/* ======================================== */

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

/* ======================================== */
/*                BLOG CARD                 */
/* ======================================== */

.blogCard {
    overflow: hidden;

    border: 1px solid #ECECEC;
    border-radius: 18px;

    background-color: #FFF;

    transition: 0.25s ease;
}

.blogCard:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.blogCard__image {
    width: 100%;
    height: 230px;

    object-fit: cover;

    display: block;
}

.blogCard__content {
    padding: 28px;
}

.blogCard__date {
    display: inline-block;

    margin-bottom: 16px;

    font-size: 0.9rem;
    font-weight: 500;

    color: #1B9849;
}

.blogCard__title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;

    color: #111;

    margin-bottom: 16px;
}

.blogCard__description {
    font-size: 0.98rem;
    line-height: 1.8;

    color: #666;

    margin-bottom: 24px;
}

.blogCard__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;

    font-size: 0.96rem;
    font-weight: 600;

    color: #1B9849;

    transition: 0.2s ease;
}

.blogCard__link:hover {
    gap: 14px;
}

/* ======================================== */
/*              BLOG PAGINATION            */
/* ======================================== */

.blogPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 60px;
    flex-wrap: wrap;
}

/* Botões base */
.blogPagination__btn {
    min-width: 42px;
    height: 42px;

    padding: 0 14px;

    border-radius: 12px;
    border: 1px solid #E5E5E5;

    background: #FFF;
    color: #333;

    font-size: 0.95rem;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover */
.blogPagination__btn:hover:not(:disabled) {
    border-color: #1B9849;
    color: #1B9849;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

/* Ativo */
.blogPagination__btn--active {
    background: #1B9849;
    border-color: #1B9849;
    color: #FFF;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(27, 152, 73, 0.25);
}

/* Disabled */
.blogPagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Ícones (setas) mais leves */
.blogPagination__btn i {
    font-size: 0.9rem;
}

/* ======================================== */
/*            EMPTY STATE BLOG             */
/* ======================================== */
.blogPosts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* quando estiver vazio */
.blogPosts:has(.blogEmptyState) {
    display: flex;
    justify-content: center;
    align-items: center;
}
.blogEmptyState {
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    gap: 14px;
}

/* Ícone suave */
.blogEmptyState__icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(27, 152, 73, 0.08);
    color: #1B9849;

    font-size: 1.6rem;
}

/* Título */
.blogEmptyState__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
}

/* Texto */
.blogEmptyState__text {
    font-size: 0.98rem;
    color: #777;
    max-width: 360px;
    line-height: 1.6;
}

/* ======================================== */
/*                RESPONSIVE                */
/* ======================================== */

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

@media (max-width: 768px) {
    .blogMain {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .blogSearch__form {
        flex-direction: column;
    }

    .blogSearch__button {
        width: 100%;
    }

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

    .blogCard__image {
        height: 220px;
    }

    .blogCard__content {
        padding: 24px;
    }

    .blogCard__title {
        font-size: 1.2rem;
    }
}