/* Editais Page Styles */
.editais-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #fef3c7, #dbeafe);
  text-align: center;
}

.page-title-editais {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.editais-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Editais Previous Section */
.editais-previous {
  padding: 80px 0;
  background: white;
}

.editais-top-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.btn-process-info {
  background: var(--dark-blue);
  color: white;
  padding: 25px 40px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
  transition: all 0.3s;
  flex: 0 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.btn-process-info:hover {
  background: #1e40af;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.previous-notices {
  text-align: left;
  flex: 0 0 auto;
}

.editais-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-gray);
  margin-bottom: 25px;
  text-align: left;
}

.previous-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.edital-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  transition: all 0.3s;
  padding: 5px 0;
  display: inline-block;
}

.edital-link:hover {
  color: var(--orange);
  transform: translateX(5px);
}

/* Editais Open Section */
.editais-open {
  padding: 60px 0;
  background: var(--light-gray);
}

.editais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
  justify-items: center;
}

.edital-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--area-color, #ccc);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 450px;
}

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

.open-card {
  /* Pode ser usado para adicionar algo específico a cards abertos */
}

.closed-card {
  opacity: 0.8;
}

.edital-circo { --area-color: rgb(185, 70, 70); }
.edital-danca { --area-color: rgb(225, 141, 204); }
.edital-grupos-sinfonicos { --area-color: rgb(108, 108, 108); }
.edital-teatro { --area-color: rgb(33, 130, 44); } /* Ajuste visual pro verde da imagem */
.edital-musica { --area-color: rgb(40, 100, 190); } /* Ajuste visual pro azul da imagem */
.edital-artes-visuais { --area-color: rgb(219, 169, 136); }
.edital-producao-cenica { --area-color: rgb(98, 19, 224); }
.edital-musica2 { --area-color: rgb(15, 50, 201); }
.edital-arte-educacao { --area-color: #1abc9c; }
.edital-outros { --area-color: #8c6f4e; }

.edital-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-badge-new {
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 50px;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--area-color, var(--primary-blue));
}

.status-badge-new::after {
  content: "•";
  font-size: 1.2rem;
  line-height: 0;
  margin-left: 2px;
}

.status-closed-new {
  background-color: #64748b; /* Closed is gray */
}

.edital-number {
  font-weight: 700;
  color: #334155;
  font-size: 1rem;
}

.edital-title-new {
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
}

.edital-sections-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edital-section-box {
  border: 1px solid var(--area-color, rgba(0, 0, 0, 0.1));
  border-radius: 10px;
  background-color: #f0f4f8; /* Leve destaque ou branco */
  padding: 15px;
}

.edital-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #334155;
}

.edital-section-icon {
  font-size: 1.1rem;
  opacity: 0.7;
  color: var(--area-color, #10b981);
}

.edital-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edital-doc-link-new {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  background-color: transparent;
  transition: all 0.2s;
}

.edital-doc-link-new:hover {
  text-decoration: underline;
  color: var(--area-color, var(--primary-blue));
}

.edital-doc-link-new .doc-text {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  text-underline-offset: 2px;
}

.edital-doc-link-new:hover .doc-text {
  text-decoration-color: var(--area-color, var(--primary-blue));
}

.doc-icon-svg {
  color: var(--area-color, #10b981);
  font-style: normal;
  font-size: 0.9rem;
}

/* Estilos da Legenda */
.editais-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #243b63;
  transition: 0.3s ease;
}

.legend-item:hover {
  color: #2f4f85;
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-color: var(--area-color, #ccc);
}

.legend-item:nth-child(1) .legend-box { --area-color: rgb(185, 70, 70); }
.legend-item:nth-child(2) .legend-box { --area-color: rgb(225, 141, 204); }
.legend-item:nth-child(3) .legend-box { --area-color: rgb(40, 100, 190); }
.legend-item:nth-child(4) .legend-box { --area-color: rgb(33, 130, 44); }
.legend-item:nth-child(5) .legend-box { --area-color: rgb(219, 169, 136); }
.legend-item:nth-child(6) .legend-box { --area-color: rgb(98, 19, 224); }
.legend-item:nth-child(7) .legend-box { --area-color: rgb(108, 108, 108); }
.legend-item:nth-child(8) .legend-box { --area-color: #1abc9c; }
.legend-item:nth-child(9) .legend-box { --area-color: #8c6f4e; }

/* Editais Closed Section */
.editais-closed {
  padding: 60px 0;
  background: white;
}

/* Responsive Design for Editais */
@media (max-width: 768px) {
  .page-title-editais {
    font-size: 2.5rem;
  }

  .editais-top-section {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .previous-notices {
    text-align: center;
    width: 100%;
  }

  .editais-section-title {
    text-align: center;
  }

  .previous-links {
    text-align: center;
    align-items: center;
  }

  .btn-process-info {
    width: 100%;
    min-width: unset;
  }

  .edital-card {
    padding: 25px;
  }

  .edital-title {
    font-size: 1.1rem;
  }

  .edital-links {
    flex-direction: column;
  }
}
