/* ===========================================================
   Blog / Agenda FACERES
   Estilos dos cards na home + página completa do evento/post
   Arquivo: admin/assets/css/blog-eventos.css
   =========================================================== */

/* ---------- GRID DE CARDS NA HOME ---------- */

.home-blog-events {
  background: #f9fafb;
}

.area-eventos-randomicos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 2em 1em 0;
}

a.card-evento-link,
div.card-evento-link-desativado {
  text-decoration: none;
  display: flex;
  max-width: 360px;
  width: 100%;
}

/* Card base */
.card-evento {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,.08);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

a.card-evento-link:hover .card-evento {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

/* Imagem do card */
.evento-imagem {
  overflow: hidden;
  height: 220px;
  background: #e9ecef;
}

.evento-imagem img,
.evento-imagem svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

a.card-evento-link:hover .evento-imagem img {
  transform: scale(1.05);
}

/* Conteúdo do card */
.evento-conteudo {
  padding: 1.5rem 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.evento-data {
  color: #c1272d;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Ícone da data (Font Awesome) */
.evento-data i {
  font-size: 1rem;
}

/* Chamada em vermelho (ex: INSCRIÇÕES ABERTAS) */
.inscricoes-abertas {
  color: #d9534f;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .9rem;
  text-transform: uppercase;
}

/* Título do post/evento */
.titulo-evento {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
}

/* Resuminho do conteúdo */
.tipo-prova {
  color: #666666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Botão dentro do card (texto do botão do admin) */
.botao-evento-no-card {
  display: inline-block;
  padding: 8px 16px;
  margin-top: 1rem;
  background: #c1272d;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  align-self: flex-start;
  text-align: center;
  font-size: 0.95rem;
}

/* ---------- PÁGINA COMPLETA DO EVENTO / POST ---------- */

.evento-single-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}

/* Banner hero no topo da página do post (se quiser usar) */
.evento-hero-banner {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.evento-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.evento-hero-title {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  padding: 0 20px;
}

/* Área principal do conteúdo */
.evento-main-content-area {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2.5rem;
}

.evento-coluna-principal {
  flex: 1;
  min-width: 300px;
  flex-basis: 65%;
}

.evento-coluna-sidebar {
  flex-basis: 30%;
  min-width: 280px;
}

/* Texto do post */
.evento-coluna-principal .entry-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 1rem;
}

.evento-coluna-principal .entry-content h2,
.evento-coluna-principal .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

/* Box de detalhes do evento (data, local, etc.) */
.detalhes-box {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
}

.detalhes-titulo {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 0.5rem;
}

.detalhes-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detalhes-box li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.detalhes-box li i {
  margin-right: 10px;
  color: #c1272d;
  font-size: 1.1rem;
  margin-top: 2px;
}

.detalhes-box li strong {
  display: block;
  font-size: 0.9rem;
  color: #555555;
}

/* Botão principal da página do evento */
.botao-evento-single {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  margin-top: 1.5rem;
  background-color: #c1272d;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background-color .3s ease, transform .2s ease;
}

.botao-evento-single:hover {
  background-color: #a51f24;
  transform: translateY(-2px);
}

/* ---------- RESPONSIVO ---------- */

@media (max-width: 992px) {
  .area-eventos-randomicos {
    justify-content: center;
  }

  .card-evento {
    max-width: 100%;
  }

  .evento-main-content-area {
    flex-direction: column;
  }

  .evento-coluna-principal,
  .evento-coluna-sidebar {
    flex-basis: 100%;
  }

  .evento-hero-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 600px) {
  .evento-imagem {
    height: 190px;
  }

  .evento-conteudo {
    padding: 1.25rem 1.5rem;
  }

  .titulo-evento {
    font-size: 1.3rem;
  }

  .evento-hero-banner {
    height: 320px;
  }

  .evento-hero-title {
    font-size: 2rem;
  }
}
