/* ==================================================
   BASE
================================================== */

body { background-color: #f8f9fa; }
.logo { max-height: 80px; }

/* ==================================================
   HEADER INSTITUCIONAL (STICKY)
================================================== */

.header-institucional {
  position: sticky;
  top: 0;
  z-index: 1050;

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);

  padding: 18px 0 22px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Barra vermelha sofisticada */
.header-institucional::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;

  background: linear-gradient(
    90deg,
    #d71920 0%,
    #c4161c 40%,
    #d71920 100%
  );

  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-brand .logo {
  max-height: 76px;
  height: auto;
  width: auto;
  display: block;
  transition: max-height .2s ease;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.header-section {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #d71920;
  line-height: 1;
}

.header-title {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 0;
  color: #222;
  line-height: 1.25;
}

.header-sub {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.2;
}

/* Efeito ao rolar */
.header-institucional.scrolled {
  padding: 10px 0 14px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.header-institucional.scrolled .header-brand .logo {
  max-height: 60px;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .header-brand .logo {
    max-height: 64px;
  }

  .header-title {
    font-size: 1.05rem;
  }

  .header-sub {
    font-size: 0.82rem;
  }

  .header-institucional.scrolled .header-brand .logo {
    max-height: 56px;
  }
}


/* ==================================================
   SECTION TITLE (Escolha Evento)
================================================== */

.section-title {
  position: relative;
  padding-left: 14px;
  font-weight: 800;
  font-size: 1.55rem;
  color: #222;
  line-height: 1.2;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  height: 26px;
  width: 4px;
  background-color: #d71920;
  border-radius: 2px;
}


/* ==================================================
   EVENTOS (CARDS)
================================================== */

.evento-card {
  position: relative;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

/* Imagem com proporção fixa */
.evento-thumb { position: relative; overflow: hidden; }
.evento-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Badge "Encerrado" */
.badge-encerrado {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-block;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* Só a imagem fica PB quando encerrado */
.evento-card.encerrado .evento-thumb img {
  filter: grayscale(100%) brightness(85%);
}

/* Título em até 2 linhas */
.text-truncate-2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Corpo */
.evento-card .card-body { padding: 1.4rem; }

/* Título do evento (melhorado) */
.evento-titulo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f1f1f;
  line-height: 1.3;
  margin: 0;
}

/* Infos (data/local) */
.evento-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: #555;
  line-height: 1.4;
}

.evento-info i {
  color: #d71920;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.evento-info span {
  display: block;
}

/* Botão */
.evento-card .btn-primary {
  background-color: #d71920;
  border-color: #d71920;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
}

.evento-card .btn-primary:hover {
  background-color: #b4161c;
  border-color: #b4161c;
}


/* ==================================================
   FOOTER (mantido, só organizando classes)
================================================== */

footer { background-color: #e5e5e5; color: #000; padding: 30px 0; margin-top: 60px; }
footer a { color: #000; text-decoration: underline; }

.footer-title { font-size: 1rem; }
.footer-contact { font-size: .95rem; line-height: 1.6; }

.social-icons a { color: #000; font-size: 1.3rem; }