#main-content {
    padding-bottom: 100px;
}

.row {
    row-gap: 30px;
}

/* Título com a barra vermelha lateral */
h1.category-title {
    display: flex;
    align-items: center;
    color: #303030;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 28px;
    line-height: 27px;
}

h1.category-title::after {
    content: '';
    background-color: #e32d3f;
    width: 100px;
    height: 3px;
    margin-left: 10px;
}

@media (min-width: 768px) {
    h1.category-title {
        font-size: 35px;
    }
    h1.category-title::after {
        width: 200px;
    }
}

/* Estilização dos Cards de Jornais */

/* Container Principal e Grid */
.posts .card {
    border: 1px solid #e1dee4 !important;
    border-radius: 8px !important;
    background-color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Efeito Hover na Capa do Jornal */
.posts .card:hover {
    transform: translateY(-5px);
    border-color: #e32d3f !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Container da Imagem da Capa (Ajuste de Proporção) */
.posts .card > a {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e1dee4;
    padding: 8px;
    height: auto !important; 
}

/* Imagem da Capa */
.posts .card > a img {
    object-fit: contain !important;
    transition: transform 0.3s ease;
}

.posts .card:hover > a img {
    transform: scale(1.03); /* Efeito suave de zoom na capa */
}

/* Placeholder caso não haja capa */
.posts .card .bg-secondary {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    font-size: 13px;
    font-weight: 500;
}

/* Corpo do Card e Título */
.posts .card-body {
    background-color: #ffffff;
    padding: 16px !important;
}

.posts .card-title {
    margin: 0;
}

.posts .card-title a {
    color: #303030 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.15s ease-in-out;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita o título a 2 linhas para alinhar os cards */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cor de destaque ao passar o mouse sobre a capa ou o título */
.posts .card:hover .card-title a,
.posts .card-title a:hover {
    color: #e32d3f !important;
}

/* Responsividade de Tipografia */
@media (min-width: 768px) {
    .posts .card-title a {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    .posts .card-title a {
        font-size: 17px;
    }
}

/* Paginação */
.post_nav {
    padding: 0;
    margin: 20px 0 20px;
    text-align: center;
}

.post_nav ul {
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

.post_nav li {
    display: inline-block;
    margin: 0 2px;
    padding: 0;
}

.post_nav li a, 
.post_nav li span {
    color: #fff;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    text-decoration: none;
    transition: 150ms all linear;
    background-color: #b6b6b6;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 14px;
    display: inline-block;
}

.post_nav li a:hover, 
.post_nav li.active span,
.post_nav li span.current {
    background-color: #e32d3f;
    color: #fff;
}