/* Correção de contraste para modal no tema claro */
[data-bs-theme="light"] .modal-content.bg-dark,
[data-bs-theme="light"] .modal-content,
[data-bs-theme="light"] .modal-header.bg-dark,
[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer.bg-dark,
[data-bs-theme="light"] .modal-footer {
  background-color: #fff !important;
  color: #212529 !important;
  border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .form-control.bg-secondary,
[data-bs-theme="light"] .form-control.text-light {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-color: #dee2e6 !important;
}

[data-bs-theme="light"] .form-label,
[data-bs-theme="light"] .form-check-label {
  color: #212529 !important;
}

[data-bs-theme="light"] .btn-close-white {
  filter: none !important;
}
/* Garante que a logo da navbar fique maior e sobrescreva outros estilos */
#navbar-logo {
  width: 120px !important;
  height: auto !important;
  max-width: none !important;
}
/* Info7Now Custom CSS */

/* ===== VARIÁVEIS CSS ===== */
:root {
  /* Cores principais */
  --primary-color: #1d0c46;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-tertiary: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --gradient-quaternary: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  
  /* Tipografia */
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Espaçamentos */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
  
  /* Bordas */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET E BASE ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark-color);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fix para navbar sticky-top */
  padding-top: 0 !important;
}

/* Fix específico para evitar sobreposição de elementos */
main, .main-content {
  position: relative;
  z-index: 1;
}

/* Garantir que elementos fixos não sobreponham conteúdo */
.navbar.sticky-top + * {
  margin-top: 0;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
}

p {
  margin-bottom: var(--spacing-md);
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
}

/* ===== LINKS ===== */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #0a58ca;
  text-decoration: none;
}

/* ===== BOTÕES ===== */
.btn {
  font-family: var(--font-family-primary);
  font-weight: 500;
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1rem;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  color: white;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: none;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img-top {
  transition: transform var(--transition-normal);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Links em Cards */
.card .card-title a {
  color: var(--bs-body-color);
  transition: color 0.3s ease;
}

.card .card-title a:hover {
  color: var(--bs-primary);
  text-decoration: none;
}

/* Modo Escuro - Links em Cards */
[data-bs-theme="dark"] .card .card-title a {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .card .card-title a:hover {
  color: #9ec5fe !important;
  text-decoration: none;
}

/* Featured Cards - Links específicos */
.featured-card .card-title a {
  font-weight: 600;
}

[data-bs-theme="dark"] .featured-card .card-title a {
  color: #f8f9fa !important;
}

[data-bs-theme="dark"] .featured-card .card-title a:hover {
  color: #9ec5fe !important;
}

/* Cards de Notícias - Links */
.card-news .card-title a,
.trending-item a,
.news-card .card-title a {
  color: var(--bs-body-color);
  transition: color 0.3s ease;
}

.card-news .card-title a:hover,
.trending-item a:hover,
.news-card .card-title a:hover {
  color: var(--bs-primary);
  text-decoration: none;
}

[data-bs-theme="dark"] .card-news .card-title a,
[data-bs-theme="dark"] .trending-item a,
[data-bs-theme="dark"] .news-card .card-title a {
  color: #e9ecef !important;
}

[data-bs-theme="dark"] .card-news .card-title a:hover,
[data-bs-theme="dark"] .trending-item a:hover,
[data-bs-theme="dark"] .news-card .card-title a:hover {
  color: #9ec5fe !important;
  text-decoration: none;
}

/* ===== NAVBAR ===== */
/* Força o background branco desde o carregamento inicial */
nav.navbar,
.navbar,
.navbar.navbar-expand-lg,
.navbar-light,
.navbar-dark {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

.navbar {
  backdrop-filter: blur(10px);
  background: #fff !important;
  box-shadow: var(--shadow-sm);
  /* Garantir que não há sobreposição */
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #2c3e50 !important;
}

.nav-link {
  font-weight: 500;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius-sm);
  margin: 0 0.25rem;
  color: #2c3e50 !important;
}

.nav-link:hover {
  background: rgba(44, 62, 80, 0.1) !important;
  transform: translateY(-1px);
}

/* Mobile navbar corrections */
@media (max-width: 991.98px) {
  /* Garantir que os links no mobile collapse sejam sempre visíveis */
  .navbar-collapse .navbar-nav .nav-link {
    color: #2c3e50 !important;
    padding: 0.75rem 1rem !important;
  }
  
  .navbar-collapse .navbar-nav .nav-link:hover {
    color: #1e2836 !important;
    background: rgba(44, 62, 80, 0.1) !important;
  }
  
  .navbar-collapse .navbar-nav .nav-link.active {
    color: #1e2836 !important;
    background: rgba(44, 62, 80, 0.15) !important;
  }
  
  /* Dropdown no mobile */
  .navbar-collapse .dropdown-menu {
    background-color: #fff !important;
    border: none !important;
    box-shadow: inset 0 0 0 1px rgba(44, 62, 80, 0.1) !important;
    margin-left: 1rem !important;
  }
  
  .navbar-collapse .dropdown-item {
    color: #2c3e50 !important;
    padding: 0.5rem 1rem !important;
  }
  
  .navbar-collapse .dropdown-item:hover {
    background-color: rgba(44, 62, 80, 0.05) !important;
    color: #1e2836 !important;
  }
}

/* Corrigir espaçamento após navbar sticky */
body .navbar.sticky-top ~ main,
body .navbar.sticky-top ~ .main-content,
body main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Garantir que seções hero não sejam cortadas */
.hero-section,
.contact-hero,
.about-hero {
  margin-top: 0 !important;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-color) !important;
}

footer a {
  color: #adb5bd;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: white;
  text-decoration: none;
}

/* ===== FORMULÁRIOS ===== */
.form-control {
  border-radius: var(--border-radius-md);
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  font-family: var(--font-family-primary);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-floating > label {
  font-weight: 500;
}

/* ===== BADGES ===== */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-md);
  font-size: 0.875rem;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--border-radius-lg);
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== UTILITIES ===== */
.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.shadow-soft {
  box-shadow: var(--shadow-md);
}

.rounded-lg {
  border-radius: var(--border-radius-lg) !important;
}

.transition-all {
  transition: all var(--transition-normal);
}

/* Layout fixes para evitar sobreposição */
.container-fluid,
.container {
  position: relative;
  z-index: auto;
}

/* Corrigir z-index de elementos que podem sobrepor */
.modal {
  z-index: 1055 !important;
}

.dropdown-menu {
  z-index: 1000 !important;
}

.toast {
  z-index: 1090 !important;
}

/* Garantir que alertas não sobreponham navbar */
.alert {
  position: relative;
  z-index: auto;
}

/* Fix para elementos que podem flutuar incorretamente */
.float-end,
.float-start {
  position: relative;
  z-index: auto;
}

/* Evitar overflow horizontal em dispositivos móveis */
.row {
  margin-left: 0;
  margin-right: 0;
}

.row > * {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* ===== DARK MODE ===== */
[data-bs-theme="dark"] {
  --bs-body-bg: #121212;
  --bs-body-color: #e0e0e0;
  --bs-card-bg: #1e1e1e;
  --bs-border-color: #333;
  --bs-secondary-bg: #2a2a2a;
  --bs-tertiary-bg: #404040;
  --bs-link-color: #86b7fe;
  --bs-link-hover-color: #9ec5fe;
}

[data-bs-theme="dark"] body {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .card {
  background: var(--bs-card-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .form-control {
  background: var(--bs-card-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

/* Correções para navbar - sempre com fundo branco e texto escuro */

.navbar .navbar-brand {
  color: #2c3e50 !important;
}

.navbar .navbar-nav .nav-link {
  color: #2c3e50 !important;
}

.navbar .navbar-nav .nav-link:hover {
  color: #1e2836 !important;
  background: rgba(44, 62, 80, 0.1) !important;
}

.navbar .navbar-nav .nav-link.active {
  color: #1e2836 !important;
  background: rgba(44, 62, 80, 0.15) !important;
}

.navbar .navbar-toggler {
  border-color: rgba(44, 62, 80, 0.3) !important;
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Correções para dropdown da navbar - sempre com fundo branco */
.navbar .dropdown-menu {
  background-color: #fff !important;
  border-color: rgba(44, 62, 80, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.navbar .dropdown-item {
  color: #2c3e50 !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: #f8f9fa !important;
  color: #1e2836 !important;
}

/* Correções para botões outline no navbar - melhor contraste */
.navbar .btn-outline-light {
  background-color: rgba(13, 110, 253, 0.1) !important;
  color: #0d6efd !important;
  border-color: #0d6efd !important;
  transition: all 0.3s ease !important;
}

.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
}

.navbar .btn-outline-light i {
  transition: color 0.3s ease !important;
}

.navbar .btn-outline-light:hover i,
.navbar .btn-outline-light:focus i {
  color: white !important;
}

/* Correções para ícones na navbar */
.navbar .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #2c3e50 !important;
}

/* Correções para card headers com bg-primary */
[data-bs-theme="light"] .card-header.bg-primary,
.card-header.bg-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-header.bg-primary h5,
.card-header.bg-primary h5 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-header.bg-primary .fas,
.card-header.bg-primary .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

[data-bs-theme="light"] .bg-gradient.bg-primary,
.bg-gradient.bg-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .bg-gradient.bg-primary .text-white,
.bg-gradient.bg-primary .text-white {
  color: #ffffff !important;
}

/* Correções para card headers com bg-success */
[data-bs-theme="light"] .card-header.bg-success,
.card-header.bg-success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-header.bg-success h5,
.card-header.bg-success h5 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-header.bg-success .fas,
.card-header.bg-success .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

[data-bs-theme="light"] .bg-gradient.bg-success,
.bg-gradient.bg-success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .bg-gradient.bg-success .text-white,
.bg-gradient.bg-success .text-white {
  color: #ffffff !important;
}

/* Correções para card headers com bg-info */
[data-bs-theme="light"] .card-header.bg-info,
.card-header.bg-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0a9ecb 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-header.bg-info h5,
.card-header.bg-info h5 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-header.bg-info .fas,
.card-header.bg-info .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

[data-bs-theme="light"] .bg-gradient.bg-info,
.bg-gradient.bg-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0a9ecb 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .bg-gradient.bg-info .text-white,
.bg-gradient.bg-info .text-white {
  color: #ffffff !important;
}

/* Correções gerais para headers coloridos e elementos com text-white */
[data-bs-theme="light"] .text-white,
.text-white {
  color: #ffffff !important;
}

[data-bs-theme="light"] .bg-warning.text-white h5,
.bg-warning.text-white h5,
[data-bs-theme="light"] .bg-danger.text-white h5,
.bg-danger.text-white h5,
[data-bs-theme="light"] .bg-secondary.text-white h5,
.bg-secondary.text-white h5 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .bg-warning .fas,
.bg-warning .fas,
[data-bs-theme="light"] .bg-danger .fas,
.bg-danger .fas,
[data-bs-theme="light"] .bg-secondary .fas,
.bg-secondary .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

/* Correções para cards com background gradient inline */
[data-bs-theme="light"] .card[style*="linear-gradient"],
.card[style*="linear-gradient"] {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card[style*="linear-gradient"] h5,
.card[style*="linear-gradient"] h5,
[data-bs-theme="light"] .card[style*="linear-gradient"] .text-white,
.card[style*="linear-gradient"] .text-white {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card[style*="linear-gradient"] p,
.card[style*="linear-gradient"] p {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="light"] .card[style*="linear-gradient"] .fas,
.card[style*="linear-gradient"] .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

/* Correções específicas para newsletter card */
[data-bs-theme="light"] .card-body.text-white.text-center h5,
.card-body.text-white.text-center h5 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-body.text-white.text-center p,
.card-body.text-white.text-center p {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="light"] .card-body.text-white.text-center .fas,
.card-body.text-white.text-center .fas {
  
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
}

/* Correções adicionais para elementos em cards gradient */
[data-bs-theme="light"] .card[style*="linear-gradient"] h6,
.card[style*="linear-gradient"] h6 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-body.text-white.text-center h6,
.card-body.text-white.text-center h6 {
  color: #ffffff !important;
}

[data-bs-theme="light"] .card-body.text-white.text-center .small,
.card-body.text-white.text-center .small {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Força contraste para qualquer elemento text-white */
[data-bs-theme="light"] .text-center.text-white h5,
.text-center.text-white h5,
[data-bs-theme="light"] .text-center.text-white h6,
.text-center.text-white h6 {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: var(--bs-card-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .dropdown-item {
  color: var(--bs-body-color);
}


[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: #09031a;
  color: #fff;
}

[data-bs-theme="dark"] .btn-outline-light {
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .btn-outline-light:hover {
  background-color: var(--bs-secondary-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .footer {
  background-color: var(--bs-card-bg) !important;
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .text-muted {
  color: #888 !important;
}

[data-bs-theme="dark"] .border {
  border-color: var(--bs-border-color) !important;
}

/* Correções para títulos no modo escuro */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .card-title {
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .card-text {
  color: #b0b0b0 !important;
}

/* Correções para links no modo escuro */
[data-bs-theme="dark"] a {
  color: #86b7fe !important;
}

[data-bs-theme="dark"] a:hover {
  color: #9ec5fe !important;
}

/* Correções para o hero section no modo escuro */
[data-bs-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .hero-section h1,
[data-bs-theme="dark"] .hero-section h2,
[data-bs-theme="dark"] .hero-section h3,
[data-bs-theme="dark"] .hero-section h4,
[data-bs-theme="dark"] .hero-section h5,
[data-bs-theme="dark"] .hero-section h6 {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .hero-section p,
[data-bs-theme="dark"] .hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Correções para o footer no modo escuro */
[data-bs-theme="dark"] footer {
  background-color: #1a1a1a !important;
}

[data-bs-theme="dark"] footer h5,
[data-bs-theme="dark"] footer h6 {
  color: #ffffff !important;
}

[data-bs-theme="dark"] footer p {
  color: #b0b0b0 !important;
}

[data-bs-theme="dark"] footer .text-muted {
  color: #888 !important;
}

[data-bs-theme="dark"] footer .text-light {
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] footer .text-white-50 {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Melhorar contraste dos links no footer */
[data-bs-theme="dark"] footer a.text-light:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* Garantir que badges sejam visíveis */
[data-bs-theme="dark"] footer .badge.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

/* Correções para badges no modo escuro */
[data-bs-theme="dark"] .badge {
  background-color: #404040 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .bg-secondary {
  background-color: #404040 !important;
}

/* Correções para textos pequenos no modo escuro */
[data-bs-theme="dark"] small {
  color: #b0b0b0 !important;
}

/* Correções para botões no modo escuro */
[data-bs-theme="dark"] .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #86b7fe;
  border-color: #86b7fe;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #86b7fe;
  border-color: #86b7fe;
  color: #000000;
}

/* Correções para elementos específicos no modo escuro */
[data-bs-theme="dark"] .list-group-item {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .alert {
  background-color: #2a2a2a !important;
  border-color: #444 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .table {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
  border-color: #333 !important;
}

/* Correções para breadcrumb no modo escuro */
[data-bs-theme="dark"] .breadcrumb {
  background-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .breadcrumb-item a {
  color: #86b7fe !important;
}

/* Dark mode - Main content styling */
[data-bs-theme="dark"] main {
  background-color: #1e1e1e !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

[data-bs-theme="dark"] .article-content {
  background-color: transparent !important;
}

/* Dark mode - Mobile specific adjustments */
@media (max-width: 768px) {
  [data-bs-theme="dark"] main {
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
  }
  
  [data-bs-theme="dark"] .share-buttons {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }
  
  [data-bs-theme="dark"] .author-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
  
  [data-bs-theme="dark"] .author-card h5 {
    color: #e0e0e0 !important;
  }
  
  [data-bs-theme="dark"] .author-card .text-muted {
    color: #b0b0b0 !important;
  }
  
  [data-bs-theme="dark"] .author-card p {
    color: #b0b0b0 !important;
  }
  
  [data-bs-theme="dark"] .author-card .btn-outline-primary {
    color: #86b7fe !important;
    border-color: #86b7fe !important;
  }
  
  [data-bs-theme="dark"] .author-card .btn-outline-primary:hover {
    background-color: #86b7fe !important;
    border-color: #86b7fe !important;
    color: #000000 !important;
  }
  
  /* Correções globais para legibilidade de texto muted no modo escuro */
  [data-bs-theme="dark"] .text-muted {
    color: #b0b0b0 !important;
  }
  
  [data-bs-theme="dark"] small.text-muted {
    color: #999 !important;
  }
  
  [data-bs-theme="dark"] .lead.text-muted {
    color: #c0c0c0 !important;
  }
  
  [data-bs-theme="dark"] .related-articles-list .text-muted {
    color: #999 !important;
  }
  
  /* Correções específicas para sidebar de artigos relacionados no modo escuro */
  [data-bs-theme="dark"] .related-articles-sidebar {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
  
  [data-bs-theme="dark"] .related-articles-sidebar h6 {
    color: #e0e0e0 !important;
  }
  
  [data-bs-theme="dark"] .related-articles-list .card {
    background-color: #333 !important;
    border-color: rgba(255,255,255,0.1) !important;
  }
  
  [data-bs-theme="dark"] .related-articles-list .card-title a {
    color: #e0e0e0 !important;
  }
  
  [data-bs-theme="dark"] .related-articles-list .card-title a:hover {
    color: #86b7fe !important;
  }
  
  [data-bs-theme="dark"] .related-articles-list .badge.bg-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
  }
  
  /* Correções para seção principal de artigos relacionados no modo escuro */
  [data-bs-theme="dark"] .related-articles {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
  }
  
  [data-bs-theme="dark"] .related-articles h3 {
    color: #e0e0e0 !important;
  }
  
  [data-bs-theme="dark"] .related-articles .card {
    background-color: #333 !important;
    border-color: rgba(255,255,255,0.1) !important;
  }
  
  [data-bs-theme="dark"] .related-articles .card-title {
    color: #e0e0e0 !important;
  }
  
  [data-bs-theme="dark"] .related-articles .card-text {
    color: #b0b0b0 !important;
  }
  
  [data-bs-theme="dark"] .related-articles .badge.bg-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
  }
  
  [data-bs-theme="dark"] .related-articles .text-muted {
    color: #999 !important;
  }
  
  /* Correções para botões de compartilhamento no modo escuro */
  [data-bs-theme="dark"] .share-buttons {
    background: rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 0.5rem !important;
    padding: 1rem 0.5rem !important;
  }
  
  [data-bs-theme="dark"] .share-btn {
    border: 2px solid rgba(255,255,255,0.2) !important;
  }
  
  [data-bs-theme="dark"] .share-btn:hover {
    border-color: rgba(255,255,255,0.4) !important;
    box-shadow: 0 0 15px rgba(255,255,255,0.2) !important;
  }
  
  [data-bs-theme="dark"] .share-btn.facebook {
    background: #3b5998 !important;
    color: #ffffff !important;
  }
  
  [data-bs-theme="dark"] .share-btn.twitter {
    background: #1da1f2 !important;
    color: #ffffff !important;
  }
  
  [data-bs-theme="dark"] .share-btn.linkedin {
    background: #0077b5 !important;
    color: #ffffff !important;
  }
  
  [data-bs-theme="dark"] .share-btn.whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
  }
  
  [data-bs-theme="dark"] .share-btn.copy {
    background: #86b7fe !important;
    color: #000000 !important;
  }
  
  /* Correções para botões de compartilhamento mobile no modo escuro */
  [data-bs-theme="dark"] .d-lg-none h6 {
    color: #e0e0e0 !important;
  }
  
  [data-bs-theme="dark"] .d-lg-none .btn-primary {
    background-color: #3b5998 !important;
    border-color: #3b5998 !important;
  }
  
  [data-bs-theme="dark"] .d-lg-none .btn-info {
    background-color: #1da1f2 !important;
    border-color: #1da1f2 !important;
  }
  
  [data-bs-theme="dark"] .d-lg-none .btn-success {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
  }
  
  [data-bs-theme="dark"] .d-lg-none .btn-secondary {
    background-color: #86b7fe !important;
    border-color: #86b7fe !important;
    color: #000000 !important;
  }
  
  [data-bs-theme="dark"] .related-articles-sidebar {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }
}

[data-bs-theme="dark"] .breadcrumb-item.active {
  color: #b0b0b0 !important;
}

/* Correções para modal no modo escuro */
[data-bs-theme="dark"] .modal-content {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
}

[data-bs-theme="dark"] .modal-header {
  border-bottom-color: #333 !important;
}

[data-bs-theme="dark"] .modal-footer {
  border-top-color: #333 !important;
}

/* Correções para formulários no modo escuro */
[data-bs-theme="dark"] .form-select {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .form-check-input {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
}

[data-bs-theme="dark"] .form-check-label {
  color: #e0e0e0 !important;
}

/* Correções para progress bars no modo escuro */
[data-bs-theme="dark"] .progress {
  background-color: #2a2a2a !important;
}

/* Correções para tooltips no modo escuro */
[data-bs-theme="dark"] .tooltip .tooltip-inner {
  background-color: #333 !important;
  color: #e0e0e0 !important;
}

/* Correções para popover no modo escuro */
[data-bs-theme="dark"] .popover {
  background-color: #1e1e1e !important;
  border-color: #333 !important;
}

[data-bs-theme="dark"] .popover-header {
  background-color: #2a2a2a !important;
  border-bottom-color: #333 !important;
  color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .popover-body {
  color: #b0b0b0 !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: var(--bs-secondary-bg) !important;
}

[data-bs-theme="dark"] .modal-content {
  background-color: var(--bs-card-bg);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .modal-header {
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .modal-footer {
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .breadcrumb {
  background-color: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .list-group-item {
  background-color: var(--bs-card-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .table {
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--bs-secondary-bg);
}

/* ===== TABELAS NO CONTEÚDO ===== */

/* Garantir que todas as tabelas no conteúdo ocupem largura total */
.article-content .table-responsive,
.article-content .table-responsive table,
.article-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.5rem 0;
}

/* Remover estilos inline que limitam largura */
.article-content table[style*="width"] {
  width: 100% !important;
}

/* Melhorar aparência das tabelas */
.article-content table {
  border-collapse: collapse;
  border-spacing: 0;
}

.article-content table th,
.article-content table td {
  width: auto !important;
  min-width: 0 !important;
  padding: 0.75rem;
  vertical-align: top;
  word-wrap: break-word;
  hyphens: auto;
}

/* Cabeçalho das tabelas */
.article-content table thead th {
  background-color: var(--bs-primary);
  color: white;
  font-weight: 600;
  text-align: left;
}

/* Zebra striping */
.article-content .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Hover effect */
.article-content .table-hover tbody tr:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Modo escuro para tabelas do conteúdo */
[data-bs-theme="dark"] .article-content table thead th {
  background-color: var(--bs-primary);
  color: white;
}

[data-bs-theme="dark"] .article-content .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .article-content .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsividade das tabelas */
@media (max-width: 768px) {
  .article-content table {
    font-size: 0.875rem;
  }
  
  .article-content table th,
  .article-content table td {
    padding: 0.5rem 0.25rem;
  }
}

/* ===== RESPONSIVIDADE ===== */

/* Main Content Layout */
main {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--border-radius-md);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Main content mobile padding and styling */
  main {
    margin: 0.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  
  /* Container mobile adjustments */
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* News cards mobile full width */
  .news-card {
    margin-bottom: 1rem;
  }
  
  /* Ensure cards take full width on mobile */
  .col-12.mb-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Article content mobile spacing */
  .article-content {
    padding: 0.75rem;
  }
  
  /* Enhanced mobile content styling */
  .col-lg-8 {
    padding: 0.75rem !important;
  }
  
  .col-lg-3 {
    padding: 0.75rem !important;
    margin-top: 1rem;
  }
  
  /* Mobile image adjustments */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Remove margins and maximize card width */
  main {
    margin: 0.25rem;
    padding: 0.75rem;
  }
  
  .container {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  /* Full width cards on very small screens */
  .col-12.mb-4 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
  
  .news-card {
    border-radius: 0.375rem;
  }
}
  .article-content img {
    margin: 1rem 0;
    border-radius: var(--border-radius-sm);
  }
  
  /* Mobile text improvements */
  .article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .article-content ul,
  .article-content ol {
    margin: 1rem 0;
    padding-left: 1.2rem;
  }
  
  .article-content li {
    margin-bottom: 0.5rem;
  }
  
  /* Cards mobile spacing */
  .card {
    margin-bottom: var(--spacing-lg);
  }
  
  /* Typography adjustments */
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  .display-5 { font-size: 1.25rem; }
  
  /* Button mobile adjustments */
  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
  }
  
  /* Share buttons mobile */
  .share-buttons {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Mobile share buttons (visible on mobile) */
  .d-lg-none .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
  }
  
  .d-lg-none .gap-2 {
    gap: 0.5rem !important;
  }
  
  /* Newsletter modal mobile adjustments */
  .modal-dialog {
    margin: 1rem;
  }
  
  /* Featured image mobile */
  figure img {
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
  }
  
  /* Author card mobile */
  .author-card {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Sidebar mobile */
  .related-articles-sidebar {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  /* Additional mobile improvements */
  /* Container paddings removidos para máximo aproveitamento da tela */
  
  /* Content separation mobile */
  .article-content > * {
    margin-bottom: 1rem;
  }
  
  .article-content h2,
  .article-content h3,
  .article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
  }
  
  /* Table responsive mobile */
  .table-responsive {
    margin: 1rem 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
  }
  
  /* Forçar largura completa para todas as tabelas no artigo */
  .article-content .table-responsive,
  .article-content .table-responsive table,
  .article-content table {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Garantir que células da tabela se ajustem proporcionalmente */
  .article-content table th,
  .article-content table td {
    width: auto !important;
    min-width: 0 !important;
    word-wrap: break-word;
  }
  
  /* Blockquote mobile */
  .article-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  /* Footer mobile - padding aumentado para melhor legibilidade */
  footer, footer .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  footer .col-lg-4,
  footer .col-lg-2,
  footer .col-lg-3,
  footer [class*="col-"] {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  footer p,
  footer .list-unstyled li {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Navbar mobile - padding confortável */
  .navbar, .navbar .container,
  nav, nav .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .navbar-brand {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .navbar-nav .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .navbar-toggler {
    padding: 0.5rem !important;
    margin-right: 0.25rem !important;
  }
  
  /* Hero sections mobile - máximo aproveitamento da tela */
  .hero-section, .hero-section .container,
  .article-header, .article-header .container,
  .legal-header, .legal-header .container,
  .page-header, .page-header .container,
  [class*="hero"], [class*="hero"] .container,
  [class*="header-"], [class*="header-"] .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .hero-section .row,
  .article-header .row,
  .legal-header .row,
  .page-header .row,
  [class*="hero"] .row,
  [class*="header-"] .row {
    margin-left: -2px !important;
    margin-right: -2px !important;
  }
  
  .hero-section [class*="col-"],
  .article-header [class*="col-"],
  .legal-header [class*="col-"],
  .page-header [class*="col-"],
  [class*="hero"] [class*="col-"],
  [class*="header-"] [class*="col-"] {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 992px) {
  main {
    margin: var(--spacing-md);
    padding: var(--spacing-xl);
  }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-focusable:focus {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: var(--dark-color) !important;
  color: white !important;
  border-radius: var(--border-radius-sm) !important;
  z-index: 10000 !important;
  text-decoration: none !important;
}

/* Skip link específico */
.skip-link {
  position: absolute !important;
  top: -40px !important;
  left: 6px !important;
  background: var(--dark-color) !important;
  color: white !important;
  padding: 8px 16px !important;
  text-decoration: none !important;
  border-radius: 0 0 4px 4px !important;
  z-index: 10000 !important;
  transition: top 0.3s ease !important;
}

.skip-link:focus {
  top: 0 !important;
  color: white !important;
}

/* ===== ANIMAÇÕES ESPECÍFICAS ===== */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== COMPONENTES ESPECÍFICOS ===== */

/* Hero Sections */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  color: #ffffff;
  padding: 5rem 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
  z-index: 1;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
  color: #ffffff !important;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Article Content */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
  border-radius: var(--border-radius-md);
  margin: var(--spacing-lg) 0;
  display: block;
  object-fit: contain;
}

/* Correção específica para imagens dos artigos relacionados */
.related-articles-list .card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
  border-radius: 0.375rem 0 0 0.375rem !important;
}

/* Força responsividade para imagens com estilos inline */
.article-content img[style] {
  max-width: 100% !important;
  height: auto !important;
  width: auto !important;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  background: var(--light-color);
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-style: italic;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary-color);
}

/* Scroll Indicators */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width var(--transition-normal);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  #back-to-top,
  .share-buttons,
  .comment-section {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ===== PERFORMANCE ===== */
.img-lazy {
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.img-lazy.loaded {
  opacity: 1;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .timeline-item::before {
    animation: none;
  }
}

/* ===== ARTICLE META COMPONENTS ===== */
.article-meta {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

[data-bs-theme="dark"] .article-meta {
  background: rgba(33, 37, 41, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.meta-item {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .meta-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.meta-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.8);
}

[data-bs-theme="dark"] .meta-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.meta-item i {
  display: block;
  font-size: 1.2rem;
}

.meta-item .fw-bold {
  font-size: 1.1rem;
  color: var(--bs-body-color);
}

/* Responsividade para meta items */
@media (max-width: 767.98px) {
  .article-meta {
    padding: var(--spacing-md);
  }
  
  .meta-item {
    padding: var(--spacing-sm);
  }
  
  .meta-item i {
    font-size: 1rem;
  }
  
  .meta-item .fw-bold {
    font-size: 0.9rem;
  }
  
  .meta-item small {
    font-size: 0.7rem;
  }
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
  position: relative;
}

/* Estilos fixos para o seletor de idioma - não mudam com o tema */
.language-selector .btn {
  background-color: rgba(13, 110, 253, 0.1) !important;
  border: 1px solid rgba(13, 110, 253, 0.5) !important;
  color: #0d6efd !important;
  transition: all 0.3s ease !important;
  font-size: 0.875rem !important;
  padding: 0.375rem 0.75rem !important;
}

.language-selector .btn:hover,
.language-selector .btn:focus {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
}

.language-selector .btn:active,
.language-selector .btn.show {
  background-color: #0b5ed7 !important;
  border-color: #0a58ca !important;
  color: white !important;
}

/* Dropdown menu - cores fixas */
.language-selector .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0 !important;
  min-width: 180px !important;
}

.language-selector .dropdown-item {
  color: #212529 !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease !important;
  border-radius: 0 !important;
}

.language-selector .dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.1) !important;
  color: #0d6efd !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .language-selector .btn .d-none {
    display: none !important;
  }
  
  .language-selector .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem !important;
  }
}

/* ===== NAVBAR OPTIMIZATION ===== */
.navbar {
  min-height: 70px;
  padding: 0.75rem 0;
}

.navbar-brand img {
  max-height: 45px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
  transform: translateY(-1px);
}

/* Dropdown improvements */
.dropdown-menu {
  border: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  transform: translateX(5px);
}

/* ===== NAVBAR SEARCH FORM ===== */
.navbar .form-control {
  background-color: rgba(248, 249, 250, 0.9) !important;
  border: 1px solid rgba(13, 110, 253, 0.25) !important;
  border-right: none !important;
  border-radius: 0.5rem 0 0 0.5rem !important;
  color: #212529 !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
}

.navbar .form-control:focus {
  background-color: #ffffff !important;
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
  color: #212529 !important;
}

.navbar .form-control::placeholder {
  color: rgba(33, 37, 41, 0.6) !important;
  font-size: 0.875rem !important;
}

/* Botão de busca com melhor contraste */
.navbar .btn-outline-light {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: white !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  border-left: none !important;
  padding: 0.375rem 0.75rem !important;
  transition: all 0.3s ease !important;
}

.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
  background-color: #0b5ed7 !important;
  border-color: #0b5ed7 !important;
  color: white !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3) !important;
}

.navbar .btn-outline-light:active {
  background-color: #0a58ca !important;
  border-color: #0a58ca !important;
  color: white !important;
}

/* Mobile optimizations */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    margin-top: 1rem;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  
  [data-bs-theme="dark"] .navbar-collapse {
    background: rgba(33,37,41,0.98);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    border-radius: 0.5rem;
    margin: 0.25rem 0;
  }
}

/* ===== MOBILE NAVBAR IMPROVEMENTS ===== */
@media (max-width: 991.98px) {
  /* Container dos elementos da navbar mobile */
  .navbar-collapse .d-flex.align-items-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
    margin-top: 1rem !important;
  }
  
  /* Botão de busca mobile */
  .navbar .btn-outline-light {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  
  .navbar .btn-outline-light:hover,
  .navbar .btn-outline-light:focus {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
    color: white !important;
    transform: none !important;
  }
  
  .navbar .btn-outline-light i {
    color: white !important;
  }
  
  /* Seletor de idioma mobile */
  .language-selector {
    width: 100% !important;
  }
  
  .language-selector .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 0.5rem !important;
  }
  
  .language-selector .dropdown-menu {
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  
  /* Dropdown de configurações mobile */
  .navbar .dropdown:last-child {
    width: 100% !important;
  }
  
  .navbar .dropdown:last-child .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    border-radius: 0.5rem !important;
  }
  
  .navbar .dropdown:last-child .btn:hover,
  .navbar .dropdown:last-child .btn:focus {
    background-color: #5c636a !important;
    border-color: #5c636a !important;
    color: white !important;
  }
  
  .navbar .dropdown:last-child .btn i {
    color: white !important;
  }
  
  .navbar .dropdown:last-child .dropdown-menu {
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  /* Ajustes ainda menores para telas muito pequenas */
  .language-selector .btn span:not(.d-none) {
    font-size: 0.9rem !important;
  }
  
  .navbar .dropdown-menu {
    font-size: 0.9rem !important;
  }
  
  .navbar-collapse {
    padding: 0.75rem !important;
  }
}

/* ===== MOBILE MENU (OFFCANVAS) STYLES ===== */
.offcanvas {
  width: 300px !important;
}

.offcanvas-header {
  background-color: #fff !important;
  color: #333;
  border-bottom: 1px solid #dee2e6;
}

.offcanvas-header .btn-close {
  filter: none;
}

.offcanvas-body .list-group-item {
  border: none !important;
  padding: 0 !important;
}

.offcanvas-body .bg-light {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%) !important;
  font-weight: 600;
}

.offcanvas-body .list-group-item-action {
  padding: 0.75rem 1rem !important;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.offcanvas-body .list-group-item-action:hover {
  background-color: #f8f9fa !important;
  border-left-color: #667eea !important;
  transform: translateX(5px);
}

.offcanvas-body .badge {
  font-size: 0.7em;
}

.offcanvas .btn[data-bs-theme-value] {
  transition: all 0.3s ease;
}

.offcanvas .btn[data-bs-theme-value]:hover {
  transform: scale(1.02);
}

.offcanvas .btn[data-bs-theme-value].active,
.offcanvas .btn[data-bs-theme-value]:focus {
  background-color: #667eea !important;
  border-color: #667eea !important;
  color: white !important;
}

/* Dark mode adjustments for offcanvas */
[data-bs-theme="dark"] .offcanvas {
  background-color: #1a1a1a !important;
}

[data-bs-theme="dark"] .offcanvas-body .bg-light {
  background: linear-gradient(90deg, #2d3748 0%, #4a5568 100%) !important;
  color: white !important;
}

[data-bs-theme="dark"] .offcanvas-body .list-group-item-action {
  color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .offcanvas-body .list-group-item-action:hover {
  background-color: #2d3748 !important;
  color: white !important;
}

/* Animation for mobile menu opening */
.offcanvas.show {
  transform: translateX(0) !important;
}

.offcanvas {
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease-in-out !important;
}

/* ===== MODERN COOKIE CONSENT BANNER ===== */
.modern-cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modern-cookie-banner.show {
  transform: translateY(0);
}

.modern-cookie-banner.hide {
  transform: translateY(-100%);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.cookie-banner-main {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.cookie-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  backdrop-filter: blur(10px);
}

.cookie-text {
  flex: 1;
  color: white;
}

.cookie-title {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.cookie-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.cookie-link {
  color: #ffd700 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: #ffed4e !important;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-cookie-accept, .btn-cookie-decline {
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-cookie-accept {
  background: #28a745;
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-cookie-accept:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-cookie-decline {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cookie-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cookie-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .modern-cookie-banner {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

[data-bs-theme="dark"] .cookie-link {
  color: #63b3ed !important;
}

[data-bs-theme="dark"] .cookie-link:hover {
  color: #90cdf4 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 15px;
  }
  
  .cookie-banner-main {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  
  .btn-cookie-accept, .btn-cookie-decline {
    width: 100%;
    min-width: auto;
  }
  
  .cookie-close {
    position: static;
    margin-top: 10px;
  }
  
  .cookie-title {
    font-size: 16px;
  }
  
  .cookie-description {
    font-size: 13px;
  }
}


/* ===== FONTAWESOME CORRECTIONS ===== */
/* Adicionado automaticamente para corrigir problemas de renderização */
.fas, .far, .fab {
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fas:not([class*="fa-"]) {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.far:not([class*="fa-"]) {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fab:not([class*="fa-"]) {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}


/* ===== SUPER PRIORITY FONTAWESOME FIX ===== */
/* Esta correção tem prioridade máxima sobre todas as outras regras */
.fas, 
.navbar .fas,
.card-header.bg-primary .fas,
.card-header.bg-success .fas, 
.card-header.bg-info .fas,
.bg-warning .fas,
.bg-danger .fas,
.bg-secondary .fas,
.card[style*="linear-gradient"] .fas,
.card-body.text-white.text-center .fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* Garantir que os ícones específicos tenham o conteúdo correto */
.fa-arrow-up:before { content: "\f062" !important; }
.fa-home:before { content: "\f015" !important; }
.fa-user:before { content: "\f007" !important; }
.fa-heart:before { content: "\f004" !important; }
.fa-star:before { content: "\f005" !important; }
.fa-microchip:before { content: "\f2db" !important; }
.fa-tag:before { content: "\f02b" !important; }

/* Debug: forçar exibição visual se fonte não carregar */
.fas:not([class*="fa-"]):before {
    content: "⚠" !important;
    color: red !important;
}


/* ===== CORREÇÃO ESPECÍFICA PARA ÍCONES FAB (BRANDS) ===== */
/* Garantir que TODOS os ícones .fab funcionem, incluindo os de compartilhamento */

.fab, 
.fab[class*="fa-"],
.fab.fa-facebook-f,
.fab.fa-twitter, 
.fab.fa-linkedin-in,
.fab.fa-whatsapp,
.fab.fa-instagram,
.fab.fa-youtube,
.share-btn .fab,
.share-btn i.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* Garantir que ícones específicos tenham o conteúdo correto */
.fab.fa-facebook-f:before { content: "\f39e" !important; }
.fab.fa-twitter:before { content: "\f099" !important; }
.fab.fa-linkedin-in:before { content: "\f0e1" !important; }
.fab.fa-whatsapp:before { content: "\f232" !important; }
.fab.fa-instagram:before { content: "\f16d" !important; }
.fab.fa-youtube:before { content: "\f167" !important; }

/* Debug: forçar visibilidade se necessário */
.share-btn .fab:before {
    speak: none !important;
    color: inherit !important;
}
