/* WPCM News Layout Block Styles v3.5 */
.wpcm-news-layout {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.wpcm-news-layout .news-title {
    margin: 0 0 25px 0;
    padding: 0;
}

.wpcm-news-layout .news-title a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.15;
}
.wpcm-news-layout .news-title a:hover {
    text-decoration: underline;
}

/* DESKTOP: Estrutura em duas colunas */
.news-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-content {
    flex: 1;
    min-width: 0;
    order: 1; /* Ordem padrão para desktop */
}

.news-images {
    flex: 0 0 40%;
    position: relative;
    max-width: 100%;
    order: 2; /* Ordem padrão para desktop */
}


.news-subtitle {
    font-size: 1.4rem;
    font-weight: normal;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 20px;
    font-style: italic;
}

.news-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.news-image-slideshow,
.news-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.news-image-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease-in-out; visibility: hidden; }
.news-image-slide.active { opacity: 1; visibility: visible; }
.news-image { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.slideshow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.dot { width: 12px; height: 12px; background: #ccc; border-radius: 50%; cursor: pointer; transition: background 0.3s ease; }
.dot.active { background: #333; }
.news-read-more { overflow: hidden; margin-top: 15px; }
.news-read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
    float: right;
}
.news-read-more-btn:hover { opacity: 0.85; }

/* ============================================== */
/* === AJUSTES PARA DISPOSITIVOS MÓVEIS (NOVO) === */
/* ============================================== */

/* Para telas de tablet e menores (ex: 968px) */
@media (max-width: 968px) {
    .wpcm-news-layout .news-title a { font-size: 48px !important; }

    /* Transforma o container em coluna para empilhar */
    .news-container {
        flex-direction: column;
    }

    /* NOVO: Reordena os elementos para a visão mobile */
    .news-content {
        order: 2; /* O conteúdo agora vem DEPOIS das imagens */
    }

    .news-images {
        order: 1; /* As imagens agora vêm PRIMEIRO (logo após o título) */
        flex: none; /* Reseta a propriedade flex */
        width: 100%;
        max-width: 100%; /* Ocupa toda a largura */
        margin-bottom: 30px; /* Adiciona espaço entre a imagem e o texto */
    }
}

@media (max-width: 768px) {
    .wpcm-news-layout .news-title a { font-size: 36px !important; }
}
