:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --text: #12233a;
  --muted: #50627c;
  --blue: #2c80e2;
  --cyan: #25d6dd;
  --green: #59bc74;
  --yellow: #ffd84a;
  --line: #dde6f2;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(17, 32, 51, 0.09);
  --split-progress: 0;
  --orb-progress: 0;
  --core-center-y: 58%;
  --unity-x: -277px;
  --unity-y: 160px;
  --nexus-x: 0px;
  --nexus-y: -320px;
  --ithub-x: 277px;
  --ithub-y: 160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 8% 0%, rgba(255, 216, 74, 0.22), transparent 28%), var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.story-only .site-header,
body.story-only .site-footer {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover,
.nav a.active {
  background: #eef4ff;
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger:hover {
  background: #eef4ff;
  color: var(--blue);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 30;
}

.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: #eef4ff;
  color: var(--blue);
}

.deadline-table {
  width: 100%;
  border-collapse: collapse;
}

.deadline-table th,
.deadline-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.deadline-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.875rem;
}

.deadline-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.info-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 32, 51, 0.12);
}

.info-card-link .btn {
  margin-top: 12px;
  display: inline-block;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
}

.page {
  width: min(1120px, calc(100% - 30px));
  margin: 0 auto;
  flex: 1;
}

.page-immersive {
  width: 100%;
  max-width: none;
}

.logo-story {
  height: 440vh;
  position: relative;
}

.logo-story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logo-story-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.94) 48%, rgba(236, 244, 253, 0.96) 100%);
}

.logo-story-title {
  position: absolute;
  top: 4vh;
  text-align: center;
  z-index: 3;
  opacity: var(--orb-progress);
  transform: translateY(calc((1 - var(--orb-progress)) * 24px));
}

.logo-story-title h1 {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2.3rem);
}

p {
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d9db4;
  font-weight: 600;
}

.section-text,
.hero-text p {
  color: var(--muted);
  max-width: 62ch;
}

.oz-stage {
  position: relative;
  width: min(760px, 96vw);
  min-height: 520px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 24%, rgba(44, 128, 226, 0.11), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(89, 188, 116, 0.12), transparent 42%),
    linear-gradient(180deg, #fbfdff 0%, #f2f6fd 100%);
  border: 1px solid #e6edf7;
  box-shadow: 0 24px 60px rgba(15, 35, 62, 0.12);
  overflow: hidden;
  z-index: 2;
}

.oz-stage-story {
  width: 100vw;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-top: 10vh;
}

.oz-core-wrap {
  position: absolute;
  left: 50%;
  top: var(--core-center-y);
  width: clamp(230px, 27vw, 360px);
  height: clamp(230px, 27vw, 360px);
  transform: translate(-50%, -50%);
}

.oz-core-wrap > a {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 4;
  cursor: pointer;
}

.oz-core {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(28, 54, 93, 0.2);
  opacity: calc((1 - var(--split-progress) * 0.9) + (var(--orb-progress) * 0.9));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.oz-core-wrap > a:hover .oz-core,
.oz-core-wrap > a:focus-visible .oz-core {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 34px rgba(23, 49, 81, 0.32);
}

.orb-trace {
  position: absolute;
  left: 50%;
  top: var(--core-center-y);
  width: 190px;
  height: 190px;
  opacity: calc(min(1, var(--split-progress) * 1.2) * (1 - var(--orb-progress)));
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.orb-trace img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 14px 24px rgba(23, 49, 81, 0.2);
}

.trace-unity {
  transform: translate(
    calc(-50% + var(--unity-x) * var(--split-progress)),
    calc(-50% + var(--unity-y) * var(--split-progress))
  );
}

.trace-nexus {
  transform: translate(
    calc(-50% + var(--nexus-x) * var(--split-progress)),
    calc(-50% + var(--nexus-y) * var(--split-progress))
  );
}

.trace-ithub {
  transform: translate(
    calc(-50% + var(--ithub-x) * var(--split-progress)),
    calc(-50% + var(--ithub-y) * var(--split-progress))
  );
}

.pillar-orb {
  position: absolute;
  width: 190px;
  height: 190px;
  text-decoration: none;
  color: var(--text);
  display: block;
  left: 50%;
  top: var(--core-center-y);
  opacity: var(--orb-progress);
  transform: translate(
      calc(-50% + var(--orb-x, 0px)),
      calc(-50% + var(--orb-y, 0px))
    );
  transition: none;
  pointer-events: none;
  z-index: 5;
}

.oz-stage-story.orbs-active .pillar-orb {
  pointer-events: auto;
}

.orb-visual {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  opacity: calc(0.28 + var(--orb-progress) * 0.72);
  transform: scale(calc(0.86 + var(--orb-progress) * 0.14));
  box-shadow: 0 18px 26px rgba(23, 49, 81, 0.23);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.orb-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pillar-orb:hover .orb-visual {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 30px rgba(23, 49, 81, 0.3);
}

.orb-unity {
  --orb-x: var(--unity-x);
  --orb-y: var(--unity-y);
}

.orb-nexus {
  --orb-x: var(--nexus-x);
  --orb-y: var(--nexus-y);
}

.orb-ithub {
  --orb-x: var(--ithub-x);
  --orb-y: var(--ithub-y);
}

.click-hint {
  position: absolute;
  left: 50%;
  bottom: 7vh;
  transform: translateX(-50%);
  margin: 0;
  font-weight: 700;
  color: #2b4563;
  letter-spacing: 0.02em;
  opacity: calc(var(--orb-progress) * 0.95);
  z-index: 6;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2vh;
  transform: translateX(-50%);
  border: 1px solid rgba(58, 84, 109, 0.16);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 8px 16px;
  color: #2d4a67;
  font: inherit;
  font-weight: 700;
  display: grid;
  justify-items: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 56, 80, 0.16);
  backdrop-filter: blur(6px);
  opacity: calc(1 - min(1, var(--split-progress) * 1.25));
  z-index: 7;
}

.scroll-cue .arrow {
  font-size: 1.25rem;
  animation: scroll-arrow 1.25s ease-in-out infinite;
}

@keyframes scroll-arrow {
  0%, 100% { transform: translateY(0); opacity: 0.68; }
  50% { transform: translateY(6px); opacity: 1; }
}

.hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(20px, 4vw, 50px);
  align-items: center;
  padding: clamp(28px, 6vw, 72px) 0 28px;
}

.legacy-hero-media {
  display: grid;
  gap: 10px;
}

.legacy-main-image {
  width: 100%;
  height: min(360px, 46vh);
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legacy-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.legacy-mini-grid img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 16px;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #1e2b3d;
  background: linear-gradient(120deg, var(--yellow), #ffd05a);
  box-shadow: 0 8px 18px rgba(255, 216, 74, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue), #3aa8ee);
}

.section {
  padding: clamp(26px, 5vw, 54px) 0;
}

.section-head {
  margin-bottom: 18px;
}

.card-grid,
.event-list,
.forms-wrap,
.two-col,
.gallery-grid {
  display: grid;
  gap: 14px;
}

.card-grid,
.event-list,
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forms-wrap,
.two-col {
  grid-template-columns: 1fr 1fr;
}

.program-card,
.event-card,
.form-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-card,
.event-card,
.info-card,
.form-card {
  padding: 18px;
}

.program-card {
  display: grid;
  gap: 10px;
}

.program-card img {
  width: 92px;
  height: 92px;
}

.program-card p,
.event-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
}

.event-date {
  display: inline-flex;
  border-radius: 999px;
  background: #fff7cf;
  color: #5a4b19;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.event-date-unity {
  background: #e8f7ee;
  color: #1f7a45;
}

.event-date-nexus {
  background: #fff3cc;
  color: #7a5b00;
}

.event-date-ithub {
  background: #e8f2ff;
  color: #1859a0;
}

.event-card h3 {
  margin-top: 10px;
  margin-bottom: 8px;
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-title img {
  width: 70px;
  height: 70px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 6px 0;
}

.form-card {
  display: grid;
  gap: 9px;
}

.form-card label {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: #a6c3f0;
  box-shadow: 0 0 0 3px rgba(44, 128, 226, 0.15);
}

.form-feedback {
  min-height: 20px;
  margin: 0;
  color: #2a7f48;
  font-weight: 600;
}

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.gallery-item {
  border: 0;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px clamp(16px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer img {
  width: 52px;
  height: 52px;
}

.site-footer p,
.site-footer h4 {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 600;
}

.site-footer .powered-by {
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .orb-trace,
  .pillar-orb,
  .orb-visual {
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .card-grid,
  .event-list,
  .two-col,
  .forms-wrap,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .legacy-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oz-core-wrap {
    width: 190px;
    height: 190px;
    top: 56%;
  }

  .pillar-orb {
    width: 130px;
    height: 130px;
  }

  .orb-trace {
    width: 130px;
    height: 130px;
  }

  .orb-visual {
    width: 130px;
    height: 130px;
  }

  .orb-unity {
    --orb-x: var(--unity-x);
    --orb-y: var(--unity-y);
  }

  .orb-nexus {
    --orb-x: var(--nexus-x);
    --orb-y: var(--nexus-y);
  }

  .orb-ithub {
    --orb-x: var(--ithub-x);
    --orb-y: var(--ithub-y);
  }

  .click-hint {
    bottom: 5vh;
    font-size: 0.92rem;
  }

  .scroll-cue {
    bottom: 1.2vh;
    font-size: 0.92rem;
  }

  :root {
    --core-center-y: 56%;
    --unity-x: -182px;
    --unity-y: 105px;
    --nexus-x: 0px;
    --nexus-y: -210px;
    --ithub-x: 182px;
    --ithub-y: 105px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Login button in nav ── */
.nav-login-btn {
  color: #fff !important;
  background: linear-gradient(120deg, var(--blue), #3aa8ee);
  border-radius: 10px;
  padding: 8px 16px !important;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-login-btn:hover {
  background: linear-gradient(120deg, #2570c7, #2c9ae0) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 128, 226, 0.3);
}

.nav-login-active {
  background: linear-gradient(120deg, var(--green), #6dc98a) !important;
}

.nav-login-active:hover {
  background: linear-gradient(120deg, #4aad65, #5fc07a) !important;
}

/* ── Login modal ── */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-overlay.open {
  display: flex;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, 0.7);
  backdrop-filter: blur(4px);
}

.login-dialog {
  position: relative;
  width: min(440px, 96vw);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 35, 62, 0.25);
  padding: 36px 32px;
  z-index: 1;
  animation: loginSlideIn 0.3s ease;
}

@keyframes loginSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.login-close:hover {
  background: var(--line);
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 128, 226, 0.15);
}

.login-error {
  color: #c0392b;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 20px;
  margin: 4px 0 8px;
}

.login-submit {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
  border-radius: 12px;
}

.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Events loading / empty states ── */
.events-loading,
.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
  font-weight: 500;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    right: 14px;
    top: 70px;
    width: min(260px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav.open {
    display: flex;
  }
}

/* ── Event series (IT Hub) ── */
.event-series-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(139, 92, 246, 0.04) 50%, rgba(236, 72, 153, 0.04) 100%);
  border-radius: 24px;
  padding: clamp(32px, 6vw, 56px) clamp(24px, 4vw, 40px);
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.04);
}

.event-series-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-series-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.event-series-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}

.back-link {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

.event-series-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: center;
  position: relative;
  margin-top: 28px;
}

.event-series-orb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(12px, 2vw, 20px);
}

.event-series-orb-visual {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-series-orb-active .event-series-orb-visual {
  background: linear-gradient(145deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.35);
}

.event-series-orb-soon .event-series-orb-visual {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.6) 0%, rgba(196, 181, 253, 0.5) 100%);
  border: 2px dashed rgba(99, 102, 241, 0.4);
}

.event-series-orb-badge {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.event-series-orb-soon .event-series-orb-badge {
  color: rgba(99, 102, 241, 0.7);
}

.event-series-orb-content {
  text-align: center;
  max-width: 280px;
}

.event-series-date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #3b82f6, #8b5cf6);
  color: #fff;
  margin-bottom: 10px;
}

.event-series-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b5cf6;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  margin-bottom: 10px;
}

.event-series-orb h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.event-series-orb-active h3 {
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.event-series-orb p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.55;
}

.event-series-orb .btn {
  font-size: 0.92rem;
  padding: 10px 18px;
}

.event-series-orb-active .btn-secondary {
  background: linear-gradient(120deg, #3b82f6, #8b5cf6);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.event-series-orb-active .btn-secondary:hover {
  background: linear-gradient(120deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

.event-series-orb-visual:hover {
  transform: scale(1.03);
}

.event-series-orb-active .event-series-orb-visual:hover {
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.4);
}

@media (max-width: 860px) {
  .event-series-track {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .event-series-orb {
    flex-direction: row;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    align-items: flex-start;
  }

  .event-series-orb-content {
    max-width: none;
    flex: 1;
  }
}
