/* novidades.css */

.news-page {
    padding: 2rem 0;
    display: flex;
    gap: 30px;
}

.news-list-container, .post-single-container {
    flex: 3;
}

.sidebar {
    flex: 1;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    color: var(--color-primary);
    margin-top: 0;
}

/* Lista de Novidades (Resumos) */
.post-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    align-items: flex-start; /* Alinha o conteúdo à esquerda */
}

/* NOVO: Imagens quadradas com bordas arredondadas */
.post-summary-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.post-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-summary-content h3 a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.post-summary-content h3 a:hover {
    color: var(--color-secondary);
}

.post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Post Único */
.post-single {
    margin-bottom: 2rem;
}

.post-single h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.post-image-full {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.post-text {
    text-align: justify;
    margin-bottom: 2rem;
}

.post-author-bio {
    font-style: italic;
    color: #555;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.post-sources a {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin: 5px;
}

/* Seção de Comentários */
.comments-section {
    margin-top: 3rem;
}

.comment-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

.comment-form button {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-form button:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Sidebar Recentes */
.sidebar-post {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.sidebar-post-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content h5 {
    margin: 0;
    line-height: 1.3;
}

.sidebar-post-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-post-content a:hover {
    color: var(--color-secondary);
}

/* Responsividade */
@media (max-width: 768px) {
    .news-page {
        flex-direction: column;
    }
}