/* ========================================
   PORTAL CIMBAJU - Main Stylesheet
   Consorcio Intermunicipal dos Municipios
   da Bacia do Juqueri
   ======================================== */

/* ========================================
   CSS RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #FAFAFA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Cores da Logo CIMBAJU */
    --cimbaju-azul: #0066B3;
    --cimbaju-azul-escuro: #004A82;
    --cimbaju-azul-claro: #E8F4FC;

    --cimbaju-vermelho: #E31C23;
    --cimbaju-vermelho-escuro: #B81419;

    --cimbaju-verde: #00A651;
    --cimbaju-verde-escuro: #007A3D;

    --cimbaju-laranja: #F7941D;
    --cimbaju-amarelo: #FFC20E;

    --cimbaju-preto: #1A1A1A;
    --cimbaju-cinza-escuro: #333333;
    --cimbaju-cinza: #666666;
    --cimbaju-cinza-claro: #F5F5F5;

    /* Interface */
    --background: #FAFAFA;
    --foreground: var(--cimbaju-preto);
    --primary: var(--cimbaju-azul);
    --primary-dark: var(--cimbaju-azul-escuro);
    --secondary: var(--cimbaju-verde);
    --accent: var(--cimbaju-laranja);

    /* Spacing */
    --max-width: 1100px;
    --header-height: 140px;
}

/* ========================================
   UTILITIES
   ======================================== */

/* Container */
.max-w-content {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }

/* Size */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-48 { height: 12rem; }
.h-52 { height: 13rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Text */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.break-all { word-break: break-all; }
.whitespace-nowrap { white-space: nowrap; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-100 { color: #dbeafe; }
.text-blue-200 { color: #bfdbfe; }
.text-green-100 { color: #dcfce7; }

.text-cimbaju-azul { color: var(--cimbaju-azul); }
.text-cimbaju-azul-escuro { color: var(--cimbaju-azul-escuro); }
.text-cimbaju-verde { color: var(--cimbaju-verde); }
.text-cimbaju-laranja { color: var(--cimbaju-laranja); }
.text-cimbaju-vermelho { color: var(--cimbaju-vermelho); }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-black { background-color: #000000; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #dcfce7; }
.bg-orange-100 { background-color: #ffedd5; }

.bg-cimbaju-azul { background-color: var(--cimbaju-azul); }
.bg-cimbaju-azul-escuro { background-color: var(--cimbaju-azul-escuro); }
.bg-cimbaju-azul-claro { background-color: var(--cimbaju-azul-claro); }
.bg-cimbaju-verde { background-color: var(--cimbaju-verde); }
.bg-cimbaju-verde-escuro { background-color: var(--cimbaju-verde-escuro); }
.bg-cimbaju-laranja { background-color: var(--cimbaju-laranja); }
.bg-cimbaju-cinza-claro { background-color: var(--cimbaju-cinza-claro); }
.bg-cimbaju-preto { background-color: var(--cimbaju-preto); }
.bg-cimbaju-cinza-escuro { background-color: var(--cimbaju-cinza-escuro); }

/* Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-t-4 { border-top-width: 4px; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-cimbaju-azul { border-color: var(--cimbaju-azul); }
.border-cimbaju-verde { border-color: var(--cimbaju-verde); }
.border-cimbaju-laranja { border-color: var(--cimbaju-laranja); }
.border-cimbaju-cinza-escuro { border-color: var(--cimbaju-cinza-escuro); }
.border-solid { border-style: solid; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-b-lg { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Pointer */
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* Transform */
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.rotate-180 { transform: rotate(180deg); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* List */
.list-disc { list-style-type: disc; }
.list-decimal { list-style-type: decimal; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.pl-6 { padding-left: 1.5rem; }

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.prose-cimbaju h1,
.prose-cimbaju h2,
.prose-cimbaju h3,
.prose-cimbaju h4,
.prose-cimbaju h5,
.prose-cimbaju h6 {
    color: var(--cimbaju-preto);
}

.prose-cimbaju p {
    line-height: 1.7;
    color: var(--cimbaju-cinza-escuro);
}

.prose-cimbaju a {
    color: var(--cimbaju-azul);
}

.prose-cimbaju a:hover {
    color: var(--cimbaju-azul-escuro);
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Button */
.btn-cimbaju {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background-color: var(--cimbaju-azul);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-cimbaju:hover {
    background-color: var(--cimbaju-azul-escuro);
}

.btn-cimbaju-verde {
    background-color: var(--cimbaju-verde);
}

.btn-cimbaju-verde:hover {
    background-color: var(--cimbaju-verde-escuro);
}

/* Card */
.card-shadow {
    box-shadow: 0 2px 8px rgba(0, 102, 179, 0.08);
}

.card-shadow:hover {
    box-shadow: 0 4px 16px rgba(0, 102, 179, 0.15);
}

/* Badge */
.badge-categoria {
    background-color: var(--cimbaju-azul-claro);
    color: var(--cimbaju-azul);
}

.badge-destaque {
    background-color: var(--cimbaju-laranja);
    color: white;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top-bar {
    background-color: var(--cimbaju-azul-escuro);
}

.header-main {
    background-color: white;
}

.header-nav {
    background-color: var(--cimbaju-azul);
}

.header-nav a {
    color: white;
    padding: 0.75rem 1rem;
    display: block;
    font-weight: 500;
}

.header-nav a:hover,
.header-nav .current-menu-item > a {
    background-color: var(--cimbaju-azul-escuro);
    color: var(--cimbaju-laranja);
}

/* Dropdown menu */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 50;
    list-style: none;
    padding: 0.5rem 0;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    color: var(--cimbaju-cinza-escuro);
    padding: 0.5rem 1rem;
}

.sub-menu a:hover {
    background-color: var(--cimbaju-azul);
    color: white;
}

/* Search form */
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--cimbaju-azul);
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.search-form button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-form button:hover {
    color: var(--cimbaju-azul);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--cimbaju-azul);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: white;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--cimbaju-cinza-escuro);
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
    background-color: var(--cimbaju-azul-claro);
    color: var(--cimbaju-azul);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--cimbaju-preto);
    color: white;
}

.site-footer a {
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--cimbaju-laranja);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--cimbaju-cinza-escuro);
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.footer-social a:hover {
    background-color: var(--cimbaju-azul);
}

/* ========================================
   BANNER CAROUSEL
   ======================================== */
.banner-section {
    background-color: #f3f4f6;
    padding: 1.5rem 0;
}

.banner-carousel {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.banner-carousel .swiper-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    color: white;
}

.banner-caption h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.swiper-button-prev,
.swiper-button-next {
    width: 2.5rem !important;
    height: 2.5rem !important;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: white;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem !important;
    color: var(--cimbaju-cinza-escuro);
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.7);
}

.swiper-pagination-bullet-active {
    background-color: var(--cimbaju-azul);
}

/* ========================================
   CARDS
   ======================================== */

/* Noticia Card */
.noticia-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.noticia-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.noticia-card-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.noticia-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.noticia-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cimbaju-azul) 0%, var(--cimbaju-azul-escuro) 100%);
    font-size: 2.5rem;
}

.noticia-card-content {
    padding: 1.25rem;
}

.noticia-card-title {
    font-weight: 700;
    color: var(--cimbaju-preto);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.noticia-card:hover .noticia-card-title {
    color: var(--cimbaju-azul);
}

.noticia-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--cimbaju-azul);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.75rem;
}

.noticia-card-link:hover {
    color: var(--cimbaju-azul-escuro);
}

/* Municipio Card */
.municipio-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.municipio-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.municipio-card-brasao {
    height: 13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: white;
    border-bottom: 1px solid #f3f4f6;
}

.municipio-card-brasao img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.municipio-card:hover .municipio-card-brasao img {
    transform: scale(1.1);
}

.municipio-card-content {
    padding: 1.25rem;
}

.municipio-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cimbaju-preto);
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.municipio-card:hover .municipio-card-title {
    color: var(--cimbaju-azul);
}

/* ========================================
   SECTIONS
   ======================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--cimbaju-azul) 0%, var(--cimbaju-azul-escuro) 100%);
    padding: 3rem 0 4rem;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: #bfdbfe;
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* Transparencia Section */
.section-transparencia {
    background-color: var(--cimbaju-verde);
    color: white;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
}

/* About Section */
.section-sobre {
    background-color: var(--cimbaju-azul);
    color: white;
    padding: 2.5rem 0;
}

/* Contact Card */
.contact-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
    border-top: 4px solid var(--cimbaju-azul);
}

.contact-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: var(--cimbaju-azul-claro);
}

.contact-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--cimbaju-azul);
}

/* Form */
.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cimbaju-cinza-escuro);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--cimbaju-azul);
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   SINGLE NOTICIA
   ======================================== */
.noticia-hero {
    position: relative;
}

.noticia-hero-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.noticia-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.noticia-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 0 2rem;
}

.noticia-content {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.noticia-content p {
    margin-bottom: 1.25rem;
    color: #374151;
    line-height: 1.75;
    font-size: 1.125rem;
}

.noticia-content h2 {
    font-size: 1.5rem;
    color: var(--cimbaju-azul-escuro);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.noticia-content h3 {
    font-size: 1.25rem;
    color: var(--cimbaju-azul-escuro);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.noticia-content ul,
.noticia-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.noticia-content li {
    margin-bottom: 0.5rem;
}

.noticia-content blockquote {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--cimbaju-azul);
    font-style: italic;
    color: #4b5563;
}

/* ========================================
   SINGLE MUNICIPIO
   ======================================== */
.municipio-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #e5e7eb;
}

.municipio-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.municipio-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2), transparent);
}

.municipio-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 0;
}

.municipio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.municipio-stat-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.municipio-stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.municipio-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.municipio-stat-label {
    color: #4b5563;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 700;
    color: var(--cimbaju-azul);
    line-height: 1;
}

.error-404 h2 {
    font-size: 1.5rem;
    color: var(--cimbaju-cinza-escuro);
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--cimbaju-cinza);
    margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:block { display: block; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:h-\[220px\] { height: 220px; }
    .sm\:h-\[350px\] { height: 350px; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:items-center { align-items: center; }

    .banner-carousel .swiper-slide img {
        height: 220px;
    }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:text-left { text-align: left; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:gap-8 { gap: 2rem; }
    .md\:h-\[280px\] { height: 280px; }
    .md\:h-\[400px\] { height: 400px; }

    .banner-carousel .swiper-slide img {
        height: 280px;
    }

    .page-header {
        padding: 4rem 0 5rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .municipio-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:order-1 { order: 1; }
    .lg\:order-2 { order: 2; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:h-\[320px\] { height: 320px; }
    .lg\:h-\[450px\] { height: 450px; }
    .lg\:w-80 { width: 20rem; }

    .banner-carousel .swiper-slide img {
        height: 320px;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .header-nav-desktop {
        display: flex !important;
    }
}

/* ========================================
   HOVER STATES
   ======================================== */
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-cimbaju-azul:hover { background-color: var(--cimbaju-azul); }
.hover\:bg-cimbaju-azul-escuro:hover { background-color: var(--cimbaju-azul-escuro); }
.hover\:bg-cimbaju-azul-claro:hover { background-color: var(--cimbaju-azul-claro); }
.hover\:bg-cimbaju-verde:hover { background-color: var(--cimbaju-verde); }
.hover\:bg-cimbaju-verde-escuro:hover { background-color: var(--cimbaju-verde-escuro); }
.hover\:bg-green-50:hover { background-color: #f0fdf4; }
.hover\:text-white:hover { color: white; }
.hover\:text-cimbaju-azul:hover { color: var(--cimbaju-azul); }
.hover\:text-cimbaju-azul-escuro:hover { color: var(--cimbaju-azul-escuro); }
.hover\:text-cimbaju-laranja:hover { color: var(--cimbaju-laranja); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:gap-2:hover { gap: 0.5rem; }

.group:hover .group-hover\:text-cimbaju-azul { color: var(--cimbaju-azul); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* ========================================
   FOCUS STATES
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--cimbaju-azul);
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px var(--cimbaju-azul);
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
    background-color: var(--cimbaju-azul);
    color: white;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--cimbaju-azul);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cimbaju-azul-escuro);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

/* Align classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Screen reader text */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navigation */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    background-color: var(--cimbaju-azul);
    color: white;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.nav-links a:hover {
    background-color: var(--cimbaju-azul-escuro);
}

/* Post navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Comments */
.comments-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.comment-author {
    font-weight: 600;
}

.comment-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--cimbaju-azul);
    border-color: var(--cimbaju-azul);
    color: white;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    border-radius: 0.5rem;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background-color: var(--cimbaju-azul-claro);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9fafb;
}
