.active-link { color: var(--red) !important; }

/* Events listing hero */
.events-hero { max-width: 1240px; margin: 0 auto; padding: 72px 32px 24px; }
.events-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  margin: 0 0 18px;
  max-width: 20ch;
}
.events-lead { font-size: 19px; line-height: 1.6; color: #5E6064; margin: 0; max-width: 56ch; }

.events-status {
  font-size: 18px;
  color: var(--muted, #7C776C);
  padding: 40px 0;
}

/* Event cards on listing page */
.event-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -28px rgba(35,37,40,0.5); color: var(--ink); }
.event-card-date {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.event-card-title { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 600; line-height: 1.25; }
.event-card-desc { font-size: 16px; line-height: 1.55; color: #5E6064; flex: 1; }
.event-card-meta { font-size: 14px; color: #7C776C; border-top: 1px solid #EFE8DC; padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; }

/* Single event page */
.event-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}
.event-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  margin: 8px 0 24px;
}
.event-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.event-meta-row { font-size: 17px; line-height: 1.5; color: #3C3E42; }
.event-meta-row strong { font-family: 'Poppins', sans-serif; font-weight: 600; margin-right: 6px; }
.event-description { font-size: 18px; line-height: 1.7; color: #3C3E42; white-space: pre-line; }

.event-form-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  position: sticky;
  top: 100px;
}
.event-form-title { font-family: 'Poppins', sans-serif; font-size: 21px; font-weight: 600; margin: 0 0 20px; }

#registerForm { display: flex; flex-direction: column; gap: 16px; }
#registerForm .form-row { display: flex; flex-direction: column; gap: 6px; }
#registerForm label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #7C776C;
}
#registerForm input {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
}
#registerForm input:focus { border-color: var(--gold); }
.optional-tag { font-weight: 400; color: #9A9488; text-transform: none; }

.event-form-card .form-error { color: var(--red); font-size: 14px; margin: 0; }
.event-form-card .btn { width: 100%; }

.event-success { text-align: center; padding: 20px 0; }
.event-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #DDF0E2; color: #1E7A44;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; margin: 0 auto 16px;
}
.event-success h2 { font-family: 'Poppins', sans-serif; font-size: 22px; margin: 0 0 10px; }
.event-success p { font-size: 16px; color: #5E6064; line-height: 1.6; margin: 0; }
.event-success a { color: var(--red); font-weight: 600; }

@media (max-width: 860px) {
  .event-detail { grid-template-columns: 1fr; }
  .event-form-card { position: static; }
}
