/* assets/css/noticias.css */

/* Estilos para a seção de notícias */
.noticias-section {
    background-color: #f9f9f9;
}

.section-title {
    color: var(--primary-blue);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-orange);
}

.search-form .form-control {
    border-radius: 30px 0 0 30px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 30px 30px 0;
    padding-left: 20px;
    padding-right: 20px;
}

/* Cards de notícias */
.noticia-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.noticia-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-img {
    transform: scale(1.05);
}

.noticia-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.noticia-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.noticia-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.noticia-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.noticia-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.noticia-resumo {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.noticia-card .btn {
    align-self: flex-start;
}

/* Paginação */
.pagination .page-item.active .page-link {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.pagination .page-link {
    color: var(--primary-blue);
    margin: 0 5px;
    border-radius: 5px !important;
}

.pagination .page-link:hover {
    color: var(--primary-orange);
    background-color: #f8f9fa;
}

/* Página individual de notícia */
.noticia-single {
    background-color: #f9f9f9;
}

.noticia-meta {
    color: #666;
    font-size: 0.9rem;
}

.noticia-imagem-capa img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

.noticia-conteudo {
    font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
    line-height: 1.8;
    color: #444;
}

.noticia-conteudo p {
    margin-bottom: 1.5rem;
}

.noticia-conteudo img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.noticia-conteudo h2,
.noticia-conteudo h3,
.noticia-conteudo h4 {
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

.noticia-galeria img {
    transition: transform 0.3s ease;
}

.noticia-galeria img:hover {
    transform: scale(1.02);
}

.noticia-share .social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Seção de notícias relacionadas */
.noticias-relacionadas {
    background-color: #fff;
}

.noticias-relacionadas .section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.noticias-relacionadas .noticia-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.noticias-relacionadas .noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.noticias-relacionadas .noticia-img-container {
    position: relative;
    height: 200px;
}

.noticias-relacionadas .noticia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticias-relacionadas .noticia-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.noticias-relacionadas .noticia-body {
    padding: 15px;
}

.noticias-relacionadas .noticia-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.noticias-relacionadas .noticia-resumo {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .noticia-img-container {
        height: 180px;
    }
    
    .noticia-title {
        font-size: 1.1rem;
    }
    
    .noticia-share .social-share {
        flex-direction: column;
    }
    
    .noticia-share .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .noticias-relacionadas .section-title {
        font-size: 1.5rem;
    }
    
    .noticias-relacionadas .noticia-img-container {
        height: 180px;
    }
    
    .noticias-relacionadas .noticia-title {
        font-size: 1.1rem;
    }
}