﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #222;
    line-height: 1.7;
}

/* ================================
   Cabeçalho
================================= */
.header {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

    .header h1,
    .header h2 {
        margin: 0;
        font-size: 2em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .header img {
        height: 80px;
    }

/* ================================
   Conteúdo e layout
================================= */
.container {
    padding-top: 40px;
    padding-bottom: 60px;
}

h2, h3, h4 {
    color: #111;
    font-weight: bold;
}

p, li {
    color: #333;
    font-size: 1rem;
}

a {
    color: #0056b3;
    text-decoration: none;
}

    a:hover {
        color: #003d80;
        text-decoration: none;
    }

/* ================================
   Cards de notícia com imagem
================================= */
.news-list {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.news-item-horizontal {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.news-content {
    flex: 1;
}

    .news-content h3 {
        font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 1.3rem;
        margin: 0;
        color: #000;
        font-weight: bold;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limita a 2 linhas */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
        white-space: normal;
    }

    /* Evita o sublinhado azul */
    .news-content a {
        text-decoration: none;
        color: inherit;
    }

        .news-content a:hover {
            text-decoration: none;
            color: inherit;
        }

            .news-content a:hover h3 {
                color: #000;
            }

    .news-content p {
        font-size: 0.95rem;
        color: #555;
    }

/* ================================
   Notícias sem imagem
================================= */
.news-item {
    background: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.4;
    color: #000;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

    .news-item a {
        text-decoration: none;
        color: #000;
    }

        .news-item a:hover {
            color: #007bff;
        }

/* ================================
   Carrossel
================================= */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

.card-img-overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
}



/* ================================
   Compartilhamento
================================= */
.share-buttons {
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

    .share-buttons button {
        background: #000;
        color: #fff;
        border: none;
        padding: 10px 20px;
        margin: 5px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        white-space: nowrap;
    }

        .share-buttons button:hover {
            background: #444;
        }

/* ================================
   Responsividade
================================= */
@media (max-width: 768px) {
    .news-item-horizontal {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .news-thumbnail {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    footer {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-content h3 {
        font-size: 1.1rem;
    }

    .news-content p {
        font-size: 0.85rem;
    }

    .header img {
        height: 60px;
    }
}

.news-item p,
.news-content p,
.news-item-horizontal .news-content p {
    font-size: 1rem;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Garante no máximo 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3); /* 3 linhas de altura máxima */
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}





/* Chamadas com imagem (grid superior) */
.card .card-title {
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem; /* ajuste conforme necessário */
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 0.3rem;
}

/* Link da chamada (remover sublinhado e cor azul) */
.card a {
    text-decoration: none;
    color: inherit;
}

/* Correção para títulos e descrições saindo da borda no mobile */
.news-content h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #000;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-height: calc(1.4em * 2);
}

.news-content p {
    font-size: 0.95rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* limita a 3 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
}

/* Garante que links não causem quebra */
.news-item-horizontal a,
.news-content a {
    display: block;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
}

/* Evita quebra forçada no título + descrição */
.news-content {
    width: 100%;
    max-width: 100%;
}




