/**
 * @file
 * Estilos para a página de Notícias Jurídicas (legal_news)
 * Baseado no modelo: pagina-noticia-final-v2-corpo.html
 */

:root {
    --primary-green: #2d5f2e;
    --secondary-green: #4a8f4d;
    --light-green: #e8f5e9;
    --accent-green: #66bb6a;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #f8f9fa;
    --blue: #1976d2;
    --whatsapp: #25D366;
    --facebook: #1877f2;
    --twitter: #1da1f2;
    --linkedin: #0077b5;
    --instagram: #E4405F;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    background: var(--primary-green);
    padding: 12px 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: white;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.75rem;
    opacity: 0.7;
}

#breadcrumbs.container {
    max-width: unset;
    width: 100%;
    background: #2d5f2e;
}

#breadcrumbs nav {
    max-width: 1320px;
    margin: 0 auto !important;
}

#breadcrumbs .breadcrumb-item:not(:first-child) a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

#breadcrumbs .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 500;
}

#breadcrumbs .breadcrumb-item:first-child a {
    color: #ffffff;
}


/* ============================================
   BOTÃO VOLTAR
   ============================================ */
.back-button-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid var(--secondary-green);
    color: var(--secondary-green);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(74, 143, 77, 0.1);
}

.back-button:hover {
    background: var(--secondary-green);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(74, 143, 77, 0.2);
}

.back-button i {
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* ============================================
   MAIN CONTAINER (Layout 2 colunas)
   ============================================ */
.main-container {
    max-width: 1320px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ============================================
   ARTICLE CONTENT (Coluna Principal)
   ============================================ */
.article-content {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* META INFORMAÇÕES */
.article-meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-green);
}

.article-meta-line {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

.meta-item i {
    color: var(--secondary-green);
}

.meta-item.tribunal {
    background: var(--light-green);
    color: var(--secondary-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
}

.reading-time {
    background: var(--light-green);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ÁREAS DO DIREITO - Tags */
.article-areas {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.areas-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.area-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* TÍTULO DA NOTÍCIA */
.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-green);
    margin-bottom: 30px;
}

/* BOX DE RESUMO (Verde) */
.article-summary-box {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1e4620 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(45, 95, 46, 0.25);
}

.summary-box-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.summary-box-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ============================================
   CONTEÚDO DA NOTÍCIA (Tipografia Padrão)
   ============================================ */
.news-content {
    max-width: 100%;
}

.news-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-family: Georgia, 'Times New Roman', serif;
}

/*.news-content p:first-of-type {
    font-size: 1.1875rem;
    font-weight: 500;
    color: #2d5f2e;
    line-height: 1.7;
}*/

/* Cenário 1: Se o primeiro elemento for uma DIV com um P dentro */
.news-content > div:first-child p:first-of-type,
/* Cenário 2: Se o primeiro elemento já for o próprio P */
.news-content > p:first-child {
    font-size: 1.1875rem;
    font-weight: 500;
    color: #2d5f2e;
    line-height: 1.7;
}

.news-content h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #4a8f4d;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 12px 0 12px 20px;
    border-bottom: 3px solid var(--light-green);
    background: linear-gradient(to right, var(--light-green) 0%, transparent 100%);
    position: relative;
}

.news-content h4::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4a8f4d;
    font-size: 1.25rem;
}

.news-content strong {
    font-weight: 700;
    color: #2d5f2e;
}

.news-content em {
    font-style: italic;
    color: #555;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.news-content li {
    margin-bottom: 0.75rem;
}

/* ============================================
   SEÇÃO: DEFINIÇÕES DE TERMOS JURÍDICOS
   ============================================ */
.definitions-section {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin: 40px 0;
    border: 2px solid #e0e0e0;
}

.definitions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-green);
}

.definitions-header:hover {
    opacity: 0.9;
}

.definitions-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.definitions-icon {
    width: 45px;
    height: 45px;
    background: var(--light-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-green);
    font-size: 1.5rem;
}

.definitions-title-group h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.definitions-subtitle {
    font-size: 0.9375rem;
    color: var(--medium-gray);
}

.terms-count {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-green);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-left: 10px;
}

.definitions-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light-green);
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.definitions-toggle i {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.definitions-section.expanded .definitions-toggle i {
    transform: rotate(180deg);
}

.definitions-toggle:hover {
    background: var(--secondary-green);
    color: white;
}

.definitions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.definitions-section.expanded .definitions-content {
    max-height: 5000px;
    transition: max-height 0.8s ease-in;
}

.definitions-list {
    padding-top: 30px;
}

.term-item {
    border-bottom: 1px solid #e0e0e0;
}

.term-item:last-child {
    border-bottom: none;
}

.term-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.term-header:hover {
    background: var(--light-gray);
}

.term-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.term-bullet {
    width: 8px;
    height: 8px;
    background: var(--secondary-green);
    border-radius: 50%;
    flex-shrink: 0;
}

.term-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.term-badge {
    background: var(--light-green);
    color: var(--secondary-green);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.term-chevron {
    color: var(--medium-gray);
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.term-item.active .term-chevron {
    transform: rotate(180deg);
    color: var(--secondary-green);
}

.term-item.active .term-header {
    background: var(--light-green);
}

.term-definition {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.term-item.active .term-definition {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.term-definition-content {
    padding: 0 20px 20px 40px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.term-definition-content p {
    margin-bottom: 12px;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
}

.term-definition-content strong {
    color: var(--primary-green);
}

/* ============================================
   SEÇÃO: PETIÇÕES RELACIONADAS
   ============================================ */
.related-petitions {
    background: linear-gradient(135deg, var(--light-green) 0%, #c8e6c9 100%);
    border: 3px solid var(--secondary-green);
    border-radius: 16px;
    padding: 35px;
    margin: 40px 0;
}

.related-petitions h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-petitions > p {
    color: var(--medium-gray);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.petition-search-box {
    position: relative;
}

.petition-search-input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    border: 3px solid var(--secondary-green);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
}

.petition-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 143, 77, 0.2);
}

.petition-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-green);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background 0.3s;
}

.petition-search-btn:hover {
    background: var(--primary-green);
}

/* ============================================
   SEÇÃO: TEMAS RELACIONADOS (TAGS)
   ============================================ */
.tags-section {
    margin: 40px 0;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
}

.tags-section h3 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: white;
    color: var(--secondary-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--light-green);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--secondary-green);
    color: white;
    border-color: var(--secondary-green);
}

/* ============================================
   SEÇÃO: COMPARTILHAMENTO
   ============================================ */
.share-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
}

.share-section h4 {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
    border: none;
    cursor: pointer;
}

.share-btn.whatsapp { background: var(--whatsapp); }
.share-btn.facebook { background: var(--facebook); }
.share-btn.twitter { background: var(--twitter); }
.share-btn.linkedin { background: var(--linkedin); }
.share-btn.instagram { background: var(--instagram); }
.share-btn.copy-link { background: var(--medium-gray); }

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ============================================
   SEÇÃO: NOTÍCIAS RELACIONADAS COM FILTROS
   ============================================ */
.related-news-section {
    margin: 40px 0;
}

.related-news-header {
    margin-bottom: 25px;
}

.related-news-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    color: var(--medium-gray);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.filter-group label i {
    color: var(--secondary-green);
    margin-right: 6px;
}

.news-filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--dark-gray);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.news-filter-select:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(74, 143, 77, 0.1);
}

.news-filter-select:hover {
    border-color: var(--secondary-green);
}

.btn-apply-filters {
    background: var(--secondary-green);
    border: 2px solid var(--secondary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-apply-filters:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 143, 77, 0.3);
}

.btn-clear-filters {
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: #e74c3c;
    color: white;
}

.news-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: var(--medium-gray);
    font-size: 0.9375rem;
}

.results-count strong {
    color: var(--secondary-green);
    font-weight: 700;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background: linear-gradient(135deg, #f9fdf9 0%, #f0f8f0 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e8f5e9;
    text-decoration: none;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--secondary-green);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 143, 77, 0.15);
}

.news-card-badge {
    display: inline-block;
    background: var(--secondary-green);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.news-card-date {
    font-size: 0.8125rem;
    color: var(--medium-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.news-card-areas {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--secondary-green);
}

.news-card-areas i {
    font-size: 0.875rem;
    color: var(--secondary-green);
    flex-shrink: 0;
}

.news-card-category {
    font-size: 0.8125rem;
    color: var(--secondary-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.load-more-container {
    text-align: center;
    padding: 20px 0;
}

/* Ocultar notícias extras inicialmente */
.news-card-hidden {
    display: none !important;
}

.btn-load-more {
    background: white;
    border: 2px solid var(--secondary-green);
    color: var(--secondary-green);
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: var(--secondary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 143, 77, 0.3);
}

.load-more-hint {
    margin-top: 10px;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

/* ============================================
   SIDEBAR (Coluna Direita)
   ============================================ */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    color: var(--primary-green);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WIDGET: NEWSLETTER */
.newsletter-widget {
    background: linear-gradient(135deg, var(--light-green) 0%, #c8e6c9 100%);
    border: 2px solid var(--secondary-green);
}

.newsletter-widget p {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-green);
    background: white;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--secondary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.newsletter-disclaimer i {
    font-size: 0.75rem;
    color: var(--secondary-green);
    font-style: normal;
}

/* WIDGET: NOTÍCIAS RELACIONADAS (Sidebar) */
.related-news-item {
    display: block;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--light-gray);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.related-news-item:last-child {
    margin-bottom: 0;
}

.related-news-item:hover {
    background: var(--light-green);
    transform: translateX(4px);
}

.related-news-title {
    color: var(--dark-gray);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.related-news-date {
    color: var(--medium-gray);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Admin Tabs */
.admin-tabs-wrapper {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.tabs li {
    display: inline-block;
}

.tabs li a {
    display: block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tabs li a:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.tabs li.active a {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light, #e8f5e9);
    color: var(--primary, #1a5943);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.modal-email {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary, #1a5943);
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-instructions {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.modal-instructions p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.modal-instructions i {
    color: #ffc107;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modal-btn {
    background: var(--primary, #1a5943);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.modal-btn:hover {
    background: var(--primary-dark, #0d3d2b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 89, 67, 0.3);
}

.modal-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.modal-footer a {
    color: var(--primary, #1a5943);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .article-content {
        padding: 30px 20px;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta-line {
        gap: 12px;
    }

    .summary-box-text {
        font-size: 1.25rem;
    }

    .news-content p {
        font-size: 1rem;
        text-align: left;
    }

    .news-content h4 {
        font-size: 1.25rem;
    }

    .definitions-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .news-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.5rem;
    }

    .article-summary-box {
        padding: 25px;
    }

    .article-areas {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   HIGHLIGHT DE CITAÇÕES
   ============================================ */
mark.highlight {
    background: rgba(100, 120, 100, 0.08);
    color: inherit;
    padding: 2px 4px;
    border-radius: 2px;
}
