/* =====================================================
   EVENT DETAIL PAGE
===================================================== */

.event-detail-body {
  margin: 0;
  min-height: 100vh;
  background: #031d16;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
}

.event-detail-body *,
.event-detail-body *::before,
.event-detail-body *::after {
  box-sizing: border-box;
}

#event-detail-page {
  width: 100%;
  overflow: hidden;
}

#event-detail-page .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* =====================================================
   SHOWCASE BACKGROUND
===================================================== */

.event-showcase {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 36px 0 70px;
  overflow: hidden;
  background: #03251b;
}

.event-showcase-background {
  position: absolute;
  inset: 0;
  z-index: -3;

  background-image: var(
    --event-background,
    url("../../images/ULC GEN 6/YLD 26/YLD26 1.jpg")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.04);
  filter: blur(1px);
}

.event-showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(0, 27, 17, 0.94) 0%,
      rgba(0, 48, 31, 0.8) 48%,
      rgba(0, 31, 20, 0.9) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 10, 7, 0.48) 0%,
      rgba(0, 75, 49, 0.25) 45%,
      rgba(0, 13, 9, 0.82) 100%
    );
}

.event-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(0, 255, 169, 0.14),
      transparent 32%
    ),
    radial-gradient(
      circle at 84% 75%,
      rgba(0, 255, 195, 0.12),
      transparent 30%
    );
}

/* =====================================================
   BREADCRUMB
===================================================== */

.event-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  margin-bottom: 28px;

  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

.event-breadcrumb a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.event-breadcrumb a:hover {
  color: #62ffc3;
}

.event-breadcrumb span:last-child {
  color: #ffffff;
}

/* =====================================================
   EVENT HEADING
===================================================== */

.event-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 6px 14px;

  border: 1px solid rgba(91, 255, 194, 0.48);
  border-radius: 999px;

  background: rgba(3, 103, 72, 0.58);
  color: #c8ffe9;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.event-pill-outline {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.event-date {
  margin: 0 0 10px;
  color: #7effcb;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-heading h1 {
  max-width: 900px;
  margin: 0;

  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 4.7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;

  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.28);
}

.event-subtitle {
  margin: 13px 0 0;

  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.95rem, 1.6vw, 1.24rem);
  font-weight: 500;
  font-style: italic;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.event-tags span {
  padding: 7px 12px;

  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;

  background: rgba(0, 32, 23, 0.48);
  color: rgba(255, 255, 255, 0.85);

  font-size: 0.7rem;
  font-weight: 600;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* =====================================================
   EVENT STATS
===================================================== */

.event-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;

  margin-bottom: 45px;
}

.event-stat {
  position: relative;
  min-height: 92px;
  padding: 18px 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 2px solid rgba(176, 255, 224, 0.55);
  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      rgba(13, 99, 76, 0.74),
      rgba(12, 151, 113, 0.42)
    );

  box-shadow:
    inset 0 0 28px rgba(25, 255, 177, 0.05),
    0 12px 35px rgba(0, 0, 0, 0.17);

  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  overflow: hidden;
}

.event-stat::before {
  content: "";
  position: absolute;
  top: -35px;
  right: -30px;

  width: 120px;
  height: 120px;
  border-radius: 50%;

  background: rgba(0, 255, 179, 0.15);
  filter: blur(7px);
}

.event-stat strong {
  position: relative;
  z-index: 1;

  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
}

.event-stat span {
  position: relative;
  z-index: 1;

  margin-top: 7px;

  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
}

/* =====================================================
   MAIN INFORMATION GRID
===================================================== */

.event-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.95fr);
  align-items: start;
  gap: 42px;
}

.event-main-column,
.event-sidebar {
  min-width: 0;
}

.event-sections {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

/* =====================================================
   GLASS CARDS
===================================================== */

.glass-card,
.event-section-card {
  position: relative;
  overflow: hidden;

  border: 2px solid rgba(205, 255, 235, 0.7);
  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      rgba(13, 89, 70, 0.76),
      rgba(16, 173, 131, 0.51)
    );

  box-shadow:
    inset 0 0 35px rgba(28, 255, 183, 0.05),
    0 14px 40px rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
}

.glass-card::after,
.event-section-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -105px;

  width: 210px;
  height: 210px;
  border-radius: 50%;

  background: rgba(0, 255, 190, 0.12);
  filter: blur(8px);
  pointer-events: none;
}

/* =====================================================
   OVERVIEW CARD
===================================================== */

.event-overview-card {
  min-height: 210px;
  padding: 27px 28px;
}

.event-card-eyebrow {
  display: block;
  margin-bottom: 6px;

  color: rgba(232, 255, 247, 0.9);
  font-size: 0.68rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.02em;
}

.event-overview-card h2,
.event-section-card h3,
.quick-info-card h2 {
  position: relative;
  z-index: 1;

  margin: 0;

  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
}

.event-overview-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.event-overview-card p,
.event-section-card p {
  position: relative;
  z-index: 1;

  margin: 0;

  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
}

/* =====================================================
   EVENT SECTION CARDS
===================================================== */

.event-section-card {
  min-height: 118px;
  padding: 23px 27px;
}

.event-section-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-style: italic;
}

.event-section-card p {
  max-width: 96%;
}

/* =====================================================
   SIDEBAR
===================================================== */

.event-sidebar {
  display: grid;
  gap: 34px;
}

.quick-info-card {
  padding: 26px 24px;
}

.quick-info-card h2 {
  margin-bottom: 27px;
  font-size: 1.3rem;
}

.quick-info-list {
  position: relative;
  z-index: 1;

  display: grid;
  gap: 24px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-info-list li {
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: start;
  gap: 9px;
}

.quick-info-dot {
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: #ffffff;
}

.quick-info-list p {
  margin: 0;

  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
}

.quick-info-list em {
  font-style: italic;
  font-weight: 500;
}

.partner-card {
  padding: 27px 25px;
}

.partner-card p {
  position: relative;
  z-index: 1;

  margin: 0;

  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
}

.partner-link {
  position: relative;
  z-index: 1;

  display: inline-flex;
  margin-top: 7px;

  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.partner-link:hover {
  color: #75ffd0;
  transform: translateX(4px);
}

/* =====================================================
   GALLERY SECTION
===================================================== */

.event-gallery-section,
.related-events {
  position: relative;
  padding: 90px 0;
  background: #041f18;
}

.event-gallery-section {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(0, 179, 124, 0.14),
      transparent 35%
    ),
    #041f18;
}

.gallery-header,
.related-header {
  margin-bottom: 38px;
}

.event-gallery-section .section-label,
.related-events .section-label {
  display: block;
  margin-bottom: 9px;
  color: #5affbf;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-gallery-section .section-title,
.related-events .section-title {
  margin: 0;
  color: #ffffff;
}

.event-gallery-section .section-title span,
.related-events .section-title span {
  color: #5affbf;
}

.event-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: 18px;
}

.event-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #0a3b2d;
}

.event-gallery figure:first-child {
  grid-row: 1 / 3;
}

.event-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  transition:
    transform 0.55s ease,
    filter 0.55s ease;
}

.event-gallery figure:hover img {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.gallery-lightbox-trigger {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-lightbox-trigger:focus-visible {
  outline: 3px solid #5affbf;
  outline-offset: -5px;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 28px 28px;
  background: rgba(0, 12, 8, 0.92);
  backdrop-filter: blur(10px);
}

.gallery-lightbox img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 112px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.gallery-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(4, 36, 25, 0.86);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: #5affbf;
  color: #042419;
  outline: none;
}

@media (max-width: 700px) {
  .gallery-lightbox {
    padding: 76px 14px 18px;
  }

  .gallery-lightbox img {
    max-height: calc(100vh - 104px);
    border-radius: 10px;
  }

  .gallery-lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* =====================================================
   RELATED EVENTS
===================================================== */

.related-events {
  background: #031812;
}

.related-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-card {
  overflow: hidden;
  border: 1px solid rgba(107, 255, 202, 0.22);
  border-radius: 18px;
  background: #082a20;
  color: #ffffff;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  border-color: rgba(107, 255, 202, 0.55);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.related-card img {
  width: 100%;
  height: 205px;
  display: block;
  object-fit: cover;
}

.related-card-body {
  padding: 20px;
}

.related-card-body span {
  color: #5affbf;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.related-card-body h3 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.4;
}

/* =====================================================
   NOT FOUND
===================================================== */

.event-not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  background: #041f18;
  color: #ffffff;
}

.event-not-found h1 {
  margin: 10px 0;
  font-size: clamp(2rem, 6vw, 4rem);
}

.event-not-found p {
  color: rgba(255, 255, 255, 0.7);
}

.event-not-found a {
  display: inline-flex;
  margin-top: 20px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 960px) {
  .event-information-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .event-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .event-gallery {
    grid-template-rows: repeat(2, 200px);
  }

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

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {
  #event-detail-page .container {
    width: min(100% - 28px, 1180px);
  }

  .event-showcase {
    padding: 25px 0 45px;
  }

  .event-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.7rem;
  }

  .event-heading {
    margin-bottom: 26px;
  }

  .event-heading h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .event-subtitle {
    line-height: 1.5;
  }

  .event-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .event-stat {
    min-height: 78px;
    padding: 15px 19px;
  }

  .event-sidebar {
    grid-template-columns: 1fr;
  }

  .event-overview-card,
  .event-section-card,
  .quick-info-card,
  .partner-card {
    padding: 22px 20px;
  }

  .event-gallery-section,
  .related-events {
    padding: 65px 0;
  }

  .event-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .event-gallery figure,
  .event-gallery figure:first-child {
    grid-row: auto;
    min-height: 235px;
  }

  .related-events-grid {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   IMAGE-REFERENCE HERO + GALLERY
===================================================== */

.event-showcase {
  min-height: auto;
  padding: 34px 0 78px;
  background: #063522;
}

.event-showcase-overlay {
  background:
    linear-gradient(90deg, rgba(0, 32, 22, 0.96) 0%, rgba(0, 78, 49, 0.78) 52%, rgba(0, 37, 25, 0.94) 100%),
    linear-gradient(180deg, rgba(0, 17, 12, 0.36) 0%, rgba(0, 121, 76, 0.25) 58%, rgba(0, 22, 15, 0.85) 100%);
}

.event-showcase::after {
  background:
    radial-gradient(circle at 8% 88%, rgba(48, 255, 155, 0.2), transparent 30%),
    radial-gradient(circle at 76% 20%, rgba(44, 255, 185, 0.13), transparent 34%);
}

.event-breadcrumb {
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-breadcrumb a,
.event-breadcrumb span:last-child {
  color: #ffffff;
}

.event-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 78px);
  margin-bottom: 48px;
}

.event-hero-content {
  min-width: 0;
}

.event-heading {
  max-width: 560px;
  margin-bottom: 0;
}

.event-meta {
  gap: 46px;
  margin-bottom: 36px;
}

.event-pill {
  min-width: 100px;
  min-height: 34px;
  padding: 7px 22px;
  border: 2px solid #2cff88;
  border-radius: 999px;
  background: rgba(0, 134, 73, 0.58);
  box-shadow: inset 0 -4px 9px rgba(0, 26, 18, 0.42), 0 0 0 1px rgba(99, 255, 182, 0.22);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-pill-outline {
  min-width: 138px;
  background: rgba(0, 116, 75, 0.5);
}

.event-date {
  display: none;
}

.event-heading h1 {
  max-width: 500px;
  color: #ffffff;
  font-size: clamp(3.1rem, 7.2vw, 5.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.event-heading h1 span {
  display: block;
  color: #35ff8b;
}

.event-subtitle {
  margin-top: 28px;
  color: #ffffff;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1.25;
}

.event-intro {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.92rem, 1.25vw, 1.03rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
}

.event-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: clamp(18px, 5vw, 64px);
  width: min(1100px, calc(100vw - 80px));
  margin-top: 32px;
}

.event-tags span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 8px 18px;
  border: 2px solid rgba(24, 226, 108, 0.62);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 82, 54, 0.96), rgba(0, 184, 91, 0.82));
  box-shadow: inset 0 -5px 10px rgba(0, 24, 17, 0.45), 0 5px 12px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 194px;
  min-height: 72px;
  padding: 18px 28px;
  border: 3px solid #21d94f;
  border-radius: 10px;
  background: rgba(0, 102, 64, 0.48);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.event-action:hover {
  transform: translateY(-3px);
  background: rgba(0, 164, 88, 0.58);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.event-cover-frame {
  width: 100%;
  aspect-ratio: 1.55 / 0.92;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 42px;
  background: rgba(3, 38, 28, 0.8);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.event-stats {
  margin-top: 16px;
}

.event-gallery-section {
  padding: 78px 0 72px;
  border-bottom: 2px solid rgba(38, 255, 113, 0.45);
  background:
    radial-gradient(circle at 10% 90%, rgba(41, 255, 148, 0.16), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(35, 229, 144, 0.11), transparent 32%),
    #063522;
}

.gallery-header,
.related-header {
  text-align: center;
}

.event-gallery-section .section-label,
.related-events .section-label {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

.event-gallery-section .section-title,
.related-events .section-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.event-gallery-section .section-title span,
.related-events .section-title span {
  color: #35ff8b;
}

.event-gallery {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 0.82fr;
  grid-template-rows: 132px 132px;
  gap: 22px 34px;
  align-items: stretch;
}

.event-gallery figure,
.event-gallery figure:first-child {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #092f24;
}

.event-gallery .gallery-item-1 {
  grid-row: 1 / 3;
}

.event-gallery .gallery-item-2 {
  grid-column: 2;
  grid-row: 1;
}

.event-gallery .gallery-item-3 {
  grid-column: 3;
  grid-row: 1;
}

.event-gallery .gallery-item-4 {
  grid-column: 2;
  grid-row: 2;
}

.event-gallery .gallery-item-5 {
  grid-column: 3;
  grid-row: 2;
}

.event-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-events {
  padding-top: 30px;
  background:
    linear-gradient(180deg, rgba(6, 53, 34, 1), rgba(3, 24, 18, 1));
}

@media (max-width: 960px) {
  .event-hero-grid {
    grid-template-columns: 1fr;
  }

  .event-cover-frame {
    max-width: 720px;
    margin-top: 0;
  }

  .event-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .event-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 180px 180px;
    gap: 18px;
  }

  .event-gallery .gallery-item-1 {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .event-gallery .gallery-item-2,
  .event-gallery .gallery-item-3,
  .event-gallery .gallery-item-4,
  .event-gallery .gallery-item-5 {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .event-showcase {
    padding: 24px 0 52px;
  }

  .event-breadcrumb {
    gap: 7px;
    margin-bottom: 26px;
    font-size: 0.66rem;
  }

  .event-meta {
    gap: 12px;
    margin-bottom: 24px;
  }

  .event-pill,
  .event-pill-outline {
    min-width: 0;
    min-height: 32px;
    padding-inline: 16px;
  }

  .event-heading h1 {
    font-size: clamp(2.7rem, 16vw, 4.1rem);
  }

  .event-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .event-action {
    min-width: 0;
    min-height: 58px;
  }

  .event-cover-frame {
    border-radius: 26px;
  }

  .event-gallery-section .section-title,
  .related-events .section-title {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .event-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }

  .event-gallery .gallery-item-1,
  .event-gallery .gallery-item-2,
  .event-gallery .gallery-item-3,
  .event-gallery .gallery-item-4,
  .event-gallery .gallery-item-5 {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }
}
@media (max-width: 960px) {
  .event-tags {
    width: 100%;
  }
}

/* Youth Logistics Debate uses wide event photos, so keep full people in frame. */
.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 22px 28px;
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery figure {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #06291f, #0a3d2f);
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-1 {
  grid-column: 1 / 3;
  grid-row: 1;
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-2 {
  grid-column: 3 / 5;
  grid-row: 1;
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-3 {
  grid-column: 5 / 7;
  grid-row: 1;
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-4 {
  grid-column: 2 / 4;
  grid-row: 2;
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-5 {
  grid-column: 4 / 6;
  grid-row: 2;
}

.event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 960px) {
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-1,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-2,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-3,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-4,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-5 {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-1,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-2,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-3,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-4,
  .event-detail-body[data-event-slug="youth-logistics-debate"] .event-gallery .gallery-item-5 {
    min-height: 250px;
  }
}

.event-gallery-section .section-label,
.event-gallery-section .section-title,
.related-events .section-label,
.related-events .section-title {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

/* =====================================================
   EVENT DETAIL MOTION
===================================================== */

.event-detail-body {
  --event-parallax: 0px;
  --event-cover-lift: 0px;
}

.event-showcase-background {
  transform: translate3d(0, var(--event-parallax), 0) scale(1.08);
  transform-origin: center top;
  animation: event-background-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.event-showcase::after {
  animation: event-ambient-glow 9s ease-in-out infinite alternate;
}

.event-motion-item {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease;
  transition-delay: var(--event-motion-delay, 0ms);
}

.event-motion-item.is-visible,
.event-page-ready .event-motion-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.event-cover-frame {
  position: relative;
  isolation: isolate;
  transform: translate3d(0, var(--event-cover-lift), 0);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}

.event-cover-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 58%),
    radial-gradient(circle at 22% 18%, rgba(53, 255, 139, 0.18), transparent 30%);
  opacity: 0;
  transform: translateX(-38%);
  transition:
    opacity 0.35s ease,
    transform 0.75s ease;
}

.event-cover-frame:hover {
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(53, 255, 139, 0.22);
}

.event-cover-frame:hover::before {
  opacity: 1;
  transform: translateX(38%);
}

.event-cover-frame img {
  transform: scale(1.01);
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease;
}

.event-cover-frame:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.04);
}

.event-pill,
.event-tags span,
.event-action,
.event-stat,
.glass-card,
.event-section-card,
.gallery-item,
.related-card {
  will-change: transform;
}

.event-pill,
.event-tags span {
  animation: event-soft-float 4.8s ease-in-out infinite;
}

.event-tags span:nth-child(2n) {
  animation-delay: -1.4s;
}

.event-tags span:nth-child(3n) {
  animation-delay: -2.6s;
}

.event-stat,
.glass-card,
.event-section-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.event-stat:hover,
.glass-card:hover,
.event-section-card:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 255, 139, 0.82);
  box-shadow:
    inset 0 0 35px rgba(28, 255, 183, 0.08),
    0 24px 56px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(53, 255, 139, 0.14);
}

.event-stat::after,
.glass-card::before,
.event-section-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.13) 45%, transparent 68%);
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity 0.3s ease,
    transform 0.75s ease;
}

.event-stat:hover::after,
.glass-card:hover::before,
.event-section-card:hover::before {
  opacity: 1;
  transform: translateX(70%);
}

.quick-info-dot {
  box-shadow: 0 0 0 rgba(90, 255, 191, 0.5);
  animation: event-dot-pulse 2.2s ease-out infinite;
}

.gallery-item {
  position: relative;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.34s ease,
    box-shadow 0.34s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 23, 15, 0.36));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-lightbox {
  animation: event-lightbox-fade 0.22s ease both;
}

.gallery-lightbox img {
  animation: event-lightbox-zoom 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.related-card img {
  transition:
    transform 0.55s ease,
    filter 0.55s ease;
}

.related-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.08);
}

@keyframes event-background-drift {
  from {
    background-position: center 48%;
  }

  to {
    background-position: center 54%;
  }
}

@keyframes event-ambient-glow {
  from {
    opacity: 0.72;
  }

  to {
    opacity: 1;
  }
}

@keyframes event-soft-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes event-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(90, 255, 191, 0.5);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(90, 255, 191, 0);
  }
}

@keyframes event-lightbox-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes event-lightbox-zoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-detail-body *,
  .event-detail-body *::before,
  .event-detail-body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .event-motion-item,
  .event-motion-item.is-visible,
  .event-cover-frame,
  .event-showcase-background {
    opacity: 1;
    filter: none;
    transform: none !important;
  }
}
