/* Global Styles */
:root {
    --primary-color: #00318B;
    --secondary-color: #f8f9fa;
    --accent-color: #00a1df;
    --light-bg: #ffffff;
    --dark-blue: #003366;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-color: #002366;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevenir scroll horizontal globalmente */
*,
*::before,
*::after {
    max-width: 100%;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    position: relative;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 1rem;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Seções */
.content-section {
    padding: 2rem 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin: 2rem 0;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Listas */
ul {
    list-style: none;
}

li {
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 95%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 90%;
    }
    
    .content-section {
        padding: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Acessibilidade */
.high-contrast {
    background-color: #000;
    color: #fff;
}

.high-contrast a {
    color: #fff;
}

.high-contrast .btn-primary {
    background-color: #fff;
    color: #000;
}

/* Animações suaves */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Navigation Link Styles - REMOVIDO (consolidado abaixo) */

/* Global Styles */
:root {
    --primary-color: #00318B;
    --secondary-color: #f8f9fa;
    --accent-color: #00a1df;
    --light-bg: #f8f9fa;
    --dark-blue: #003366;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #6c757d;
    --white: #ffffff;
}

/* Ensure font scaling works properly across the entire site */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 1rem;
}

.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 992px) {
    .container-fluid {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

a:hover {
    color: #002366;
}

img {
    max-width: 100%;
}

.section-heading {
    position: relative;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.section-heading h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
}

.section-heading .highlight {
    color: var(--primary-color);
    position: relative;
}

.section-heading .highlight:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    border-radius: 2px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #002366;
    border-color: #002366;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.btn-outline-primary i {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover i {
    color: white;
}

/* Accessibility Bar */
.accessibility-bar {
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 0;
}

.accessibility-wrapper {
    display: flex;
    align-items: center;
}

.accessibility-options {
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 1rem;
}

.accessibility-options span {
    font-weight: 600;
    margin-right: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.accessibility-options a {
    color: white;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    font-size: 0.95rem;
    text-decoration: none;
    margin-left: 0.5rem;
}

.accessibility-options a:hover {
    text-decoration: underline;
}

.accessibility-options .decrease-font {
    font-size: 0.9rem;
    margin-right: 0;
}

.accessibility-options .increase-font {
    font-size: 0.9rem;
}

.services-icons img, .social-media-top a {
    margin: 0 0.5rem;
}

.social-media-top a {
    color: white;
    font-size: 1.2rem;
}

.social-media-top a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Main Header */
.main-header {
    background-color: #002b70;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 70px;
}

/* Search Container Styles */
.search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: white;
    font-size: 0.9rem;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
}

/* Desktop: ajustes finos no container do menu */
@media (min-width: 992px) {
    .main-nav {
        padding-right: 0.5rem;
    }
}

.main-header-row {
    position: relative;
}

.mobile-menu-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.8rem;
    justify-content: flex-end;
}

/* Desktop: espaçamento otimizado entre itens */
@media (min-width: 992px) {
    .nav-list {
        gap: 0.3rem;
        flex-wrap: nowrap;
    }
}

/* Mobile: mantém espaçamento adequado */
@media (max-width: 991px) {
    .nav-list {
        gap: 0.5rem;
        flex-direction: column;
    }
}

.dropdown-toggle-icon {
    display: none;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    color: inherit;
}

.nav-list li {
    position: relative;
}

/* ========================================
   NAVIGATION LINKS - ESTILO UNIFICADO
   Aplicado em TODAS as páginas (index, secretarias, órgãos)
   Garante consistência visual em todo o site
   ======================================== */
.nav-link {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    color: white !important;
    display: block !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
}

/* Desktop: tamanho de fonte otimizado */
@media (min-width: 992px) {
    .nav-link {
        font-size: 0.7rem !important;
        padding: 0.5rem 0.6rem !important;
        letter-spacing: 0.01em !important;
    }
}

/* Mobile: mantém tamanho legível */
@media (max-width: 991px) {
    .nav-link {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }
}

.nav-link:hover {
    color: #00A1DF !important;
}

.nav-link:visited,
.nav-link:active,
.nav-link:focus {
    color: white !important;
}

.nav-link:hover:visited,
.nav-link:hover:active,
.nav-link:hover:focus {
    color: #00A1DF !important;
}

/* Dropdown Menus */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: #002b70;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
    border: none;
}

.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content ul li {
    margin: 0;
    width: 100%;
}

.dropdown-content ul li a {
    display: block;
    padding: 0.4rem 1rem;
    color: white;
    font-size: 0.75rem;
    border-left: 3px solid transparent;
}

.dropdown-content ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #00A1DF;
    border-left: 3px solid #00A1DF;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-menu-toggle.active {
    color: #f5f7ff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(0, 24, 63, 0.58);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 27, 51, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 998;
    pointer-events: none;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

/* Services Hero Section */
.services-hero-section {
    padding: 2rem 0;
    background-color: #fff;
    position: relative;
    min-height: 200px;
}

.hero-content {
    min-height: 100px;
    position: relative;
    display: flex;
    align-items: center;
}

.services-heading {
    padding-left: 2rem;
}

.services-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0;
    text-transform: uppercase;
}

.services-heading .highlight {
    color: var(--primary-color);
    position: relative;
}

.services-heading .highlight:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* Service Icons Container */
.service-icons-container {
    margin-top: 2rem;
    position: relative;
}

.service-icon-item {
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon-item a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 15px;
}

.service-icon-item a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon-item a:hover span {
    color: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-icon-item a:hover .service-icon {
    background: white;
    transform: scale(1.1);
}

.service-icon-item a:hover .service-icon i {
    color: var(--primary-color);
}

.service-icon-item span {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Banner Section */
.banner-section {
    margin: 2rem 0;
}

/* Services 1746 Section */
.services-1746-section {
    padding: 3rem 0;
    background-color: #fff;
}

.service-1746-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service-1746-item {
    text-align: center;
    padding: 0.5rem;
    flex: 0 0 12.5%;
    max-width: 12.5%;
}

.service-1746-item a {
    display: block;
    color: var(--text-color);
}

.service-1746-icon {
    background-color: #f2f2f2;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.service-1746-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-1746-item a:hover .service-1746-icon {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
}

.service-1746-item a:hover .service-1746-icon i {
    color: white;
}

.service-1746-item span {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
}

/* News Section Moderna */
.news-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

/* Sistema universal de imagens - mesma imagem funciona em todos os locais */
/* Dimensão ideal: 1920x1080px (16:9) */
.news-section .card-img-top {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.news-section .col-md-6 .card-img-top,
.news-section .col-md-3 .card-img-top {
    height: auto;
    max-height: 360px;
}

/* Garantir consistência em todas as imagens de notícias sem cortar */
.news-section img,
.news-card img,
.card-img-top {
    object-fit: contain;
    object-position: center;
    height: auto;
    max-height: 360px;
    width: 100%;
    background: #f8f9fa;
}

.news-section .section-heading h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.news-section .section-heading h1:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.big-news, .small-news {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.big-news::before, .small-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.big-news:hover::before, .small-news:hover::before {
    opacity: 1;
}

.big-news > *, .small-news > * {
    position: relative;
    z-index: 1;
}

.big-news img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    background: #f8f9fa;
}

.small-news img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    background: #f8f9fa;
}

.big-news:hover img, .small-news:hover img {
    transform: scale(1.05);
}

.big-news .badge, .small-news .badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0090c8 100%);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.big-news h3, .small-news h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    transition: all 0.4s ease;
}

.big-news p, .small-news p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #888;
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.news-meta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    transition: all 0.4s ease;
}

.big-news:hover h3, .small-news:hover h3,
.big-news:hover p, .small-news:hover p,
.big-news:hover .news-meta, .small-news:hover .news-meta {
    color: white;
}

.big-news:hover .news-meta i, .small-news:hover .news-meta i {
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0090c8 100%);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Paginação Moderna */
.pagination {
    margin-top: 4rem;
    justify-content: center;
}

.page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.3rem;
    border: none;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
}

/* Diário Oficial and Portal do Servidor Section */
.diario-portal-section {
    padding: 3rem 0;
    background-color: #f8f8f8;
}

.diario-oficial-container, .portal-servidor-container {
    background-color: white;
    padding: 2rem;
    height: 100%;
    color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.diario-oficial-container:hover, .portal-servidor-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
}

.diario-oficial-container:hover h2,
.portal-servidor-container:hover h2,
.diario-oficial-container:hover h2 .highlight,
.portal-servidor-container:hover h2 .highlight,
.diario-oficial-container:hover p,
.portal-servidor-container:hover p {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.diario-oficial-container:hover .diario-icon,
.portal-servidor-container:hover .portal-icon {
    background: white;
}

.diario-oficial-container:hover .diario-icon i,
.portal-servidor-container:hover .portal-icon i {
    color: var(--primary-color);
}

.diario-oficial-container:hover .diario-btn,
.portal-servidor-container:hover .portal-btn {
    background-color: white;
    color: white;
    border-color: white;
}

.diario-oficial-container:hover .diario-btn:hover,
.portal-servidor-container:hover .portal-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: white;
}

.diario-icon, .portal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0090c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.diario-icon i, .portal-icon i {
    font-size: 1.5rem;
    color: white;
}

.diario-content h2,
.portal-content h2,
.fale-conosco-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.diario-content h2:after,
.portal-content h2:after,
.fale-conosco-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.diario-content h2 .highlight,
.portal-content h2 .highlight,
.fale-conosco-content h2 .highlight {
    color: var(--primary-color);
}

.diario-content p, .portal-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.diario-content img,
.portal-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.diario-content .row,
.portal-content .row {
    align-items: center;
}

.diario-btn, .portal-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 100%;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.diario-btn:hover, .portal-btn:hover {
    background-color: #002366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .diario-btn, .portal-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .diario-content p,
    .portal-content p {
        font-size: 0.9rem;
    }
    
    .diario-content .row,
    .portal-content .row {
        text-align: center;
    }
    
    .diario-content img,
    .portal-content img {
    margin-bottom: 1.5rem;
    }
}

/* Fale Conosco Section */
.fale-conosco-section {
    padding: 3rem 0;
    background-color: #fff;
}

.social-media-section {
    padding: 3rem 0;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
    background-color: rgba(0, 49, 139, 0.05);
}

.social-link i.fa-facebook-square {
    color: #1877f2;
    font-size: 2rem;
}

.social-link i.fa-instagram {
    font-size: 2rem;
    background: -webkit-linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-card {
    padding: 1.5rem;
    height: 100%;
    background-color: #f8f8f8;
    border-color: var(--primary-color);
}

.contact-card:hover {
    background-color: rgba(0, 49, 139, 0.05);
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-icons {
    display: flex;
    margin-top: 1rem;
}

.app-icon {
    max-width: 60px;
    margin-right: 1rem;
}

.riotur-logo, .data-rio-logo {
    max-height: 50px;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background-color: #002b70;
    color: #fff;
    padding: 3rem 0 0;
    position: relative;
}

.footer-navigation {
    padding-bottom: 3rem;
}

.footer-menu {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-menu-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.footer-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.footer-icon img {
    max-width: 30px;
    max-height: 30px;
}

.footer-menu-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    color: #00a1df;
    transform: translateX(5px);
}

.footer-menu:hover .footer-icon {
    background-color: #00a1df;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    background-color: #002b70;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 50px;
    margin: 0 auto;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.copyright p {
    margin-bottom: 0;
}

.copyright a {
    color: #00a1df;
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: 2rem;
}

.footer-bottom-links a:hover {
    color: #00a1df;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .service-icon-item, .service-1746-item {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .big-news h3 {
        font-size: 1.1rem;
    }
    
    .small-news h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .services-hero-section {
        background-image: none;
    }
    
    .main-nav {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list li {
        margin: 0.25rem 0.5rem;
    }
    
    .service-icon-item, .service-1746-item {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
    
    .big-news img {
        height: 250px;
    }
    
    .small-news-img img {
        height: 120px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .contact-card {
    margin-bottom: 1.5rem;
}

    .diario-oficial-container, .portal-servidor-container {
        margin-bottom: 2rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        background: rgba(0, 24, 63, 0.35);
        color: #f5f7ff;
        backdrop-filter: blur(6px);
        transition: all 0.3s ease;
    }
    
    /* Hide main nav by default on mobile */
    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(82vw, 320px);
        height: 100vh;
        background: linear-gradient(180deg, rgba(0, 43, 112, 0.96) 0%, rgba(0, 21, 59, 0.98) 100%);
        z-index: 999;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 18px rgba(0, 0, 0, 0.25);
        transition: transform 0.35s ease, opacity 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Scrollbar personalizado para menu mobile */
    .main-nav::-webkit-scrollbar {
        width: 8px;
    }
    
    .main-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }
    
    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }
    
    .main-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        margin: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        color: #f5f7ff;
        letter-spacing: 0.03em;
        transition: color 0.2s ease;
    }
    
    .nav-link:hover,
    .nav-link:focus {
        color: #83c9ff;
    }
    
    .dropdown-toggle-icon {
        display: inline-flex;
        align-items: center;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.75);
        transition: transform 0.25s ease, color 0.25s ease;
    }

.nav-link[aria-expanded="true"] .dropdown-toggle-icon {
    transform: rotate(180deg);
    color: #83c9ff;
}
    
    /* Mobile dropdown styles - PROFISSIONAL */
    .nav-item.dropdown {
        position: relative !important;
    }
    
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        display: none !important;
        background: rgba(0, 24, 63, 0.85) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        overflow: visible !important;
        opacity: 0 !important;
        transform: translateY(-8px) !important;
        transition: opacity 0.25s ease, transform 0.25s ease, display 0s linear 0.25s !important;
        max-height: 0 !important;
        z-index: 10 !important;
        position: relative !important;
    }
    
    .dropdown-menu[style*="display: block"],
    .nav-item.dropdown.active .dropdown-menu,
    .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.4s ease !important;
        max-height: 800px !important;
    }
    
    .dropdown-content {
        padding: 0.5rem 0 !important;
        max-height: 750px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Scrollbar personalizado para dropdowns */
    .dropdown-content::-webkit-scrollbar {
        width: 6px !important;
    }
    
    .dropdown-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 3px !important;
    }
    
    .dropdown-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3) !important;
        border-radius: 3px !important;
    }
    
    .dropdown-content::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5) !important;
    }
    
    .dropdown-content ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .dropdown-content ul li {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .dropdown-content ul li a {
        display: block !important;
        padding: 0.9rem 1.25rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        font-size: 0.95rem !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        border-left: 3px solid transparent !important;
        border-radius: 0 !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        position: relative !important;
    }
    
    .dropdown-content ul li a:hover,
    .dropdown-content ul li a:focus,
    .dropdown-content ul li a:active {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #a8d5ff !important;
        border-left-color: #a8d5ff !important;
        padding-left: 1.5rem !important;
        transform: translateX(4px) !important;
    }
    
    .main-nav.active ~ .mobile-nav-backdrop,
    body.nav-open .mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .main-header .search-container {
        max-width: 100%;
    }

    .mobile-menu-toggle {
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.3);
    }
}

@media (max-width: 768px) {
    .accessibility-bar .col-md-7 {
        display: none;
    }
    
    .accessibility-bar .col-md-3,
    .accessibility-bar .col-md-2 {
        width: 50%;
    }
    
    .social-media-top {
        text-align: center;
    }
    
    .main-header .col-md-3,
    .main-header .col-md-4,
    .main-header .col-md-5 {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .search-container {
        margin-bottom: 1rem;
    }
    
    .service-icon-item, .service-1746-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 28px;
    }
    
    .service-1746-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-1746-icon i {
        font-size: 28px;
    }
    
    .section-heading h2 {
        font-size: 1.7rem;
    }
    
    .services-heading h2 {
        font-size: 1.7rem;
        text-align: center;
    }
    
    .service-icons-container, .service-1746-icons {
        justify-content: center;
    }
    
    .news-section .col-md-6,
    .news-section .col-md-3 {
        width: 100%;
    }
    
    .big-news {
    margin-bottom: 2rem;
}

    .big-news img {
        height: auto;
        max-height: 300px;
    }
    
    .small-news {
        margin-bottom: 2rem;
    }
    
    .diario-portal-section .col-md-6,
    .diario-portal-section .col-md-5,
    .diario-portal-section .col-md-7 {
        width: 100%;
    }
    
    .diario-content .row,
    .portal-content .row {
        flex-direction: column;
    }
    
    .diario-content .col-md-5,
    .portal-content .col-md-5 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .diario-content img,
    .portal-content img {
        max-width: 250px;
    }
    
    .diario-oficial-container,
    .portal-servidor-container {
        text-align: center;
    }
    
    .social-media-section {
        padding: 2rem 0;
    }
    
    .social-link {
        margin: 0.5rem;
        font-size: 1rem;
    }
    
    .social-link i {
        font-size: 1.5rem;
    }
    
    .contact-methods .col-md-4 {
        width: 100%;
    }
    
    .footer-navigation {
        text-align: center;
    }
    
    .footer-menu-title {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-links a {
        margin: 0.5rem 0;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .accessibility-options span {
        display: none;
    }
    
    .section-heading h2 {
    font-size: 1.5rem;
    }
    
    .services-heading h2 {
        font-size: 1.5rem;
    }
    
    .service-icon-item, .service-1746-item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0.25rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .service-1746-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-1746-icon i {
        font-size: 24px;
    }
    
    .service-icon-item span,
    .service-1746-item span {
        font-size: 0.7rem;
    }
    
    .btn-todas-noticias {
        width: 100%;
    }
    
    .app-icons {
        justify-content: center;
    }
    
    .footer-menu-title h3 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-navigation .col-md {
        width: 100%;
    }
}

/* Additional responsive fixes for very small devices */
@media (max-width: 400px) {
    .service-icon-item, .service-1746-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .service-icon, .service-1746-icon {
        margin: 0 auto;
    }
    
    .social-media-top a {
        font-size: 1rem;
        margin: 0 0.3rem;
    }
}

.dropdown-toggle-icon {
    margin-left: 0.5rem;
    font-size: 0.7rem;
}

/* Accessibility States */
body.grayscale {
    filter: grayscale(100%);
}

body.grayscale .preciso-menu-header,
body.grayscale .preciso-menu-options a {
    filter: grayscale(0%);
}

body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast .preciso-menu-header {
    background-color: #fff !important;
    color: #000 !important;
}

body.negative-contrast {
    filter: invert(100%);
}

body.negative-contrast .preciso-menu-header,
body.negative-contrast .preciso-menu-options a {
    filter: invert(100%);
}

body.links-underline a {
    text-decoration: underline !important;
}

body.readable-font,
body.readable-font p,
body.readable-font span,
body.readable-font a,
body.readable-font div,
body.readable-font h1,
body.readable-font h2,
body.readable-font h3,
body.readable-font h4,
body.readable-font h5,
body.readable-font h6,
body.readable-font li {
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Estilos do botão de acessibilidade */
.preciso-panel {
    position: fixed;
    right: 10px;
    top: 20%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.preciso-toggle {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    padding: 0;
}

.preciso-toggle i {
    color: white;
    font-size: 24px;
}

.preciso-toggle:hover {
    background-color: #002366;
}

.preciso-menu {
    position: absolute;
    top: 0;
    right: 50px;
    width: 250px;
    background-color: white;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.preciso-panel.active .preciso-menu {
    display: block;
}

.preciso-menu-header {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 16px;
}

.preciso-menu-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.preciso-menu-options li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.preciso-menu-options li a:hover {
    background: rgba(0, 49, 139, 0.1);
    color: var(--primary-color);
}

.preciso-menu-options li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Estilos do menu de filtros */
.filter-panel {
    position: fixed;
    right: 10px;
    top: calc(20% + 60px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.filter-toggle {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    padding: 0;
}

.filter-toggle i {
    color: white;
    font-size: 24px;
}

.filter-toggle:hover {
    background-color: #002366;
}

.filter-menu {
    position: absolute;
    top: 0;
    right: 50px;
    width: 250px;
    background-color: white;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.filter-panel.active .filter-menu {
    display: block;
}

.filter-menu-header {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 16px;
}

.filter-options {
    padding: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.apply-filter {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-filter:hover {
    background-color: #002366;
}

/* Responsividade */
@media (max-width: 768px) {
    .preciso-panel,
    .filter-panel {
        position: fixed;
        right: 10px;
        top: auto;
        bottom: 20px;
    }
    
    .filter-panel {
        bottom: 80px;
    }
    
    .preciso-menu,
    .filter-menu {
        right: auto;
        left: 10px;
        width: calc(100% - 20px);
    }
}

.btn-todas-noticias {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-todas-noticias:hover {
    background-color: #002366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-todas-noticias i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .btn-todas-noticias {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* News Cards */
.news-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.news-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.news-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3,
.news-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.85rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.news-meta i {
    color: var(--primary-color);
}

/* Big News Card */
.big-news .news-image img {
    max-height: 320px;
    height: auto;
    object-fit: contain;
}

.big-news .news-content h3 {
    font-size: 1.4rem;
}

/* Small News Card */
.small-news .news-image img {
    max-height: 220px;
    height: auto;
    object-fit: contain;
}

.small-news .news-content h4 {
    font-size: 1.1rem;
}

/* Botão Leia Mais */
.news-card .btn-primary {
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .big-news .news-image,
    .small-news .news-image {
        height: 200px;
    }
    
    .news-content h3 {
        font-size: 1.3rem;
    }
    
    .news-content h4 {
        font-size: 1.1rem;
    }
}

.news-card:hover .news-content h3,
.news-card:hover .news-content h4 {
    color: white;
}

.news-card:hover .news-meta,
.news-card:hover .news-meta i {
    color: white;
}

/* Ouvidoria Section */
.ouvidoria-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
    position: relative;
}

.ouvidoria-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
    opacity: 0.1;
    z-index: 0;
}

.ouvidoria-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-color);
}

.ouvidoria-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.ouvidoria-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.ouvidoria-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.ouvidoria-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ouvidoria-btn:hover {
    background-color: #002366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.ouvidoria-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .ouvidoria-section {
    padding: 4rem 0;
}

    .ouvidoria-content h2 {
        font-size: 2rem;
    }
    
    .ouvidoria-content p {
        font-size: 1rem;
    }
    
    .ouvidoria-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.about-card h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.about-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-section {
    padding: 3rem 0;
}

    .about-card {
        padding: 1.5rem;
    }
    
    .about-card h2 {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
}

/* Manifestação Section */
.manifestacao-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.manifestacao-cards {
    margin-top: 2rem;
}

.manifestacao-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.manifestacao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
}

.manifestacao-card:hover h3,
.manifestacao-card:hover p {
    color: white;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0090c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

.manifestacao-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
.manifestacao-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.card-hover-content {
    opacity: 1;
    transition: all 0.3s ease;
}

.manifestacao-card .btn-outline-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.manifestacao-card:hover .btn-outline-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.manifestacao-card:hover .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 0;
    background-color: white;
}

.contact-cards {
    margin-top: 2rem;
}

.contact-info-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
        text-align: center;
    }
    
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
}

.contact-info-card:hover h3,
.contact-info-card:hover p {
    color: white;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0090c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
        font-size: 2rem;
    color: white;
    }
    
.contact-info-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
.contact-info-card p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.horario {
    font-style: italic;
    margin-top: 1rem;
}

/* Relatórios Section */
.relatorios-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.relatorios-cards {
    margin-top: 2rem;
}

.relatorio-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.relatorio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
}

.relatorio-card:hover h3 {
    color: white;
}

.relatorio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0090c8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.relatorio-icon i {
    font-size: 2rem;
    color: white;
}

.relatorio-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
.download-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background-color: #002366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.download-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .manifestacao-section,
    .contact-info-section,
    .relatorios-section {
        padding: 3rem 0;
    }
    
    .manifestacao-card,
    .contact-info-card,
    .relatorio-card {
        margin-bottom: 2rem;
    }
    
    .card-icon,
    .contact-icon,
    .relatorio-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i,
    .contact-icon i,
    .relatorio-icon i {
        font-size: 1.5rem;
    }
    
    .manifestacao-card h3,
    .contact-info-card h3,
    .relatorio-card h3 {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Secretaria Pages */
.secretaria-hero-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
    color: white;
    position: relative;
        text-align: center;
    overflow: hidden;
}

.secretaria-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/wave-pattern.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.secretaria-hero-section .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.secretaria-hero-section h1 {
    font-size: 2.8rem;
        margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 700;
}

.secretaria-hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Sobre Secretaria Section */
.sobre-secretaria-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.sobre-secretaria-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.sobre-content {
    position: relative;
    z-index: 2;
}

.sobre-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.sobre-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.sobre-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
}

.sobre-features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #6c757d;
}

.sobre-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    color: white;
}

.overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .sobre-secretaria-section {
        padding: 4rem 0;
    }

    .sobre-content h2 {
        font-size: 2rem;
    }

    .sobre-image {
        margin-top: 2rem;
        height: 400px;
    }
}

@media (max-width: 767px) {
    .sobre-secretaria-section {
        padding: 3rem 0;
    }

    .sobre-content h2 {
        font-size: 1.8rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .sobre-image {
        height: 300px;
    }
}

/* ========================================
   CARROSSEL - ESTILOS PROFISSIONAIS E MODERNOS
   ======================================== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color: #f5f5f5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 100%;
}

.carousel-inner {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    width: 100%;
    height: 100%;
}

/* Desktop: altura padrão para slides */
.carousel-item {
    position: relative;
    background-color: #f5f5f5;
    height: 450px !important;
    min-height: 450px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
}

/* Garantir altura para #imageCarousel (index) - 1170x270 */
#imageCarousel {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    display: block !important;
    width: 100% !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
}

#imageCarousel .carousel-item {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

#imageCarousel .carousel-inner {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    width: 100% !important;
}

/* Garantir altura para #adminCarousel (secretarias/órgãos) */
#adminCarousel {
    height: 270px !important;
    min-height: 270px !important;
    display: block !important;
}

#adminCarousel .carousel-item {
    height: 270px !important;
    min-height: 270px !important;
}

#adminCarousel .carousel-inner {
    height: 270px !important;
    min-height: 270px !important;
}

.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background-color: #f5f5f5;
    transition: transform 0.5s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

/* Garantir que imagens sempre apareçam */
.carousel-item.active img,
.carousel-item img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Altura específica para #imageCarousel - 1170x270 */
#imageCarousel .carousel-item img {
    width: 100% !important;
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Altura específica para #adminCarousel */
#adminCarousel .carousel-item img {
    min-height: 270px !important;
    max-height: 270px !important;
    height: 270px !important;
}

/* Links dentro do carousel */
.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

    /* Setas de Navegação - Desktop Profissional (Inspirado Prefeitura Rio) */
/* REMOVER BOTÕES DE NAVEGAÇÃO DO CAROUSEL - Apenas indicadores são usados */
    .carousel-control-prev,
.carousel-control-next,
#adminCarousel .carousel-control-prev,
#adminCarousel .carousel-control-next,
button.carousel-control-prev,
button.carousel-control-next {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    overflow: hidden !important;
}

/* Mantido para compatibilidade, mas não será exibido */
.carousel-control-prev-old,
.carousel-control-next-old {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.85) !important;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.85 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        margin: 0 12px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: rgba(255, 255, 255, 0.95) !important;
        opacity: 1 !important;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px !important;
        height: 18px !important;
        background-size: 100%;
        filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(3000%) hue-rotate(210deg) brightness(0.4) contrast(1.2);
    }
    
    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300318B'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") !important;
    }
    
    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300318B'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") !important;
    }

/* ========================================
   INDICADORES DO CARROSSEL - PROFISSIONAL
   ======================================== */
/* Indicadores Profissionais (Inspirado Prefeitura Rio) */
.carousel-indicators {
    bottom: 12px !important;
    margin-bottom: 0 !important;
    gap: 5px !important;
    z-index: 15 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.35rem 0.5rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border-radius: 16px !important;
    width: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
}

.carousel-indicators [data-bs-target],
.carousel-indicators button {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    margin: 0 1.5px !important;
    opacity: 1 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    text-indent: 0 !important;
    padding: 0 !important;
}

.carousel-indicators .active,
.carousel-indicators button.active {
    background-color: #00318B !important;
    border-color: #00318B !important;
    width: 20px !important;
    height: 6px !important;
    border-radius: 3px !important;
    transform: scale(1) !important;
    box-shadow: 0 1px 6px rgba(0, 49, 139, 0.5) !important;
}

/* Botão "CLIQUE AQUI" */
.carousel-caption .btn-primary {
    background-color: #00BCD4;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.carousel-caption .btn-primary:hover {
    background-color: #00ACC1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
} 

/* Estilos do Main */
main {
    min-height: calc(100vh - 400px);
    background-color: var(--white);
    padding-top: 0;
    margin-top: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002b70 100%);
    padding: 8rem 0 6rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1,
.hero-content h1,
.hero-section .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cards e Categorias */
.category-card {
    margin-bottom: 3rem;
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-card h2 i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .category-card {
        padding: 1.5rem;
    }
}

/* Correção sobreposição busca x menu PREFEITURA */
@media (min-width: 992px) {
  .main-header .search-container {
    margin-bottom: 0;
    z-index: 2;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
  }
  .main-header .col-md-3 {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-header .row .col-md-7 .nav-list .nav-item .nav-link {
    font-size: 0.7rem !important; /* Desktop: tamanho otimizado */
    padding: 0.5rem 0.6rem !important; /* Desktop: padding otimizado */
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
  }
}
@media (max-width: 991px) {
  .main-header .col-md-3,
  .main-header .col-md-7 {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    position: static;
  }
  .main-header .search-container {
    margin-bottom: 1rem;
    z-index: 2;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
  }
}

/* Correção definitiva para autor/data das notícias - cor azul */
.news-card:hover .news-meta,
.news-card:hover .news-meta *,
.big-news:hover .news-meta,
.big-news:hover .news-meta *,
.small-news:hover .news-meta,
.small-news:hover .news-meta * {
    color: var(--primary-color) !important;
    opacity: 1 !important;
    background: none !important;
    text-shadow: none !important;
}

/* ========================================
   MELHORIAS MOBILE PROFISSIONAIS
   ======================================== */

/* ========================================
   CARROSSEL SECTION - ESTILOS GLOBAIS
   ======================================== */
.carousel-section {
    padding: 1.5rem 0;
    background-color: white;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.carousel-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.carousel-section .container #imageCarousel {
    position: relative;
    z-index: 1;
}

#imageCarousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: #f5f5f5;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    position: relative;
    display: block !important;
    transition: box-shadow 0.3s ease;
}

#imageCarousel:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* ========================================
   CARROSSEL MOBILE - DESIGN PROFISSIONAL
   Baseado na Prefeitura do Rio de Janeiro
   ======================================== */
@media (max-width: 768px) {
    /* Container principal */
    .carousel-section {
        padding: 1rem 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        background-color: #ffffff;
    }
    
    .carousel-section .container {
        padding: 0 12px;
        max-width: 100%;
    }
    
    /* Wrapper do carrossel */
    #imageCarousel,
    .admin-carousel-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        background-color: #f5f5f5;
    }
    
    /* Carrossel principal */
    #imageCarousel {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    #imageCarousel .carousel-inner {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    /* Itens do carrossel */
    .carousel-item,
    #imageCarousel .carousel-item,
    #adminCarousel .carousel-item {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f5f5f5;
        overflow: hidden;
    }
    
    /* Imagens - contain para mostrar completa */
    .carousel-item img,
    #imageCarousel .carousel-item img,
    #adminCarousel .carousel-item img {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        background-color: #f5f5f5;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Botões de navegação - Compactos e elegantes */
    #imageCarousel .carousel-control-prev,
    #imageCarousel .carousel-control-next,
    #adminCarousel .carousel-control-prev,
    #adminCarousel .carousel-control-next {
        width: 32px !important;
        height: 32px !important;
        margin: 0 4px !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        border-radius: 50% !important;
        opacity: 0.9 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
        border: none !important;
        z-index: 10 !important;
        transition: all 0.2s ease !important;
    }
    
    #imageCarousel .carousel-control-prev:hover,
    #imageCarousel .carousel-control-next:hover,
    #imageCarousel .carousel-control-prev:active,
    #imageCarousel .carousel-control-next:active,
    #adminCarousel .carousel-control-prev:hover,
    #adminCarousel .carousel-control-next:hover,
    #adminCarousel .carousel-control-prev:active,
    #adminCarousel .carousel-control-next:active {
        opacity: 1 !important;
        background-color: #ffffff !important;
        transform: translateY(-50%) scale(1.05) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18) !important;
    }
    
    #imageCarousel .carousel-control-prev-icon,
    #imageCarousel .carousel-control-next-icon,
    #adminCarousel .carousel-control-prev-icon,
    #adminCarousel .carousel-control-next-icon {
        width: 14px !important;
        height: 14px !important;
        filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(3000%) hue-rotate(210deg) brightness(0.4) contrast(1.2);
    }
    
    /* Indicadores - Discretos e profissionais */
    #imageCarousel .carousel-indicators,
    #adminCarousel .carousel-indicators {
        bottom: 8px !important;
        gap: 4px !important;
        padding: 0.25rem 0.4rem !important;
        background: rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
    
    #imageCarousel .carousel-indicators button,
    #adminCarousel .carousel-indicators button {
        width: 4px !important;
        height: 4px !important;
        margin: 0 1px !important;
        border: 1px solid rgba(255, 255, 255, 0.7) !important;
        border-radius: 50% !important;
        opacity: 0.7 !important;
        background-color: rgba(255, 255, 255, 0.6) !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        text-indent: 0 !important;
    }
    
    #imageCarousel .carousel-indicators button.active,
    #adminCarousel .carousel-indicators button.active {
        width: 14px !important;
        height: 4px !important;
        border-radius: 2px !important;
        background-color: #00318B !important;
        border-color: #00318B !important;
        opacity: 1 !important;
        box-shadow: 0 1px 4px rgba(0, 49, 139, 0.5) !important;
    }
    
    /* Captions */
    .carousel-caption {
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem 0.8rem 0.8rem;
        text-align: left;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem !important;
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        line-height: 1.3;
    }
    
    .carousel-caption p {
        font-size: 0.85rem !important;
        margin-bottom: 0.8rem;
        opacity: 0.95;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-caption .btn {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
        border-radius: 20px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 3px 10px rgba(0, 188, 212, 0.3);
    }
    
    /* Indicadores Mobile - PROFISSIONAL */
    .carousel-indicators,
    #adminCarousel .carousel-indicators {
        bottom: 10px !important;
        margin-bottom: 0 !important;
        gap: 5px !important;
        z-index: 15 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.35rem 0.5rem !important;
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border-radius: 15px !important;
        width: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
    
    .carousel-indicators [data-bs-target],
    #adminCarousel .carousel-indicators button {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.7) !important;
        margin: 0 1.5px !important;
        opacity: 1 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        text-indent: 0 !important;
        padding: 0 !important;
    }
    
    .carousel-indicators .active,
    #adminCarousel .carousel-indicators button.active {
        background-color: #00318B !important;
        border-color: #00318B !important;
        width: 20px !important;
        height: 6px !important;
        border-radius: 3px !important;
        transform: scale(1) !important;
        box-shadow: 0 2px 6px rgba(0, 49, 139, 0.7) !important;
    }
    
    /* Botões de navegação - PROFISSIONAL */
    .carousel-control-prev,
    .carousel-control-next,
    #adminCarousel .carousel-control-prev,
    #adminCarousel .carousel-control-next {
        width: 44px !important;
        height: 44px !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        border-radius: 50% !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        opacity: 1 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        margin: 0 8px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 20 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .carousel-control-prev {
        left: 8px !important;
    }
    
    .carousel-control-next {
        right: 8px !important;
    }
    
    .carousel-control-prev:active,
    .carousel-control-next:active,
    #adminCarousel .carousel-control-prev:active,
    #adminCarousel .carousel-control-next:active {
        transform: translateY(-50%) scale(0.92) !important;
        background-color: rgba(255, 255, 255, 1) !important;
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover,
    #adminCarousel .carousel-control-prev:hover,
    #adminCarousel .carousel-control-next:hover {
        background-color: #fff !important;
        transform: translateY(-50%) scale(1.08) !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon,
    #adminCarousel .carousel-control-prev-icon,
    #adminCarousel .carousel-control-next-icon {
        width: 20px !important;
        height: 20px !important;
        background-size: 100% !important;
        filter: none !important;
    }
    
    .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300318B'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") !important;
    }
    
    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300318B'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") !important;
    }
    
    /* Garantir que os botões sejam sempre clicáveis */
    .carousel-control-prev::before,
    .carousel-control-next::before,
    #adminCarousel .carousel-control-prev::before,
    #adminCarousel .carousel-control-next::before {
        content: '';
        position: absolute;
        inset: -8px;
        z-index: -1;
    }
}

/* Imagens Destacadas Mobile */
@media (max-width: 768px) {
    .news-section {
        padding: 2rem 0;
    }
    
    .news-section .container {
        padding: 0 15px;
    }
    
    .big-news {
        margin-bottom: 1.5rem;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .big-news:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .big-news img {
        height: 200px !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }
    
    .big-news:hover img {
        transform: scale(1.03);
    }
    
    .small-news {
        margin-bottom: 1.5rem;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
    }
    
    .small-news:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    .small-news img {
        height: 160px !important;
        width: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease;
    }
    
    .small-news:hover img {
        transform: scale(1.03);
    }
    
    .big-news .card-body,
    .small-news .card-body {
        padding: 1.2rem;
    }
    
    .big-news .card-title,
    .small-news .card-title {
        font-size: 1.2rem !important;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        color: var(--primary-color);
    }
    
    .big-news .card-text,
    .small-news .card-text {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #666;
        margin-bottom: 1.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .big-news .btn,
    .small-news .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        border-radius: 20px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }
    
    .big-news .btn:hover,
    .small-news .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 49, 139, 0.3);
    }
}

/* Botões Flutuantes Mobile - CORRIGIDOS */
@media (max-width: 768px) {
    .preciso-panel {
        position: fixed;
        right: 15px;
        bottom: 20px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
    }
    
    .preciso-toggle {
        background: linear-gradient(135deg, var(--primary-color) 0%, #002366 100%);
        color: white;
        border: none;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 49, 139, 0.3);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .preciso-toggle:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 49, 139, 0.4);
    }
    
    .preciso-toggle:active {
        transform: translateY(0) scale(0.95);
    }
    
    .preciso-toggle i {
        font-size: 24px;
        color: white;
        z-index: 1;
    }
    
    .preciso-menu {
        position: absolute;
        bottom: 70px;
        right: 0;
        width: 280px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        border: 1px solid rgba(0,0,0,0.05);
        display: none;
        overflow: hidden;
        backdrop-filter: blur(10px);
    }
    
    .preciso-panel.active .preciso-menu {
        display: block;
        animation: slideUpFade 0.3s ease-out;
    }
    
    @keyframes slideUpFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .preciso-menu-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, #002366 100%);
        color: white;
        padding: 1rem 1.5rem;
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
        position: relative;
    }
    
    .preciso-menu-options {
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .preciso-menu-options li a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 0.9rem;
    }
    
    .preciso-menu-options li:last-child a {
        border-bottom: none;
    }
    
    .preciso-menu-options li a:hover {
        background: linear-gradient(135deg, rgba(0, 49, 139, 0.05) 0%, rgba(0, 43, 112, 0.05) 100%);
        color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .preciso-menu-options li a i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
        font-size: 16px;
        color: var(--primary-color);
    }
}

/* Melhorias Gerais Mobile */
@media (max-width: 768px) {
    /* Melhorar performance de scroll */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Otimizar animações para mobile */
    .carousel-item,
    .big-news,
    .small-news,
    .preciso-toggle {
        will-change: transform;
    }
    
    /* Melhorar contraste para acessibilidade */
    .carousel-caption h3,
    .carousel-caption p {
        text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    }
    
    /* Otimizar toque para botões */
    .preciso-toggle,
    .carousel-caption .btn,
    .big-news .btn,
    .small-news .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Melhorar espaçamento para toque */
    .preciso-menu-options li a {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
}

/* Responsividade Extra Pequena */
@media (max-width: 480px) {
    .carousel-item {
        height: 180px !important;
    }
    
    .carousel-caption h3 {
        font-size: 1.1rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
    }
    
    .carousel-caption .btn {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .preciso-menu {
        width: calc(100% - 30px);
        max-width: calc(100vw - 30px);
        right: 15px;
    }
    
    .big-news img {
        height: 160px !important;
    }
    
    .small-news img {
        height: 130px !important;
    }
}

/* =====================================================
   VLibras - Posicionamento do Widget de Libras
   ===================================================== */

/* Container do VLibras */
/*
div[vw] {
    position: fixed !important;
    z-index: 9998 !important;
}
*/

/* Botão do VLibras - posicionado acima do painel de acessibilidade */
/*
div[vw] .access-button,
div[vw] [vw-access-button] {
    position: fixed !important;
    right: 10px !important;
    bottom: 90px !important; 
    z-index: 9998 !important;
}
*/

/* Ajuste do plugin wrapper */
div[vw] .vw-plugin-wrapper,
div[vw] [vw-plugin-wrapper] {
    z-index: 9997 !important;
}

/* Responsividade do VLibras */
div[vw] .access-button,
div[vw] [vw-access-button] {
    right: 5px !important;
}

@media (max-width: 768px) {
    div[vw] .access-button,
    div[vw] [vw-access-button] {
        bottom: 85px !important;
    }
    
    /* Ajustar painel de acessibilidade para mobile */
    .preciso-panel {
        bottom: 15px !important;
        right: 15px !important;
    }
}

@media (max-width: 480px) {
    div[vw] .access-button,
    div[vw] [vw-access-button] {
        bottom: 80px !important;
        transform: scale(0.9);
    }
    
    .preciso-panel {
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .preciso-toggle {
        width: 48px !important;
        height: 48px !important;
    }
}

.pm-whatsapp-cta {
    position: fixed;
    right: 20px;
    bottom: 110px;
    z-index: 9996;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 1.4rem;
    line-height: 1.3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pm-whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #1ebe5c;
    color: #ffffff;
}

.pm-whatsapp-cta:focus-visible {
    outline: 3px solid #00318B;
    outline-offset: 3px;
}

.pm-whatsapp-cta i {
    color: #ffffff;
}

@media (max-width: 992px) {
    .pm-whatsapp-cta {
        bottom: 110px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .pm-whatsapp-cta {
        bottom: 110px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 480px) {
    .pm-whatsapp-cta {
        bottom: 110px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}
