.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(500px, 58vw, 900px);
  padding: 40px 24px;
  overflow: hidden;
  background: #002d5b;
  color: white;
  text-align: center;
}
.home-banner {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: .5;
}
.hero-content { max-width: 900px; margin-inline: auto; }
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  letter-spacing: -.03em;
  text-shadow: 0 4px 15px #04143099;
}
.hero-content p {
  margin: 10px 0 28px;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  text-shadow: 0 2px 4px #041430e6, 0 0 18px #04143073;
}
.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hero-buttons .button { min-width: 148px; border-radius: 30px; padding-inline: 22px; }
.hero-buttons .button-light { color: #0056b3; }
.hero-buttons .button-outline { border-color: #ffffffa6; }
.hero-mobile-break { display: none; }

.home-section { padding-block: clamp(34px, 5vw, 68px); }
.home-intro { text-align: center; }
.home-section h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.home-intro h2 span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
}
.home-intro-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  max-width: 820px;
  margin: 22px auto 0;
}
.home-intro-media img { width: 100%; border-radius: 14px; }
.home-events { background: #eef2ed; border-block: 1px solid var(--line); }
.home-registration { background: var(--paper); }
.section-headline { margin-bottom: 22px; }
.section-headline p { margin-top: 7px; color: var(--muted); }
.section-tag-badge, .event-date-pill, .status-badge-open {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--link);
  font-size: .88rem;
  font-weight: 800;
}
.upcoming-grid, .reg-grid { display: grid; gap: 16px; }
.upcoming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-card-modern, .reg-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 25px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.event-title-h3 { font-size: 1.16rem; text-wrap: initial; }
.event-badges-row, .event-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-badges-row { margin-top: 10px; }
.pill-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: .85rem;
}
.event-desc-p { margin-top: 10px; color: var(--muted); }
.event-card-actions { margin-top: auto; }
.source-tag { display: block; margin: 0 0 8px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.fee-box {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: .91rem;
}
.home-principles { max-width: 78ch; }
.home-principles h2 { margin-bottom: 12px; }
.home-principles p + p { margin-top: 12px; }

@media (max-width: 900px) {
  .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-hero { display: block; min-height: 0; padding: 0 0 32px; background: white; color: #10243d; }
  .home-banner { position: static; width: 100%; height: auto; opacity: 1; }
  .hero-content { padding: 22px 16px 0; }
  .hero-content h1 { font-size: clamp(1.5rem, 6.7vw, 1.85rem); line-height: 1.18; text-shadow: none; }
  .hero-content p { margin: 8px 0 16px; color: #52657b; font-size: 1rem; text-shadow: none; }
  .hero-buttons { flex-direction: column; gap: 8px; max-width: 245px; margin-inline: auto; }
  .hero-buttons .button-light { background: #0056b3; color: white; }
  .hero-buttons .button-outline { border-color: #0056b3; color: #0056b3; }
  .hero-buttons .button-outline:hover { background: #eaf4ff; }
  .hero-mobile-break { display: initial; }
  .upcoming-grid, .reg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .home-intro-media { grid-template-columns: 1fr; }
}