/* ============================================
   Prefeitura Municipal de Francisco Beltrão
   CSS Customizado - Layout Moderno
   ============================================ */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  max-height: 75px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1.15rem;
  transition: all 0.3s ease;
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  min-height: 55vh;
  position: relative;
}

.hero-slide {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(0, 86, 179, 0.85) 100%);
  z-index: 1;
}

.hero-slide-1 {
  background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-slide-2 {
  background-image: url('https://images.unsplash.com/photo-1514565131-fce0801e5785?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

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

.min-vh-55 {
  min-height: 55vh !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
  left: 2rem;
}

.carousel-control-next {
  right: 2rem;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
  transition: transform 0.3s ease;
}

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

.service-card .btn {
  transition: all 0.3s ease;
}

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

/* ============================================
   News Cards
   ============================================ */
.card {
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* ============================================
   Event Cards
   ============================================ */
.event-date {
  width: 80px;
  margin: 0 auto;
  border-radius: 0.5rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-icon {
  width: 50px;
  text-align: center;
}

.contact-info .d-flex {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.contact-info .d-flex:last-child {
  border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a58ca 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.3);
}

/* ============================================
   Forms
   ============================================ */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

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

/* ============================================
   Sections
   ============================================ */
section {
  padding: 5rem 0;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* ============================================
   Utilities
   ============================================ */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
  }

  .hero-slide {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  section {
    padding: 3rem 0;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: 1rem;
  }

  .carousel-control-next {
    right: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand img {
    max-height: 50px;
  }

  .hero-slide h1 {
    font-size: 1.75rem;
  }

  .hero-slide .lead {
    font-size: 1rem;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Scroll to Top Button (opcional)
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #0a58ca;
  transform: translateY(-5px);
}

/* ============================================
   Páginas de Secretarias
   ============================================ */
.secretaria-icon {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.secretaria-card {
  transition: all 0.3s ease;
}

.secretaria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15) !important;
}

.secretaria-icon-small {
  transition: transform 0.3s ease;
}

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

.secao-icon {
  width: 60px;
  text-align: center;
}

.list-group-item {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  border-left-color: var(--primary-color);
  padding-left: calc(1rem + 3px);
}

.list-group-item.active {
  background-color: #e7f1ff;
  border-left-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

/* ============================================
   Dropdown de Secretarias no Menu
   ============================================ */
.dropdown-menu-secretarias {
  min-width: 280px;
  padding: 0.25rem 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dropdown-menu-secretarias .dropdown-item {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  color: var(--dark-color);
  font-weight: 500;
}

.dropdown-menu-secretarias .dropdown-item:hover {
  background-color: #e7f1ff;
  border-left-color: var(--primary-color);
  padding-left: calc(1rem + 3px);
  color: var(--primary-color);
}

.dropdown-menu-secretarias .dropdown-item:hover .flex-grow-1 {
  color: var(--primary-color);
  font-weight: 600;
}

.dropdown-menu-secretarias .dropdown-item:active,
.dropdown-menu-secretarias .dropdown-item:focus {
  background-color: var(--primary-color);
  color: white;
}

.dropdown-menu-secretarias .dropdown-item:active .flex-grow-1,
.dropdown-menu-secretarias .dropdown-item:focus .flex-grow-1 {
  color: white;
}

.dropdown-menu-secretarias .dropdown-item:active .department-icon-wrapper i,
.dropdown-menu-secretarias .dropdown-item:focus .department-icon-wrapper i {
  color: white !important;
}

.dropdown-menu-secretarias .dropdown-item:active .fas.fa-chevron-right,
.dropdown-menu-secretarias .dropdown-item:focus .fas.fa-chevron-right {
  color: rgba(255, 255, 255, 0.9) !important;
}

.department-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.department-icon-wrapper i {
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.dropdown-menu-secretarias .dropdown-item:hover .department-icon-wrapper {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.1) 100%);
  transform: scale(1.05);
}

.dropdown-menu-secretarias .dropdown-item:hover .department-icon-wrapper i {
  transform: scale(1.1);
}

.dropdown-menu-secretarias .dropdown-item .fas.fa-chevron-right {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.dropdown-menu-secretarias .dropdown-item:hover .fas.fa-chevron-right {
  opacity: 1;
  transform: translateX(3px);
}

/* ============================================
   Loading Spinner (opcional)
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
/*  animation: spin 1s ease-in-out infinite;*/
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Página O Município
   ============================================ */

/* Header do Município */
.municipio-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* Navegação da Página */
.municipio-nav {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1010 !important;
}

.municipio-nav-pills .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.municipio-nav-pills .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

.municipio-nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Seções do Município */
.news-gallery .gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-gallery .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.news-gallery .gallery-overlay {
  background: rgba(0, 102, 161, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-gallery .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.news-gallery .gallery-caption {
  font-size: 0.85rem;
  line-height: 1.3;
}

.news-gallery .hover-zoom {
  transition: transform 0.5s ease;
}

.news-gallery .gallery-item:hover .hover-zoom {
  transform: scale(1.1);
}

.municipio-section {
  scroll-margin-top: 150px;
}

.section-header .icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider {
  height: 4px;
  width: 100px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  border-radius: 2px;
}

/* Cards de Conteúdo */
.content-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

/* Custom List */
.custom-list {
  list-style: none;
  padding-left: 0;
}

.custom-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
}

.custom-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-top: 1rem;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, rgba(13, 110, 253, 0.3) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-marker {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.timeline-content {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.timeline-content h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Stat Cards */
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0;
  font-weight: 500;
}

/* Stat Cards Small (para evolução populacional) */
.stat-card-small {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.stat-card-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.stat-card-small.bg-primary {
  border-color: var(--primary-color);
}

.stat-card-small .year {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.stat-card-small.bg-primary .year {
  color: rgba(255, 255, 255, 0.9);
}

.stat-card-small .population {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-card-small.bg-primary .population {
  color: white;
}

.stat-card-small .label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-small.bg-primary .label {
  color: rgba(255, 255, 255, 0.8);
}

/* Milestone Cards */
.milestone-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  height: 100%;
}

.milestone-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.milestone-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.milestone-card h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Feature Box */
.feature-box {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-box i {
  font-size: 2rem;
}

/* Topic Box */
.topic-box {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Info Item */
.info-item {
  padding: 0.5rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info p {
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

/* Text Justify */
.text-justify {
  text-align: justify;
}

/* Extra Services Animation */
.extra-service {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.extra-service.show {
  opacity: 1;
  transform: translateY(0);
}

/* Toggle Services Button */
#toggleServicesBtn {
  padding: 0.75rem 2rem;
/*  font-size: 1.1rem;
  font-weight: 600;*/
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

#toggleServicesBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

#toggleServicesBtn i {
  transition: transform 0.3s ease;
}

/* Service Card Hover Animation */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
  transition: all 0.3s ease;
}

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

/* ============================================
   Media Tabs (Notícias, Vídeos, Podcasts)
   ============================================ */
.nav-media-tabs {
  gap: 0.5rem;
}

.nav-media-tabs .nav-link {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--dark-color);
  background-color: #f8f9fa;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-media-tabs .nav-link:hover {
  background-color: #e9ecef;
  color: var(--primary-color);
}

.nav-media-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.nav-media-tabs .nav-link i {
  transition: transform 0.3s ease;
}

.nav-media-tabs .nav-link:hover i,
.nav-media-tabs .nav-link.active i {
  transform: scale(1.1);
}

/* Tab Content Animation */
.tab-content .tab-pane {
  animation: fadeInTab 0.4s ease;
}

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

/* News Card */
.news-card {
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Video Card */
.video-card {
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.video-thumbnail {
  overflow: hidden;
}

.video-thumbnail img {
  transition: transform 0.3s ease;
}

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay i {
  transition: transform 0.3s ease;
}

.video-card:hover .play-overlay i {
  transform: scale(1.2);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Podcast Card */
.podcast-card {
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color) !important;
}

.podcast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.podcast-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-icon {
  transform: scale(1.05);
}

.podcast-player {
  border: 1px solid #e9ecef;
}

.podcast-player .btn-primary {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-player .progress {
  background-color: #dee2e6;
}

/* Responsive for Media Tabs */
@media (max-width: 576px) {
  .nav-media-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-media-tabs .nav-link {
    border-radius: 8px;
    text-align: center;
  }
}

/* ============================================
   Páginas de Listagem (Notícias, Vídeos, Podcasts)
   ============================================ */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.page-header.bg-danger {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%) !important;
}

.page-header.bg-success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
}

/* Filter Card */
.filter-card {
  border-radius: 12px;
}

.filter-card .card-body {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
}

/* Results Header */
.results-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

/* Card Image Wrapper */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-wrapper img {
  transition: transform 0.3s ease;
}

.news-card:hover .card-img-wrapper img,
.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.75rem;
}

/* Podcast Card Page */
.podcast-card-page {
  border-left: 4px solid #198754 !important;
  transition: all 0.3s ease;
}

.podcast-card-page:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.podcast-cover {
  position: relative;
  text-align: center;
}

.podcast-icon-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.episode-number {
  display: block;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Pagination Custom */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 3px;
  border: none;
  color: var(--dark-color);
  font-weight: 500;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  color: white;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  color: var(--primary-color);
}

/* Item Card Animation */
.item-card {
  transition: all 0.3s ease;
}

/* Video Modal */
#videoModal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

#videoModal .modal-header {
  border-bottom: none;
  background: #212529;
  color: white;
}

#videoModal .btn-close {
  filter: invert(1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .filter-card .row {
    gap: 0.5rem;
  }
  
  .podcast-icon-large {
    width: 80px;
    height: 80px;
  }
  
  .podcast-icon-large i {
    font-size: 2rem !important;
  }
  
  .results-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   Conselhos Municipais
   ============================================ */
.conselho-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.conselho-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.conselho-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.conselho-card .card-img-wrapper img {
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.conselho-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
  border: 3px solid white;
  z-index: 10;
}

.conselho-card .card-body {
  padding-top: 2rem;
}

.conselho-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  border-left: 3px solid var(--primary-color);
}

.conselho-info p {
  font-size: 0.9rem;
}

.conselho-card .card-title {
  color: var(--primary-color);
}

/* Badge de status */
.conselho-card .badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsivo Conselhos */
@media (max-width: 768px) {
  .conselho-card .card-img-wrapper img {
    height: 150px;
  }
  
  .conselho-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: -15px;
    right: 15px;
  }
}

/* Modal Pauta */
#pautaModal .modal-content {
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

#pautaModal .modal-header {
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

#pautaModal .modal-body {
  padding: 1.5rem;
}

.pauta-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid var(--primary-color);
}

.pauta-items ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.pauta-items ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid #e9ecef;
}

.pauta-items ul li:last-child {
  border-bottom: none;
}

.pauta-items ul li::before {
  content: counter(item);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.pauta-items ul {
  counter-reset: item;
}

/* Botão Pauta */
.btn-pauta {
  transition: all 0.3s ease;
}

.btn-pauta:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .municipio-nav-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .municipio-nav-pills .nav-link {
    white-space: nowrap;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .timeline {
    padding-left: 20px;
  }

  #toggleServicesBtn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

/* ============================================
   Página de Conselhos Municipais
   ============================================ */

.conselho-icon-lg {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-button:not(.collapsed) {
  background-color: #f0f7ff;
  color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-size: 1rem;
}

.conselho-item .accordion-button {
  padding: 1.25rem;
}

.conselho-item .accordion-body {
  background-color: #fafbfc;
}

.conselho-item .table {
  margin-bottom: 0;
}

.conselho-item .table thead {
  background-color: #f1f3f5;
}

.conselho-item .table th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  border: none;
  padding: 1rem;
}

.conselho-item .table td {
  vertical-align: middle;
  padding: 1rem;
  border-color: #e9ecef;
}

.conselho-item .table tbody tr:hover {
  background-color: #f8f9fa;
}

.pauta-items ul {
  padding-left: 1.5rem;
  margin: 0;
}

.pauta-items li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e9ecef;
}

.pauta-items li:last-child {
  border-bottom: none;
}

.filter-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
}

.filter-card .form-control,
.filter-card .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.625rem 1rem;
}

.filter-card .form-control:focus,
.filter-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.filter-card .input-group-text {
  background-color: #f8f9fa;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.filter-card .input-group .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Stat Box */
.stat-box {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-box .stat-number {
  font-size: 2rem;
  font-weight: 700;
}

.stat-box .stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

/* Button Styles */
.btn-pauta-modal {
  border-radius: 6px;
}

.btn-group-sm > .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Modal Pauta Enhancements */
#pautaModalPage .modal-header,
#pautaModalConselhos .modal-header {
  border-radius: 0;
}

#pautaModalPage .pauta-info,
#pautaModalConselhos .pauta-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.25rem;
  border-radius: 10px;
}

/* Responsive Conselhos */
@media (max-width: 768px) {
  .conselho-icon-lg {
    width: 45px;
    height: 45px;
  }
  
  .conselho-item .accordion-button {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .conselho-item .badge {
    margin-top: 0.5rem;
    margin-right: 0 !important;
  }
  
  .conselho-item .table th,
  .conselho-item .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .stat-box {
    padding: 1rem;
  }
  
  .stat-box .stat-number {
    font-size: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem !important;
  }
}

/* ============================================
   Cards de Informação dos Conselhos (Listagem)
   ============================================ */

.conselho-info-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.conselho-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.conselho-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.conselho-mini-logo {
  max-width: 280px;
  max-height: 80px;
/*  width: auto;
  height: auto;*/
  object-fit: contain;
}

/* Responsivo para cards info */
@media (max-width: 576px) {
  .conselho-icon-circle {
    width: 60px;
    height: 60px;
  }
  
  .conselho-mini-logo {
    max-width: 45px;
    max-height: 45px;
  }
}

/* Logomarca Container - tamanho padronizado */
.conselho-logo-wrapper {
  height: 180px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.conselho-logo-wrapper img {
  max-width: 80%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.conselho-card:hover .conselho-logo-wrapper img {
  transform: scale(1.05);
}

/* Fallback quando não há logo */
.conselho-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.3;
}

#resultCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: linear-gradient(135deg, var(--primary-color, #0066a1) 0%, #004d7a 100%);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 102, 161, 0.3);
}

/* ========================================
   VÍDEOS - Video Cards Styles
   ======================================== */

.video-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.video-card .card-body {
  display: flex;
  flex-direction: column;
}

.video-thumbnail {
  overflow: hidden;
}

.video-thumbnail img {
  transition: transform 0.3s ease;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-date-info {
  border-left: 3px solid #dc3545;
  padding-left: 8px;
}

.gallery-photo-card {
  transition: transform 0.3s ease;
}

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

.gallery-image {
  transition: opacity 0.3s ease;
}

.gallery-image:hover {
  opacity: 0.9;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 10px;
  font-size: 0.875rem;
  border-radius: 0 0 8px 8px;
}


/* ========================================
   TOP BAR - Barra Superior
   ======================================== */
.top-bar {
  background: linear-gradient(135deg, #0066a1 0%, #004d7a 100%);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.top-bar-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: all 0.2s ease;
 /* padding: 2px 8px;*/
  border-radius: 4px;
}

.top-bar-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.15);
}

.top-bar-link i {
  font-size: 0.75rem;
}

.top-bar-separator {
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  margin: 0px 4px 0px 4px;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.top-bar-social-link:hover {
  background-color: #fff;
  color: #0066a1;
  transform: translateY(-2px);
}

/* Top Bar - Campo de Pesquisa */
.top-bar-search {
  width: 220px;
}

.top-bar-search-input.form-control {
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.2;
  height: 26px;
  min-height: 26px;
  padding: 2px 12px;
  border-radius: 20px 0 0 20px !important;
}

.top-bar-search-input::placeholder {
  color: rgba(255,255,255,0.9);
}

.top-bar-search-input:focus {
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  box-shadow: none;
}

.top-bar-search-btn.btn {
  background-color: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-left: none;
  color: #fff;
  border-radius: 0 20px 20px 0 !important;
  font-size: 0.8rem;
  line-height: 1.2;
  height: 26px;
  min-height: 26px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar-search-btn:hover {
  background-color: #fff;
  color: #0066a1;
}

/* Ajuste do sticky para considerar a top bar */
@media (min-width: 992px) {
  .sticky-top {
    top: 0;
  }
}

/* Mobile - Ocultar top bar e mostrar versão simplificada no menu mobile */
@media (max-width: 991.98px) {
  .top-bar {
    display: none !important;
  }
}


/* ========================================
   FAQ PAGE - Perguntas Frequentes
   ======================================== */
.faq-header {
  background: linear-gradient(135deg, #0066a1 0%, #004d7a 100%);
}

.faq-search-box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-category-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.faq-category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faq-category-badge.active {
  border-color: currentColor;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.faq-category-section {
  margin-bottom: 2rem;
}

.faq-category-title {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.faq-category-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.faq-accordion .accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-accordion .accordion-button {
  font-weight: 600;
  color: #333;
  background-color: #fff;
  padding: 18px 20px;
  border-radius: 10px !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #0066a1;
  background-color: #e8f4fc;
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  background-size: 16px;
}

.faq-accordion .accordion-body {
  padding: 20px;
  background-color: #fafbfc;
  border-top: 1px solid #e9ecef;
  line-height: 1.7;
}

.faq-count {
  background: rgba(0,102,161,0.1);
  color: #0066a1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.faq-no-results {
  text-align: center;
  padding: 60px 20px;
}

.faq-no-results i {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 20px;
}

.faq-filter-active {
  background-color: #e8f4fc;
  border-color: #0066a1 !important;
}

/* ========================================
   PÁGINA DE PESQUISA
======================================== */

/* Hero Section */
.pesquisa-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  position: relative;
  overflow: hidden;
}

.pesquisa-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Search Form */
.pesquisa-form-container {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.pesquisa-input-group {
  position: relative;
}

.pesquisa-input-group input {
  padding-left: 3rem;
  height: 50px;
  border-radius: 10px;
  font-size: 1.1rem;
}

.pesquisa-input-group .pesquisa-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  font-size: 1.2rem;
}

/* Results Section */
.pesquisa-results-section {
  margin-bottom: 3rem;
}

.pesquisa-results-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.pesquisa-results-header .pesquisa-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #fff;
  font-size: 1.25rem;
}

.pesquisa-results-header .pesquisa-icon.news { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.pesquisa-results-header .pesquisa-icon.events { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.pesquisa-results-header .pesquisa-icon.pages { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.pesquisa-results-header .pesquisa-icon.services { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.pesquisa-results-header .pesquisa-icon.concessions { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.pesquisa-results-header .pesquisa-icon.works { background: linear-gradient(135deg, #004a7c 0%, #003459 100%); }
.pesquisa-results-header .pesquisa-icon.legislation { background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%); }
.pesquisa-results-header .pesquisa-icon.biddings { background: linear-gradient(135deg, #e67e22 0%, #ca6f1e 100%); }
.pesquisa-results-header .pesquisa-icon.agreements { background: linear-gradient(135deg, #16a085 0%, #117864 100%); }
.pesquisa-results-header .pesquisa-icon.tenders { background: linear-gradient(135deg, #e84393 0%, #ad1457 100%); }

.pesquisa-results-header h4 {
  margin: 0;
  flex-grow: 1;
  font-weight: 700;
  color: #2c3e50;
}

.pesquisa-results-header .pesquisa-count {
  background: #e9ecef;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7f8c8d;
}

/* Result Cards */
.pesquisa-result-card {
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.pesquisa-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pesquisa-result-card .card-img-top {
  height: 160px;
  object-fit: cover;
}

.pesquisa-result-card .card-body {
  padding: 1.25rem;
}

.pesquisa-result-card .card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pesquisa-result-card .card-text {
  font-size: 0.875rem;
  color: #7f8c8d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pesquisa-result-card .card-meta {
  font-size: 0.75rem;
  color: #95a5a6;
  margin-top: 0.75rem;
}

.pesquisa-result-card .card-meta i {
  margin-right: 0.25rem;
}

/* Result List Item */
.pesquisa-list-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.pesquisa-list-item:hover {
  border-color: #3498db;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.pesquisa-list-item .item-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  color: #fff;
}

.pesquisa-list-item .item-content {
  flex-grow: 1;
  min-width: 0;
}

.pesquisa-list-item .item-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.pesquisa-list-item .item-description {
  font-size: 0.85rem;
  color: #7f8c8d;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pesquisa-list-item .item-meta {
  font-size: 0.75rem;
  color: #95a5a6;
  margin-top: 0.5rem;
}

/* Empty State */
.pesquisa-empty-results {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.pesquisa-empty-results i {
  font-size: 4rem;
  color: #bdc3c7;
  margin-bottom: 1rem;
}

.pesquisa-empty-results h5 {
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

/* Stats */
.pesquisa-stats {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.pesquisa-stats .stat-item {
  display: inline-flex;
  align-items: center;
  margin-right: 2rem;
}

.pesquisa-stats .stat-item i {
  color: #3498db;
  margin-right: 0.5rem;
}

/* No Image Placeholder */
.pesquisa-no-image {
  height: 160px;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 3rem;
}

/* Work/Concession specific badges */
.pesquisa-badge-status {
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.pesquisa-badge-status.in-progress { background-color: #28a745; color: white; }
.pesquisa-badge-status.completed { background-color: #17a2b8; color: white; }
.pesquisa-badge-status.waiting { background-color: #6c757d; color: white; }
.pesquisa-badge-status.stopped { background-color: #dc3545; color: white; }

/* ========================================
   PÁGINA DE CONCESSÕES
======================================== */

/* Hero Section */
.concessao-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #27ae60 100%);
  position: relative;
  overflow: hidden;
}

.concessao-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Filter Section */
.concessao-filter-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
}

.concessao-filter-section .form-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.concessao-filter-section .form-control,
.concessao-filter-section .form-select {
  height: 50px;
  border-radius: 8px;
}

.concessao-filter-section .btn-primary {
  height: 50px;
  border-radius: 8px;
}

/* Legislação: o filtro não deve sobrepor o alerta (reset da margem negativa do bloco de concessões) */
.legislacao-page .concessao-filter-section {
  margin-top: 1.5rem;
}

.legislacao-page .legislacao-notice-alert {
  position: relative;
  z-index: 11;
}

/* ============================================
   Bloco agrupador "Diário Oficial"
   ============================================ */
.legislacao-page .legislacao-diario-section {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(13, 110, 253, 0.08);
  border: 1px solid #e9eef5;
  overflow: hidden;
}

.legislacao-page .legislacao-diario-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, #1d3557 0%, #2c3e50 50%, #0d6efd 100%);
  color: #ffffff;
}

.legislacao-page .legislacao-diario-header-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.legislacao-page .legislacao-diario-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.legislacao-page .legislacao-diario-header-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.legislacao-page .legislacao-diario-header-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.legislacao-page .legislacao-diario-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legislacao-page .legislacao-diario-body .legislacao-notice-alert {
  margin-bottom: 0;
}

.legislacao-page .legislacao-diario-body .concessao-filter-section {
  margin-top: 0;
  padding: 1.25rem;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #e6ecf3;
  box-shadow: none;
}

.legislacao-page .legislacao-diario-results {
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .legislacao-page .legislacao-diario-header {
    padding: 1rem 1.25rem;
  }
  .legislacao-page .legislacao-diario-header-title {
    font-size: 1.2rem;
  }
  .legislacao-page .legislacao-diario-body {
    padding: 1.25rem;
  }
}

.legislacao-page .legislacao-leismunicipais-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%);
  border: 1px solid #c7dbff;
  border-left: 6px solid #0d6efd;
  position: relative;
  z-index: 11;
  margin-bottom: 0;
}

.legislacao-page .legislacao-leismunicipais-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd 0%, #08327d 100%);
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

.legislacao-page .legislacao-leismunicipais-content {
  flex: 1 1 320px;
  min-width: 0;
}

.legislacao-page .legislacao-leismunicipais-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #08327d;
  margin: 0 0 0.35rem;
}

.legislacao-page .legislacao-leismunicipais-text {
  color: #344767;
  font-size: 0.95rem;
  line-height: 1.55;
}

.legislacao-page .legislacao-leismunicipais-text a {
  font-weight: 600;
  color: #0d6efd;
  text-decoration: underline;
}

.legislacao-page .legislacao-leismunicipais-text a:hover {
  color: #08327d;
}

.legislacao-page .legislacao-leismunicipais-action {
  flex-shrink: 0;
}

.legislacao-page .legislacao-leismunicipais-action .btn {
  border-radius: 50px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.legislacao-page .legislacao-leismunicipais-action .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.28);
}

@media (max-width: 767.98px) {
  .legislacao-page .legislacao-leismunicipais-card {
    padding: 1.25rem;
  }
  .legislacao-page .legislacao-leismunicipais-action {
    width: 100%;
  }
  .legislacao-page .legislacao-leismunicipais-action .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.diario-edition-card {
  border-left: 4px solid #0d6efd !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diario-edition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================
   PÁGINA DE CONVÊNIOS E TRANSFERÊNCIAS
======================================== */
.convenios-page .concessao-hero {
  background: linear-gradient(135deg, #1d3557 0%, #2c3e50 50%, #0d6efd 100%);
}

.convenios-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-left: 6px solid #0d6efd;
  margin-bottom: 1.5rem;
}

.convenios-block-header-received { border-left-color: #27ae60; }
.convenios-block-header-sent { border-left-color: #3498db; }
.convenios-block-header-no-transfer { border-left-color: #f39c12; }

.convenios-block-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f4f9;
  color: #1d3557;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.convenios-block-header-received .convenios-block-icon { color: #27ae60; }
.convenios-block-header-sent .convenios-block-icon { color: #3498db; }
.convenios-block-header-no-transfer .convenios-block-icon { color: #f39c12; }

.convenios-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.convenios-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6c7d;
}

.convenios-table td {
  font-size: 0.92rem;
  vertical-align: top;
}

.convenios-cell-object {
  max-width: 380px;
  white-space: normal;
}

.convenios-card {
  border-left: 4px solid #f39c12 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.convenios-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Stats Cards */
.concessao-page .stats-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.concessao-page .stats-card:hover {
  transform: translateY(-3px);
}

.concessao-page .stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}

.concessao-page .stats-icon.primary { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.concessao-page .stats-icon.info { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.concessao-page .stats-icon.warning { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.concessao-page .stats-icon.success { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); }

.concessao-page .stats-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
}

.concessao-page .stats-label {
  color: #6c757d;
  font-size: 0.85rem;
}

/* Concession Card */
.concessao-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #27ae60;
}

.concessao-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.concessao-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.concessao-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.concessao-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.concessao-card-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
}

.concessao-card-body {
  flex-grow: 1;
}

.concessao-card-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #5a6c7d;
  font-size: 0.9rem;
}

.concessao-card-info i {
  color: #27ae60;
  margin-top: 3px;
  width: 16px;
  text-align: center;
}

.concessao-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.concessao-badge-type {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.concessao-badge-property { background: #e3f2fd; color: #1565c0; }
.concessao-badge-beneficiary { background: #e8f5e9; color: #2e7d32; }
.concessao-badge-district { background: #fff3e0; color: #ef6c00; }
.concessao-badge-purpose { background: #f3e5f5; color: #7b1fa2; }

.concessao-card-footer {
  margin-top: 10px;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.concessao-card-date {
  font-size: 0.85rem;
  color: #6c757d;
}

/* No Results */
.concessao-no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.concessao-no-results i {
  font-size: 5rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

.concessao-no-results h4 {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.concessao-no-results p {
  color: #adb5bd;
}

/* Table View */
.concessao-table {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.concessao-table table {
  margin-bottom: 0;
}

.concessao-table th {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.concessao-table td {
  padding: 1rem;
  vertical-align: middle;
}

.concessao-table tbody tr:hover {
  background: #f8f9fa;
}

/* View Toggle */
.concessao-view-toggle {
  display: flex;
  gap: 0.5rem;
}

.concessao-view-toggle .btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.concessao-view-toggle .btn.active {
  background: #27ae60;
  color: #fff;
  border-color: #27ae60;
}

/* Map Section */
.concessao-map-section {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.concessao-map-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.concessao-map-header h6 {
  margin: 0;
  font-weight: 700;
  color: #2c3e50;
}

#concessionsMap {
  width: 100%;
  height: 400px;
}

.concessao-map-legend {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.concessao-map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concessao-map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.concessao-map-legend-dot.empresa { background: #27ae60; }
.concessao-map-legend-dot.osc { background: #3498db; }
.concessao-map-legend-dot.associacao { background: #f39c12; }
.concessao-map-legend-dot.outro { background: #95a5a6; }

/* Custom marker for Leaflet map */
.concessao-marker .marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.concessao-marker .marker-pin i {
  transform: rotate(45deg);
  color: white;
  font-size: 12px;
}

/* ============================================
   Condomínio empresarial — página de detalhe
   (application/views/site/condominio-empresarial.php)
   ============================================ */

.district-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1abc9c 100%);
  position: relative;
  overflow: hidden;
}

.district-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gallery-section {
  background: #f8f9fa;
}

.main-gallery {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.main-gallery .carousel-item {
  height: 450px;
}

.main-gallery .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: #1abc9c;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  height: 450px;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.gallery-placeholder i {
  font-size: 5rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

.gallery-placeholder p {
  color: #6c757d;
  font-size: 1.1rem;
}

.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.info-card h4 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f3f5;
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.info-icon.primary {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.info-icon.info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.info-icon.warning {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.info-icon.success {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.info-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-badge.ativo {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.status-badge.inativo {
  background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
  color: #383d41;
}

.status-badge.em_construcao {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
}

.status-badge.em_planejamento {
  background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
  color: #004085;
}

.description-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.description-section h4 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1rem;
}

.description-section p {
  color: #5a6c7d;
  line-height: 1.8;
}

.concessions-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.concessions-section h4 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.concessions-section h4 i {
  color: #1abc9c;
}

.concession-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #1abc9c;
  transition: all 0.3s ease;
}

.concession-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.concession-card:last-child {
  margin-bottom: 0;
}

.concession-beneficiary {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.concession-activity {
  color: #5a6c7d;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concession-activity i {
  color: #1abc9c;
}

.concession-property {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.no-concessions {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.no-concessions i {
  font-size: 3rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

#condominiumEmpresarialMap {
  height: 400px;
}

.dashboard-card-body .map-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.dashboard-card-body .map-placeholder i {
  font-size: 4rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

.dashboard-card-body .map-placeholder p {
  color: #6c757d;
}

@media (max-width: 991px) {
  #condominiumEmpresarialMap {
    height: 250px;
  }

  .dashboard-card-body .map-placeholder {
    height: 250px;
  }
}

.btn-back {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ============================================
   Condomínios empresariais — listagem
   (application/views/site/condominios-empresariais.php)
   Escopo: .condominios-empresariais-page no body
   ============================================ */

.condominios-empresariais-page .districts-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1abc9c 100%);
  position: relative;
  overflow: hidden;
}

.condominios-empresariais-page .districts-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.condominios-empresariais-page .district-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.condominios-empresariais-page .district-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.condominios-empresariais-page .district-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.condominios-empresariais-page .district-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.condominios-empresariais-page .district-card:hover .district-image-container img {
  transform: scale(1.05);
}

.condominios-empresariais-page .district-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.condominios-empresariais-page .district-image-placeholder i {
  font-size: 4rem;
  color: #adb5bd;
}

.condominios-empresariais-page .district-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.condominios-empresariais-page .district-status-badge.ativo {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  color: #fff;
}

.condominios-empresariais-page .district-status-badge.inativo {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: #fff;
}

.condominios-empresariais-page .district-status-badge.em_construcao {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
  color: #fff;
}

.condominios-empresariais-page .district-status-badge.em_planejamento {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
}

.condominios-empresariais-page .district-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.condominios-empresariais-page .district-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.condominios-empresariais-page .district-info {
  color: #5a6c7d;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.condominios-empresariais-page .district-info i {
  color: #1abc9c;
  margin-top: 3px;
  width: 16px;
  text-align: center;
}

.condominios-empresariais-page .district-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.condominios-empresariais-page .btn-details {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

.condominios-empresariais-page .btn-details:hover {
  background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
  color: #fff;
  transform: translateY(-2px);
}

.condominios-empresariais-page .district-carousel {
  height: 220px;
}

.condominios-empresariais-page .district-carousel .carousel-item {
  height: 220px;
}

.condominios-empresariais-page .district-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.condominios-empresariais-page .district-carousel .carousel-control-prev,
.condominios-empresariais-page .district-carousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.condominios-empresariais-page .district-card:hover .carousel-control-prev,
.condominios-empresariais-page .district-card:hover .carousel-control-next {
  opacity: 1;
}

.condominios-empresariais-page .district-carousel .carousel-control-prev {
  left: 10px;
}

.condominios-empresariais-page .district-carousel .carousel-control-next {
  right: 10px;
}

.condominios-empresariais-page .district-carousel .carousel-indicators {
  margin-bottom: 0.5rem;
}

.condominios-empresariais-page .district-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.5;
}

.condominios-empresariais-page .district-carousel .carousel-indicators button.active {
  opacity: 1;
}

.condominios-empresariais-page .stats-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.condominios-empresariais-page .stats-card:hover {
  transform: translateY(-3px);
}

.condominios-empresariais-page .stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #fff;
}

.condominios-empresariais-page .stats-icon.primary {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.condominios-empresariais-page .stats-icon.info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.condominios-empresariais-page .stats-icon.warning {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.condominios-empresariais-page .stats-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
}

.condominios-empresariais-page .stats-label {
  color: #5a6c7d;
  font-size: 0.9rem;
}

.condominios-empresariais-page .no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.condominios-empresariais-page .no-results i {
  font-size: 5rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}

.condominios-empresariais-page .no-results h4 {
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.condominios-empresariais-page .no-results p {
  color: #adb5bd;
}

/* ============================================
   Concursos e seleções
   (application/views/site/concursos.php)
   Escopo: .concursos-page no body
   ============================================ */

.concursos-page .concursos-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #9b59b6 100%);
  position: relative;
  overflow: hidden;
}

.concursos-page .concursos-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.concursos-page .filter-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.concursos-page .filter-section .form-control,
.concursos-page .filter-section .form-select,
.concursos-page .filter-section .btn.btn-primary {
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  border-radius: 8px;
}

.concursos-page .filter-section .btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
}

.concursos-page .tender-accordion .accordion-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.concursos-page .tender-accordion .accordion-button {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: none;
  font-weight: 600;
  color: #2c3e50;
  box-shadow: none;
}

.concursos-page .tender-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #fff;
}

.concursos-page .tender-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c3e50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}

.concursos-page .tender-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.concursos-page .tender-accordion .accordion-body {
  padding: 1.5rem;
  background: #f8f9fa;
}

.concursos-page .tender-title {
  flex-grow: 1;
  margin: 0;
  font-size: 1rem;
}

.concursos-page .type-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 1rem;
  flex-shrink: 0;
}

.concursos-page .type-badge.pss {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  color: #fff;
}

.concursos-page .type-badge.concurso {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
}

.concursos-page .type-badge.estagiarios {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
  color: #fff;
}

.concursos-page .type-badge.psi {
  background: linear-gradient(135deg, #16a085 0%, #117864 100%);
  color: #fff;
}

.concursos-page .type-badge.outro {
  background: linear-gradient(135deg, #7f8c8d 0%, #566573 100%);
  color: #fff;
}

.concursos-page .tender-timeline {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.concursos-page .tender-timeline h6 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.concursos-page .timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.concursos-page .timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 3px solid #9b59b6;
}

.concursos-page .timeline-item i {
  color: #9b59b6;
  font-size: 1rem;
  margin-top: 2px;
}

.concursos-page .timeline-item .label {
  font-size: 0.75rem;
  color: #7f8c8d;
  text-transform: uppercase;
}

.concursos-page .timeline-item .value {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.concursos-page .timeline-item.highlight {
  background: linear-gradient(135deg, #e8f8f0 0%, #d4efdf 100%);
  border-left-color: #27ae60;
}

.concursos-page .timeline-item.highlight i {
  color: #27ae60;
}

.concursos-page .timeline-item.past {
  opacity: 0.6;
  border-left-color: #bdc3c7;
}

.concursos-page .timeline-item.past i {
  color: #bdc3c7;
}

.concursos-page .tender-documents {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
}

.concursos-page .tender-documents h6 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.concursos-page .document-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.concursos-page .document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.concursos-page .document-item:hover {
  background: #fff;
  border-color: #9b59b6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.concursos-page .document-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #fff;
}

.concursos-page .document-icon.pdf { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.concursos-page .document-icon.doc { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.concursos-page .document-icon.xls { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.concursos-page .document-icon.img { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.concursos-page .document-icon.default { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); }

.concursos-page .document-info {
  flex-grow: 1;
  min-width: 0;
}

.concursos-page .document-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concursos-page .document-meta {
  font-size: 0.75rem;
  color: #7f8c8d;
}

.concursos-page .tender-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.concursos-page .btn-register {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.concursos-page .btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(39, 174, 96, 0.3);
  color: #fff;
}

.concursos-page .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.concursos-page .status-badge.open {
  background: #d4efdf;
  color: #1e8449;
}

.concursos-page .status-badge.closed {
  background: #fadbd8;
  color: #c0392b;
}

.concursos-page .status-badge.finished {
  background: #e9ecef;
  color: #7f8c8d;
}

.concursos-page .status-badge.pending {
  background: #d6eaf8;
  color: #1a5276;
}

/* Quick Stats — mesmo padrão visual da Stats Section em concessoes.php */
.concursos-page .stats-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.concursos-page a.stats-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.concursos-page a.stats-card--link.stats-card--active {
  border-color: #3498db;
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
}

.concursos-page .stats-card:hover {
  transform: translateY(-3px);
}

.concursos-page .stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}

.concursos-page .stats-icon.primary {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.concursos-page .stats-icon.info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.concursos-page .stats-icon.violet {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.concursos-page .stats-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
}

.concursos-page .stats-label {
  color: #6c757d;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .concursos-page .timeline-grid {
    grid-template-columns: 1fr;
  }

  .concursos-page .document-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Listagem em cards (concursos.php)
   ============================================ */
.concursos-page .tender-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.concursos-page .tender-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef1f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.concursos-page .tender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(155, 89, 182, 0.12);
  border-color: #d6c2e7;
}

.concursos-page .tender-card-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.concursos-page .tender-card-main {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.concursos-page .tender-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.5rem;
}

.concursos-page .tender-card-icon.concurso    { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.concursos-page .tender-card-icon.pss         { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.concursos-page .tender-card-icon.estagiarios { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.concursos-page .tender-card-icon.psi         { background: linear-gradient(135deg, #16a085 0%, #117864 100%); }
.concursos-page .tender-card-icon.outro       { background: linear-gradient(135deg, #7f8c8d 0%, #566573 100%); }

.concursos-page .tender-card-info {
  flex: 1 1 auto;
  min-width: 0;
}

.concursos-page .tender-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.concursos-page .tender-card-badges .type-badge,
.concursos-page .tender-card-badges .status-badge {
  margin-left: 0;
}

.concursos-page .tender-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  color: #2c3e50;
}

.concursos-page .tender-card-title a {
  color: inherit;
  text-decoration: none;
}

.concursos-page .tender-card-title a:hover {
  color: #8e44ad;
  text-decoration: underline;
}

.concursos-page .tender-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: #6c757d;
  font-size: 0.85rem;
}

.concursos-page .tender-card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.concursos-page .tender-card-meta .meta-item i {
  color: #9b59b6;
}

.concursos-page .tender-card-meta .meta-label {
  color: #95a5a6;
}

.concursos-page .tender-card-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.concursos-page .btn-tender-details {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  border: none;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.concursos-page .btn-tender-details:hover,
.concursos-page .btn-tender-details:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(52, 152, 219, 0.3);
  filter: brightness(1.02);
}

@media (max-width: 767.98px) {
  .concursos-page .tender-card-body {
    padding: 1rem;
    gap: 1rem;
  }
  .concursos-page .tender-card-main {
    flex-basis: 100%;
  }
  .concursos-page .tender-card-actions {
    width: 100%;
  }
  .concursos-page .btn-tender-details {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }
}

/* ============================================
   Página de detalhes do concurso
   ============================================ */
.concurso-detalhes-page .tender-detail-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #9b59b6 100%);
  position: relative;
  overflow: hidden;
}

.concurso-detalhes-page .tender-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.concurso-detalhes-page .tender-detail-hero .info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.concurso-detalhes-page .tender-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 50px;
  font-weight: 600;
}

.concurso-detalhes-page .tender-detail-status.open    { background: #27ae60; color: #fff; }
.concurso-detalhes-page .tender-detail-status.closed  { background: #c0392b; color: #fff; }
.concurso-detalhes-page .tender-detail-status.pending { background: #f1c40f; color: #2c3e50; }
.concurso-detalhes-page .tender-detail-status.finished{ background: #7f8c8d; color: #fff; }

.concurso-detalhes-page .back-button {
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
}

.concurso-detalhes-page .section-header {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e9ecef;
}

.concurso-detalhes-page .tender-content {
  color: #2c3e50;
  line-height: 1.7;
}

.concurso-detalhes-page .tender-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.concurso-detalhes-page .tender-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.concurso-detalhes-page .tender-content table th,
.concurso-detalhes-page .tender-content table td {
  border: 1px solid #e9ecef;
  padding: 0.5rem 0.75rem;
}

.concurso-detalhes-page .tender-content table th {
  background: #f8f9fa;
  font-weight: 600;
}

.concurso-detalhes-page .tender-timeline {
  background: transparent;
  padding: 0;
  margin: 0;
}

.concurso-detalhes-page .btn-tender-register {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concurso-detalhes-page .btn-tender-register:hover,
.concurso-detalhes-page .btn-tender-register:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
  color: #fff;
}

/* Página Ouvidoria */
.ouvidoria-page .ouvidoria-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 100%);
  position: relative;
  overflow: hidden;
}

.ouvidoria-page .ouvidoria-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ouvidoria-page .ouvidoria-hero-inner {
  z-index: 1;
}

.ouvidoria-page .ouvidoria-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ouvidoria-page .ouvidoria-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #2980b9;
}

.ouvidoria-page .ouvidoria-card--saude::before { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.ouvidoria-page .ouvidoria-card--educacao::before { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.ouvidoria-page .ouvidoria-card--transporte::before { background: linear-gradient(135deg, #e67e22 0%, #ca6f1e 100%); }
.ouvidoria-page .ouvidoria-card--geral::before { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }

.ouvidoria-page .ouvidoria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
  border-color: #d6dde5;
}

.ouvidoria-page .ouvidoria-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem 1rem;
}

.ouvidoria-page .ouvidoria-card-icon {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ouvidoria-page .ouvidoria-card-icon--saude {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.ouvidoria-page .ouvidoria-card-icon--educacao {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.ouvidoria-page .ouvidoria-card-icon--transporte {
  background: linear-gradient(135deg, #e67e22 0%, #ca6f1e 100%);
}

.ouvidoria-page .ouvidoria-card-icon--geral {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.ouvidoria-page .ouvidoria-card-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ouvidoria-page .ouvidoria-card-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  background: #f1f3f5;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.ouvidoria-page .ouvidoria-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin: 0;
}

.ouvidoria-page .ouvidoria-card-body {
  padding: 0.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.ouvidoria-page .ouvidoria-card-text {
  color: #5c6970;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.ouvidoria-page .ouvidoria-card-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
}

.ouvidoria-page .ouvidoria-phone-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.ouvidoria-page .ouvidoria-phone-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8f9fa;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ouvidoria-page .ouvidoria-phone-link:hover {
  background: #eef4fb;
  color: #2980b9;
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .ouvidoria-page .ouvidoria-phone-list {
    flex-direction: column;
  }
}

.ouvidoria-page .ouvidoria-phone-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #fff;
  font-size: 1rem;
}

.ouvidoria-page .ouvidoria-phone-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7f8c8d;
}

.ouvidoria-page .ouvidoria-phone-number {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e50;
}

.ouvidoria-page .ouvidoria-contact-block {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 100%);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.18);
  position: relative;
  overflow: hidden;
}

.ouvidoria-page .ouvidoria-contact-block::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ouvidoria-page .ouvidoria-contact-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto;
}

.ouvidoria-page .ouvidoria-contact-btn {
  color: #1e3a5f;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.ouvidoria-page .ouvidoria-contact-btn:hover {
  background: #f8f9fa;
  color: #1e3a5f;
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .ouvidoria-page .ouvidoria-card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0.75rem;
  }

  .ouvidoria-page .ouvidoria-card-body {
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .ouvidoria-page .ouvidoria-card-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 2rem;
  }

  .ouvidoria-page .ouvidoria-contact-block {
    padding: 1.75rem 1.25rem;
  }
}

/* Página Contato */
.contato-page .contact-header {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
  position: relative;
  overflow: hidden;
}

.contato-page .contact-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="50" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="80" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
}

.contato-page .contact-form-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contato-page .contact-form-card .card-header {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
  border-radius: 16px 16px 0 0 !important;
  padding: 1.5rem;
}

.contato-page .contact-form-card .form-control,
.contato-page .contact-form-card .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.contato-page .contact-form-card .form-control:focus,
.contato-page .contact-form-card .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.contato-page .contact-form-card .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.contato-page .btn-submit {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
  border: none;
  border-radius: 50px;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contato-page .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.contato-page .departments-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contato-page .departments-card .card-header {
  background: linear-gradient(135deg, #198754 0%, #157347 100%);
  border-radius: 16px 16px 0 0 !important;
  padding: 1.5rem;
}

.contato-page .department-item {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.contato-page .department-item:last-child {
  border-bottom: none;
}

.contato-page .department-item:hover {
  background-color: #f8f9fa;
}

.contato-page .department-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contato-page .department-contact {
  font-size: 0.85rem;
  color: #666;
}

.contato-page .department-contact i {
  width: 20px;
  color: var(--bs-primary);
}

.contato-page .departments-list {
  max-height: 750px;
  overflow-y: auto;
}

.contato-page .departments-list::-webkit-scrollbar {
  width: 6px;
}

.contato-page .departments-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.contato-page .departments-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.contato-page .departments-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.contato-page .location-section {
  background: #f8f9fa;
}

.contato-page .location-card {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contato-page .address-info {
  padding: 2rem;
}

.contato-page .address-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contato-page .address-item:last-child {
  margin-bottom: 0;
}

.contato-page .address-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contato-page .address-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.contato-page .address-text h6 {
  font-weight: 700;
  color: #333;
  margin-bottom: 0.25rem;
}

.contato-page .address-text p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

.contato-page .map-container {
  height: 100%;
  min-height: 350px;
}

.contato-page .map-container #contatoMap {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

.contato-page .custom-marker .marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.contato-page .custom-marker .marker-pin i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 12px;
}

.contato-page .btn-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.contato-page .btn-submit.loading .btn-text {
  display: none;
}

.contato-page .btn-submit .spinner {
  display: none;
}

.contato-page .btn-submit.loading .spinner {
  display: inline-block;
}

@media (max-width: 991px) {
  .contato-page .departments-list {
    max-height: 300px;
  }

  .contato-page .map-container {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .contato-page .contact-header h1 {
    font-size: 1.75rem;
  }
}

/* Página Avisos de Dispensa de Licitação */
.dispensas-page .dispensas-hero {
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #1abc9c 100%);
  position: relative;
  overflow: hidden;
}

.dispensas-page .dispensas-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dispensas-page .bidding-accordion .accordion-item {
  border: none;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.dispensas-page .bidding-accordion .accordion-button {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: none;
  font-weight: 600;
  color: #2c3e50;
  box-shadow: none;
}

.dispensas-page .bidding-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
}

.dispensas-page .bidding-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c3e50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}

.dispensas-page .bidding-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.dispensas-page .bidding-accordion .accordion-body {
  padding: 1.5rem;
  background: #f8f9fa;
}

.dispensas-page .bidding-title {
  flex-grow: 1;
  margin: 0;
  font-size: 1rem;
}

.dispensas-page .bidding-date {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 1rem;
}

.dispensas-page .bidding-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 100%);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3498db;
}

.dispensas-page .bidding-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dispensas-page .bidding-info-item i {
  color: #3498db;
  font-size: 1.1rem;
}

.dispensas-page .bidding-info-item .label {
  font-size: 0.8rem;
  color: #7f8c8d;
  text-transform: uppercase;
}

.dispensas-page .bidding-info-item .value {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1rem;
}

.dispensas-page .bidding-info-item .value.price {
  color: #27ae60;
  font-size: 1.1rem;
}

.dispensas-page .bidding-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.dispensas-page .btn-send-proposal {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dispensas-page .btn-send-proposal:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(39, 174, 96, 0.3);
  color: #fff;
}

.dispensas-page .btn-send-proposal:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dispensas-page .bidding-content {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.dispensas-page .bidding-content h6 {
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

.dispensas-page .documents-section h6 {
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.dispensas-page .documents-section h6 i {
  margin-right: 0.5rem;
  color: #3498db;
}

.dispensas-page .document-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}

.dispensas-page .document-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #2c3e50;
}

.dispensas-page .document-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-color: #3498db;
  color: #3498db;
}

.dispensas-page .document-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.dispensas-page .document-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.dispensas-page .document-icon.pdf { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.dispensas-page .document-icon.doc { background: linear-gradient(135deg, #2980b9 0%, #1a5276 100%); }
.dispensas-page .document-icon.xls { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.dispensas-page .document-icon.img { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.dispensas-page .document-icon.zip { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.dispensas-page .document-icon.default { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); }

.dispensas-page .document-info {
  flex-grow: 1;
  min-width: 0;
}

.dispensas-page .document-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dispensas-page .document-meta {
  font-size: 0.8rem;
  color: #7f8c8d;
}

.dispensas-page .document-download {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3498db;
  transition: all 0.3s ease;
}

.dispensas-page .document-item:hover .document-download {
  background: #3498db;
  color: #fff;
}

.dispensas-page .no-documents {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
}

.dispensas-page .no-documents i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .dispensas-page .document-list {
    grid-template-columns: 1fr;
  }

  .dispensas-page .bidding-date {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Página Detalhes da Licitação */
.licitacao-detalhes-page .bidding-hero {
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #1abc9c 100%);
  position: relative;
  overflow: hidden;
}

.licitacao-detalhes-page .bidding-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.licitacao-detalhes-page .bidding-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.licitacao-detalhes-page .bidding-content p {
  margin-bottom: 1.5rem;
}

.licitacao-detalhes-page .bidding-content h2,
.licitacao-detalhes-page .bidding-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #0066a1;
}

.licitacao-detalhes-page .document-item {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.licitacao-detalhes-page .document-item:hover {
  background-color: #f8f9fa;
  border-color: #3498db;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.licitacao-detalhes-page .document-item.is-hidden {
  display: none !important;
}

.licitacao-detalhes-page .document-item.is-content-match {
  border-color: #1a5276;
  box-shadow: 0 4px 18px rgba(26, 82, 118, 0.15);
}

.licitacao-detalhes-page .document-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.licitacao-detalhes-page .document-actions {
  flex-shrink: 0;
}

.licitacao-detalhes-page .document-download-btn {
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.licitacao-detalhes-page .info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.licitacao-detalhes-page .section-header {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.licitacao-detalhes-page .section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
  border-radius: 2px;
}

.licitacao-detalhes-page .back-button {
  transition: all 0.3s ease;
}

.licitacao-detalhes-page .back-button:hover {
  transform: translateX(-5px);
}

.licitacao-detalhes-page .bidding-search {
  margin-bottom: 1.25rem;
}

.licitacao-detalhes-page .bidding-search-input {
  border-radius: 50px;
  padding-left: 2.75rem;
  height: 46px;
  border: 1px solid #d6dde5;
  background-color: #f8f9fa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.licitacao-detalhes-page .bidding-search-input:focus {
  border-color: #2980b9;
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.15);
}

.licitacao-detalhes-page .bidding-search-wrapper {
  position: relative;
}

.licitacao-detalhes-page .bidding-search-wrapper > .bidding-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

.licitacao-detalhes-page .bidding-search-status {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.licitacao-detalhes-page .bidding-search-status .spinner-border-sm {
  width: 0.85rem;
  height: 0.85rem;
  border-width: 0.15rem;
}

.licitacao-detalhes-page .bidding-search-clear {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
  display: none;
}

.licitacao-detalhes-page .bidding-search.is-filled .bidding-search-clear {
  display: inline-flex;
}

.licitacao-detalhes-page .bidding-search-empty {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px dashed #d6dde5;
}

.licitacao-detalhes-page .bidding-search.is-empty .bidding-search-empty {
  display: block;
}

.licitacao-detalhes-page .document-snippet {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  background: #fff3cd;
  border-left: 3px solid #f0ad4e;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  color: #5a4a1d;
}

.licitacao-detalhes-page .document-snippet mark {
  background: #ffe69c;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.licitacao-detalhes-page .document-match-badges {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================
   Página Licitações
   ============================================ */
.licitacao-page .licitacao-hero {
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 50%, #1abc9c 100%);
  position: relative;
  overflow: hidden;
}

.licitacao-page .licitacao-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.licitacao-page .main-link-card {
  border: none;
  border-radius: 16px;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.licitacao-page .main-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.licitacao-page .main-link-card .card-body {
  padding: 2rem;
}

.licitacao-page .main-link-card .icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.licitacao-page .main-link-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

.licitacao-page .main-link-card .icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.licitacao-page .gradient-blue { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.licitacao-page .gradient-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.licitacao-page .gradient-orange { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.licitacao-page .gradient-cyan { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.licitacao-page .gradient-purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.licitacao-page .gradient-red { background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%); }
.licitacao-page .gradient-teal { background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%); }
.licitacao-page .gradient-indigo { background: linear-gradient(135deg, #667db6 0%, #0082c8 100%); }
.licitacao-page .gradient-yellow { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }

.licitacao-page .main-link-card h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

.licitacao-page .main-link-card p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.licitacao-page .main-link-card .btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.licitacao-page .main-link-card .btn:hover {
  transform: scale(1.05);
}

.licitacao-page .quick-links-section {
  background: #f8f9fa;
}

.licitacao-page .quick-link-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #2c3e50;
  border-left: 4px solid transparent;
}

.licitacao-page .quick-link-item:hover {
  background: #fff;
  border-left-color: #3498db;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #3498db;
}

.licitacao-page .quick-link-item i.link-icon {
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f4fc;
  border-radius: 10px;
  margin-right: 1rem;
  color: #3498db;
  transition: all 0.3s ease;
}

.licitacao-page .quick-link-item:hover i.link-icon {
  background: #3498db;
  color: white;
}

.licitacao-page .quick-link-item .link-text {
  flex-grow: 1;
  font-weight: 500;
}

.licitacao-page .quick-link-item .arrow-icon {
  color: #bdc3c7;
  transition: all 0.3s ease;
}

.licitacao-page .quick-link-item:hover .arrow-icon {
  color: #3498db;
  transform: translateX(4px);
}

.licitacao-page .info-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.licitacao-page .info-card .card-header {
  background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
  color: white;
  padding: 1.25rem;
  border: none;
}

.licitacao-page .info-card .card-header i {
  margin-right: 0.75rem;
}

.licitacao-page .external-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  margin-left: 0.5rem;
}

.licitacao-page .live-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.licitacao-page .live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: licitacao-pulse 1.5s infinite;
}

@keyframes licitacao-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@media (max-width: 768px) {
  .licitacao-page .main-link-card .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .licitacao-page .main-link-card .icon-wrapper i {
    font-size: 1.5rem;
  }

  .licitacao-page .main-link-card .card-body {
    padding: 1.5rem;
  }
}

/* ============================================
   Página Lei de Acesso à Informação
   ============================================ */
.acesso-informacao-page .acesso-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #1abc9c 100%);
  position: relative;
  overflow: hidden;
}

.acesso-informacao-page .acesso-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acesso-informacao-page .acesso-hero-inner {
  z-index: 1;
}

.acesso-informacao-page .acesso-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.acesso-informacao-page .acesso-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.acesso-informacao-page .acesso-card-header {
  padding: 1.75rem 1.75rem 0.5rem;
}

.acesso-informacao-page .acesso-card-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  background: #f1f3f5;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.acesso-informacao-page .acesso-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  margin: 0;
  display: flex;
  align-items: center;
}

.acesso-informacao-page .acesso-card-body {
  padding: 0.75rem 1.75rem 1.75rem;
  color: #5c6970;
  line-height: 1.7;
  flex: 1 1 auto;
}

.acesso-informacao-page .acesso-card-body p {
  margin-bottom: 1rem;
}

.acesso-informacao-page .acesso-card-body p:last-child {
  margin-bottom: 0;
}

.acesso-informacao-page .acesso-side-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 100%);
  color: #fff;
  border-radius: 18px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.18);
  position: relative;
  overflow: hidden;
}

.acesso-informacao-page .acesso-side-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.acesso-informacao-page .acesso-side-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.acesso-informacao-page .acesso-side-card .acesso-card-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.acesso-informacao-page .acesso-side-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.acesso-informacao-page .acesso-side-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.acesso-informacao-page .acesso-side-card-text .text-muted {
  color: rgba(255, 255, 255, 0.65) !important;
}

.acesso-informacao-page .acesso-side-card-link {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.6rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: auto;
  word-break: break-all;
}

.acesso-informacao-page .acesso-side-card-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.acesso-informacao-page .acesso-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.acesso-informacao-page .acesso-alert i {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.acesso-informacao-page .acesso-alert--info {
  background: #eaf4fc;
  color: #1e3a5f;
  border-left: 4px solid #2980b9;
}

.acesso-informacao-page .acesso-action-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: #2c3e50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.acesso-informacao-page .acesso-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #2980b9;
}

.acesso-informacao-page .acesso-action-card--primary::before { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.acesso-informacao-page .acesso-action-card--success::before { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.acesso-informacao-page .acesso-action-card--warning::before { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.acesso-informacao-page .acesso-action-card--info::before { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

.acesso-informacao-page .acesso-action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  border-color: #d6dde5;
  color: #2c3e50;
}

.acesso-informacao-page .acesso-action-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.acesso-informacao-page .acesso-action-card--primary .acesso-action-icon { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.acesso-informacao-page .acesso-action-card--success .acesso-action-icon { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.acesso-informacao-page .acesso-action-card--warning .acesso-action-icon { background: linear-gradient(135deg, #f39c12 0%, #d68910 100%); }
.acesso-informacao-page .acesso-action-card--info .acesso-action-icon { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }

.acesso-informacao-page .acesso-action-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.acesso-informacao-page .acesso-action-text {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.acesso-informacao-page .acesso-action-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2980b9;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.acesso-informacao-page .acesso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acesso-informacao-page .acesso-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: #f8f9fa;
  border-radius: 12px;
  line-height: 1.5;
}

.acesso-informacao-page .acesso-list-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
  font-size: 0.95rem;
}

.acesso-informacao-page .acesso-contact-block {
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 100%);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.18);
  position: relative;
  overflow: hidden;
}

.acesso-informacao-page .acesso-contact-block::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.acesso-informacao-page .acesso-contact-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.acesso-informacao-page .acesso-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
}

.acesso-informacao-page .acesso-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.5;
}

.acesso-informacao-page .acesso-contact-list li i {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.9rem;
}

.acesso-informacao-page .acesso-contact-list a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.acesso-informacao-page .acesso-contact-list a:hover {
  text-decoration-color: #fff;
}

.acesso-informacao-page .acesso-contact-icon {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin: 0 auto 1.25rem;
}

.acesso-informacao-page .acesso-contact-btn {
  color: #1e3a5f;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.acesso-informacao-page .acesso-contact-btn:hover {
  background: #f8f9fa;
  color: #1e3a5f;
  transform: translateY(-2px);
}

.acesso-informacao-page .acesso-quick-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  border: 1px solid #e9ecef;
  transition: all 0.25s ease;
}

.acesso-informacao-page .acesso-quick-link i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf4fc;
  color: #2980b9;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.acesso-informacao-page .acesso-quick-link:hover {
  border-color: #2980b9;
  color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.acesso-informacao-page .acesso-quick-link:hover i {
  background: #2980b9;
  color: #fff;
}

@media (max-width: 767.98px) {
  .acesso-informacao-page .acesso-card-header,
  .acesso-informacao-page .acesso-card-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .acesso-informacao-page .acesso-contact-block {
    padding: 1.75rem 1.25rem;
  }

  .acesso-informacao-page .acesso-contact-icon {
    width: 84px;
    height: 84px;
    font-size: 2rem;
  }
}

/* ============================================
   Página Relatório Estatístico - Acesso à Informação
   ============================================ */
.acesso-relatorio-page .relatorio-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #34495e 50%, #2980b9 100%);
  position: relative;
  overflow: hidden;
}

.acesso-relatorio-page .relatorio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acesso-relatorio-page .relatorio-hero-inner {
  z-index: 1;
}

.acesso-relatorio-page .relatorio-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.acesso-relatorio-page .relatorio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.acesso-relatorio-page .relatorio-card--alt::before {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.acesso-relatorio-page .relatorio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
  border-color: #d6dde5;
}

.acesso-relatorio-page .relatorio-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.5rem 1rem;
}

.acesso-relatorio-page .relatorio-card-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  box-shadow: 0 8px 18px rgba(41, 128, 185, 0.25);
}

.acesso-relatorio-page .relatorio-card-icon--success {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  box-shadow: 0 8px 18px rgba(39, 174, 96, 0.25);
}

.acesso-relatorio-page .relatorio-card-year-block {
  display: flex;
  flex-direction: column;
}

.acesso-relatorio-page .relatorio-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
}

.acesso-relatorio-page .relatorio-card-year {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #2c3e50;
}

.acesso-relatorio-page .relatorio-card-body {
  padding: 0.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.acesso-relatorio-page .relatorio-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.acesso-relatorio-page .relatorio-card-text {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.acesso-relatorio-page .relatorio-download-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}

.acesso-relatorio-page .relatorio-download-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #f8f9fa;
  color: #2c3e50;
  border: 1px solid #e9ecef;
}

.acesso-relatorio-page .relatorio-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.acesso-relatorio-page .relatorio-download-btn i {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.acesso-relatorio-page .relatorio-download-btn--pdf i {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.acesso-relatorio-page .relatorio-download-btn--pdf:hover {
  background: #fdecea;
  color: #c0392b;
  border-color: #f5b7b1;
}

.acesso-relatorio-page .relatorio-download-btn--xls i {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.acesso-relatorio-page .relatorio-download-btn--xls:hover {
  background: #eafaf1;
  color: #1e8449;
  border-color: #a9dfbf;
}

.acesso-relatorio-page .relatorio-download-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7f8c8d;
}

.acesso-relatorio-page .relatorio-download-format {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

.acesso-relatorio-page .relatorio-info-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e9ecef;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.acesso-relatorio-page .relatorio-info-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 18px rgba(41, 128, 185, 0.25);
}

.acesso-relatorio-page .relatorio-info-icon--warning {
  background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
  box-shadow: 0 8px 18px rgba(243, 156, 18, 0.25);
}

.acesso-relatorio-page .relatorio-info-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  background: #f1f3f5;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.acesso-relatorio-page .relatorio-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.acesso-relatorio-page .relatorio-info-text {
  color: #6c757d;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.acesso-relatorio-page .relatorio-info-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: #eaf4fc;
  color: #1e3a5f;
  border-left: 4px solid #2980b9;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.acesso-relatorio-page .relatorio-info-alert i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.acesso-relatorio-page .relatorio-about-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 100%);
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.18);
}

.acesso-relatorio-page .relatorio-back-btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 22px rgba(41, 128, 185, 0.25);
}

.acesso-relatorio-page .relatorio-back-btn:hover {
  transform: translateY(-2px);
}

.acesso-relatorio-page .relatorio-quick-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  border: 1px solid #e9ecef;
  transition: all 0.25s ease;
}

.acesso-relatorio-page .relatorio-quick-link i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eaf4fc;
  color: #2980b9;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.acesso-relatorio-page .relatorio-quick-link:hover {
  border-color: #2980b9;
  color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.acesso-relatorio-page .relatorio-quick-link:hover i {
  background: #2980b9;
  color: #fff;
}

@media (max-width: 767.98px) {
  .acesso-relatorio-page .relatorio-card-header {
    flex-wrap: wrap;
  }

  .acesso-relatorio-page .relatorio-about-icon {
    margin: 0 auto;
  }
}

/* ============================================
   Convênios e Termos (página pública)
   ============================================ */
.convenio-hero {
  background: linear-gradient(135deg, #0d6efd 0%, #08327d 100%);
}

.convenio-filter-section {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.08);
  border: 1px solid #eef1f6;
}
.convenio-filter-section .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.convenio-filter-section .form-control,
.convenio-filter-section .form-select {
  height: 44px;
  line-height: 1.4;
  border-radius: 8px;
  border: 1px solid #d6dde6;
  font-size: 0.95rem;
}
.convenio-filter-section .form-control:focus,
.convenio-filter-section .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.convenio-filter-section .btn {
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.convenio-filter-actions .d-flex {
  height: 44px;
}
@media (max-width: 1199.98px) {
  .convenio-filter-actions .form-label.d-none.d-xl-block { display: none !important; }
}

.convenio-stats-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.06);
  text-align: center;
  border: 1px solid #eef1f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.convenio-stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.12);
}

a.convenio-stats-link,
a.convenio-stats-link:hover,
a.convenio-stats-link:focus {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.convenio-stats-link:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 3px;
}
a.convenio-stats-link.is-active {
  border-color: #0d6efd;
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}
a.convenio-stats-link.is-active .convenio-stats-value {
  color: #0b5ed7;
}
a.convenio-stats-link.is-active::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: #0d6efd;
  background: #e7f0ff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
a.convenio-stats-link {
  position: relative;
}

.convenio-stats-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.convenio-stats-icon.primary   { background: linear-gradient(135deg, #0d6efd 0%, #4c8df5 100%); }
.convenio-stats-icon.success   { background: linear-gradient(135deg, #198754 0%, #28a745 100%); }
.convenio-stats-icon.warning   { background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%); }
.convenio-stats-icon.secondary { background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%); }

.convenio-stats-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.convenio-stats-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.convenio-toolbar .convenio-view-toggle .btn {
  border-radius: 0.4rem;
}
.convenio-toolbar .convenio-view-toggle .btn.active {
  background-color: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
}

.convenio-table {
  border-radius: 14px;
  overflow: hidden;
}
.convenio-table thead {
  background: #f8fafd;
}
.convenio-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #4a5568;
  font-weight: 600;
  border-bottom: 2px solid #e7ebf2;
}
.convenio-table tbody tr {
  transition: background-color 0.2s ease;
}
.convenio-table tbody tr:hover {
  background-color: #f8fafd;
}
.convenio-table .convenio-object-cell {
  min-width: 280px;
  max-width: 480px;
  white-space: normal;
  word-break: break-word;
  font-size: 0.92rem;
  color: #4a5568;
}
.convenio-table .convenio-parts {
  font-size: 0.92rem;
  line-height: 1.4;
}

.convenio-type-badge {
  color: #fff;
  font-weight: 500;
  padding: 0.35em 0.8em;
  border-radius: 50rem;
  font-size: 0.78rem;
}

.convenio-card {
  background: #ffffff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.convenio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.12);
}

.convenio-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #eef1f6;
  background: linear-gradient(135deg, #f8fafd 0%, #ffffff 100%);
}
.convenio-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #4c8df5 100%);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.convenio-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
}
.convenio-card-subtitle {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

.convenio-card-body {
  padding: 1rem 1.15rem;
  flex-grow: 1;
}
.convenio-card-info {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #4a5568;
}
.convenio-card-info small {
  font-size: 0.7rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.2rem;
}

.convenio-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: #f8fafd;
  border-top: 1px solid #eef1f6;
  font-size: 0.85rem;
  color: #6c757d;
}

.convenio-no-results .card {
  border-radius: 14px;
}

.convenio-export-dropdown .dropdown-menu {
  border-radius: 0.65rem;
  border: 1px solid #e7ebf2;
  min-width: 200px;
}
.convenio-export-dropdown .dropdown-item {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}
.convenio-export-dropdown .dropdown-item:hover {
  background-color: #f1f4f9;
}

@media (max-width: 575.98px) {
  .convenio-filter-section { padding: 1rem; }
  .convenio-stats-icon { width: 44px; height: 44px; font-size: 1.05rem; }
  .convenio-stats-value { font-size: 1.4rem; }
  .convenio-table .convenio-object-cell { min-width: 200px; }
}

/* ============================================
   Menu Dropdown em Cascata (submenu)
   ============================================ */
.dropdown-menu-secretarias .dropdown-submenu {
  position: relative;
}

.dropdown-menu-secretarias .dropdown-submenu .dropdown-submenu-menu {
  display: none;
  list-style: none;
  margin: 0;
}

.dropdown-menu-secretarias .dropdown-submenu .dropdown-submenu-header {
  padding: 0.5rem 1rem 0.35rem;
  pointer-events: none;
}
.dropdown-menu-secretarias .dropdown-submenu .dropdown-submenu-header span {
  letter-spacing: 1px;
}

.dropdown-menu-secretarias .dropdown-submenu .has-submenu .fa-chevron-right {
  transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-submenu-toggle {
  display: none;
}

/* Desktop: submenu abre lateralmente ao lado direito */
@media (min-width: 992px) {
  .dropdown-menu-secretarias .dropdown-submenu > .dropdown-submenu-menu {
    position: absolute;
    top: -0.5rem;
    left: calc(100% - 4px);
    min-width: 360px;
    max-width: 420px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.6rem;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    z-index: 1100;
  }
  .dropdown-menu-secretarias .dropdown-submenu:hover > .dropdown-submenu-menu,
  .dropdown-menu-secretarias .dropdown-submenu:focus-within > .dropdown-submenu-menu {
    display: block;
  }
  .dropdown-menu-secretarias .dropdown-submenu:hover > .has-submenu {
    background-color: #f1f4f9;
  }
  .dropdown-menu-secretarias .dropdown-submenu:hover > .has-submenu .fa-chevron-right {
    color: #0d6efd !important;
    transform: translateX(2px);
  }
}

/* Mobile: submenu colapsável inline (controlado por botão) */
@media (max-width: 991.98px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    max-height: calc(100vh - 100px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dropdown-menu-secretarias {
    max-height: min(65vh, calc(100vh - 140px));
  }

  .dropdown-menu-secretarias .dropdown-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .dropdown-menu-secretarias .dropdown-submenu > .dropdown-item {
    flex: 1 1 auto;
    width: auto;
  }
  .dropdown-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    transition: transform 0.25s ease, color 0.2s ease;
  }
  .dropdown-submenu-toggle:hover { color: #0d6efd; }
  .dropdown-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); color: #0d6efd; }

  .dropdown-menu-secretarias .dropdown-submenu > .dropdown-submenu-menu {
    flex-basis: 100%;
    background: #f8fafd;
    padding: 0.4rem 0 0.5rem 0;
    border-left: 3px solid #cfd6e4;
    margin: 0.25rem 0.75rem 0.5rem 2.5rem;
    border-radius: 0 0.4rem 0.4rem 0;
  }
  .dropdown-menu-secretarias .dropdown-submenu.show > .dropdown-submenu-menu {
    display: block;
  }
  .dropdown-menu-secretarias .dropdown-submenu .dropdown-submenu-menu .dropdown-item {
    padding-left: 0.85rem;
    font-size: 0.92rem;
  }
}

/* ============================================
   Estrutura Administrativa (organograma)
   ============================================ */
.gestao-section .gestao-badge {
  background: linear-gradient(135deg, #0d6efd 0%, #4c8df5 100%);
  color: #fff;
  font-weight: 500;
  padding: 0.45em 0.9em;
  border-radius: 50rem;
  letter-spacing: 0.3px;
}

.gestao-card {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
}
.gestao-card .card-body {
  padding: 1.25rem 1.5rem;
}
.gestao-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0d6efd 0%, #08327d 100%);
}
.gestao-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.12);
}

.gestao-photo {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef3fb 0%, #d8e3f5 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(8, 50, 125, 0.18);
  overflow: hidden;
  position: relative;
}
.gestao-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gestao-photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #08327d;
  font-size: 2.4rem;
}
.gestao-photo.no-photo .gestao-photo-fallback {
  display: flex;
}

.gestao-info {
  min-width: 0;
}
.gestao-info .gestao-role {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.gestao-info .gestao-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.55rem 0;
  line-height: 1.2;
}
.gestao-info .gestao-party {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.25);
  font-weight: 600;
  padding: 0.4em 0.85em;
  border-radius: 50rem;
  font-size: 0.85rem;
}

@media (max-width: 575.98px) {
  .gestao-card .card-body { padding: 1rem 1.15rem; gap: 0.85rem; }
  .gestao-photo { width: 72px; height: 72px; }
  .gestao-photo-fallback { font-size: 1.7rem; }
  .gestao-info .gestao-name { font-size: 1.15rem; }
  .gestao-info .gestao-role { font-size: 0.72rem; }
}


.estrutura-stats .stat-card {
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.estrutura-stats .stat-card .card-body {
  padding: 1rem 1.15rem;
}
.estrutura-stats .stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.05;
  pointer-events: none;
}
.estrutura-stats .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.12);
}

.estrutura-stats .stat-card--primary { color: #0d6efd; }
.estrutura-stats .stat-card--secondary { color: #3a64b7; }

.estrutura-stats .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.estrutura-stats .stat-card--primary .stat-icon {
  background: linear-gradient(135deg, #0d6efd 0%, #4c8df5 100%);
}
.estrutura-stats .stat-card--secondary .stat-icon {
  background: linear-gradient(135deg, #3a64b7 0%, #6c8ed0 100%);
}
.estrutura-stats .stat-icon i { color: #fff; }

.estrutura-stats .stat-label {
  font-size: 0.72rem;
  letter-spacing: 1.3px;
  color: #6c757d;
  line-height: 1.2;
}

.estrutura-stats .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
}

.estrutura-stats .stat-breakdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #4a5568;
  position: relative;
  z-index: 1;
}
.estrutura-stats .stat-breakdown-item i { color: inherit; opacity: 0.75; }
.estrutura-stats .stat-breakdown-item strong { color: inherit; font-weight: 700; }
.estrutura-stats .stat-breakdown-sep { color: #cbd5e0; font-weight: 700; }

@media (max-width: 575.98px) {
  .estrutura-stats .stat-value { font-size: 1.75rem; }
  .estrutura-stats .stat-icon { width: 40px; height: 40px; font-size: 1.05rem; }
}

.tree-controls .btn {
  border-radius: 50rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
}

.org-tree { position: relative; }
.org-tree .tree-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.org-tree > .tree-list > .tree-item { margin-bottom: 1rem; }

.org-tree .tree-item { position: relative; }

.org-tree .tree-list .tree-list {
  padding-left: 2.25rem;
  margin-top: 0.5rem;
  position: relative;
}
.org-tree .tree-list .tree-list::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0.75rem;
  border-left: 2px dashed #cfd6e4;
}
.org-tree .tree-list .tree-list > .tree-item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 1.6rem;
  width: 1.25rem;
  border-top: 2px dashed #cfd6e4;
}

.org-tree .tree-list .tree-list > .tree-item { margin-bottom: 0.5rem; }
.org-tree .tree-list .tree-list > .tree-item:last-child { margin-bottom: 0; }

.tree-card {
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #ffffff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.tree-card:hover {
  border-color: #b6c4e0;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.08);
}
.tree-card.tc-root {
  border-left: 5px solid #08327d;
  background: linear-gradient(135deg, #fbfcff 0%, #eef3fb 100%);
}
.tree-card.tc-secretary   { border-left: 4px solid #0d6efd; }
.tree-card.tc-department  { border-left: 4px solid #6c8ed0; }
.tree-card.tc-sector      { border-left: 4px solid #9bbf60; }

.tree-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}
.tree-header.no-collapse { cursor: default; }
.tree-card.tc-root .tree-header { padding: 1.1rem 1.35rem; }

.tree-toggle-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.tree-toggle-btn:hover {
  background: #f1f4f9;
  color: #0d6efd;
}
.tree-toggle-btn[aria-expanded="true"] { transform: rotate(90deg); }
.tree-toggle-placeholder { width: 32px; flex-shrink: 0; }

.tree-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #4c8df5 100%);
}
.tree-icon.icon-root       { background: linear-gradient(135deg, #08327d 0%, #1d57c4 100%); width: 52px; height: 52px; font-size: 1.3rem; }
.tree-icon.icon-secretary  { background: linear-gradient(135deg, #0d6efd 0%, #4c8df5 100%); }
.tree-icon.icon-department { background: linear-gradient(135deg, #6c8ed0 0%, #9aafe0 100%); }
.tree-icon.icon-sector     { background: linear-gradient(135deg, #6c757d 0%, #adb5bd 100%); }

.tree-title {
  flex-grow: 1;
  min-width: 0;
}
.tree-title .tree-name {
  font-weight: 600;
  color: #1f2937;
  display: inline-block;
  text-decoration: none;
}
.tree-card.tc-root .tree-name {
  font-size: 1.1rem;
  color: #08327d;
  letter-spacing: 0.2px;
}
.tree-title a.tree-name:hover {
  color: #0d6efd;
  text-decoration: underline;
}
.tree-title .tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6c757d;
}
.tree-title .tree-meta i { color: #0d6efd; }

.tree-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tree-badges .badge {
  font-weight: 500;
  padding: 0.35em 0.7em;
  border-radius: 50rem;
}

.tree-body {
  padding: 0 1.25rem 1rem 4.4rem;
  border-top: 1px dashed #e7ebf2;
  padding-top: 0.85rem;
}
.tree-body .responsible-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}
.tree-body .responsible-block .resp-item { display: flex; align-items: center; gap: 0.5rem; color: #4a5568; }
.tree-body .responsible-block .resp-item i { color: #0d6efd; width: 18px; text-align: center; }
.tree-body .responsible-block a { color: #0d6efd; text-decoration: none; }
.tree-body .responsible-block a:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
  .org-tree .tree-list .tree-list { padding-left: 1.25rem; }
  .org-tree .tree-list .tree-list > .tree-item::before { left: -0.75rem; width: 0.75rem; }
  .tree-header { padding: 0.85rem 0.85rem; gap: 0.5rem; }
  .tree-icon { width: 38px; height: 38px; font-size: 0.95rem; }
  .tree-icon.icon-root { width: 44px; height: 44px; font-size: 1.05rem; }
  .tree-body { padding-left: 1rem; padding-right: 1rem; }
}

/* ========================================
   Mapa do Site
   ======================================== */

.mapa-hero {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  position: relative;
  overflow: hidden;
}

.mapa-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mapa-section-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.mapa-section-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.mapa-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.mapa-section-header i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
}

.mapa-link-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.mapa-link-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  color: #495057;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.mapa-link-list li a i {
  font-size: 0.65rem;
  color: #3498db;
  opacity: 0.7;
}

.mapa-link-list li a:hover {
  background: #f8f9fa;
  color: #2980b9;
  padding-left: 1.5rem;
}

.mapa-orgaos-body {
  padding: 1.25rem;
}

.mapa-orgao-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  height: 100%;
}

.mapa-orgao-title {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.mapa-orgao-title:hover {
  color: #3498db;
}

.mapa-orgao-children {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border-top: 1px dashed #dee2e6;
  padding-top: 0.5rem;
}

.mapa-orgao-children li a {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
  padding: 0.2rem 0;
}

.mapa-orgao-children li a:hover {
  color: #3498db;
}

.mapa-orgao-children li a i {
  margin-right: 0.35rem;
  font-size: 0.75rem;
}

.footer-map-link:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* ========================================
   Estrutura Administrativa - Organograma
   ======================================== */

.organograma-model {
  width: 100%;
}

.organograma-upper {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.organograma-top,
.organograma-mayor,
.organograma-secretaries,
.organograma-mayor > .row,
.organograma-secretaries > .row {
  position: relative;
}

.organograma-card {
  position: relative;
  z-index: 2;
}

.organograma-card--root .mapa-section-header {
  border-bottom: none;
}

.organograma-card-body {
  padding-top: 0.5rem !important;
  padding-bottom: 1rem !important;
}

.organograma-card-body .mapa-link-list {
  padding-top: 0;
}

.organograma-card-body .mapa-link-list li a,
.organograma-card .mapa-link-list li a {
  font-size: 0.88rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.organograma-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.03em;
}

.organograma-card .mapa-section-header h2 a:hover {
  color: #2980b9 !important;
}

.organograma-nested {
  padding-left: 0.5rem;
  border-left: 2px solid #dee2e6;
}

.organograma-nested .mapa-orgao-item {
  background: #fff;
}

.organograma-upper {
  position: relative;
}

.organograma-upper-main {
  position: relative;
  z-index: 1;
}

.organograma-upper--with-float .organograma-upper-main {
  padding-right: 0;
}

.organograma-sidebar-float {
  display: none;
}

.organograma-sidebar-body {
  padding-top: 0.75rem !important;
  padding-bottom: 1rem !important;
}

@media (min-width: 992px) {
  .organograma-upper--with-float {
    min-height: 12rem;
  }

  .organograma-upper--with-float .organograma-upper-main {
    padding-right: calc(300px + 1.5rem);
  }

  .organograma-sidebar-float {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    z-index: 10;
  }
}

@media (max-width: 991.98px) {
  .organograma-upper--with-float {
    display: flex;
    flex-direction: column;
  }

  .organograma-upper--with-float .organograma-upper-main {
    order: 1;
    padding-right: 0;
  }

  .organograma-upper--with-float .organograma-sidebar-float {
    display: block;
    position: static;
    order: 2;
    width: 100%;
    max-width: 420px;
    margin: 1.5rem auto 0;
  }
}

/* Conectores hierárquicos (atrás dos cards) */
.organograma-top {
  padding-bottom: 1.4rem;
}

.organograma-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 1.4rem;
  transform: translateX(-50%);
  background: #c5d0db;
  z-index: 0;
}

.organograma-mayor {
  padding-top: 0.8rem;
}

.organograma-mayor::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.8rem;
  width: 2px;
  height: 0.8rem;
  transform: translateX(-50%);
  background: #c5d0db;
  z-index: 0;
}

.organograma-secretaries {
  padding-top: 2.4rem;
}

.organograma-secretaries::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0;
  height: 2px;
  background: #c5d0db;
  z-index: 0;
}

.organograma-secretaries::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.2rem;
  width: 2px;
  height: 1.2rem;
  transform: translateX(-50%);
  background: #c5d0db;
  z-index: 0;
}

.organograma-secretaries > .row > [class*="col-"] {
  position: relative;
}

.organograma-secretaries > .row > [class*="col-"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.8rem;
  width: 2px;
  height: 1.8rem;
  transform: translateX(-50%);
  background: #c5d0db;
  z-index: 0;
}

.organograma-tooltip .tooltip-inner {
  max-width: 320px;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.35;
  background: #2c3e50;
  border: 1px solid #3498db;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  padding: 0.55rem 0.65rem;
}

.organograma-tooltip.bs-tooltip-top .tooltip-arrow::before,
.organograma-tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: #2c3e50;
}

@media (max-width: 991.98px) {
  .organograma-secretaries::before {
    left: 7%;
    right: 7%;
  }
}

@media (max-width: 767.98px) {
  .organograma-secretaries::before,
  .organograma-secretaries > .row > [class*="col-"]::before {
    display: none;
  }

  .organograma-secretaries::after {
    top: -1rem;
    height: 1rem;
  }

  .organograma-top::after,
  .organograma-mayor::before {
    height: 1rem;
  }
}

/* ============================================
   Incentivos Culturais (página pública)
   ============================================ */
.incentivos-hero {
  background: linear-gradient(135deg, #6f42c1 0%, #4a2c82 100%);
}

.incentivos-filter-section {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(111, 66, 193, 0.08);
  border: 1px solid #eee8f8;
}

.incentivos-filter-section .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 0.4rem;
}

.incentivos-filter-section .form-control,
.incentivos-filter-section .form-select {
  height: 44px;
  border-radius: 8px;
  border: 1px solid #d6dde6;
}

.incentivos-filter-section .form-control:focus,
.incentivos-filter-section .form-select:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
}

.incentivos-filter-section .btn {
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
}

.incentivos-card {
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.incentivos-card:hover {
  box-shadow: 0 10px 28px rgba(111, 66, 193, 0.12) !important;
}

.incentivos-date-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

.incentivos-resume {
  font-size: 1rem;
  line-height: 1.65;
}

.incentivos-document-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fafbfc;
  height: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.incentivos-document-item:hover {
  border-color: #6f42c1;
  background: #f8f5ff;
  color: inherit;
  transform: translateY(-2px);
}

.incentivos-document-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.incentivos-document-icon.pdf { background: #fde8e8; color: #dc3545; }
.incentivos-document-icon.doc { background: #e8f0fd; color: #0d6efd; }
.incentivos-document-icon.xls { background: #e8f8ef; color: #198754; }
.incentivos-document-icon.img { background: #fff3e0; color: #fd7e14; }
.incentivos-document-icon.zip { background: #f3e8fd; color: #6f42c1; }
.incentivos-document-icon.default { background: #eef1f6; color: #6c757d; }

.incentivos-document-info {
  flex-grow: 1;
  min-width: 0;
}

.incentivos-document-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.incentivos-document-meta {
  font-size: 0.7rem;
  color: #6c757d;
  letter-spacing: 0.04em;
}

.incentivos-document-download {
  flex-shrink: 0;
  opacity: 0.6;
}

.incentivos-document-item:hover .incentivos-document-download {
  opacity: 1;
}

.incentivos-no-results {
  border-radius: 14px;
}

/* ============================================
   Gerador de Feed RSS de Notícias
   ============================================ */
.noticia-rss-hero {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.noticia-rss-form-card,
.noticia-rss-result-card {
  border-radius: 14px;
}

.noticia-rss-dept-list {
  max-height: 280px;
  overflow-y: auto;
}

#rssGeneratedUrl {
  resize: vertical;
  min-height: 96px;
  word-break: break-all;
}