.custom-post-slider-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Mantém o espaço entre as colunas internas */
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.custom-post-slider-wrapper h3 {
    color: #273564;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #273564;
    padding-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Coluna Esquerda: Slider de Anúncios --- */
.column-left {
    flex: 1;
    min-width: 300px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.random-posts-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    /* Remover 'width: 500%;' aqui, e deixar que o 'flex-basis' do item defina a largura total */
    /* Se a largura 500% causa problema de "zoom", a forma mais segura é deixar o flexbox gerenciar a largura total com base nos itens */
    width: auto; /* Deixa o navegador calcular, ou defina um valor explícito no item */
    left: 0;
}

.random-posts-slider .slider-item {
    /* flex: 0 0 100%; -- Esta linha pode ser o problema se ela estiver fazendo o item ser 100% do 'random-posts-slider' que talvez não esteja com a largura esperada */
    /* Vamos especificar flex-basis diretamente para uma largura relativa ao pai do slider */
    flex: 0 0 calc(100% / 1); /* ALTERADO: Garante que cada item ocupe 100% da largura visível do slider */
    width: 100%; /* Garante a largura completa do contêiner visível */
    box-sizing: border-box;
    padding: 0;
    position: relative;
    height: 390px;
    overflow: hidden;
    border-radius: 0;
    display: block;
    background-color: transparent;
}

.random-posts-slider .slider-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Imagem preenche 100% da largura do .slider-item */
    height: 100%; /* Imagem preenche 100% da altura do .slider-item */
    object-fit: fill; /* Mantido 'cover' para cortar sem distorcer */
    border-radius: 0;
    transition: transform 0.3s ease;
    z-index: 1;
}

.random-posts-slider .slider-item:hover img {
    transform: scale(1.03);
}

.random-posts-slider .slider-item .content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
}

.random-posts-slider .slider-item h4 {
    margin-top: 0;
    font-size: 1.4em;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.random-posts-slider .slider-item h4 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.random-posts-slider .slider-item h4 a:hover {
    color: #273564;
}

.random-posts-slider .slider-item p {
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* --- Coluna Direita: Posts de Destaque --- */
.column-right {
    flex: 1;
    min-width: 300px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.featured-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Primeira Linha: Último Post de Destaque */
.featured-post-top {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 0;
    border-bottom: 1px dashed #ddd;
    background-color: transparent;
    box-shadow: none;
}

.featured-post-top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
    transition: transform 0.3s ease;
}
.featured-post-top:hover img {
    transform: scale(1.03);
}

.featured-post-top .content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
    text-align: left;
}

.featured-post-top h4 {
    margin-top: 0;
    font-size: 1.4em;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.featured-post-top h4 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post-top h4 a:hover {
    color: #273564;
}

.featured-post-top p {
    font-size: 0.95em;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}


/* Segunda Linha: Penúltimo e Antepenúltimo Posts de Destaque */
.featured-post-bottom {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.small-featured-post {
    flex: 1;
    position: relative;
    height: 120px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
}

.small-featured-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
    transition: transform 0.3s ease;
}
.small-featured-post:hover img {
    transform: scale(1.03);
}

.small-featured-post .content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
    text-align: left;
}

.small-featured-post h5 {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.small-featured-post h5 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.small-featured-post h5 a:hover {
    color: #273564;
}

/* --- Post Effect (Hover) --- */
.post-effect {
    cursor: pointer;
}

.post-effect img, .post-effect a {
    transition: none;
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .custom-post-slider-wrapper {
        flex-direction: column;
    }

    .column-left,
    .column-right {
        min-width: unset;
        width: 100%;
    }

    .featured-post-bottom {
        flex-direction: column;
    }

    .small-featured-post {
        height: 200px;
    }

    .random-posts-slider .slider-item {
        height: 200px; /* Mantém 200px em mobile para anúncios */
    }
    .featured-post-top {
        height: 300px;
    }
}