/* =========================
   Base
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background: #000;
  color: #fff;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.event-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
}

.event-modal.is-open {
  display: block;
}

.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.event-modal__panel {
  position: relative;
  max-width: min(92vw, 980px);
  margin: 4vh auto;
  max-height: 92vh;
  overflow-y: auto;
  background: radial-gradient(120% 120% at 10% 0%, rgba(140, 33, 49, 0.2), rgba(12, 12, 12, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.event-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.event-modal__content {
  display: block;
}

.event-modal__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4096 / 1265;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  margin-bottom: 12px;
}

.event-modal__body {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.event-modal__title {
  margin-bottom: 10px;
}

.event-modal__details {
  color: #d6d6d6;
  margin-bottom: 10px;
}

.event-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.event-modal__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.event-modal__label {
  font-size: 12px;
  text-transform: uppercase;
  color: #aeb4be;
  letter-spacing: 0.08em;
}

.event-modal__price {
  color: #fff;
  font-size: 22px;
}

.event-modal__detail-lines {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(140, 33, 49, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-modal__meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4f8ff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.event-modal__meta-line i {
  color: #ff8c9b;
  font-size: 18px;
}

.event-modal__meta-line:last-child {
  margin-bottom: 0;
}

.event-modal__features-wrap {
  margin-bottom: 12px;
}

.event-modal__features {
  list-style: none;
  padding-left: 14px;
  display: grid;
  gap: 10px;
}

.event-modal__feature {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.event-modal__feature::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(140, 33, 49, 0.28);
}

.event-modal.is-open .event-modal__feature {
  animation: featureFadeIn 0.45s ease forwards;
}

.event-modal.is-open .event-modal__feature:nth-child(2) {
  animation-delay: 0.08s;
}

.event-modal.is-open .event-modal__feature:nth-child(3) {
  animation-delay: 0.16s;
}

.event-modal__feature:hover,
.event-modal__feature:focus-visible,
.event-modal__feature.is-active {
  transform: translateY(-2px);
  border-color: rgba(140, 33, 49, 0.9);
  background: rgba(140, 33, 49, 0.1);
  outline: none;
}

.event-modal__feature-title {
  display: block;
  color: #fff;
  margin-bottom: 2px;
}

.event-modal__feature-desc {
  display: block;
  color: #d6d6d6;
  font-size: 13px;
}

.event-modal .event-register {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 20px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987, #0ce39a);
  background-size: 300% 300%;
  animation: registerGradientShift 6s linear infinite;
}

.event-modal .event-register::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #272727;
  border-radius: 9px;
  opacity: 0.9;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.event-modal .event-register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987, #0ce39a);
  background-size: 300% 300%;
  filter: blur(14px);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.25s ease;
  animation: registerGradientShift 6s linear infinite;
}

.event-modal .event-register:hover::before {
  opacity: 0.72;
}

.event-modal .event-register:hover::after {
  opacity: 0.9;
}

@keyframes featureFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .event-modal__panel {
    margin: 3vh 4vw;
    max-height: 94vh;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Header / Nav
   ========================= */
header {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(20, 20, 20, 0.4);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 50px;
  margin-right: 14px;
  margin-top: 8px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.logo span {
  color: #8c2131;
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
  max-width: 420px;
  margin: 0 12px;
}

.nav-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  outline: none;
}

.nav-search input:focus {
  border-color: rgba(140, 33, 49, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.nav-search button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-search button:hover {
  border-color: rgba(140, 33, 49, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

/* Top nav */
nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
}

nav > ul > li {
  margin-left: 30px;
}

nav > ul > li > a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.15s ease;
}

nav ul li a:hover {
  color: #8c2131;
  transform: translateY(-1px);
}

.btn-login {
  background: #8c2131;
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  border: 2px solid #8c2131;
  font-size: 14px;
  font-weight: 600;
}

.btn-login:hover {
  background: transparent;
  color: #8c2131;
}

/* Dropdown */
nav ul li.has-dropdown {
  position: relative;
}

nav ul li .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  list-style: none;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

nav ul li .dropdown li.has-dropdown {
  position: relative;
}

nav ul li .dropdown li .dropdown.flyout {
  top: 0;
  left: calc(100% + 8px);
  right: auto;
  transform: translateX(-6px);
}

nav ul li.has-dropdown:hover > .dropdown,
nav ul li.has-dropdown:focus-within > .dropdown,
nav ul li.has-dropdown.open > .dropdown,
nav ul li .dropdown li.has-dropdown:hover > .dropdown.flyout,
nav ul li .dropdown li.has-dropdown:focus-within > .dropdown.flyout,
nav ul li .dropdown li.has-dropdown.open > .dropdown.flyout {
  opacity: 1;
  transform: translate(0, 0);
  visibility: visible;
  pointer-events: auto;
}

nav ul li .dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #e9eef5;
  font-size: 14px;
}

nav ul li .dropdown li a:hover {
  background: rgba(140, 33, 49, 0.07);
  color: #fff;
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* =========================
   Hero
   ========================= */
.hero {
  min-height: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 20px; /* small gap below fixed header + tight bottom */
}

.hero-video,
.hero::after,
.hero-content {
  display: none;
}

.hero-carousel {
  width: min(1200px, 92vw);
  aspect-ratio: 4096 / 1265;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  touch-action: pan-y;
  background: #000;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: #fff;
}

/* =========================
   Programs
   ========================= */
.programs-section {
  background: #000;
  overflow: hidden;
  padding-top: 40px; /* reduce gap under carousel */
}

.programs-section .section-title {
  max-width: min(1200px, 92vw);
  margin: 0 auto 18px;
  text-align: left;
}

.programs-section .section-title h2 {
  font-size: 40px;
}

/* remove All Year row styling */
.season-tabs.glass.allyear {
  display: none;
}

/* Tabs */
.season-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 0 auto 22px;
  width: min(1200px, 92vw); /* align with carousel */
}

.season-tabs.glass {
  position: relative;
  padding: 8px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.season-tabs.glass input[type="radio"] {
  display: none;
}

.season-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #d6d6d6;
  padding: 12px 20px;
  border-radius: 999px;
  min-width: 110px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.season-tab:hover,
.season-tab.active {
  color: #fff;
}

.glass-glider {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(140, 33, 49, 0.16), rgba(140, 33, 49, 0.06));
  z-index: 1;
  transition: transform 0.35s ease, width 0.35s ease;
}

/* remove index-based transforms to avoid mismatch */
/* #glass-spring:checked ~ .glass-glider { transform: translateX(0%); }
#glass-summer:checked ~ .glass-glider { transform: translateX(100%); }
#glass-fall:checked ~ .glass-glider { transform: translateX(200%); }
#glass-winter:checked ~ .glass-glider { transform: translateX(300%); } */

.season-tabs.glass.allyear {
  max-width: 1200px;
  margin-top: 6px;
  margin-bottom: 30px;
  background: transparent;
}

/* Program cards: 2 per row, image top text below */
.programs-section .season-cards .cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.programs-section .season-cards .card {
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.programs-section .season-cards .card-media {
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.programs-section .season-cards .event-card .card-media {
  height: auto;
  aspect-ratio: 4096 / 1265;
}

.programs-section .season-cards .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.programs-section .season-cards .card-media img.nd-banner-left {
  object-position: left center;
}

.programs-section .season-cards .card-body {
  padding: 16px;
  text-align: left;
}

.programs-section .season-cards .card-body h3 {
  margin-bottom: 8px;
}

.programs-section .season-cards .card-desc {
  color: #cfcfcf;
}

.card .card-details {
  display: none;
  margin-top: 12px;
}

.card.expanded .card-details {
  display: block;
}

.card .card-details .close-card {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* Register button */
.button {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 14px;
}
.button span { position: relative; z-index: 1; }
.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: #272727;
}

/* Full-width register button for program cards only (events are styled in Events section) */
.programs-section .season-cards .card .event-register {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987, #0ce39a);
  background-size: 300% 300%;
  animation: registerGradientShift 6s linear infinite;
}

/* Keep edge-to-edge behavior inside program cards */
.programs-section .season-cards .card .card-body > .event-register {
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: -16px;
  width: calc(100% + 32px);
}

/* dark inner plate */
.events-section .event-register::before,
.programs-section .season-cards .card .event-register::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #272727;
  opacity: 0.9;
  z-index: -1;
  transition: opacity 0.25s ease;
}

/* outer glow */
.events-section .event-register::after,
.programs-section .season-cards .card .event-register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987, #0ce39a);
  background-size: 300% 300%;
  filter: blur(14px);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.25s ease;
  animation: registerGradientShift 6s linear infinite;
}

.events-section .event-register:hover::before,
.programs-section .season-cards .card .event-register:hover::before {
  opacity: 0.72;
}

.events-section .event-register:hover::after,
.programs-section .season-cards .card .event-register:hover::after {
  opacity: 0.9;
}

@keyframes registerGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .events-section .event-register,
  .programs-section .season-cards .card .event-register,
  .events-section .event-register::after,
  .programs-section .season-cards .card .event-register::after {
    animation: none;
  }
}

/* =========================
   Content blocks
   ========================= */
.content-image-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}
.content-image-layout.reverse { direction: rtl; }
.content-image-layout.reverse > * { direction: ltr; }

.content-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.content-text h3 {
  font-size: 24px;
  margin: 20px 0 15px;
  color: #8c2131;
}
.content-text p {
  margin-bottom: 15px;
  color: #ddd;
}
.content-text a {
  color: #8c2131;
  text-decoration: none;
}

.content-image {
  border-radius: 12px;
  overflow: hidden;
}
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section backgrounds */
.training-section.alt,
.staff-section,
.accommodation-section,
.contact-section { background: #0a0a0a; }
.parents-section,
.team-section,
.about-section,
.testimonials,
footer { background: #111; }

/* =========================
   Team / Contact / Footer
   ========================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.team-member {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.team-photo {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #8c2131;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.contact-info-block {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.footer-col h3 {
  color: #8c2131;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
}
.copyright {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 24px;
  color: #ccc;
  font-size: 14px;
}

/* =========================
   Events (single canonical block)
   - 2 per row on iPad/tablet/desktop
   - 1 per row on phones
   ========================= */
.events-section .events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* equal-height rows */
  gap: 16px;
  align-items: stretch;
}

.events-section .event-card {
  cursor: pointer;
}
.programs-section .event-card {
  position: relative;
  padding-bottom: 0; /* remove extra space under register */
}

.programs-section .event-card:focus-visible {
  outline: 2px solid rgba(140, 33, 49, 0.9);
  outline-offset: 2px;
}

.events-section .event-register {
  display: block;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.events-section .event-card {
  display: grid;
  grid-template-rows: auto 1fr auto; /* image | content | button */
  height: 100%;
}

.events-section .event-content {
  flex: none; /* override flex to work with grid layout */
}

.events-section .event-image {
  width: 100%;
  aspect-ratio: 4096 / 1265;
  object-fit: cover;
  display: block;
}

/* Register button */
.button {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987);
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 14px;
}
.button span { position: relative; z-index: 1; }
.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: #272727;
}

/* Full-width register button for program cards only (events are styled in Events section) */
.programs-section .season-cards .card .event-register {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987, #0ce39a);
  background-size: 300% 300%;
  animation: registerGradientShift 6s linear infinite;
}

/* Keep edge-to-edge behavior inside program cards */
.programs-section .season-cards .card .card-body > .event-register {
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: -16px;
  width: calc(100% + 32px);
}

/* dark inner plate */
.events-section .event-register::before,
.programs-section .season-cards .card .event-register::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #272727;
  opacity: 0.9;
  z-index: -1;
  transition: opacity 0.25s ease;
}

/* outer glow */
.events-section .event-register::after,
.programs-section .season-cards .card .event-register::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #0ce39a, #69007f, #fc0987, #0ce39a);
  background-size: 300% 300%;
  filter: blur(14px);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.25s ease;
  animation: registerGradientShift 6s linear infinite;
}

.events-section .event-register:hover::before { opacity: 0.72; }
.events-section .event-register:hover::after { opacity: 0.9; }

@keyframes registerGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .events-section .event-register,
  .programs-section .season-cards .card .event-register,
  .events-section .event-register::after,
  .programs-section .season-cards .card .event-register::after {
    animation: none;
  }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 968px) {
  .content-image-layout,
  .content-image-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .programs-section .season-cards .cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-search { display: none; }

  nav > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  }

  nav > ul.show { display: flex; }

  nav > ul > li {
    margin: 0;
    padding: 10px 0;
    text-align: center;
  }

  nav ul li .dropdown,
  nav ul li .dropdown li .dropdown {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 18px;
  }

  nav ul li.has-dropdown.open > .dropdown,
  nav ul li .dropdown li.has-dropdown.open > .dropdown {
    max-height: 500px;
    padding: 8px 0 8px 18px;
  }

  .hero h1 { font-size: 36px; }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 80%;
    max-width: 260px;
  }

  .season-tabs.glass .glass-glider { display: none; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .events-section .events-grid {
    grid-template-columns: 1fr;
  }

  .season-tab {
    min-width: 0;
    font-size: 14px;
    padding: 10px 12px;
  }
}

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

.featured-events .event-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .featured-events .events-grid.featured {
    grid-template-columns: 1fr;
  }
}

/* Hard-enforce bottom-aligned register button in events grid */
.events-section .events-grid > .event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.events-section .events-grid > .event-card .event-content {
  flex: 1 1 auto;
}

.events-section .events-grid > .event-card .event-register {
  margin-top: auto;
  align-self: stretch;
}

/* Account UI */
.nav-auth {
  position: relative;
  display: flex;
  align-items: center;
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-trigger {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #8c2131;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.account-avatar--sm {
  width: 32px;
  height: 32px;
  border-width: 1px;
  font-size: 12px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 2500;
}

.account-menu:hover .account-dropdown,
.account-menu.open .account-dropdown,
.account-menu:focus-within .account-dropdown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.account-details {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.account-name {
  font-weight: 600;
  color: #fff;
}

.account-email {
  font-size: 12px;
  color: #bdbdbd;
}

.account-link,
.account-signout {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.account-link:hover,
.account-signout:hover {
  background: rgba(255,255,255,0.08);
}

/* Mobile dropdown positioning */
@media (max-width: 768px) {
  .account-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    margin-top: 8px;
  }
}


