/* =========================================================
   Página Editais — complementa aulas.css
   ========================================================= */

.page-editais .editais-filter-actions {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 4px;
}

.page-editais .editais-filter-actions .aulas-btn-filter {
  width: auto;
  min-width: 200px;
}

.page-editais .editais-filter-actions .aulas-btn-clear {
  margin-top: 0;
}

.page-editais .editais-card-link {
  margin-bottom: 18px;
}

.page-editais .editais-card .figure-box {
  position: relative;
  flex: 0 0 260px;
  max-width: 260px;
  min-height: 180px;
}

.page-editais .editais-card .figure-box img {
  transition: transform 0.35s ease;
}

.page-editais .editais-card:hover .figure-box img {
  transform: scale(1.04);
}

.page-editais .editais-card .aulas-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 35, 34, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.page-editais .editais-card .title {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 700;
  margin-bottom: 12px !important;
}

.editais-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.editais-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #6b6b6b;
}

.editais-card__meta i {
  color: #f8ae2e;
  font-size: 12px;
  width: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .page-editais .editais-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-editais .editais-filter-actions .aulas-btn-filter {
    width: 100%;
  }

  .page-editais .editais-card .figure-box {
    flex: none;
    max-width: none;
    width: 100%;
    height: 200px;
    min-height: 0;
  }

  .page-editais .editais-card .title {
    font-size: 17px !important;
  }
}

/* =========================================================
   Detalhe do edital
   ========================================================= */

.page-edital-item #wrapper {
  background: #f5f5f5;
}

.edital-detail {
  padding: 28px 0 72px;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(248, 174, 46, 0.08), transparent 60%),
    #f5f5f5;
}

.edital-detail__nav {
  margin-bottom: 20px;
}

.edital-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b !important;
  text-decoration: none !important;
  transition: color 0.2s ease, gap 0.2s ease;
}

.edital-detail__back:hover {
  color: #222322 !important;
  gap: 12px;
}

.edital-detail__back i {
  font-size: 12px;
  color: #f8ae2e;
}

.edital-detail__panel {
  background: #fff;
  border: 1px solid rgba(34, 35, 34, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(34, 35, 34, 0.06);
  margin-bottom: 24px;
  animation: editalFadeUp 0.55s ease both;
}

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

.edital-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, #fafafa 0%, #f0f0f0 100%);
  border: 1px solid rgba(34, 35, 34, 0.06);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edital-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.edital-cover__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(34, 35, 34, 0.88);
}

.edital-info {
  padding: 4px 0 0 8px;
}

.edital-info__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8ae2e;
}

.edital-info__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: #222322;
  font-family: var(--font_family_heading);
}

.edital-info__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.edital-info__facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid rgba(34, 35, 34, 0.05);
}

.edital-info__facts-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(248, 174, 46, 0.16);
  color: #222322;
  font-size: 14px;
}

.edital-info__facts-copy {
  min-width: 0;
}

.edital-info__facts-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 2px;
}

.edital-info__facts-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222322;
  line-height: 1.35;
  word-break: break-word;
}

.edital-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.edital-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font_family_heading);
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.edital-btn--primary {
  background: #222322;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(34, 35, 34, 0.18);
}

.edital-btn--primary:hover {
  background: #f8ae2e;
  color: #222322 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(248, 174, 46, 0.35);
}

.edital-btn--secondary {
  background: rgba(248, 174, 46, 0.16);
  color: #222322 !important;
}

.edital-btn--secondary:hover {
  background: #f8ae2e;
  transform: translateY(-2px);
}

.edital-info__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(34, 35, 34, 0.08);
}

.edital-info__share-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b;
}

.edital-info__share-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edital-info__share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 35, 34, 0.06);
  color: #222322 !important;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.edital-info__share-list a:hover {
  background: #222322;
  color: #fff !important;
  transform: translateY(-2px);
}

.edital-info__share-list a.is-whatsapp:hover {
  background: #03b265;
}

.edital-info__share-list a.is-facebook:hover {
  background: #1877f2;
}

.edital-info__share-list a.is-twitter:hover {
  background: #1da1f2;
}

.edital-body {
  animation: editalFadeUp 0.65s ease 0.08s both;
}

.edital-body > [class*="col-"] {
  margin-bottom: 24px;
}

.edital-desc,
.edital-aside {
  background: #fff;
  border: 1px solid rgba(34, 35, 34, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(34, 35, 34, 0.06);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.edital-desc__title,
.edital-aside__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #222322;
  font-family: var(--font_family_heading);
}

.edital-desc__text {
  font-size: 15px;
  line-height: 1.75;
  color: #4a4a4a;
}

.edital-desc__text p:last-child {
  margin-bottom: 0;
}

.edital-rec {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 35, 34, 0.06);
  background: #fafafa;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.edital-rec:last-child {
  margin-bottom: 0;
}

.edital-rec:hover {
  background: #fff;
  border-color: rgba(248, 174, 46, 0.45);
  box-shadow: 0 10px 24px rgba(34, 35, 34, 0.08);
  transform: translateY(-2px);
}

.edital-rec__media {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(34, 35, 34, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edital-rec__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edital-rec__body {
  min-width: 0;
  flex: 1;
}

.edital-rec__label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8ae2e;
}

.edital-rec__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #222322;
}

.edital-rec__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b6b;
}

.edital-rec__checks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.edital-rec__checks li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
  margin-top: 3px;
}

.edital-rec__checks i {
  color: #03b265;
  font-size: 11px;
}

@media (max-width: 991px) {
  .edital-info {
    padding: 20px 0 0;
  }
}

@media (max-width: 767px) {
  .edital-detail {
    padding: 20px 0 56px;
  }

  .edital-detail__panel,
  .edital-desc,
  .edital-aside {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .edital-info__facts {
    grid-template-columns: 1fr;
  }

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

  .edital-btn {
    width: 100%;
  }

  .edital-cover {
    min-height: 200px;
  }
}
