/* Campanhas públicas — Convenção CIDEN (preto / dourado / branco) */

.cpub-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.cpub-hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(720px 380px at 75% -5%, rgba(167, 142, 64, 0.22), transparent 58%),
    radial-gradient(600px 320px at 5% 20%, rgba(167, 142, 64, 0.1), transparent 55%),
    linear-gradient(180deg, #0c0c0c 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(167, 142, 64, 0.22);
}

.cpub-breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(212, 212, 212, 0.75);
  margin-bottom: 1.25rem;
}

.cpub-breadcrumb a {
  color: #a78e40;
  text-decoration: none;
}

.cpub-breadcrumb a:hover {
  text-decoration: underline;
}

.cpub-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 920px;
}

.cpub-hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #c8c8c8;
  max-width: 640px;
  margin: 0 0 1.75rem;
}

.cpub-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(167, 142, 64, 0.45);
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cpub-btn-ghost:hover {
  border-color: #a78e40;
  color: #fff;
  background: rgba(167, 142, 64, 0.12);
}

.cpub-section {
  padding: 3rem 0;
}

.cpub-section--soft {
  background: #0e0e0e;
  border-top: 1px solid rgba(167, 142, 64, 0.12);
}

.cpub-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.cpub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cpub-badge--ativa {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.cpub-badge--breve {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.cpub-badge--fim {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.cpub-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
  background: linear-gradient(145deg, #121212 0%, #0d0d0d 100%);
  border: 1px solid rgba(167, 142, 64, 0.28);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
  .cpub-featured--split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.cpub-featured-media {
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  background: #111 radial-gradient(ellipse at 30% 20%, rgba(167, 142, 64, 0.2), transparent 60%);
  position: relative;
}

.cpub-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
}

.cpub-featured-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px dashed rgba(167, 142, 64, 0.35);
}

.cpub-featured-media--empty .cpub-icon-cross {
  width: 72px;
  height: 72px;
  opacity: 0.35;
  color: #a78e40;
}

.cpub-featured-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.cpub-chamada {
  font-size: 1.05rem;
  color: #a78e40;
  font-weight: 600;
  margin: 0 0 1rem;
}

.cpub-desc {
  color: #c4c4c4;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.cpub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.cpub-meta strong {
  color: #e5e5e5;
  font-weight: 600;
}

.cpub-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
}

.cpub-countdown-label {
  width: 100%;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}

.cpub-countdown-block {
  min-width: 66px;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  background: #151515;
  border: 1px solid rgba(167, 142, 64, 0.22);
  text-align: center;
}

.cpub-countdown-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cpub-countdown-unit {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.cpub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cpub-actions .btn-ciden-gold {
  border-radius: 12px;
}

.cpub-actions .btn-ciden-dark-outline {
  border-radius: 12px;
}

.cpub-actions--compact {
  gap: 0.55rem;
}

.cpub-actions--compact .btn-ciden-gold,
.cpub-actions--compact .btn-ciden-dark-outline {
  padding: 0.62rem 1rem;
  min-height: 40px;
}

.cpub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .cpub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .cpub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cpub-card {
  background: #111;
  border: 1px solid rgba(167, 142, 64, 0.2);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.cpub-card:hover {
  border-color: rgba(167, 142, 64, 0.45);
  transform: translateY(-2px);
}

.cpub-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.cpub-card-meta {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 0.65rem;
}

.cpub-card-excerpt {
  font-size: 0.9rem;
  color: #b8b8b8;
  line-height: 1.55;
  flex: 1 1 auto;
  margin-bottom: 1rem;
}

.cpub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cpub-card-actions a {
  font-size: 0.875rem;
}

.cpub-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(167, 142, 64, 0.3);
  background: rgba(17, 17, 17, 0.85);
}

.cpub-empty h2 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.cpub-empty p {
  color: #a3a3a3;
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cpub-participacao {
  border-radius: 16px;
  border: 1px solid rgba(167, 142, 64, 0.22);
  background: #101010;
  padding: 2rem;
}

.cpub-participacao h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.cpub-participacao > p {
  color: #a8a8a8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cpub-cta-final {
  text-align: center;
  padding: 3rem 1rem;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(167, 142, 64, 0.15), transparent 65%),
    #0a0a0a;
  border-top: 1px solid rgba(167, 142, 64, 0.2);
}

.cpub-cta-final h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto 1.25rem;
  line-height: 1.35;
}

.cpub-complement {
  border-radius: 16px;
  padding: 2rem;
  background: linear-gradient(180deg, #111 0%, #0c0c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #b5b5b5;
  line-height: 1.65;
}

.cpub-complement h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cpub-form .form-label {
  color: #d4d4d4;
  font-size: 0.875rem;
}

.cpub-form .form-control,
.cpub-form .form-select {
  background: #161616;
  border-color: rgba(167, 142, 64, 0.25);
  color: #f5f5f5;
}

.cpub-form .form-control:focus,
.cpub-form .form-select:focus {
  border-color: rgba(167, 142, 64, 0.55);
  box-shadow: 0 0 0 3px rgba(167, 142, 64, 0.12);
}

.cpub-prose {
  color: #c8c8c8;
  line-height: 1.75;
  font-size: 1rem;
}

.cpub-prose p:last-child {
  margin-bottom: 0;
}

/* Detalhe da campanha: coluna esquerda (imagem + inscritos) */
.cpub-campanha-media {
  position: static;
}

.cpub-featured-media--detalhe {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 142, 64, 0.22);
  background: #111;
}

.cpub-featured-media--detalhe img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.cpub-featured-media--detalhe.cpub-featured-media--empty {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.cpub-participantes {
  margin-top: 1.75rem;
  padding: 1.35rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(167, 142, 64, 0.2);
  background: rgba(17, 17, 17, 0.95);
}

.cpub-featured--detalhe-card {
  padding: 1.2rem;
  gap: 1rem;
}

.cpub-featured-help {
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(167, 142, 64, 0.2);
  color: #b5b5b5;
  line-height: 1.6;
}

.cpub-participantes__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.cpub-participantes__lead {
  color: #9ca3af !important;
}

.cpub-participantes__empty {
  color: #888;
  font-style: italic;
}

.cpub-participantes__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.cpub-participantes__item {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cpub-participantes__nome {
  font-weight: 600;
  color: #f3f3f3;
  font-size: 0.95rem;
}

.cpub-participantes__meta {
  font-size: 0.82rem;
  color: #a3a3a3;
}

.cpub-participantes__data {
  font-size: 0.75rem;
  color: #787878;
  text-transform: lowercase;
}

@media (max-width: 991.98px) {
  .cpub-campanha-media {
    position: static;
  }
}

@media (max-width: 575px) {
  .cpub-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cpub-actions .btn-ciden-gold,
  .cpub-actions .btn-ciden-dark-outline {
    width: 100%;
    justify-content: center;
  }

  .cpub-countdown-block {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: calc(50% - 0.5rem);
  }
}
