/* ── Kongresi 2027 ─────────────────────────────────────────────
   Paneli › Kongresi writes data-congress="soon|open" on <html> of
   kongresi.html and Ballina.html; only the blocks of that state show. */
html:not([data-congress="open"]) [data-congress-show="open"],
html[data-congress="open"] [data-congress-show="soon"] { display: none !important; }

/* Status pill above the banner */
.kongresi-status { display: flex; justify-content: center; margin: 0 0 1rem; }
.kongresi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.kongresi-badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary-light);
  animation: oftkUpcomingPulse 1.8s ease-out infinite;
}
.kongresi-badge--open,
.home-upcoming-badge--open { background: #157a42; }
.kongresi-badge--open::before,
.home-upcoming-badge--open::before { background: #8ef0b4; }

/* Date · venue · motto · co-organiser */
.kongresi-facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 900px) { .kongresi-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kongresi-fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.kongresi-fact-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-tint);
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.kongresi-fact-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); }
.kongresi-fact-value { font-size: 0.97rem; line-height: 1.35; color: var(--gray-800); }

/* Status card + abstract / registration cards */
.kongresi-card .card-body { text-align: center; }
.kongresi-card p { font-size: 0.95rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.kongresi-card p:last-child { margin-bottom: 0; }
.kongresi-site-link a { font-weight: 700; }
.kongresi-card:hover,
.kongresi-step:hover { transform: none; }
.kongresi-step { display: flex; }
.kongresi-step .card-body { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.kongresi-step .kongresi-card-note { flex: 1; margin-bottom: 1rem; }
.kongresi-action-btn.is-soon,
.kongresi-action-btn.is-soon:hover {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-500);
  box-shadow: none;
  cursor: default;
}
.kongresi-contact { margin: 0; text-align: center; font-size: 0.93rem; color: var(--gray-600); }
.kongresi-contact a { font-weight: 600; }

/* Ballina: link under the banner once the congress is announced */
.home-upcoming-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.15s, box-shadow 0.15s;
}
.home-upcoming-cta:hover { background: var(--dark); color: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

@media (prefers-reduced-motion: reduce) {
  .kongresi-badge::before { animation: none; }
}
