/* Ajustes específicos para a seção POPULARES */

/* Estilos gerais para os títulos das seções - Removido padding-left global */
/* .section-title {
    margin-bottom: 15px;
    font-size: 18px; 
    font-weight: 700;
    text-transform: uppercase;
} */

/* Aplicando padding-left apenas para a página inicial */
/* .home .section-title {
    padding-left: 5px;
} */

/* ... (outros estilos de .populares-section.css) ... */

/* Estilos para a Seção do Carrossel */
.custom-carousel-section {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.carousel-wrapper {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); 
    gap: 20px; 
    padding-bottom: 20px; 
}

.carousel-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.carousel-card-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.carousel-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-card:hover .carousel-card-thumbnail img {
    transform: scale(1.05);
}

.carousel-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.carousel-card-category {
    font-size: 0.75rem; 
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.carousel-card-category a {
    color: #0073aa;
    text-decoration: none;
}

.carousel-card-category a:hover {
    text-decoration: underline;
}

.carousel-card-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 10px;
    flex-grow: 1;
}

.carousel-card-title a {
    color: #333;
    text-decoration: none;
}

.carousel-card-title a:hover {
    color: #0073aa;
}

.carousel-card-excerpt {
    font-size: 0.875rem; /* 14px */
    color: #555;
    line-height: 1.5;
    margin-top: auto;
}

/* Layout de duas colunas para Últimos Artigos */
.latest-articles-section .two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

/* Estilizando os .post-card dentro da seção .latest-articles-section .two-column-grid */
.latest-articles-section .two-column-grid .post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.latest-articles-section .two-column-grid .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.latest-articles-section .two-column-grid .post-card .post-card-image {
    position: relative;
    padding-top: 56.25%; 
    overflow: hidden;
}

.latest-articles-section .two-column-grid .post-card .post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-articles-section .two-column-grid .post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.latest-articles-section .two-column-grid .post-card .post-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.latest-articles-section .two-column-grid .post-card .post-card-title {
    font-size: 1.125rem; 
    font-weight: 600; 
    line-height: 1.3;
    margin-bottom: 10px;
}

.latest-articles-section .two-column-grid .post-card .post-card-title a {
    color: #333;
    text-decoration: none;
}

.latest-articles-section .two-column-grid .post-card .post-card-title a:hover {
    color: #0073aa;
}

.latest-articles-section .two-column-grid .post-card .post-card-excerpt {
    font-size: 0.875rem; 
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.latest-articles-section .two-column-grid .post-card .post-card-meta {
    font-size: 0.75rem; 
    color: #777;
    margin-top: auto; 
}


@media (max-width: 768px) {
    .latest-articles-section .two-column-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
}

/* Estilos para a lista de posts populares na sidebar */
.popular-articles-sidebar-section .latest-post {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-articles-sidebar-section .latest-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-articles-sidebar-section .latest-post-title {
    font-size: 0.9rem; 
    font-weight: 500;
    line-height: 1.4;
}

.popular-articles-sidebar-section .latest-post-title a {
    color: #444;
}

.popular-articles-sidebar-section .latest-post-title a:hover {
    color: #0073aa;
}

/* Estilos para o título da seção com sublinhado e botão "Ver Mais" */
.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px; 
	padding-left: 5px;
    margin-left: 5px;
}

.section-title {
    display: inline-block; 
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px; 
    margin-bottom: 0;
    padding-left: 0 !important; /* Garantir que não haja padding à esquerda */
    margin-left: 0 !important; /* Garantir que não haja margin à esquerda */
    margin-right: 10px; 
    vertical-align: middle; 
    max-width: calc(100% - 70px); 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-title::after {
    content: "";
    position: absolute;
	margin-left:7px;
    bottom: 0;
    left: 0; /* Alinhar com o início do texto do .section-title */
    width: 50px; 
    height: 3px;
    background-color: #0073aa; 
}

.section-view-more-button {
    font-size: 0.85rem;
    font-weight: 600; 
    color: #0073aa;
    text-decoration: none;
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex; 
    align-items: center;
    transition: color 0.2s ease;
    white-space: nowrap; 
    flex-shrink: 0; 
}

.section-view-more-button::after {
    content: "\2192"; 
    margin-left: 4px; 
    font-weight: normal; 
}

.section-view-more-button:hover {
    color: #005683; 
    text-decoration: underline;
    background-color: transparent; 
}

@media (max-width: 380px) { 
    .section-title {
        font-size: 16px; 
        max-width: calc(100% - 65px); 
    }
    .section-view-more-button {
        font-size: 0.8rem;
    }
}

