/* ============================================================
   JIPAF 2026 – Living Histories / Moving Futures
   All content within 98% of the viewport
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white: #ffffff;
  --black: #1a1a1a;
  --font: 'Space Grotesk', sans-serif;
  --mono: 'Space Mono', monospace;
  --nav-h: 72px;
  /* fixed navbar height */
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: var(--white);
  font-family: var(--font);
  color: var(--black);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE WRAP — 98% wide, sits below fixed navbar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-wrap {
  position: fixed;
  top: 1vh;
  left: 1vw;
  width: 98vw;
  height: 98vh;
  /* fill remaining height with 1vh gap at bottom */
  overflow: hidden;
  border-radius: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVBAR — fixed to top of full viewport
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/* Transparent Navbar styles when Home panel is active */
.navbar.navbar--transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.navbar--transparent .navbar__logo-img {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar__logo-img {
  height: calc(var(--nav-h) - 28px);
  /* proportional: 72px nav → 44px logo */
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar__links {
  display: flex;
  gap: 2.8vw;
  align-items: center;
}

.nav-link {
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--black);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PANEL — transitions and active state
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.panel.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
  z-index: 10;
}

/* ── Left text column ── */
.hero__left {
  position: absolute;
  top: 0;
  left: -3%;
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2% 0 0 3.5%;
  z-index: 10;
}

.hero__subtitle {
  font-size: clamp(9px, 1vw, 13px);
  position: relative;
  left: 30%;
  font-weight: 400;
  line-height: 1.65;
  color: #3a3a3a;
  margin-bottom: 2%;
}

.hero__title {
  font-size: clamp(22px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 2.5%;
}

.hero__slash {
  font-weight: 300;
}

.hero__tagline {
  font-size: clamp(9px, 1vw, 13px);
  position: relative;
  left: 30%;
  font-weight: 400;
  line-height: 1.6;
  color: #3a3a3a;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.hero__dash {
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Bottom bar ── */
.hero__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 3% 3%;
  z-index: 20;
  pointer-events: none;
}

/* Hide the bottom bar text and date when home is not active */
.panel#home:not(.active) .hero__bottom {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Hide the collaborate text when home is not active */
.panel#home:not(.active) .hero__collaborate {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Hide the scribble overlay when home is not active */
.panel#home:not(.active) .scribble {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Desktop-only background for home panel */
@media (min-width: 601px) {
  .panel#home {
    background-image: url('asset/Assets Webpage/BackgroundLandscapewebp.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.hero__collaborate {
  position: absolute;
  bottom: 8%;
  left: 61%;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.65;
  color: var(--black);
  pointer-events: all;
  z-index: 20;
}

.hero__collaborate strong {
  font-weight: 700;
}

.hero__date {
  position: absolute;
  bottom: 8%;
  right: 3%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3%;
  pointer-events: all;
  z-index: 20;
}

.date-line {
  font-family: var(--mono);
  font-size: clamp(12px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.6vw;
}

.date-year {
  font-family: var(--mono);
  font-size: clamp(16px, 2.8vw, 46px);
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   IMAGE TILES — positioned inside .hero
   (which is 98vw × ~90vh)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.38s ease;
  cursor: default;
}

.tile:hover {
  transform: scale(1.05) translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 50 !important;
}

.tile picture,
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* All tile positions as % of .hero dimensions */

.tile--asset14 {
  top: 22%;
  left: 48%;
  width: 15.%;
  height: 20%;
  z-index: 3;
}

.tile--asset15 {
  top: 3%;
  left: 57%;
  width: 10%;
  height: 30%;
  z-index: 6;
}

.tile--asset16 {
  top: 10%;
  left: 80%;
  width: 8%;
  height: 22.4%;
  z-index: 5;
}

.tile--asset17 {
  top: 22%;
  right: 0%;
  width: 15%;
  height: 38%;
  z-index: 6;
}

.tile--asset18 {
  top: 53%;
  right: 12%;
  width: 8%;
  height: 16%;
  z-index: 7;
}

.tile--asset19 {
  top: 55%;
  right: 25%;
  width: 12%;
  height: 11%;
  z-index: 4;
}

.tile--asset20 {
  top: 60%;
  left: 44%;
  width: 10%;
  z-index: 3;
}

.tile--asset21 {
  top: 83%;
  left: 42%;
  width: 8%;
  height: 13%;
  z-index: 5;
}

.tile--asset22 {
  top: 65%;
  left: 30%;
  width: 13%;
  /*height: 24%;*/
  z-index: 4;
}

.tile--asset24 {
  top: 70%;
  left: 2%;
  width: 12%;
  z-index: 5;
}

.tile--asset23 {
  top: 60%;
  left: 8%;
  width: 8%;
  z-index: 4;
}

/* Scribble — centred overlay using background image */
.scribble {
  display: block;
  position: absolute;
  top: 7%;
  left: 7.5%;
  width: 85%;
  height: 85%;
  z-index: 30;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: multiply;
  background-image: url('asset/Assets Webpage/Asset 25.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GENERIC PANELS (NEWS, EVENTS, ABOUT)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.panel__content {
  width: 100%;
  height: 100%;
  padding: 4% 6% 6% 6%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

@media (min-width: 601px) {
  .panel__content {
    padding-top: calc(var(--nav-h) + 24px);
  }
}

.panel__title {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4vh;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  display: inline-block;
}

.panel__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--black);
}

/* --- News Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5vw;
  margin-top: 2vh;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(124, 77, 255, 0.15) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  margin-bottom: 1.8vh;
  position: relative;
  overflow: hidden;
}

.news-card__image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(230, 81, 0, 0.12), transparent);
}

.news-card__date {
  font-family: var(--mono);
  font-size: 11px;
  color: #666;
  margin-bottom: 0.8vh;
  letter-spacing: 0.05em;
}

.news-card__title {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1vh;
  color: var(--black);
}

.news-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

/* --- Schedule Timeline Styling --- */
.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 5vh;
  margin-top: 2vh;
}

.schedule-day {
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
}

.schedule-day__title {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  color: var(--black);
  border-bottom: 2px solid var(--black);
  padding-bottom: 8px;
  text-transform: uppercase;
}

.schedule-day__subtitle {
  font-size: 0.8em;
  font-weight: 400;
  text-transform: none;
  color: #666;
}

.schedule-events {
  display: flex;
  flex-direction: column;
  gap: 3vh;
}

.event-card-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3vw;
  padding-bottom: 3vh;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.event-card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-card-item__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-time {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
}

.event-venue {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  line-height: 1.4;
}

.event-card-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-title {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 700;
  color: var(--black);
}

.event-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-top: -4px;
}

.event-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #444;
}

.event-details-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--black);
  text-decoration: underline;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.event-details-link:hover {
  opacity: 0.7;
  transform: translateX(3px);
}


.event-bullet-list {
  list-style-type: square;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #444;
}

.event-bullet-list li {
  margin-bottom: 4px;
}

.event-badge {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  text-transform: uppercase;
}

.highlight-performance {
  background: rgba(0, 0, 0, 0.02);
  padding: 20px;
  border-left: 3px solid var(--black);
  border-bottom: none;
}

@media (max-width: 768px) {
  .event-card-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* --- About Layout --- */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4vw;
  align-items: flex-start;
  margin-top: 2vh;
}

.about-layout__text {
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  color: #333;
  line-height: 1.7;
  font-size: clamp(13px, 1.1vw, 15px);
}

.about-layout__text .lead-text {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
}

.about-layout__visual {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.12) 0%, rgba(76, 175, 80, 0.12) 100%);
  border: 1.5px dashed rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  position: relative;
}

.about-layout__visual::before {
  content: 'JIPAF 2026';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

/* --- Curatorial Note Styling --- */
.curatorial-note {
  margin-top: 6vh;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 5vh;
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  color: #333;
  line-height: 1.7;
  font-size: clamp(13px, 1.1vw, 15px);
}

.curatorial-title {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--black);
}

.curatorial-subtitle {
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  color: #555;
  margin-bottom: 1vh;
}

.curatorial-framework-intro {
  font-weight: 500;
  margin-top: 2vh;
}

.movements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5vw;
  margin: 2vh 0;
}

.movement-card {
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--black);
  padding: 20px;
  border-radius: 0 4px 4px 0;
}

.movement-card h5 {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--black);
}

.movement-card p {
  font-size: 13.5px;
  line-height: 1.6;
}

.curatorial-conclusion {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
  border-left: 4px solid var(--black);
  padding-left: 20px;
  margin-top: 3vh;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {

  html,
  body {
    overflow-y: auto !important;
    height: auto !important;
  }

  .page-wrap {
    position: relative;
    top: var(--nav-h);
    left: 0% !important;
    width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - var(--nav-h));
    overflow-y: visible !important;
    padding-bottom: 80px;
  }

  .panel {
    overflow: visible !important;
  }

  .navbar {
    position: fixed;
    height: var(--nav-h);
  }

  .navbar__links {
    display: flex !important;
    position: static;
    background: transparent;
    flex-direction: row;
    justify-content: flex-end;
    gap: 14px;
    z-index: 100;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .hamburger {
    display: none !important;
  }

  .panel#home {
    position: relative;
    height: 1080px !important;
    /* Fixed taller canvas for scrolling layout */
    min-height: 1080px;
    opacity: 0;
    transform: none;
    transition: opacity 0.4s ease;
    background-image: url('asset/Assets Webpage/BackgroundPotrait.webp');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
  }

  .panel#home.active {
    opacity: 1;
  }

  .hero__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
  }

  .hero__subtitle {
    position: absolute !important;
    top: 2%;
    left: 4%;
    width: 50%;
    font-size: 13px;
    line-height: 1.4;
  }

  .hero__title {
    position: absolute !important;
    top: 15%;
    left: 13%;
    width: 90%;
    font-size: 40px;
    line-height: 1.1;
  }

  .hero__tagline {
    position: absolute !important;
    top: 24%;
    left: 50%;
    width: 80%;
    font-size: 14px;
    line-height: 1.4;
  }

  /* --- Mobile custom tile coordinates --- */
  .tile {
    position: absolute;
    transform: none !important;
  }

  /* Asset 15 - woman (top right) */
  .tile--asset15 {
    top: 1%;
    left: auto !important;
    right: 20%;
    width: 18%;
    height: 10%;
    z-index: 6;
  }

  /* Asset 14 - green dancer (overlaps woman right) */
  .tile--asset14 {
    top: 7%;
    left: auto !important;
    right: 0%;
    width: 34%;
    height: 110px;
    z-index: 5;
  }

  /* Asset 23 - orange/red dancers fabric (below tagline) */
  .tile--asset23 {
    top: 32%;
    left: 22%;
    width: 20%;
    z-index: 5;
  }

  /* Asset 20 - veil fabric green (below tagline left) */
  .tile--asset20 {
    top: 68%;
    left: 12%;
    width: 25%;
    height: 7%;
    z-index: 4;
  }

  /* Asset 16 - dancer fabric (below Asset 23 right) */
  .tile--asset16 {
    top: 40%;
    left: auto !important;
    right: 12%;
    width: 15%;
    height: 8%;
    z-index: 4;
  }

  /* Asset 24 - performer shadow green (middle-low) */
  .tile--asset24 {
    top: 53%;
    left: auto !important;
    right: 32%;
    width: 20%;
    z-index: 5;
  }

  /* Asset 22 - paper performer (lower left) */
  .tile--asset22 {
    top: 73%;
    left: 1%;
    width: 30%;
    height: 18%;
    z-index: 4;
  }

  /* Asset 17 - architecture (lower right) */
  .tile--asset17 {
    top: 55%;
    right: 8%;
    width: 28%;
    height: 20%;
    z-index: 4;
  }

  /* Asset 18 - orange dancer (lower middle) */
  .tile--asset18 {
    top: 70%;
    left: 52%;
    width: 18%;
    height: 8%;
    z-index: 6;
  }

  /* Asset 21 - Cikini building (bottom left) */
  .tile--asset21 {
    top: 92%;
    left: 13%;
    width: 20%;
    height: 8%;
    z-index: 5;
  }

  /* Asset 19 - performer orange (middle right) */
  .tile--asset19 {
    top: 41%;
    left: 4%;
    width: 26%;
    height: 5%;
    z-index: 5;
  }

  /* --- Text & Date placements on mobile --- */
  .hero__bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: block;
  }

  .hero__collaborate {
    position: absolute !important;
    top: 55%;
    left: auto !important;
    right: 40%;
    width: 45%;
    font-size: 13.5px;
    line-height: 1.5;
    pointer-events: auto;
  }

  .hero__date {
    position: absolute !important;

    bottom: 2%;
    right: 4%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto;
  }

  .date-line {
    font-size: 18px;
  }

  .date-year {
    font-size: 32px;
  }

  /* Show scribble on mobile home only using vertical mobile Asset 25m.webp */
  .scribble {
    display: block !important;
    position: relative;
    top: 10%;
    left: 0%;
    width: 100%;
    max-width: 600px;
    min-height: 90%;
    z-index: 30;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.9;
    background-image: url('asset/Assets Webpage/Asset 25m.webp') !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }
}

/* --- Event Registration QR Code --- */
.event-register {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 12px;
  border-radius: 4px;
  width: fit-content;
}

.register-qr-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
  background: var(--white);
}

.register-qr-img:hover {
  transform: scale(4);
  transform-origin: left bottom;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.register-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .register-qr-img:hover {
    transform: scale(3.5);
    transform-origin: center bottom;
  }
}

/* --- Expandable Event Cards --- */
.collapsible-event {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 20px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  transition: background-color 0.2s ease;
}

.collapsible-event:hover {
  background-color: rgba(0, 0, 0, 0.01) !important;
}

.event-header-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 2vw;
  width: 100%;
}

.event-card-item__title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.expand-arrow {
  font-size: 14px;
  color: #888;
  transition: transform 0.3s ease;
}

/* Expansion Panel Animation */
.expansion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.collapsible-event.expanded {
  background-color: rgba(0, 0, 0, 0.005) !important;
}

.collapsible-event.expanded .expansion-panel {
  max-height: 1200px; /* High enough to fit long text */
  opacity: 1;
  margin-top: 20px;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), opacity 0.3s ease, margin-top 0.3s ease;
}

.collapsible-event.expanded .expand-arrow {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .event-header-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .event-card-item__title-group {
    order: -1;
  }
}