/* ============================================================
   Card de Edital (Licitação / Processo Seletivo)
   Usado pelos shortcodes $editaisdestaque e
   $editaisprocessosseletivosdestaque
   ============================================================ */

a.card-edital {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px 14px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Barra superior que cresce no hover (da esquerda para a direita) */
a.card-edital::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: rgba(var(--tblr-primary-rgb), var(--tblr-bg-opacity, 1)) !important;
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-bottom-right-radius: 3px;
}

/* Anula sublinhado herdado do <a>:hover em qualquer descendente */
a.card-edital,
a.card-edital *,
a.card-edital:hover,
a.card-edital:hover * {
  text-decoration: none !important;
}

/* ===== HEADER (data + situação) ===== */
a.card-edital .card-edital__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

a.card-edital .card-edital__date {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

a.card-edital .card-edital__month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 3px;
}

a.card-edital .card-edital__day {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

a.card-edital .card-edital__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.2;
}

a.card-edital .card-edital__status-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6c757d;
}

a.card-edital .card-edital__status-value {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #495057;
  margin-top: 2px;
}

/* ===== TÍTULO ===== */
a.card-edital .card-edital__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tblr-secondary) !important;
  line-height: 1.45;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.25s ease;
}

/* ===== FOOTER (modalidade + botão +) ===== */
a.card-edital .card-edital__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f1f3f5;
  border-radius: 8px;
  padding: 6px 6px 6px 14px;
  margin-top: auto;
}

a.card-edital .card-edital__modality {
  font-size: 0.78rem;
  color: #495057;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

a.card-edital .card-edital__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background-color: rgba(var(--tblr-primary-rgb), var(--tblr-bg-opacity, 1)) !important;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.25);
}

a.card-edital .card-edital__btn i {
  font-size: 1rem;
  line-height: 1;
}

/* ===== HOVER ===== */
@media (hover: hover) {
  a.card-edital:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.14),
                0 4px 8px rgba(0, 0, 0, 0.06);
  }

  /* Barra superior pinta da esquerda para a direita */
  a.card-edital:hover::before {
    width: 100%;
  }

  a.card-edital:hover .card-edital__title {
    color: rgba(var(--tblr-primary-rgb), var(--tblr-bg-opacity, 1)) !important;
  }

  a.card-edital:hover .card-edital__btn {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
  }
}

/* ===== FOCO ACESSÍVEL ===== */
a.card-edital:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
