/* ============================================================
   CÂMARA MUNICIPAL DE PETROLINA - PORTAL INSTITUCIONAL
   Sistema de Design Moderno & Cívico (US/Civic Modern Guidelines)
   Blocos Arredondados, Alta Legibilidade, WCAG 2.1 AA & Bento Grids
   ============================================================ */

:root {
  /* Paleta Petrolina & Vale do São Francisco */
  --primary-navy: #081d38;
  --primary-deep: #0b2545;
  --primary-blue: #134074;
  --primary-vibrant: #1d4ed8;
  --accent-cyan: #0284c7;
  --accent-teal: #0d9488;
  --accent-gold: #f59e0b;
  --accent-amber: #fbbf24;
  
  /* Superfícies & Cores Neutras */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  
  /* Tipografia & Contraste */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-dark: #ffffff;
  
  /* Bordas & Divisores */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

  /* Sombras Modernas Suaves (Elevation System) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(11, 37, 69, 0.12), 0 10px 15px -5px rgba(11, 37, 69, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(8, 29, 56, 0.18);
  --shadow-hover: 0 22px 40px -10px rgba(13, 64, 116, 0.18);

  /* Blocos Arredondados Modernos (Border Radii) */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transições Fluídas */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease;
  --transition-normal: all 0.28s var(--ease-spring);
  --transition-slow: all 0.45s var(--ease-spring);
}

/* ============================================================
   ACESSIBILIDADE: CONTRASTE WCAG 2.1 AA & FONTES
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--border-focus) !important;
  outline-offset: 3px !important;
  border-radius: var(--radius-xs);
}

/* Modo Alto Contraste */
body.contrast-high,
body.high-contrast {
  --bg-page: #000000 !important;
  --bg-surface: #0a0a0a !important;
  --bg-subtle: #121212 !important;
  --bg-card: #050505 !important;
  --text-primary: #ffffff !important;
  --text-secondary: #fef08a !important;
  --text-muted: #fef08a !important;
  --border-subtle: #facc15 !important;
  --border-strong: #facc15 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.contrast-high * {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #facc15 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.contrast-high header,
body.contrast-high nav,
body.contrast-high footer,
body.contrast-high .admin-card,
body.contrast-high .noticia-card,
body.contrast-high .parlamentar-card,
body.contrast-high .bg-white {
  background-color: #000000 !important;
  border: 2px solid #facc15 !important;
}

body.contrast-high a {
  color: #facc15 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

body.contrast-high .badge {
  background-color: #000000 !important;
  color: #facc15 !important;
  border: 1.5px solid #facc15 !important;
}

/* Redimensionamento de Fonte */
html[data-font-size="small"] { font-size: 14px; }
html[data-font-size="normal"] { font-size: 16px; }
html[data-font-size="large"] { font-size: 18px; }
html[data-font-size="xlarge"] { font-size: 20px; }

/* ============================================================
   ESTRUTURA GERAL & TIPOGRAFIA
   ============================================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* ============================================================
   1. BARRA SUPERIOR DE ACESSIBILIDADE
   ============================================================ */
.accessibility-bar-top {
  background-color: #051427;
  color: #ffffff;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.accessibility-bar-top a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.accessibility-bar-top a:hover {
  color: #ffffff;
}

.access-shortcut-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================================================
   2. CABEÇALHO INSTITUCIONAL & IDENTIDADE
   ============================================================ */
.main-header {
  background: linear-gradient(135deg, #07192f 0%, #0d284f 55%, #134074 100%);
  color: #ffffff;
  padding: 1.25rem 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: #ffffff;
}

.header-logo-img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
  transition: var(--transition-normal);
}

.header-brand:hover .header-logo-img {
  transform: scale(1.06) rotate(-2deg);
}

.header-title-box h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.header-title-box p {
  font-size: 0.85rem;
  margin: 3px 0 0;
  color: #93c5fd;
  font-weight: 500;
}

/* ============================================================
   SELO DE QUALIDADE RADAR NACIONAL NO CABEÇALHO
   ============================================================ */
.header-radar-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.15rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.header-radar-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.header-selo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.header-radar-badge:hover .header-selo-img {
  transform: scale(1.08) rotate(-2deg);
}

.badge-selo-ouro {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #07192f;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.header-radar-org {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-radar-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
}

.header-radar-sub {
  color: #94a3b8;
  font-size: 0.78rem;
  display: block;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.header-radar-badge:hover .header-radar-sub {
  color: #e2e8f0;
}

/* ============================================================
   3. NAVBAR HORIZONTAL FLUTUANTE MODERNA (STICKY)
   ============================================================ */
.main-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  padding: 0.35rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid var(--border-subtle);
}

.main-navbar .nav-link {
  color: var(--text-primary);
  font-weight: 650;
  font-size: 1.08rem;
  padding: 0.7rem 1rem !important;
  border-radius: var(--radius-pill);
  margin: 0 2px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.main-navbar .nav-link i {
  font-size: 1.18rem;
  color: var(--primary-vibrant);
  transition: transform 0.2s ease;
}

.main-navbar .nav-link:hover i {
  transform: scale(1.12);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--primary-vibrant);
  background-color: var(--bg-subtle);
}

.main-navbar .dropdown-menu {
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  margin-top: 8px;
  min-width: 260px;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-navbar .dropdown-item {
  padding: 0.7rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-navbar .dropdown-item i {
  font-size: 1.08rem;
  width: 22px;
  text-align: center;
}

@media (min-width: 992px) and (max-width: 1250px) {
  .main-navbar .nav-link {
    font-size: 0.98rem;
    padding: 0.6rem 0.65rem !important;
    gap: 6px;
  }
}

@media (max-width: 991.98px) {
  .main-navbar .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 1rem !important;
  }
}
  font-weight: 500;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navbar .dropdown-item:hover {
  background-color: #eff6ff;
  color: var(--primary-vibrant);
  transform: translateX(4px);
}

/* ============================================================
   4. HERO BANNER MODERNO (RADIAL MESH & FLOATING SEARCH)
   ============================================================ */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(29, 78, 216, 0.3) 0%, transparent 70%),
              linear-gradient(135deg, #071a33 0%, #0a254b 60%, #0d3468 100%);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-coat {
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  transition: var(--transition-normal);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Caixa de Busca Flutuante com Glassmorphism */
.hero-search-wrapper {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.hero-search-input-group {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-pill);
  padding: 8px;
  display: flex;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.hero-search-input-group:focus-within {
  box-shadow: 0 24px 50px -8px rgba(29, 78, 216, 0.4);
  transform: translateY(-2px);
}

.hero-search-input-group input {
  border: none;
  outline: none;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  color: var(--text-primary);
  flex: 1;
  background: transparent;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.hero-search-input-group button {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-vibrant));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-search-input-group button:hover {
  background: linear-gradient(135deg, #061933, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.4);
}

.hero-quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.hero-quick-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-quick-pill:hover {
  background: #ffffff;
  color: var(--primary-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   5. BANNER RADAR ATRICON (CARD ARREDONDADO FLUTUANTE)
   ============================================================ */
.radar-atricon-bar {
  background: transparent;
  margin-top: -32px;
  position: relative;
  z-index: 10;
  padding-bottom: 1.5rem;
}

.radar-atricon-content {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #e0f2fe 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.radar-atricon-badge-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.radar-badge-img {
  height: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

.radar-text h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
  letter-spacing: -0.01em;
}

.radar-text p {
  font-size: 0.85rem;
  color: #475569;
  margin: 2px 0 0;
  font-weight: 500;
}

.btn-radar-consultar {
  background: #1e3a8a;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-radar-consultar:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

/* ============================================================
   TÍTULOS DE SEÇÃO MODERNOS
   ============================================================ */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2.75rem;
  position: relative;
}

.section-pill-tag {
  background: #eff6ff;
  color: var(--primary-vibrant);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.5rem;
  border: 1px solid #bfdbfe;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   6. DESTAQUES & NOTÍCIAS (CARDS COM BORDAS ARREDONDADAS DE 24px)
   ============================================================ */
.destaque-card-large {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 440px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  background: #000;
  border: 1px solid var(--border-subtle);
}

.destaque-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}

.destaque-card-large:hover img {
  transform: scale(1.04);
}

.destaque-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 29, 56, 0.96) 0%, rgba(8, 29, 56, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem;
  color: #ffffff;
}

.destaque-tag {
  background: rgba(2, 132, 199, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.destaque-title-large {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 0.65rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: var(--transition-fast);
}

.destaque-title-large:hover {
  color: var(--accent-amber);
}

.destaque-desc-large {
  font-size: 0.925rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* Cards Menores (Grid de Destaques Secundários) */
.destaque-card-small {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  background: #000;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.destaque-card-small:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 78, 216, 0.4);
}

.destaque-card-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}

.destaque-card-small:hover img {
  transform: scale(1.06);
}

.destaque-card-small-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 29, 56, 0.94) 0%, rgba(8, 29, 56, 0.4) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: #ffffff;
}

.destaque-card-small-overlay h4 {
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

/* ============================================================
   7. ÚLTIMAS NOTÍCIAS (CARDS ARREDONDADOS COM MICRO-LIFT)
   ============================================================ */
.noticia-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
}

.noticia-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.noticia-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.noticia-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}

.noticia-card:hover .noticia-card-img-wrap img {
  transform: scale(1.06);
}

.noticia-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-vibrant));
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  letter-spacing: 0.05em;
}

.noticia-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.noticia-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.6rem;
}

.noticia-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.noticia-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.btn-ler-mais {
  color: var(--primary-vibrant);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-ler-mais:hover {
  color: var(--primary-deep);
  gap: 10px;
}

/* ============================================================
   8. BANNERS DE SISTEMAS RÁPIDOS (BENTO STYLE 20px)
   ============================================================ */
.sistema-card {
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 115px;
}

.sistema-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  color: #ffffff;
}

.sistema-card-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.sistema-card-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
}

.sistema-card-orange {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.sistema-card-cyan {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.sistema-card-text h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.sistema-card-text p {
  font-size: 0.85rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.sistema-card-icon {
  font-size: 2.65rem;
  opacity: 0.9;
  transition: transform 0.4s var(--ease-spring);
}

.sistema-card:hover .sistema-card-icon {
  transform: scale(1.15) rotate(6deg);
}

/* ============================================================
   9. PARLAMENTARES / VEREADORES (CARDS ARREDONDADOS 24px)
   ============================================================ */
.parlamentares-filter-bar {
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border-subtle);
}

.parlamentares-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.parlamentares-tab-btn {
  background: var(--bg-subtle);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.parlamentares-tab-btn.active,
.parlamentares-tab-btn:hover {
  background: var(--primary-deep);
  color: #ffffff;
}

.parlamentar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.parlamentar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #93c5fd;
}

.parlamentar-card-header {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parlamentar-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
  transition: transform 0.4s var(--ease-spring);
}

.parlamentar-card:hover .parlamentar-avatar {
  transform: scale(1.06);
}

.mesa-diretora-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f59e0b;
  color: #78350f;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.parlamentar-card-body {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.parlamentar-nome {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.015em;
}

.parlamentar-nome-completo {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.parlamentar-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge-partido {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.badge-cargo {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.btn-perfil-parlamentar {
  margin-top: auto;
  background: #eff6ff;
  color: var(--primary-vibrant);
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.btn-perfil-parlamentar:hover {
  background: var(--primary-vibrant);
  color: #ffffff;
  border-color: var(--primary-vibrant);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* ============================================================
   10. TV LEGISLATIVA & PRÓXIMA SESSÃO (CINEMA CARD 24px)
   ============================================================ */
.tv-legislativa-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: #000000;
}

.tv-video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tv-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-live-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-normal);
  text-decoration: none;
}

.tv-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ffffff;
  color: #b91c1c;
}

.sessao-info-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   BLOCO HORIZONTAL VERDE: TV CÂMARA & SESSÕES PLENÁRIAS
   ============================================================ */
.tv-section-green {
  background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.35) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
              linear-gradient(135deg, #053b2d 0%, #064e3b 45%, #047857 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-section-green .section-pill-tag {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.tv-section-green .section-title {
  color: #ffffff !important;
}

.tv-section-green .section-subtitle {
  color: #a7f3d0 !important;
}

.tv-section-green .tv-card-equal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.tv-section-green .tv-card-equal:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35);
}

.tv-video-preview-rounded {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  background: #000000;
}

.tv-video-preview-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tv-video-preview-rounded:hover img {
  transform: scale(1.05);
}

.tv-section-green .sessao-info-box {
  background: #f0fdf4;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #bbf7d0;
}

.tv-section-green .sessao-countdown-alert {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  font-weight: 600;
}

/* ============================================================
   11. MATÉRIAS LEGISLATIVAS & NORMAS (CARDS COM BORDAS ARREDONDADAS)
   ============================================================ */
.materia-item-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: var(--transition-normal);
}

.materia-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.materia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.materia-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.materia-badge-blue { background: #dbeafe; color: #1e40af; }
.materia-badge-purple { background: #f3e8ff; color: #7e22ce; }
.materia-badge-green { background: #dcfce7; color: #15803d; }

.materia-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.materia-ementa {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.materia-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   12. PRINCIPAIS SERVIÇOS TRANSPARÊNCIA (BENTO GRID 20px)
   ============================================================ */
.servico-transparencia-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  height: 100%;
}

.servico-transparencia-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #93c5fd;
  color: var(--primary-vibrant);
}

.servico-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition-normal);
}

.servico-transparencia-card:hover .servico-icon-wrap {
  background: var(--primary-vibrant);
  color: #ffffff;
  transform: scale(1.1);
}

.servico-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

/* ============================================================
   13. CANAL DO CIDADÃO & SERVIÇOS ÚTEIS
   ============================================================ */
.cidadao-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: var(--transition-normal);
}

.cidadao-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.cidadao-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-vibrant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cidadao-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 3px;
}

.cidadao-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   14. MAPA & LOCALIZAÇÃO
   ============================================================ */
.map-container {
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   15. RODAPÉ INSTITUCIONAL MODERNO
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #07192f 0%, #040e1c 100%);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent-amber);
  border-radius: var(--radius-pill);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

.footer-contact-item i {
  color: var(--accent-amber);
  font-size: 1.05rem;
  margin-top: 3px;
}

.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.825rem;
  color: #64748b;
}

/* ============================================================
   ACESSIBILIDADE FLUTUANTE & DRAWER MODAL
   ============================================================ */
.accessibility-floating-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-deep);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(11, 37, 69, 0.4);
  z-index: 1040;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.accessibility-floating-toggle:hover {
  background: var(--primary-vibrant);
  transform: scale(1.05);
}

.accessibility-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 1060;
  transition: right 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.accessibility-drawer.open {
  right: 0;
}

.accessibility-drawer-header {
  background: var(--primary-deep);
  color: #ffffff;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accessibility-drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-opt-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-opt-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-vibrant);
}

/* ============================================================
   PARLAMENTARES LICENCIADOS (Efeito claro / inativo suave)
   ============================================================ */
.parlamentar-card.is-licenciado {
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  opacity: 0.88;
}

.parlamentar-card.is-licenciado:hover {
  transform: translateY(-3px) !important;
  border-color: #94a3b8 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important;
}

.parlamentar-card.is-licenciado .parlamentar-card-header {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}

.parlamentar-card.is-licenciado .parlamentar-avatar {
  filter: grayscale(85%) opacity(0.65) brightness(1.15) !important;
  border: 4px solid #f1f5f9 !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.15) !important;
}

.parlamentar-card.is-licenciado .parlamentar-nome {
  color: #64748b !important;
}

.licenciado-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #64748b;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.badge-cargo-licenciado {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.btn-perfil-licenciado {
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
}

.btn-perfil-licenciado:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

.licenciado-avatar-modal {
  filter: grayscale(85%) opacity(0.7) brightness(1.15) !important;
}


/* ============================================================
   MODAL DE BUSCA CENTRAL INTELIGENTE
   ============================================================ */
[x-cloak] {
  display: none !important;
}

.search-cat-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-normal);
}

.search-cat-pill:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.search-cat-pill.active {
  background: #0b2545;
  border-color: #0b2545;
  color: #ffffff;
}

.search-result-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.search-result-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.search-result-sub {
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   DROPDOWN DE AUTOCOMPLETE / BUSCA RÁPIDA NA BARRA PRINCIPAL
   ========================================================================== */
.hero-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1060;
  overflow: hidden;
  text-align: left;
}

.hero-search-dropdown-list {
  max-height: 400px;
  overflow-y: auto;
}

.dropdown-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease-in-out;
  color: inherit;
}

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

.dropdown-result-item:hover {
  background-color: #f8fafc;
}

.dropdown-result-item:hover .dropdown-result-title {
  color: #124294 !important;
}

.dropdown-result-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  color: #ffffff;
}

.dropdown-result-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #1e293b;
}

.dropdown-result-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
}
