/**
 * CidadeTur BR - Estilos da Lista de Noticias
 */

.news-section {
    background-color: var(--primary-blue);
    padding: 20px;
    width: 100%;
    margin: 3px 0;
}

.title-news {
    margin-bottom: 20px;
}

.title-news h2 {
    color: #333333;
    font-size: 16px;
    font-weight: normal;
    margin: 0;
    text-align: left;
}

.title-news::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--sidebar-background);
    margin-top: 15px;
}

.news-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.news-entry {
    width: 100%;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    width: 100%;
}

.news-image {
    flex-shrink: 0;
    width: 85px;
    min-height: 0;
    background-color: #c0c0c0;
    overflow: visible;
    border: none;
    padding: 0;
    cursor: pointer;
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.news-title {
    color: var(--ct-news-title, #003399);
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-item:hover .news-title {
    color: var(--ct-orange, #FFCC99);
}

.news-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-details p {
    color: var(--ct-info-text, #333333);
    font-size: 10px;
    margin: 0;
    line-height: 1.4;
}

.news-details-value {
    color: var(--ct-news-title, #003399);
}

.news-source-link {
    color: var(--ct-news-title, #003399);
    text-decoration: none;
}

.news-source-link:hover {
    text-decoration: underline;
}

.news-source-unavailable {
    color: #7a7a7a;
    text-decoration: none;
}

.news-separator {
    width: 100%;
    height: 1px;
    background-color: var(--sidebar-background);
    margin: 0;
}

.news-empty {
    color: #333333;
    font-size: 13px;
    padding: 8px 0;
}

/* Card de notícia (pág. 1 do PDF): imagem, data simplificada,
   título cinza e bloco do perfil à direita com ícones de contato */

/* A imagem fica FORA do quadro branco (correção 13/07): a seção deixa de ser
   um caixote branco único — cada chamada é imagem + caixa branca de texto,
   com espaço cinza entre uma chamada e outra (fundo da coluna aparece). */
.news-section.news-section-cards {
    background-color: transparent;
    padding: 0;
}

.news-section-cards .news-list {
    gap: 20px;
}

.news-section-cards .news-separator {
    display: none;
}

.news-card .news-title a {
    color: #888888;
}

.news-card .news-title a:hover {
    color: var(--ct-news-title, #003399);
}

.news-card .news-card-image {
    display: block;
}

.news-card .news-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-card-body {
    background-color: #FFFFFF;
    padding: 8px 14px 16px;
}

.news-card-date {
    font-size: 12px;
    color: #999999;
    padding: 4px 0 8px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 8px;
}

.news-card .news-title {
    margin: 0 0 10px;
    /* "Aumente um pouco o tamanho desta letra" (correção 13/07) */
    font-size: 16px;
}

.news-card-profile {
    text-align: right;
}

.news-card-profile-name {
    display: block;
    color: var(--ct-news-title, #003399);
    font-size: 14px;
    text-decoration: none;
}

.news-card-profile-name:hover {
    text-decoration: underline;
}

.news-card-profile-city {
    display: block;
    color: #666666;
    font-size: 13px;
    margin-top: 2px;
    text-decoration: none;
}

.news-card-profile-city:hover {
    text-decoration: underline;
}

.news-card-icons {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.news-card-icons a {
    width: 26px;
    height: 26px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    font-size: 13px;
    text-decoration: none;
}

.news-card-icons a:hover {
    color: #333333;
    border-color: #999999;
}

.btn-exibir-mais {
    /* CARREGAR MAIS no tom de laranja padrão (#FFCC99) — pág. 1 do PDF */
    width: 100%;
    background-color: var(--ct-orange, #FFCC99);
    color: #ffffff;
    border: 2px solid var(--ct-orange, #FFCC99);
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    transition: all 0.3s;
    text-align: center;
}

.btn-exibir-mais:hover {
    background-color: var(--text-light-hover);
    border-color: var(--text-light-hover);
    color: #ffffff;
}

.btn-exibir-mais[disabled] {
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

.btn-exibir-mais.is-end-label {
    background-color: var(--text-light);
    border-color: var(--text-light);
    white-space: nowrap;
    font-size: inherit;
    line-height: inherit;
}

.news-image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10001;
    padding: 20px;
}

.news-image-modal.active {
    display: flex;
}

.news-image-modal-dialog {
    position: relative;
    max-width: min(92vw, 800px);
    max-height: 90vh;
    background: #ffffff;
    padding: 12px;
}

.news-image-modal-dialog img {
    max-width: 100%;
    max-height: calc(90vh - 24px);
    display: block;
    margin: 0 auto;
}

.news-image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
}

.news-image-modal-prev,
.news-image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.news-image-modal-prev { left: -50px; }
.news-image-modal-next { right: -50px; }

.news-image-modal-prev:hover,
.news-image-modal-next:hover {
    background: rgba(0, 0, 0, 0.85);
}

@media (max-width: 600px) {
    .news-image-modal-prev { left: 5px; }
    .news-image-modal-next { right: 5px; }
}

@media (max-width: 768px) {
    .news-section {
        padding: 15px;
    }

    .news-item {
        gap: 12px;
        padding: 12px 0;
    }

    .news-image {
        width: 80px;
        min-height: 0;
    }

    .news-details p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 12px;
    }

    .title-news h2 {
        font-size: 16px;
    }

    .news-image {
        width: 70px;
        min-height: 0;
    }

    .news-title {
        font-size: 13px;
    }
}
