/* =========================================================
   HERO
   ========================================================= */
.event-detail-hero {
  position: relative;
  overflow: hidden;
  background: #000;
}

.event-detail-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.event-detail-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  filter: blur(10px) brightness(0.9);
  opacity: 0.9;
}

.event-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.14),
    rgba(0, 0, 0, 0.08)
  );
}

.event-detail-hero__media {
  position: relative;
  z-index: 2;
  max-height: 500px;
}

.event-detail-hero__media-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.event-detail-hero__media-inner img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.event-detail-hero__badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
}

/* =========================================================
   HERO BADGE
   ========================================================= */
.hero-badge {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 14px 12px 12px;
  color: #fff;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

.hero-badge__logo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}

.hero-badge__logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.hero-badge__text {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.hero-badge--move { background: var(--feature-green); }
.hero-badge--discover { background: var(--feature-gold); }
.hero-badge--connect { background: var(--feature-teal); }

/* =========================================================
   TYPE BAR
   ========================================================= */
.event-typebar {
  background: #fff;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.event-typebar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  text-align: center;
  color: rgba(17, 24, 39, 0.55);
  font-size: 14px;
  font-weight: 700;
}

.event-typebar__item {
  color: rgba(17, 24, 39, 0.6);
}

.event-typebar__item:hover {
  color: rgba(17, 24, 39, 0.85);
}

.event-typebar__sep {
  margin: 0 10px;
  opacity: 0.45;
}

/* =========================================================
   PAGE GRID / LAYOUT
   ========================================================= */
.event-detail {
  padding: 26px 0 56px;
}

.event-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.event-detail__main--intro,
.event-detail__main--body,
.event-detail__aside {
  min-width: 0;
}

.event-detail__aside {
  position: static;
}

@media (min-width: 992px) {
  .event-detail__grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
  }

  .event-detail__main--intro {
    grid-column: 1;
    grid-row: 1;
  }

  .event-detail__aside {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 110px;
    align-self: start;
  }

  .event-detail__main--body {
    grid-column: 1;
    grid-row: 2;
  }
}

/* =========================================================
   HEADER
   ========================================================= */
.event-detail__header {
  padding: 8px 0 14px;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.72);
  text-decoration: none;
}

.backlink i {
  font-size: 13px;
  transform: translateY(1px);
}

.backlink:hover {
  color: rgba(17, 24, 39, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-detail__title {
  font-size: clamp(34px, 4.3vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}

.event-detail__lede {
  margin: 0;
  max-width: 820px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* =========================================================
   KEY FACTS CARD
   ========================================================= */
.kv-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  margin-top: 14px;
}

.kv-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.kv-row:first-child {
  border-top: 0;
}

.kv-row--split {
  justify-content: space-between;
  align-items: center;
}

.kv-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(17, 24, 39, 0.14);
  color: rgba(17, 24, 39, 0.9);
  flex: 0 0 40px;
}

.kv-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.kv-left ul {
  margin: 0;
  padding-left: 18px;
}

.kv-right {
  margin-left: 12px;
  flex: 0 0 auto;
}

.kv-text {
  min-width: 0;
}

.kv-primary {
  font-weight: 800;
  color: rgba(17, 24, 39, 0.92);
}

.kv-secondary,
.kv-card li {
  color: rgba(17, 24, 39, 0.65);
  font-size: 14px;
  margin-top: 2px;
}

.kv-link {
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kv-link:hover {
  opacity: 0.85;
}

.kv-hosted {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.kv-hosted__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(17, 24, 39, 0.14);
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
}

.kv-hosted__logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.kv-hosted__text {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.72);
}

@media (max-width: 575.98px) {
  .kv-row--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .kv-right {
    margin-left: 0;
  }
}

/* =========================================================
   ASIDE
   ========================================================= */
.aside-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  padding: 16px;
}

.aside-card__title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}

.aside-card__text {
  margin: 0 0 12px;
  color: rgba(17, 24, 39, 0.65);
  line-height: 1.55;
}

.aside-card__cta {
  width: 100%;
  border-radius: 999px;
  padding: 12px 18px;
}

.aside-card__fineprint {
  margin: 0 0 14px;
  color: rgba(17, 24, 39, 0.7);
  font-size: 13px;
}

.aside-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.aside-meta__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aside-meta__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 16px;
}

.aside-meta__text {
  line-height: 1.35;
}

.aside-meta__muted {
  color: rgba(17, 24, 39, 0.7);
  font-weight: 500;
}

.btn--external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn--external i {
  font-size: 14px;
  transform: translateY(-1px);
}

/* =========================================================
   GALLERY
   ========================================================= */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.event-gallery__item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.event-gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 40px;
  padding: 12px 18px;
  cursor: pointer;
  z-index: 10;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

#galleryModal .modal-content {
  height: 100vh;
}

#galleryModal .modal-body img {
  max-height: 100vh;
  width: auto;
  object-fit: contain;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  --bs-backdrop-bg: #000;
  --bs-backdrop-opacity: 0.7; /* adjust this */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

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

  .event-gallery__item img {
    height: 190px;
  }
}

/* =========================================================
   SECTION TITLES
   ========================================================= */
.section-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 22px 0 12px;
  color: rgba(17, 24, 39, 0.85);
}

/* =========================================================
   GOOD TO KNOW
   ========================================================= */
.info-list {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.info-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.info-row:first-child {
  border-top: 0;
}

.info-row--text {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
}

.info-row--text .info-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.info-row--text .info-label {
  grid-column: 2;
  grid-row: 1;
}

.info-row--text .info-value {
  grid-column: 2;
  grid-row: 2;
  white-space: normal;
}

.info-row--text .info-label,
.info-row--text .info-value {
  text-align: left;
}

.info-row--text .info-value-text {
  text-align: left;
  padding-right: 20px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(17, 24, 39, 0.14);
  color: rgba(17, 24, 39, 0.9);
}

.info-label {
  font-weight: 900;
  color: rgba(17, 24, 39, 0.78);
}

.info-label.tbd {
  font-weight: 500;
}

.info-value {
  font-weight: 800;
  color: rgba(17, 24, 39, 0.58);
}

.info-value-text {
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.5;
  text-align: right;
  display: inline-block;
}

.info-value-text p {
  margin: 0;
}

@media (max-width: 575.98px) {
  .info-row {
    grid-template-columns: 52px 1fr;
  }

  .info-value {
    grid-column: 2;
  }
}

/* =========================================================
   MAP
   ========================================================= */
.map-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   RELATED EVENTS
   ========================================================= */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.related-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
}

.related-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.related-card__body {
  padding: 12px 12px 14px;
}

.related-card__kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.55);
  margin-bottom: 6px;
}

.related-card__title {
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.related-card__title a {
  text-decoration: none;
}

.related-card__title a:hover {
  text-decoration: underline;
}

.related-card__meta {
  margin: 0;
  color: rgba(17, 24, 39, 0.6);
  font-size: 14px;
}

.related-footer {
  margin-top: 14px;
  text-align: center;
}

.related-all {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-all:hover {
  opacity: 0.85;
}

@media (max-width: 991.98px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 767px) {
  .event-detail-hero__bg img {
    filter: blur(16px) brightness(0.72);
    transform: scale(1.04);
  }

  .event-detail-hero__media-inner {
    max-width: none;
  }

  .event-detail-hero__badge {
    top: 16px;
    left: 16px;
  }
}

@media (max-width: 575.98px) {
  .hero-badge {
    width: 112px;
    height: 112px;
    border-radius: 16px;
    padding: 12px 10px 10px;
  }

  .hero-badge__logo {
    width: 54px;
    height: 54px;
  }

  .hero-badge__logo img {
    width: 60px;
    height: 60px;
  }

  .hero-badge__text {
    font-size: 16px;
  }
}