.blog-page {
    background: #FEFEF2;
    padding: 25px 20px;
}

/* HEADER */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 109px;
}

.blog-header h2 {
    color: #262626;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: 30px;
}

/* BUSCA */
.blog-search {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border-radius: 12px;
    padding: 18px 17px;
    width: 508px;
}

.blog-search img{
    height: 28px;
}

.blog-search input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    color: #545453;
    font-size: 20px;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
}

.blog-search button {
    border: none;
    background: transparent;
    cursor: pointer;
}

.grid-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 331px;                 
    gap: 30px;                             
}

/* BOTÃO */
.card-content a {
    background: #3A656E;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

/* PAGINAÇÃO */
.blog-pagination {
    display: flex;
    justify-content: center;
}

.blog-pagination .pagination {
    display: flex;
    gap: 8px;
}

.blog-pagination .page-link {
    border: none;
    background: #eae7dc;
    color: #3A656E;
    padding: 8px 14px;
    border-radius: 8px;
}

.blog-pagination .active .page-link {
    background: #3A656E;
    color: #fff;
}

.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

/* setas grandes */
.custom-pagination .arrow {
    font-size: 30px;
    color: #3A656E;
    text-decoration: none;
    padding: 0px 15px;
    border-radius: 12px;
    background: #eae7dc;
    transition: 0.3s;
}

.custom-pagination .arrow:hover {
    background: #3A656E;
    color: #fff;
}

.custom-pagination .arrow.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* números */
.custom-pagination .pages {
    display: flex;
    gap: 10px;
}

.custom-pagination .page {
    padding: 8px 14px;
    border-radius: 8px;
    background: #eae7dc;
    color: #3A656E;
    text-decoration: none;
    font-weight: 500;
}

.custom-pagination .page.active {
    background: #3A656E;
    color: #fff;
}

.blog-banner-wrapper{
    display:flex;
    justify-content:center;
    margin-bottom:40px;
}

.blog-banner{
    position:relative;
    width:100%;
    max-width:1603px;
    height:395px;
    border-radius:20px;
    overflow:hidden;
}

/* imagem respeitando proporção */
.blog-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.blog-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #4B4B4B;
    text-align: left;
    font-family: "Poppins", sans-serif;
}

.blog-text p {
    margin-bottom: 24px;
}

.blog-text h2,
.blog-text h3 {
    color: #3A656E;
    font-weight: 600;
    margin: 32px 0 16px;
}

.blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.blog-home-card-content h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-home-card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-voltar-topo {
    margin-top: 130px;
    margin-bottom: 24px;
}

.btn-voltar-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3A656E;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border: 1.5px solid #3A656E;
    border-radius: 999px;
    padding: 10px 24px;
    transition: all 0.25s ease;
    font-family: "Poppins", sans-serif;
}

.btn-voltar-blog:hover {
    background: #3A656E;
    color: #fff;
}

.seta-voltar {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.btn-voltar-blog:hover .seta-voltar {
    transform: translateX(-4px);
}

.blog-post-titulo {
    font-size: 32px;
    font-weight: 600;
    color: #323232;
    text-align: left;
    margin: 40px 0 8px;
    font-family: "Poppins", sans-serif;
}

.blog-post-data {
    display: block;
    text-align: left;
    color: #999999;
    font-size: 15px;
    margin-bottom: 32px;
}

.blog-content .container {
    max-width: 900px;
}

.blog-page .container-xxl{
    max-width: 1620px;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-horizontal {
        flex-direction: column;
    }

    .blog-image,
    .blog-info {
        width: 100%;
    }
}