/* Estilos para renderização de conteúdo do TinyMCE na visualização web */

.news-content {
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 1.5rem;
}

/* Formatação de texto */
.news-content strong,
.news-content b {
    font-weight: 700;
}

.news-content em,
.news-content i {
    font-style: italic;
}

.news-content u {
    text-decoration: underline;
}

/* Títulos */
.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.news-content h1 { font-size: 2rem; }
.news-content h2 { font-size: 1.75rem; }
.news-content h3 { font-size: 1.5rem; }
.news-content h4 { font-size: 1.25rem; }
.news-content h5 { font-size: 1.1rem; }
.news-content h6 { font-size: 1rem; }

/* Listas */
.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-content ul li,
.news-content ol li {
    margin-bottom: 0.5rem;
}

/* Citações */
.news-content blockquote {
    border-left: 4px solid #8B0000;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
}

/* Links */
.news-content a {
    color: #8B0000;
    text-decoration: underline;
}

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

/* Imagens */
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Tabelas */
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.news-content table th,
.news-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.news-content table th {
    background-color: #f8f9fa;
    font-weight: 700;
}

/* Código */
.news-content code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9em;
}

.news-content pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.news-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Suporte para cores de fundo (backcolor do TinyMCE) */
.news-content span[style*="background-color"] {
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
}

/* Alinhamento de texto */
.news-content [style*="text-align: center"] {
    text-align: center;
}

.news-content [style*="text-align: right"] {
    text-align: right;
}

.news-content [style*="text-align: justify"] {
    text-align: justify;
}

.news-content [style*="text-align: left"] {
    text-align: left;
}

/* Divisores horizontais */
.news-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 2px solid #e0e0e0;
}

/* Espaçamento adicional */
.news-content > *:first-child {
    margin-top: 0;
}

.news-content > *:last-child {
    margin-bottom: 0;
}
