/**
 * CSS para Detalhes do Órgão/Secretaria - V2
 * Convertido do SCSS original do Angular
 */

/* ==================== MAIN SECTION ==================== */
.orgao-detalhe {
  padding: 80px 0 40px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}
.wrapper{

    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}
.wraper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==================== GRID UTILITIES ==================== */
.grid {
  display: grid;
}

.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gap-x-4 {
  column-gap: 1rem;
}

.gap-4 {
  gap: 1rem;
}

.col-span-12 {
  grid-column: span 12 / span 12;
}

.col-span-8 {
  grid-column: span 8 / span 8;
}

.col-span-4 {
  grid-column: span 4 / span 4;
}

.col-span-6 {
  grid-column: span 6 / span 6;
}

.mt-20 {
  margin-top: 5rem;
}

@media (min-width: 768px) {
  .md\:mt-\[70px\] {
    margin-top: 70px;
  }

  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .md\:pr-6 {
    padding-right: 1.5rem;
  }
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb-container {
  margin-bottom: 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.breadcrumb-link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #dee2e6;
}

.breadcrumb-current {
  color: #495057;
  font-weight: 500;
}

/* ==================== HEADER ==================== */
.entry-header {
  margin-bottom: 2rem;
}

.tipo-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.title-do-orgao {
  font-size: 3rem !important;
  font-weight: 900 !important;
  color: #09afa7 !important;
  text-transform: uppercase;
  line-height: 1.2 !important;
  margin: 0 0 1.5rem 0 !important;
}

@media (max-width: 768px) {
  .title-do-orgao {
    font-size: 2.25rem !important;
  }
}

@media (max-width: 480px) {
  .title-do-orgao {
    font-size: 1.875rem !important;
  }
}

.compromissos-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
}

.compromissos-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #4caf50;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.compromissos-box p {
  margin: 0.5rem 0 0 0;
  color: #2e7d32;
  line-height: 1.6;
}

.compromissos-box strong {
  color: #1b5e20;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.section-header svg {
  width: 2rem;
  height: 2rem;
  color: #0066cc;
}

.section-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin: 0 !important;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #495057;
}

.entry-content p {
  margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

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

.organograma-wrapper {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.organograma-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ==================== SIDEBAR ==================== */
.sidebar-sticky {
  position: relative;
  transition: none; /* Sem transição para evitar flickering */
}

@media (max-width: 768px) {
  .sidebar-sticky {
    position: static;
    margin-top: 2rem;
  }
}

.sidebar-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin: 0 0 1.5rem 0 !important;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #1976d2;
}

.contact-content {
  flex: 1;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 0.938rem;
  color: #2c3e50;
  margin: 0;
  line-height: 1.5;
}

/* ==================== INFO BOX ==================== */
.info-box {
  background: #fff3e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #ff9800;
}

.info-box-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffe0b2;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.info-box-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #f57c00;
}

.info-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e65100;
  margin: 0 0 0.75rem 0;
}

.info-box-content p {
  font-size: 0.875rem;
  color: #5d4037;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.info-list li {
  font-size: 0.875rem;
  color: #5d4037;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ffcc80;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list li strong {
  color: #e65100;
}

/* ==================== ACTION CARDS ==================== */
.action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.action-card:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.action-card:hover .action-card-arrow {
  transform: translateX(4px);
}

.action-card-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.action-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-card-content {
  flex: 1;
}

.action-card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.action-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.action-card-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: #0066cc;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* ==================== MAPA ==================== */
/*
.map-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}
*/

/* ==================== REPRESENTANTE SECTION ==================== */
.representante-section {
  background: white;
  padding: 4rem 0;
  margin: 2rem 0;
}

.representante-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .representante-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

.representante-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.representante-nome {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin: 0 0 0.5rem 0 !important;
}

.representante-cargo {
  font-size: 1.125rem;
  color: #0066cc;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
}

.representante-bio h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #495057;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
}

.representante-bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: #6c757d;
  margin: 0;
}

/* ==================== EQUIPE SECTION ==================== */
.equipe-section {
  background: #f8f9fa;
  padding: 4rem 0;
}

.membro-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.membro-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}

.membro-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.membro-icon svg {
  color: white;
  width: 24px;
  height: 24px;
}

.membro-content {
  flex: 1;
  min-width: 0;
}

.membro-nome {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #2c3e50 !important;
  margin: 0 0 0.25rem 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membro-cargo {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .equipe-section {
    padding: 2rem 0;
  }

  .membro-card {
    padding: 1.25rem;
  }
}

/* ==================== SERVIÇOS SECTION ==================== */
.servicos-section {
  background: #f8f9fa;
  padding: 4rem 0;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.section-header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-icon {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

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

.section-title-main {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin: 0 !important;
  text-transform: uppercase;
}

.servico-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  height: 100%;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.servico-card:hover .servico-arrow {
  transform: translateX(4px);
}

.servico-content {
  flex: 1;
}

.servico-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.servico-descricao {
  font-size: 0.938rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

.servico-arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: #0066cc;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* ==================== DOCUMENTOS SECTION ==================== */
.documentos-section {
  background: white;
  padding: 4rem 0;
}

.documento-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  border-left: 4px solid #0066cc;
  transition: all 0.3s;
  height: 100%;
}

.documento-card:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left-width: 6px;
}

.documento-card:hover .documento-arrow {
  transform: translateY(4px);
}

.documento-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f2fd;
  border-radius: 8px;
}

.documento-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #1976d2;
}

.documento-content {
  flex: 1;
}

.documento-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.documento-ementa {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

.documento-arrow {
  width: 1.5rem;
  height: 1.5rem;
  color: #0066cc;
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* ==================== EMPTY STATE ==================== */
.empty-message {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.empty-message svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  color: #dee2e6;
}

.empty-message p {
  font-size: 1.125rem;
  margin: 0;
}

/* ==================== SECTION FOOTER ==================== */
.section-footer {
  margin-top: 3rem;
  text-align: center;
}

.btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-ver-todos svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s;
}

.btn-ver-todos:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.btn-ver-todos:hover svg {
  transform: translateX(4px);
}

.btn-ver-todos:active {
  transform: translateY(0);
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .orgao-detalhe {
    background: white;
  }

  .breadcrumb-container,
  .action-card,
  .info-box,
  .btn-ver-todos {
    display: none;
  }

  .sidebar-sticky {
    position: static;
  }

  .contact-card,
  .servico-card,
  .documento-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
