/* ===== EVENTOS — lista horizontal, cor por categoria ===== */
.crc-eventos-home{ padding:40px 0 40px; }
.crc-ev-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:22px; }
.crc-ev-head h2{ margin:0; color:#1d1d1d; font-size:22px; font-weight:700; }
.crc-ev-vertodas{ color:#00619c; font-weight:600; white-space:nowrap; }
.crc-ev-vertodas:hover{ color:#f28b00; }

.crc-ev-lista{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }

.crc-ev-item{ --cor:#00619c; background:#fff; border:1px solid #e2e8ee; border-left:5px solid var(--cor);
  border-radius:6px; transition:box-shadow .2s ease, transform .2s ease; }
.crc-ev-item:hover{ box-shadow:0 6px 18px rgba(0,0,0,.08); transform:translateY(-1px); }
.crc-ev-item > a{ display:flex; align-items:stretch; gap:20px; padding:16px 20px; color:inherit; }

/* data + hora (esquerda) */
.crc-ev-quando{ flex:0 0 auto; min-width:112px; display:flex; flex-direction:column; justify-content:center;
  gap:6px; padding-right:20px; border-right:1px solid #eef2f6; }
.crc-ev-quando span{ display:flex; align-items:center; gap:6px; font-size:14px; color:#4a5560; white-space:nowrap; }
.crc-ev-quando i{ color:var(--cor); font-size:16px; }

/* título, descrição e local (meio) */
.crc-ev-info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:4px; justify-content:center; }
.crc-ev-titulo{ margin:0; font-size:17px; font-weight:500; line-height:1.35; color:var(--crc-texto); }
.crc-ev-item:hover .crc-ev-titulo{ color:var(--cor); }
.crc-ev-desc{ margin:0; font-size:14px; line-height:1.5; color:#5b6773;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.crc-ev-local{ display:flex; align-items:center; gap:6px; font-size:13px; color:#6b7683; }
.crc-ev-local i{ color:var(--cor); font-size:15px; }

/* tipo: pill no canto direito, centralizada na vertical */
.crc-ev-tipo{ align-self:center; flex:0 0 auto; white-space:nowrap; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.5px; color:#fff; background:var(--cor); padding:3px 12px; border-radius:20px; }

/* paleta por categoria */
.crc-ev-cor-azul{ --cor:#00619c; }
.crc-ev-cor-laranja{ --cor:#f28b00; }
.crc-ev-cor-verde{ --cor:#2e9e5b; }
.crc-ev-cor-roxo{ --cor:#7b52ab; }
.crc-ev-cor-vermelho{ --cor:#cb011b; }
.crc-ev-cor-amarelo{ --cor:#e8a20d; }

@media (max-width:900px){
  .crc-ev-lista{ grid-template-columns:1fr; }
}

/* mobile: empilha; data/hora em cima, depois a pill, depois o texto */
@media (max-width:600px){
  .crc-ev-item > a{ flex-direction:column; gap:10px; }
  .crc-ev-quando{ order:1; flex-direction:row; gap:16px; min-width:0; padding:0 0 10px; border-right:0; border-bottom:1px solid #eef2f6; }
  .crc-ev-tipo{ order:2; align-self:flex-start; }
  .crc-ev-info{ order:3; }
}

/* Atendimento */
.crc-ev-head-atendimento{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.crc-ev-head-atendimento h2{ margin:0; color:#1d1d1d; font-size:22px; font-weight:700; }

/* ===== Página de EVENTOS (The Events Calendar) — reusa os cards .crc-ev ===== */
/* a lista do plugin vira o nosso container vertical */
.tribe-events-calendar-list{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:12px;
}
/* esconde os separadores de mês do plugin (o card já mostra a data) */
.tribe-events-calendar-list__month-separator{ display:none; }

/* Bloco "Últimos Eventos" (latest-past) — mesmo tratamento de lista vertical */
.tribe-events-calendar-latest-past{
  display:flex; flex-direction:column; gap:12px;
  list-style:none; margin:0; padding:0;
}
/* o título "Últimos Eventos" do plugin */
.tribe-events-calendar-latest-past__heading{
  font-size:16px; font-weight:700; color:var(--crc-texto);
  text-transform:uppercase; letter-spacing:.5px;
  margin:0 0 6px; padding-bottom:8px; border-bottom:1px solid var(--crc-borda);
}

/* ===== PÁGINA DE UM EVENTO (single event) — CRECI-MG ===== */
/* usa as vars --crc-* já definidas no seu CSS (azul, laranja, etc.) */

#tribe-events-content.crc-ev-single{ --cor:#00619c; max-width:1080px; margin:28px auto 64px; padding:0 20px; }
.crc-ev-single.crc-ev-cor-azul{ --cor:#00619c; } .crc-ev-single.crc-ev-cor-laranja{ --cor:#f28b00; }
.crc-ev-single.crc-ev-cor-verde{ --cor:#2e9e5b; } .crc-ev-single.crc-ev-cor-roxo{ --cor:#7b52ab; }
.crc-ev-single.crc-ev-cor-vermelho{ --cor:#cb011b; } .crc-ev-single.crc-ev-cor-amarelo{ --cor:#e8a20d; }

.crc-evs-voltar{ display:inline-block; margin-bottom:16px; font-size:13.5px; font-weight:600; color:#5b6773; text-decoration:none; }
.crc-evs-voltar:hover{ color:var(--cor); }

/* HERO */
.crc-evs-hero{ background:#fff; border:1px solid #e2e8ee; border-left:6px solid var(--cor);
  border-radius:14px; padding:26px 30px; box-shadow:0 6px 20px rgba(10,63,102,.05); }
.crc-evs-hero-top{ display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.crc-evs-pill{ display:inline-block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px;
  color:#fff; background:var(--cor); padding:4px 12px; border-radius:20px; }
.crc-evs-passou{ font-size:12px; font-weight:600; color:#8a5a00; background:#fff3e0; padding:3px 10px; border-radius:6px; }
.crc-evs-hero .crc-evs-titulo{ font-size:28px; font-weight:700; color:#2b3641; line-height:1.2; margin:0 0 14px; }
.crc-evs-quando{ display:flex; flex-wrap:wrap; gap:8px 20px; font-size:15px; color:#3a454f; margin-bottom:18px; }
.crc-evs-quando .crc-evs-local::before{ content:"📍 "; }
.crc-evs-acoes{ display:flex; flex-wrap:wrap; gap:10px; }
.crc-evs-btn{ display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:14px; padding:11px 18px; border-radius:8px; text-decoration:none; }
.crc-evs-btn-p{ background:var(--cor); color:#fff; } .crc-evs-btn-p:hover{ filter:brightness(.92); color:#fff; }

/* esconde o header vazio de navegação do topo do plugin */
#tribe-events-content.crc-ev-single #tribe-events-header{ display:none; }

/* CORPO 2 COLUNAS */
.crc-evs-corpo{ display:grid; grid-template-columns:1fr 340px; gap:28px; margin-top:26px; align-items:start; }
@media (max-width:860px){ .crc-evs-corpo{ grid-template-columns:1fr; } }

.crc-evs-main{ background:#fff; border:1px solid #e2e8ee; border-radius:14px; padding:24px 26px; box-shadow:0 6px 20px rgba(10,63,102,.04); }
.crc-evs-main > img, .crc-evs-main .tribe-events-event-image img{ width:100%; height:auto; border-radius:10px; margin-bottom:18px; display:block; }
.crc-evs-desc{ font-size:15px; color:#3a454f; line-height:1.7; }
.crc-evs-desc p{ margin:0 0 12px; }

/* GALERIA */
.crc-evs-galeria{ margin-top:26px; padding-top:22px; border-top:1px solid #e2e8ee; }
.crc-evs-h{ font-size:17px; font-weight:700; color:#2b3641; margin:0 0 6px; }
.crc-evs-barra{ width:38px; height:3px; background:var(--crc-laranja,#f28b00); border-radius:2px; display:block; margin-bottom:16px; }
.crc-evs-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
@media (max-width:600px){ .crc-evs-grid{ grid-template-columns:repeat(2,1fr); } }
.crc-evs-foto{ position:relative; display:block; aspect-ratio:1/1; border-radius:10px; overflow:hidden; background:#eaf3fa; }
.crc-evs-foto img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.crc-evs-foto:hover img{ transform:scale(1.05); }
.crc-evs-album{ display:inline-block; margin-top:16px; font-weight:600; font-size:14px; color:var(--cor); text-decoration:none; }
.crc-evs-album:hover{ text-decoration:underline; }

/* SIDEBAR (reusa o modules/meta do plugin, restilizado) */
.crc-evs-side{ background:#fff; border:1px solid #e2e8ee; border-radius:14px; padding:22px 24px; box-shadow:0 6px 20px rgba(10,63,102,.04); }
.crc-evs-side .tribe-events-meta-group{ float:none; width:100%; padding:0; margin:0 0 18px; }
.crc-evs-side .tribe-events-meta-group:last-child{ margin-bottom:0; }
.crc-evs-side .tribe-events-single-section-title{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--cor); margin:0 0 10px; }
.crc-evs-side dl{ margin:0; font-size:13.5px; color:#3a454f; line-height:1.5; }
.crc-evs-side dt{ font-weight:600; }
.crc-evs-side dd{ margin:0 0 8px; }
.crc-evs-side .tribe-events-venue-map,
.crc-evs-side #tribe-events-gmap{ margin-top:12px; border-radius:10px; overflow:hidden; max-width:100%; }
.crc-evs-side .tribe-events-gmap img{ max-width:none; }

/* Navegação prev/next de rodapé */
.crc-evs-nav{ margin-top:28px; }
.crc-evs-nav .tribe-events-sub-nav{ display:flex; justify-content:space-between; gap:16px; list-style:none; margin:0; padding:0; }
.crc-evs-nav a{ color:var(--cor); font-weight:600; font-size:14px; text-decoration:none; }
.crc-evs-nav a:hover{ text-decoration:underline; }