@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');    
@import url('animate.css');
@import url('custom-animate.css');
@import url('flaticon.css');
@import url('owl.css');
body {
    font-family: 'Lato', sans-serif;
}

:root {
    /* Cores principais */
    --bg-primary: #283374;
    --bg-secondary: #1a2350;
    --bg-tertiary: #f0f2f5;
    --text-primary: #283374;
    --text-secondary: #666666;
    --text-white: #ffffff;
    --link-color: #283374;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-secondary: #dde1e5;
    --hover-color: rgba(255, 255, 255, 0.05);
    --yellow: #f1b500;
}

/* Cores para alto contraste */
[data-theme="high-contrast"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-white: #ffffff;
    --link-color: #ffffff;
    --border-color: #333333;
    --border-color-secondary: #ffffff;
    --hover-color: #333333;
    --yellow: #ffcc00;
    /* Ajustes do submenu */
    --bg-light: #000000;  /* Fundo do submenu (Cidadão, Servidor, etc) */
}

[data-theme="high-contrast"] .bg-light {
    background-color: var(--bg-primary) !important;
}

[data-theme="high-contrast"] .nav-link.text-dark {
    color: var(--text-white) !important;
}

[data-theme="high-contrast"] .social-icons a {
    color: var(--text-white) !important;
}

[data-theme="high-contrast"] .weather-info .temp {
    color: var(--text-white);
}

[data-theme="high-contrast"] .navbar-toggler {
    color: var(--text-white);
}

[data-theme="high-contrast"] .mobile-menu-header {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .mobile-menu-title {
    color: var(--text-white);
}

[data-theme="high-contrast"] .menu-close {
    color: var(--text-white);
}

[data-theme="high-contrast"] .mobile-search {
    background-color: var(--bg-primary);
}

[data-theme="high-contrast"] .mobile-search input {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .accessibility-tools button {
    background-color: var(--bg-primary);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .accessibility-tools button:hover {
    background-color: var(--hover-color);
    color: var(--yellow);
}

[data-theme="high-contrast"] .dropdown-item {
    color: var(--text-white) !important;
}

[data-theme="high-contrast"] .search-box input {
    background-color: var(--bg-primary);
}

[data-theme="high-contrast"] .search-box input::placeholder {
    color: var(--text-secondary);
}

/* Ajustes adicionais para elementos específicos em alto contraste */
[data-theme="high-contrast"] .weather-info .temp,
[data-theme="high-contrast"] .weather-info .city {
    color: var(--text-white);
}

[data-theme="high-contrast"] .weather-info .date {
    color: var(--text-secondary);
}

[data-theme="high-contrast"] .search-box input {
    border-bottom-color: var(--border-color-secondary);
    color: var(--text-white);
}

[data-theme="high-contrast"] .search-box button {
    color: var(--text-white);
}

[data-theme="high-contrast"] .login-link .auth-links,
[data-theme="high-contrast"] .login-link .login-text,
[data-theme="high-contrast"] .login-link .separator,
[data-theme="high-contrast"] .login-link a {
    color: var(--text-white);
}

[data-theme="high-contrast"] .login-link .auth-links i {
    color: var(--text-white);
}

[data-theme="high-contrast"] .login-link .auth-links:hover {
    background-color: var(--hover-color);
}

[data-theme="high-contrast"] .dropdown-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .dropdown-item {
    border-bottom-color: var(--border-color);
}

/* Exemplo de uso das variáveis */
.main-nav {
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--bg-secondary);
    position: relative;
    z-index: 1000;
}

.main-nav .nav-link {
    color: var(--text-white) !important;
}

.main-nav .nav-link:hover,
.nav-item:hover > .nav-link {
    background-color: var(--bg-secondary);
}

.dropdown-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:hover {
    background-color: var(--hover-color);
}

/* Restaurar o estilo original da top-bar e adicionar as novas informações */
.top-bar {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 3px 0;
    border-bottom: 1px solid var(--border-color-secondary);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px; /* Reduzido de 13px para 11px */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduzido de 8px para 6px */
}

.info-item i {
    font-size: 12px; /* Reduzido de 14px para 12px */
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .contact-info,
[data-theme="high-contrast"] .info-item {
    color: var(--text-white);
}

[data-theme="high-contrast"] .info-item i {
    color: var(--yellow);
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-info .separator {
        display: none;
    }
}

.separator {
    color: rgba(0, 0, 0, 0.2);
    margin: 0 5px; /* Reduzido o espaçamento */
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-info .separator {
        display: none;
    }
}

.weather-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.weather-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.weather-info .weather-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-info .weather-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.weather-info .temp {
    font-size: 22px;
    font-weight: 500;
    color: #283374;
    line-height: 1;
}

.weather-info .city {
    font-size: 13px;
    color: #283374;
    font-weight: 500;
    margin-bottom: 2px;
}

.weather-info .date {
    font-size: 11px;
    color: #666;
}

.accessibility-tools {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    width: 300px;
    justify-content: flex-start;
}

.accessibility-tools button {
    width: 28px;
    height: 28px;
    border: none;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.accessibility-tools button:hover {
    color: var(--yellow);
    background-color: var(--bg-secondary);
}

.accessibility-tools button.active {
    background-color: var(--bg-secondary);
    color: var(--bg-primary);
}
/* Estilos para o botão de alto contraste ativo */
.accessibility-tools button[title="Alto contraste"].active {
    background-color: #f1b500;
    color: #000;
}

/* Estilo para o botão de reset */
.accessibility-tools button[title="Restaurar fonte"] {
    font-size: 12px;
    padding: 0 5px;
}

/* Ajuste do ícone de reset */
.accessibility-tools button[title="Restaurar fonte"] i {
    font-size: 14px;
}

/* Estilo específico para o botão de Mapa do Site */
.accessibility-tools button[title="Mapa do Site"] {
    font-size: 14px;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .accessibility-tools {
        width: 100%;
        justify-content: center;
    }
}

.main-nav .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.main-nav .nav {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    width: calc(100% - 45px);
}

.main-nav .nav-item:not(.mega-menu-toggle) {
    margin-right: 5px;
}

.main-nav .nav-link {
    padding: 15px 8px !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.search-and-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 8px 80px 8px 15px;
    border: none;
    border-bottom: 1px solid #dde1e5;
    font-size: 14px;
    transition: all 0.3s ease;
    background: transparent;
}

.search-box input:focus {
    outline: none;
    border-bottom-color: #283374;
}

.search-box input::placeholder {
    color: #666;
}

.search-box button[type="submit"] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #283374;
    cursor: pointer;
    padding: 5px 8px;
}

.search-box .voice-search {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box .voice-search::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 1px;
    background-color: #dde1e5;
}

.login-link {
    text-align: right;
}

.login-link a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.login-link .separator {
    color: #666;
    margin: 0 12px;
    font-weight: 300;
}

.login-link .login-text {
    color: #666;
    font-size: 11px;
    letter-spacing: -0.5px;
}

.login-link .auth-links {
    color: #666;
    padding: 3px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 10px;
    cursor: pointer;
}

.login-link .auth-links:hover {
    background-color: #fff;
}

.login-link .auth-links i {
    font-size: 10px;
    margin-right: 4px;
    color: #666;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.login-link .auth-links:hover i {
    color: #666;
}

.navbar-toggler {
    border: none;
    padding: 0;
    color: #283374;
    display: none; /* Esconde por padrão */
}

.navbar-toggler:focus {
    box-shadow: none;
}
 /* Previsão do tempo para desktop */
 .col-md-5 .weather-info {
    display: flex;
}

/* Esconde a previsão mobile por padrão */
.mobile-accessibility-section .weather-info {
    display: none;
}

/* Estilo base para o menu desktop */
.main-nav {
    background-color: #283374;
    padding: 0;
    border-bottom: 2px solid #1a2350;
    position: relative;
}

.main-nav .nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
}
 /* Estilo base para o menu desktop */
 .main-nav .nav-item {
    position: relative;
}

/* Estilo para o submenu dropdown no desktop */
.dropdown-menu {
    display: block;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: #1a2350;
    min-width: 200px;
    padding: 0;
    border: none;
    border-radius: 0 0 5px 5px;  /* Arredondamento apenas no topo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.dropdown-menu .dropdown-item:first-child {
    border-radius: 0 0 0 0;  /* Arredondamento no primeiro item */
}

.dropdown-menu .dropdown-item:last-child {
    border-radius: 0;  /* Remove border-radius do último item */
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu .dropdown-item {
    color: white !important;
    padding: 8px 25px;
    font-size: 11px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}
.nav-item:hover > .nav-link {
    background-color: #1a2350;
}
  /* Ajustes para o cabeçalho do menu mobile */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 15px;  /* Reduzido padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.mobile-menu-title {
    color: white;
    font-size: 13px;  /* Reduzido tamanho da fonte */
    font-weight: 500;
}

.menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;  /* Reduzido tamanho do ícone */
    padding: 3px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.menu-close:hover {
    opacity: 1;
}

/* Ajuste no tamanho do menu mobile */
.main-nav {
    max-width: 100%;  /* Ocupa toda a largura */
    width: 100%;
    right: -100%;
}

/* Ajustes nos itens do menu */
.main-nav .nav-link {
    padding: 6px 15px;  /* Reduzido padding */
    font-size: 12px;  /* Reduzido tamanho da fonte */
}

.main-nav .nav-link::after {
    font-size: 10px;  /* Reduzido tamanho da seta */
}

/* Ajustes no dropdown */
.dropdown-menu .dropdown-item {
    padding: 8px 25px;  /* Reduzido padding */
    font-size: 11px;  /* Reduzido tamanho da fonte */
}

.dropdown-menu .dropdown-item:hover {
    padding-left: 30px;  /* Ajustado padding no hover */
}

/* Ajuste na busca mobile */
.mobile-search {
    padding: 6px 15px;  /* Reduzido padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-secondary);
}

.mobile-search input {
    font-size: 12px;  /* Reduzido tamanho da fonte */
    padding: 4px 12px;  /* Reduzido padding */
    background-color: var(--hover-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.mobile-search input {
    padding-right: 35px;
    color: white;
}

.mobile-search input::placeholder {
    color: var(--text-secondary);
}

.mobile-search input:focus {
    outline: none;
    border-bottom: 1px solid #f1b500;
}

/* Ajuste apenas para o ícone da lupa no mobile */
.mobile-search .search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f1b500;  /* Cor amarela */
    padding: 0;
}

/* Ajustes para o header e logo */
[data-theme="high-contrast"] header {
    background-color: var(--bg-primary);
}

[data-theme="high-contrast"] .header-mobile {
    background-color: var(--bg-primary);
}

/* Ajustes para o menu principal */
[data-theme="high-contrast"] .main-nav {
    background-color: var(--bg-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="high-contrast"] .main-nav .nav-link {
    color: var(--text-white) !important;
}

[data-theme="high-contrast"] .main-nav .nav-link:hover,
[data-theme="high-contrast"] .nav-item:hover > .nav-link {
    background-color: var(--hover-color);
    color: var(--yellow) !important;
}

/* Ajustes para o submenu */
[data-theme="high-contrast"] .dropdown-menu {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .dropdown-item {
    color: var(--text-white) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .dropdown-item:hover {
    background-color: var(--hover-color);
    color: var(--yellow) !important;
}

/* Ajustes para a área do logo */
[data-theme="high-contrast"] .py-3 {
    background-color: var(--bg-primary);
}

[data-theme="high-contrast"] .weather-info .temp,
[data-theme="high-contrast"] .weather-info .city,
[data-theme="high-contrast"] .weather-info .date {
    color: var(--text-white);
}

/* Estilo para o botão toggle do mega menu */
.mega-menu-toggle .nav-link {
    padding: 15px 20px !important;
    font-size: 16px;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mega-menu-toggle .nav-link:hover {
    background-color: var(--bg-secondary);
}

.mega-menu-toggle.active .nav-link {
    background-color: var(--bg-secondary);
}

/* Estilo do mega menu modernizado */
.mega-menu {
    position: fixed;
    width: 100%;
    left: 0;
    top: 201px;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    display: block;
    z-index: 1001;
    transform: translateY(-40px) scaleY(0.9);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mega-menu.show {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Remove o efeito de fade do fundo */
.mega-menu::before {
    display: none; /* Remove completamente o overlay escuro */
}

/* Estilo do botão toggle modernizado */
.mega-menu-toggle {
    position: absolute !important;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mega-menu-toggle .nav-link {
    height: 100%;
    width: 100%;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.mega-menu-toggle .nav-link i {
    font-size: 20px;
}

.mega-menu-toggle.active .nav-link {
    background-color: var(--bg-secondary);
    color: var(--yellow);
}

/* Container do mega menu */
.mega-menu .container {
    padding: 20px 0;
    margin-top:8px;
    background-color: var(--bg-secondary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: 0 0 4px 4px;
}

.mega-menu .row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.mega-menu .col-md-3 {
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.mega-menu .col-md-3:last-child {
    border-right: none;
}

.mega-menu h4 {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(241, 181, 0, 0.1); /* Fundo sutil amarelo */
    padding: 12px 15px;
    margin: 0 0 15px 0;
    border-radius: 4px;
    border: 1px solid rgba(241, 181, 0, 0.2); /* Borda sutil */
    display: flex;
    align-items: center;
    position: relative;
}

/* Ícone decorativo antes do título */
.mega-menu h4::before {
    content: '\f0c9'; /* Ícone de menu do Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-right: 10px;
    opacity: 0.8;
}

/* Linha decorativa depois do título */
.mega-menu h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--yellow);
}

.mega-menu ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

.mega-menu ul li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu ul li a {
    color: var(--text-white);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    position: relative;
    overflow: hidden;
    margin: 2px 0;
    border-radius: 4px;
}

/* Efeito de background */
.mega-menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--yellow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

/* Efeito da seta */
.mega-menu ul li a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--yellow);
}

/* Estado hover */
.mega-menu ul li a:hover {
    color: var(--yellow);
    opacity: 1;
    background: rgba(241, 181, 0, 0.05);
    padding-left: 20px;
}

.mega-menu ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.mega-menu ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Ajuste no container dos links */
.mega-menu ul {
    padding: 5px;
}

.mega-menu ul li {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ajustes para alto contraste */
[data-theme="high-contrast"] .mega-menu {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .mega-menu .col-md-3 {
    border-right-color: var(--border-color);
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .mega-menu-toggle {
        display: none; /* Oculta em mobile se necessário */
    }
}

/* Ajuste no header principal */
header {
    position: relative;
    padding: 20px 0;
}

/* Garante que o conteúdo fique acima do overlay */
header .container {
    position: relative;
    z-index: 2;
}

/* Ajuste para o header mobile */
.header-mobile {
    position: relative;
    z-index: 2;
    background: inherit; /* Herda o background do header */
}

/* Estilo para a seção de submenu */
.submenu-section {
    background-color: #f8f9fa;
    background-image: url('../img/bg/bg-listrado.png');
    background-repeat: repeat;
    background-position: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color-secondary);
    position: relative;
}

.submenu-section .nav {
    justify-content: center;
    align-items: center;
}

.submenu-section .nav-item {
    display: flex;
    align-items: center;
    
}

/* Adiciona separador apenas entre os links principais */
.submenu-section .nav-item:nth-child(-n+2)::after {
    content: '|';
    color: var(--border-color-secondary);
    margin: 0 5px;
    opacity: 0.5;
}

/* Separador único antes das redes sociais */
.submenu-section .social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    position: relative;
    padding-left: 15px;
    border-left: 1px solid var(--border-color-secondary);
    opacity: 0.5;
}

.submenu-section .nav-link {
    color: var(--text-primary) !important;
    font-size: 14px;
    padding: 5px 15px;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: bold !important;
    text-transform: uppercase;
}

.submenu-section .nav-link:hover {
    color: var(--yellow) !important;
}

/* Ajustes para as redes sociais */
.submenu-section .nav-item.ms-auto {
    margin-left: 0 !important; /* Remove o margin-left auto para manter centralizado */
}

.submenu-section .social-icons a {
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.submenu-section .social-icons a:hover {
    color: var(--yellow);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .submenu-section {
    background-image: none; /* Remove a imagem de fundo no modo alto contraste */
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .submenu-section .nav-link,
[data-theme="high-contrast"] .submenu-section .social-icons a {
    color: var(--text-white) !important;
}

/* Estilo para os dropdowns do submenu */
.submenu-section .nav-item {
    position: relative;
}

.submenu-section .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.submenu-section .nav-link i {
    font-size: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.submenu-section .nav-item:hover .nav-link i {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--yellow);
}

.submenu-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
}

/* Seta do dropdown */
.submenu-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.submenu-section .nav-item:hover .submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu-dropdown a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    position: relative;
    font-weight: 400;
    gap: 12px;
}

.submenu-dropdown a i {
    font-size: 15px;
    width: 20px;
    opacity: 0.7;
    transition: all 0.2s ease;
    text-align: center;
}

.submenu-dropdown a:hover i {
    opacity: 1;
    color: var(--yellow);
    transform: scale(1.1);
}

/* Ajuste no ícone da seta à direita */
.submenu-dropdown a::after {
    margin-left: auto;
    width: auto; /* Remove a largura fixa para a seta */
}

.submenu-dropdown a:hover {
    background: rgba(241, 181, 0, 0.08);
    color: var(--yellow);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .submenu-dropdown {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .submenu-dropdown::before {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .submenu-dropdown a:hover {
    background: var(--hover-color);
}

/* Estilo base do submenu-section (apenas desktop) */
@media (min-width: 769px) {
    .submenu-section {
        display: block;
    }
}

/* Estilos do Slider */
.main-slider {
    width: 100%;
    height: 350px; /* Altura fixa para desktop */
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* Personalização dos controles do Swiper */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    color: var(--yellow);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev {
    left: 20px;
}

/* Novo estilo para a paginação */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 30px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--yellow) !important;
    width: 40px !important;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .main-slider {
        height: 200px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination-bullet {
        width: 20px !important;
        height: 3px !important;
    }

    .swiper-pagination-bullet-active {
        width: 30px !important;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-slider {
        height: 350px;
    }
}

/* Ajustes para telas maiores */
@media (min-width: 1025px) {
    .main-slider {
        height: 350px;
    }
}

/* Estilos do Modal de Login */
.modal-content {
    border-radius: 8px;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 20px 30px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--yellow);
    font-size: 24px;
}

.modal-body {
    padding: 0 30px 30px;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(241, 181, 0, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--yellow);
    border-color: var(--yellow);
}

.forgot-password {
    color: var(--yellow);
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--yellow);
    border-color: var(--yellow);
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d9a000;
    border-color: #d9a000;
}

.register-link {
    font-size: 14px;
    color: var(--text-primary);
}

.register-link a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .modal-title,
[data-theme="high-contrast"] .form-label,
[data-theme="high-contrast"] .register-link {
    color: var(--text-white);
}

/* Adicionar aos estilos do Modal de Login */
.btn-outline-primary {
    color: var(--yellow);
    border-color: var(--yellow);
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: white;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .btn-outline-primary {
    color: var(--text-white);
    border-color: var(--text-white);
}

[data-theme="high-contrast"] .btn-outline-primary:hover {
    background-color: var(--text-white);
    color: var(--bg-primary);
}

/* Estilos para busca por voz */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box .voice-search {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box .voice-search:hover {
    color: var(--yellow);
}

.search-box .voice-search.listening {
    color: #ff4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .search-box .voice-search {
    color: var(--text-white);
}

/* Ajustes para alto contraste nas imagens */
[data-theme="high-contrast"] img {
    filter: grayscale(100%) contrast(120%); /* Converte para preto e branco e aumenta o contraste */
}

/* Exceções para logos e ícones específicos que precisam manter a cor original */
[data-theme="high-contrast"] .logo-color,
[data-theme="high-contrast"] .accessibility-tools i,
[data-theme="high-contrast"] .nav-link i {
    filter: none;
}

/* Ajuste específico para o slider */
[data-theme="high-contrast"] .swiper-slide {
    filter: grayscale(100%) contrast(120%);
}

/* Ajuste para ícones do tempo */
[data-theme="high-contrast"] .weather-icon img {
    filter: brightness(0) invert(1); /* Torna o ícone branco */
}

/* Ajuste para imagens dentro do modal */
[data-theme="high-contrast"] .modal img {
    filter: grayscale(100%) contrast(120%);
}

/* Estilos para a página de acessibilidade */
.accessibility-page {
    padding: 40px 0;
}

.accessibility-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.accessibility-page .page-header h1 {
    color: #666666;
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 12px;
    position: relative;
    padding-left: 10px;
    letter-spacing: 0.2px;
}

/* Detalhe sutil na lateral do título */
.accessibility-page .page-header h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 40%;
    background: var(--yellow);
    border-radius: 2px;
}

/* Mantém o breadcrumb moderno */
.accessibility-page .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-page .breadcrumb-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.accessibility-page .breadcrumb-item a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.accessibility-page .breadcrumb-item i {
    font-size: 12px;
    color: var(--yellow);
    transition: all 0.3s ease;
}

.accessibility-page .breadcrumb-item a:hover {
    color: var(--yellow);
}

.accessibility-page .breadcrumb-item a:hover i {
    transform: translateX(-3px);
}

.accessibility-page .breadcrumb-item + .breadcrumb-item {
    padding-left: 15px;
}

.accessibility-page .breadcrumb-item + .breadcrumb-item::before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #ccc;
    font-size: 10px;
    margin-right: 15px;
}

.accessibility-page .breadcrumb-item.active {
    color: #666;
    background: #f8f9fa;
}

/* Ajustes para alto contraste */
[data-theme="high-contrast"] .accessibility-page {
    background: var(--bg-primary); /* Fundo escuro */
}

[data-theme="high-contrast"] .accessibility-page .breadcrumb-item {
    background: #1a1a1a; /* Fundo mais escuro para os itens do breadcrumb */
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .accessibility-page .breadcrumb-item a {
    color: #ffffff; /* Texto branco para melhor contraste */
}

[data-theme="high-contrast"] .accessibility-page .breadcrumb-item i {
    color: var(--yellow); /* Mantém os ícones amarelos */
}

[data-theme="high-contrast"] .accessibility-page .breadcrumb-item.active {
    background: #000000; /* Fundo preto para o item ativo */
    color: #ffffff;
    opacity: 0.9; /* Aumentado de 0.7 para 0.9 para melhor contraste */
}

[data-theme="high-contrast"] .accessibility-page .breadcrumb-item::before {
    color: #ffffff;
    opacity: 0.7; /* Aumentado de 0.5 para 0.7 */
}

[data-theme="high-contrast"] .accessibility-page .section-title h2 {
    color: #ffffff;
}

[data-theme="high-contrast"] .accessibility-page .content-section p {
    color: #ffffff;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .accessibility-page .page-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    .accessibility-page .page-header h1 {
        font-size: 20px;
    }

    .accessibility-page .breadcrumb-item {
        padding: 6px 12px;
    }
}

/* Estilo para o texto principal da página de acessibilidade */
.accessibility-page .content-section p {
    color: #666666; 
    font-size: 14px; 
    font-weight: 400; 
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .accessibility-page .content-section p {
    color: var(--text-white);
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .accessibility-page .content-section p {
        font-size: 13px;
    }
}

/* Estilo para títulos de seção */
.accessibility-page .section-title {
    margin: 30px 0 20px;
    background-color: #f5f5f5; /* Movido o background para o container */
    border-radius: 4px;
    padding: 12px 20px;
}

.accessibility-page .section-title h2 {
    color: #333333;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: none; /* Removido o background do h2 */
}

/* Estilo do ícone */
.accessibility-page .section-title h2 i {
    color: var(--yellow);
    font-size: 18px;
}

/* Removendo a barra lateral amarela pois agora temos o fundo cinza */
.accessibility-page .section-title h2::before {
    display: none;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .accessibility-page .section-title {
    background-color: var(--bg-secondary);
}

[data-theme="high-contrast"] .accessibility-page .section-title h2 {
    color: var(--text-white);
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .accessibility-page .section-title {
        padding: 10px 15px;
    }
    
    .accessibility-page .section-title h2 {
        font-size: 18px;
    }
}

/* Ajustes no menu mobile para centralizar o título */
.mobile-menu-button {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-primary) !important;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    text-align: center;
}

/* Posiciona o ícone à esquerda */
.mobile-menu-button i:first-child {
    position: absolute;
    left: 15px;
    margin: 0;
}

/* Esconde a seta da direita */
.mobile-menu-button .fa-chevron-down {
    display: none;
}

/* Submenu com animação */
.mobile-submenu {
    display: block; /* Mudamos para block e usamos height/opacity para animar */
    height: 0;
    opacity: 0;
    overflow: hidden;
    background: #dbdfe0;
    transition: all 0.3s ease-in-out;
    transform: translateY(-10px); /* Começa um pouco acima */
}

/* Quando ativo */
.mobile-menu-item.active .mobile-submenu {
    height: auto; /* Altura automática baseada no conteúdo */
    opacity: 1;
    transform: translateY(0); /* Volta para posição normal */
}

/* Links do submenu */
.mobile-submenu a {
    padding: 14px 15px 14px 51px;
    display: flex;
    text-align: center;
    gap: 12px;        
    color: #505050;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transform: translateY(-5px); /* Cada link começa um pouco acima */
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* Anima os links quando o submenu está ativo */
.mobile-menu-item.active .mobile-submenu a {
    transform: translateY(0);
    opacity: 1;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .mobile-submenu {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

/* Ajustes no menu mobile */
.mobile-citizen-menu {
    margin-top: -1px;
    width: 100vw; /* Usa a largura total da viewport */
    margin-left: calc(-50vw + 50%); /* Centraliza o menu */
    margin-right: calc(-50vw + 50%);
}

.mobile-menu-item {
    width: 100%;
    border-bottom: 1px solid #dbdfe0;
}

.mobile-menu-button {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-primary) !important;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    text-align: center;
}

/* Ajuste no submenu também */
.mobile-submenu {
    width: 100%;
    display: block;
    height: 0;
    opacity: 0;
    overflow: hidden;
    background: #dbdfe0;
    transition: all 0.3s ease-in-out;
    transform: translateY(-10px);
}

/* Ajustes para o menu mobile */
@media (max-width: 768px) {
    .main-nav {
        width: 100vw; /* Ocupa toda a largura da viewport */
        margin-left: calc(-50vw + 50%); /* Centraliza na tela */
        margin-right: calc(-50vw + 50%);
        left: 0;
        right: 0;
    }

    .main-nav .container {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }

    .main-nav .nav {
        width: 100%;
    }

    .main-nav .nav-item {
        width: 100%;
    }

    .main-nav .nav-link {
        width: 100%;
        padding: 15px !important;
    }
}

/* Ajustes para o input de busca e microfone */
.search-box input[type="search"] {
    -webkit-appearance: none; /* Remove aparência padrão no Safari/Chrome */
    -moz-appearance: none; /* Remove aparência padrão no Firefox */
    appearance: none;
}

/* Remove o ícone de limpar (x) do Firefox */
.search-box input[type="search"]::-webkit-search-cancel-button,
.search-box input[type="search"]::-webkit-search-decoration,
.search-box input[type="search"]::-webkit-search-results-button,
.search-box input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* Remove o ícone de limpar do Firefox */
.search-box input[type="search"]::-moz-search-cancel-button {
    display: none;
}

/* Ajuste específico para o Firefox */
@-moz-document url-prefix() {
    .search-box {
        position: relative;
    }
    
    .voice-search {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Garante que o botão de voz seja visível */
.voice-search {
    position: absolute !important;
    right: 45px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Seção de Grid de Notícias - Novo Layout */
.news-grid {
    padding: 20px 0;
    background: #f8f9fa;
}

.news-container {
    margin-top: 30px;
}

/* Notícia Principal */
.news-featured {
    margin-bottom: 24px;
    text-align: center; /* Centraliza todo o conteúdo */
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
}

/* Cores específicas para cada categoria */
.category-tag.investimentos {
    background: var(--bg-primary);
}

.category-tag.saude {
    background: #00b894;
}

.category-tag.educacao {
    background: #6c5ce7;
}

.category-tag.cultura {
    background: #e17055;
}

.category-tag.esporte {
    background: #00cec9;
}

.category-tag.turismo {
    background: #fdcb6e;
}

.category-tag.obras {
    background: #d63031;
}

.category-tag.concursos {
    background: #6c5ce7;
}

.category-tag.cursos {
    background: #00b894;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .category-tag {
    border: 2px solid var(--text-white);
    background: var(--bg-primary);
    color: var(--yellow);
}

[data-theme="high-contrast"] .category-tag:hover {
    background: var(--yellow);
    color: var(--bg-primary);
}

.news-featured h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1.3;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.news-featured h1 a {
    color: var(--bg-primary);
    text-decoration: none;
    position: relative;
    display: inline;
    background-image: linear-gradient(var(--bg-primary), var(--bg-primary));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.5s ease;
}

.news-featured h1 a:hover {
    color: var(--bg-primary);
    background-size: 100% 2px;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .news-featured h1 a {
    color: var(--bg-primary) !important; /* Forçando a cor preta */
    background-image: linear-gradient(var(--bg-primary), var(--bg-primary));
}

[data-theme="high-contrast"] .news-featured h1 a:hover {
    color: var(--bg-primary) !important; /* Mantém preto mesmo no hover */
}

/* Grid de Notícias Secundárias */
.news-grid-secondary {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

/* Ajustes responsivos para o grid */
@media (max-width: 768px) {
    .news-grid-secondary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Reordena os cards no mobile */
    .news-card:nth-child(1) {
        order: 2;
        
    }
    
    .news-card:nth-child(2) { /* Card do concurso */
        order: 1; /* Aparece primeiro */
        height: 280px; /* Altura específica para mobile */
    }
    
    .news-card:nth-child(3) {
        order: 3;
       
    }

    /* Ajusta as alturas no mobile */
    .news-card {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .news-grid-secondary {
        gap: 15px;
    }
    
    .news-card:nth-child(2) {
        height: 250px; /* Um pouco menor em telas muito pequenas */
    }
}

/* Cards Secundários */
.news-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 260px; /* Aumentado de 240px para 260px */
}

/* Card do meio com altura maior */
.news-card:nth-child(2) {
    height: 320px; /* Reduzido de 340px para 320px */
}

.news-image {
    width: 100%;
    height: 100%;
}

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

/* Overlay com gradiente e conteúdo */
.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    color: #fff;
}

.news-overlay .category {
    position: static;
    display: inline-block;
    background: var(--yellow);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-overlay h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
}

/* Container para o texto com o efeito de sublinhado */
.news-overlay h3 a {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline;
    background-image: linear-gradient(#fff, #fff); /* Mudado para branco */
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.5s ease; /* Aumentado para 0.5s */
}

/* Quando passar o mouse, o sublinhado cresce da esquerda para direita */
.news-overlay h3 a:hover {
    color: #fff;
    background-size: 100% 2px;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .news-overlay h3 a {
    background-image: linear-gradient(var(--yellow), var(--yellow)); /* Mantém amarelo no alto contraste */
}

/* Hover Effects */
.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

/* Responsividade */
@media (max-width: 992px) {
    .news-card {
        height: 240px;
    }
    
    .news-card:nth-child(2) {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .news-card,
    .news-card:nth-child(2) {
        height: 220px;
    }
}

/* Separador com padrão */
.section-divider {
    height: 30px;
    background: url('../img/bg/pattern-6.png') repeat-x center;
    margin: 20px 0px 10px 0;
    opacity: 0.1;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .section-divider {
    opacity: 0.2;
}

/* Wrapper para centralizar o botão */
.view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Estilo do botão Ver Todas */
.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f2f2f2;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.view-all-btn i {
    font-size: 12px;
    color: var(--yellow);
    transition: transform 0.3s ease;
}

.view-all-btn i:last-child {
    margin-left: 4px;
}

.view-all-btn:hover {
    background: var(--bg-primary);
    color: white;
    text-decoration: none;
}

.view-all-btn:hover i {
    color: var(--yellow);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .view-all-btn {
    background: #1a1a1a;
    border-color: var(--border-color);
    color: #ffffff;
}

[data-theme="high-contrast"] .view-all-btn:hover {
    background: #000000;
    color: var(--yellow);
}

/* Ajustes responsivos para o título */
@media (max-width: 1200px) {
    .news-featured h1 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .news-featured h1 {
        font-size: 32px;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .news-featured h1 {
        font-size: 28px;
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .news-featured h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 20px;
    }
}

/* Ajustes para alto contraste no menu mobile */
[data-theme="high-contrast"] .mobile-menu-item {
    border-color: var(--border-color);
    background: var(--bg-primary);
}

[data-theme="high-contrast"] .mobile-menu-button {
    background-color: var(--bg-primary) !important;
    color: var(--text-white);
}

[data-theme="high-contrast"] .mobile-menu-button i {
    color: var(--yellow);
}

[data-theme="high-contrast"] .mobile-submenu {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .mobile-submenu a {
    color: var(--text-white);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .mobile-submenu a:hover {
    background: var(--hover-color);
    color: var(--yellow);
}

/* Seção de Acesso Rápido */
.quick-access {
    padding: 50px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-top: 20px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    padding: 0 15px;
}

/* Efeito de destaque no fundo */
.section-header h2::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    background: var(--yellow);
    bottom: 5px;
    left: 0;
    z-index: -1;
    opacity: 0.3;
    transform: skew(-12deg);
}

/* Linha decorativa */
.section-header::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--bg-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .section-header h2 {
    color: var(--text-white);
}

[data-theme="high-contrast"] .section-header h2::before {
    background: var(--yellow);
    opacity: 0.2;
}

[data-theme="high-contrast"] .section-header::after {
    background: var(--yellow);
}

/* Responsivo */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .section-header h2::before {
        height: 12px;
    }
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.quick-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-right: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-icon i {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-content {
    flex: 1;
}

.quick-content h3 {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0 0 5px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-content span {
    font-size: 12px;
    color: #666;
    display: block;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.quick-card:hover .quick-icon {
    transform: scale(1.1);
}

.quick-card:hover .quick-icon i {
    transform: scale(1.1);
}

.quick-card:hover .quick-content h3 {
    color: var(--bg-primary);
    transform: translateX(5px);
}

/* Responsivo */
@media (max-width: 992px) {
    .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-card {
        padding: 15px;
    }
}

/* Ajustes para alto contraste */
[data-theme="high-contrast"] .quick-access {
    background: var(--bg-primary);
}

[data-theme="high-contrast"] .quick-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .quick-card::before {
    background: var(--yellow);
}

[data-theme="high-contrast"] .quick-icon {
    background: var(--yellow);
}

[data-theme="high-contrast"] .quick-icon i {
    color: var(--bg-primary);
}

[data-theme="high-contrast"] .quick-content h3 {
    color: var(--text-white);
}

[data-theme="high-contrast"] .quick-content span {
    color: var(--text-secondary);
}

[data-theme="high-contrast"] .quick-card:hover {
    background: var(--bg-secondary);
    border-color: var(--yellow);
}

[data-theme="high-contrast"] .quick-card:hover .quick-content h3 {
    color: var(--yellow);
}

[data-theme="high-contrast"] .quick-card:hover::before {
    background: var(--yellow);
    opacity: 0.3;
}

[data-theme="high-contrast"] .section-header h2 {
    color: var(--yellow);
}

[data-theme="high-contrast"] .section-header::after {
    background: var(--yellow);
}

[data-theme="high-contrast"] .section-header h2::before {
    background: var(--yellow);
    opacity: 0.15;
}

/* Seção do Calendário */
.calendar-section {
    padding: 50px 0;
    background-color: #e3e6e8;
    background-image: linear-gradient(45deg, #e7e9eb 25%, transparent 25%),
                      linear-gradient(-45deg, #e7e9eb 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e7e9eb 75%),
                      linear-gradient(-45deg, transparent 75%, #e7e9eb 75%);
    background-size: 10px 10px; /* Reduzido de 20px para 10px */
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px; /* Ajustado proporcionalmente */
}

.calendar-container {
    display: grid;
    grid-template-columns: 320px 1fr; /* Reduzido de 380px para 320px */
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start; /* Permite que cada coluna tenha sua própria altura */
}

/* Estilo do Calendário */
.calendar-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 0; /* Removido o padding geral */
    height: fit-content;
    overflow: hidden; /* Para garantir que os cantos fiquem corretos */
}

/* Header do calendário com fundo colorido */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-primary);
    margin-bottom: 0;
    position: relative;
}

/* Ajuste na cor do texto do mês atual */
.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Ajuste nos botões de navegação */
.calendar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.calendar-nav i {
    font-size: 14px;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--yellow);
}

.calendar-nav:hover i {
    color: var(--yellow);
}

.calendar-nav.prev i {
    margin-right: 2px;
}

.calendar-nav.next i {
    margin-left: 2px;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--yellow);
}

.calendar-nav:hover i {
    color: var(--yellow);
}

.calendar-nav.prev:hover i {
    transform: translateX(-2px);
}

.calendar-nav.next:hover i {
    transform: translateX(2px);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .calendar-nav {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="high-contrast"] .calendar-nav:hover {
    background: rgba(0, 0, 0, 0.2);
    border-color: var(--bg-primary);
}

/* Área do grid do calendário */
.calendar-grid {
    padding: 20px;
    background: #fff;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .calendar-header {
    background: var(--yellow);
}

[data-theme="high-contrast"] .current-month {
    color: var(--bg-primary);
}

[data-theme="high-contrast"] .calendar-nav {
    color: var(--bg-primary);
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="high-contrast"] .calendar-nav:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--bg-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px; /* Reduzido de 8px para 6px */
}

/* Estilo dos Eventos */
.events-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 25px;
    display: flex;
    gap: 20px;
    height: fit-content; /* Ajusta à altura do conteúdo */
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 12px;
    color: #fff;
    min-width: 110px;
    box-shadow: 0 4px 12px rgba(40, 51, 116, 0.15);
    position: relative;
    overflow: hidden;
}

.event-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--yellow);
}

.event-date .day {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.event-date .month {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.event-date .time {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.event-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.event-more {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f2f2f2;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-more i {
    font-size: 12px;
    color: var(--yellow);
    transition: transform 0.3s ease;
}

.event-more:hover {
    background: var(--bg-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.event-more:hover i {
    color: var(--yellow);
    transform: translateX(3px);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .event-more {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-white);
}

[data-theme="high-contrast"] .event-more:hover {
    background: var(--hover-color);
    color: var(--yellow);
    border-color: var(--yellow);
}

/* Responsivo */
@media (max-width: 992px) {
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-wrapper {
        max-width: 400px; /* Limita a largura em telas menores */
        margin: 0 auto;
    }
    
    .events-wrapper {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .calendar-container {
        margin-top: 20px;
    }
    
    .calendar-day {
        height: 28px;
        width: 28px;
        font-size: 12px;
    }
    
    .events-wrapper {
    flex-direction: column;
        padding: 15px;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    gap: 15px;
        padding: 15px;
        width: 100%;
    }

    .event-date .day {
        margin-bottom: 0;
    }

    .event-date .month {
        margin-bottom: 0;
    }
}

/* Alto Contraste */
[data-theme="high-contrast"] .calendar-wrapper,
[data-theme="high-contrast"] .events-wrapper {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .event-title {
    color: var(--text-white);
}

[data-theme="high-contrast"] .event-date {
    background: var(--yellow);
    color: var(--bg-primary);
}

[data-theme="high-contrast"] .event-more {
    color: var(--yellow);
}

/* Estilos adicionais para o calendário */
.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px; /* Reduzido de 13px */
    padding: 6px 0; /* Reduzido de 8px */
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px; /* Reduzido de 14px */
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    height: 32px; /* Tamanho fixo para os dias */
    width: 32px;
}

.calendar-day:not(.empty):hover {
    background: rgba(40, 51, 116, 0.1);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.has-event {
    background: var(--bg-primary);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 51, 116, 0.2);
}

/* Animação para os eventos */
.events-wrapper {
    transition: opacity 0.3s ease;
}

/* Alto Contraste */
[data-theme="high-contrast"] .calendar-day.has-event {
    background: var(--yellow);
    color: var(--bg-primary);
}

[data-theme="high-contrast"] .calendar-weekday {
    color: var(--text-white);
}

[data-theme="high-contrast"] .calendar-day {
    color: var(--text-white);
}

[data-theme="high-contrast"] .calendar-day:not(.empty):hover {
    background: var(--hover-color);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .calendar-section {
    background: var(--bg-primary);
}

/* Ajuste para múltiplos eventos */
.events-wrapper + .events-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .events-wrapper + .events-wrapper {
    border-color: var(--border-color);
}

/* Ajustes para múltiplos eventos */
.events-wrapper {
    flex-direction: column;
    gap: 20px;
}

.event-box {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.event-box:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .event-box {
    border-color: var(--border-color);
}

/* Ajuste responsivo */
@media (max-width: 576px) {
    .event-box {
        flex-direction: column;
        padding-bottom: 15px;
    }
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .calendar-section {
    background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
                      linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
                      linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .calendar-section {
    background-image: linear-gradient(45deg, rgba(26, 26, 26, 0.3) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(26, 26, 26, 0.3) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(26, 26, 26, 0.3) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(26, 26, 26, 0.3) 75%);
}

/* Remover o movimento das setas */
.calendar-nav.prev:hover i,
.calendar-nav.next:hover i {
    transform: none; /* Remove o movimento das setas */
}

/* Estilos para o Modal de Eventos */
.event-modal-date {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 40px;
}

.event-modal-date .day {
    font-size: 42px;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1;
}

.event-modal-date .date-details {
    display: flex;
    flex-direction: column;
}

.event-modal-date .month {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.event-modal-date .time {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.event-modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.event-modal-location h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-modal-location p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.event-map {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-footer .btn {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alto Contraste */
[data-theme="high-contrast"] .event-modal-date .day {
    color: var(--yellow);
}

[data-theme="high-contrast"] .event-modal-title,
[data-theme="high-contrast"] .event-modal-location h3 {
    color: var(--text-white);
}

[data-theme="high-contrast"] .modal-content {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="high-contrast"] .btn-close {
    filter: invert(1);
}

/* Estilos atualizados para o Modal de Eventos */
#eventModal .modal-dialog {
    max-width: 500px;
}

#eventModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#eventModal .modal-header {
    background: var(--bg-primary);
    border-bottom: none;
    padding: 25px;
}

.event-modal-date {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px;
}

.event-modal-date .day {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.event-modal-date .date-details {
    display: flex;
    flex-direction: column;
}

.event-modal-date .month {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

.event-modal-date .time {
    font-size: 14px;
    color: #fff;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
}

#eventModal .btn-close {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    opacity: 1;
}

#eventModal .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#eventModal .modal-body {
    padding: 25px;
}

.event-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.event-modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 25px;
}

.event-modal-location h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-modal-location p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 15px;
}

.event-map {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

#eventModal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#eventModal .modal-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

/* Animação do Modal */
.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-30px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Alto Contraste */
[data-theme="high-contrast"] #eventModal .modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] #eventModal .modal-header {
    background: var(--yellow);
}

[data-theme="high-contrast"] .event-modal-date .day,
[data-theme="high-contrast"] .event-modal-date .month,
[data-theme="high-contrast"] .event-modal-date .time {
    color: var(--bg-primary);
}

[data-theme="high-contrast"] .event-modal-title,
[data-theme="high-contrast"] .event-modal-location h3 {
    color: var(--yellow);
}

[data-theme="high-contrast"] .event-modal-description,
[data-theme="high-contrast"] .event-modal-location p {
    color: var(--text-white);
}

[data-theme="high-contrast"] #eventModal .modal-footer {
    border-color: var(--border-color);
}

/* Responsivo */
@media (max-width: 576px) {
    #eventModal .modal-dialog {
        margin: 1rem;
    }

    .event-modal-date .day {
        font-size: 36px;
    }

    .event-modal-date .month {
        font-size: 16px;
    }

    #eventModal .modal-header,
    #eventModal .modal-body,
    #eventModal .modal-footer {
        padding: 20px;
    }

    .event-map {
        height: 160px;
    }
}

/* Animação do Modal - Entrada e Saída */
.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animação de saída */
.modal.fade.hide .modal-dialog {
    transform: scale(0.95) translateY(30px) !important;
    opacity: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal.closing .modal-dialog {
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajustes do calendário para alto contraste */
[data-theme="high-contrast"] .calendar-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .calendar-header {
    background: var(--yellow);
}

[data-theme="high-contrast"] .current-month {
    color: var(--bg-primary);
    font-weight: 700;
}

[data-theme="high-contrast"] .calendar-nav {
    background: var(--bg-primary);
    border-color: var(--bg-primary);
}

[data-theme="high-contrast"] .calendar-nav i {
    color: var(--yellow);
}

[data-theme="high-contrast"] .calendar-nav:hover {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="high-contrast"] .calendar-weekday {
    color: var(--yellow);
}

[data-theme="high-contrast"] .calendar-day {
    color: var(--text-white);
    border: 1px solid transparent;
}

[data-theme="high-contrast"] .calendar-day:not(.empty):hover {
    background: var(--hover-color);
    border-color: var(--yellow);
}

[data-theme="high-contrast"] .calendar-day.has-event {
    background: var(--yellow);
    color: var(--bg-primary);
    font-weight: 700;
}

[data-theme="high-contrast"] .calendar-day.has-event:hover {
    background: var(--yellow);
    opacity: 0.9;
    transform: scale(1.1);
}

[data-theme="high-contrast"] .calendar-day.empty {
    background: transparent;
    border-color: transparent;
}

/* Ajustes para a área de eventos em alto contraste */
[data-theme="high-contrast"] .events-wrapper {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="high-contrast"] .event-date {
    background: var(--yellow);
}

[data-theme="high-contrast"] .event-date::before {
    background: var(--bg-primary);
}

[data-theme="high-contrast"] .event-date .day,
[data-theme="high-contrast"] .event-date .month,
[data-theme="high-contrast"] .event-date .time {
    color: var(--bg-primary);
}

[data-theme="high-contrast"] .event-title {
    color: var(--yellow);
}

[data-theme="high-contrast"] .event-description {
    color: var(--text-white);
}

[data-theme="high-contrast"] .event-location {
    color: var(--text-white);
}

[data-theme="high-contrast"] .event-more {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--yellow);
}

[data-theme="high-contrast"] .event-more:hover {
    background: var(--hover-color);
    border-color: var(--yellow);
}

[data-theme="high-contrast"] .event-more i {
    color: var(--yellow);
}

/* Ajuste do fundo do grid do calendário em alto contraste */
[data-theme="high-contrast"] .calendar-grid {
    background: var(--bg-primary);
    padding: 20px;
}

[data-theme="high-contrast"] .calendar-day {
    color: var(--text-white);
}

[data-theme="high-contrast"] .calendar-day.empty {
    color: rgba(255, 255, 255, 0.2);
}

/* Ajuste do quick-access-grid para mobile */
@media (max-width: 768px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 375px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilo da barra de informações */
.info-bar {
    background: var(--yellow);
    padding: 8px 0;
    font-size: 13px;
    color: var(--bg-primary);
    font-weight: 500;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item i {
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 768px) {
    .info-bar .container {
        padding: 0 15px;
    }
    
    .info-bar .d-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Alto Contraste */
[data-theme="high-contrast"] .info-bar {
    background: var(--yellow);
    color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Estilos do Novo Footer */
.new-footer {
    background-color: var(--bg-primary);
    color: var(--text-white);
}

.footer-main {
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo e Redes Sociais */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Informações de Contato */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-group i {
    color: var(--yellow);
    font-size: 20px;
    margin-top: 4px;
}

.info-group p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Newsletter */
.footer-newsletter {
    max-width: 320px;
}

.footer-newsletter h4 {
    color: var(--yellow);
    font-size: 18px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 14px;
}

.newsletter-form button {
    background: var(--yellow);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    color: var(--bg-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Versão e Copyright */
.version-bar {
    background: rgba(26, 35, 80, 0.5); /* Cor mais sutil */
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    opacity: 0.6; /* Reduz a opacidade para ficar mais sutil */
}

/* Ajuste para alto contraste */
[data-theme="high-contrast"] .version-bar {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.copyright-bar {
    background: var(--bg-primary);
    padding: 15px 0 2px 0;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

/* Responsivo */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }

    .footer-info {
        align-items: center;
    }

    .info-group {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .version-info {
        flex-direction: column;
        gap: 5px;
    }
}

