@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-RegularItalic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-Medium.woff2') format('woff2');
  font-weight: 500 ;
  font-style: normal;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Metropolis';
  src: url('./fonts/Metropolis-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}

body {
  font-family: 'Metropolis', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Metropolis', sans-serif;
    touch-action: pan-y;
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 50px 80px;
    border-bottom: 1px solid #ccc;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 24px;
  }

  
  .header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  }
   
  .title-block {
  display: flex;
  flex-direction: column;
  }

  header img {
    height: 100px; 
    width: auto;
  }

  header strong {
    font-size: 3.5rem;
    color: #070707;
    line-height: 1.2;
    font-weight: 700;
  }
  
  .subtitle {
  font-size: 1rem;
  color: #070707;
  font-style: italic;
  margin-top: 4px;
  }

  .pdf-container {
    margin-top: 70px;
    height: calc(100vh - 70px);
  }

  iframe {
    width: 100vw;
    height: 100vh;
    border: none;
    display: block;
    overflow: hidden;
  }

  .event-list {
  margin-top: 240px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 0 80px 80px;
}

.event-card {
  display: flex;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  overflow: hidden;
  margin: 0;
  align-items: stretch;
  min-height: 400px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}

@keyframes scaleUp {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.event-card.animate {
  animation: scaleUp 0.8s ease-out forwards;
}

@keyframes scaleDown {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

.event-card.animate-out {
  animation: scaleDown 0.9s ease-in forwards;
}

.event-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.event-card:nth-child(1) { transition-delay: 0s; }
.event-card:nth-child(2) { transition-delay: 0.5s; }
.event-card:nth-child(3) { transition-delay: 1s; }

.image-container {
  width: 400px;
  height: 400px;
  flex-shrink: 0;
  overflow: hidden;
}

.image-container-pinned {
  width: 480px;
  height: 400px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.event-details {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.event-tags {
  display: flex;
  gap: 12px;
  padding-left: 10px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 8px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: white;
}

.tag.date {
  background: black;
}

.tag.type {
  background: rgb(167, 167, 167);
}

.tag.type-activity {
  background: #F27B0B;
}

.tag.type-guided-tour {
  background: #0065E8;
}

.tag.type-self-guided-tour {
  background: #0BA6CD;
}

.tag.type-workshop {
  background: #A902E5;
}

.event-title {
  font-size: 2.6rem;
  margin: 0 0 8px;
  font-weight: 500;
  white-space: pre-line;
  margin-right: 12px;
  line-height: 1.1;
}

.event-description {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #444;
  margin-top: 18px;
  margin-right: 12px;
  white-space: pre-line;
}

.qr-container {
  background: #02a630;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.qr-container-pinned{
  background: #02a630;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-right: 5%;
}

.qr-label {
  background: white;
  color: #00621c;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 1rem;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin-top: 8px;
  margin-bottom: 28px;
  box-sizing: border-box;
  background-color: white;
  padding: 10px;
  border-radius: 30px;
}


.event-top {
  position: absolute;
  top: 48px;
  left: 24px;
}

.event-middle {
  position: absolute;
  top: 108px;
  left: 38px;
  margin-right: 20px;
}

.special-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #4d0084, #fbd44c);
  border-radius: 20px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-height: 160px;
}

.special-card h2 {
  margin: 2px 0 0;
  font-size: 2.5rem;
  padding-left: 1rem;
}

.special-card p {
  margin: 10px  0 0;
  font-size: 1.2rem;
  padding-left: 1rem;
}

.special-card-content {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.special-card-qr img {
  height: 140px;
  width: 140px;
  border-radius: 12px;
  background: white;
}

.pinned-card {
  position: sticky; /* so it stays just below the header */
  top: 190px; /* adjust so it sits nicely below your header content */
  z-index: 900; /* so it's above scrolling cards */
  display: flex;
  background: linear-gradient(to right, #850103, #fbd44c);
  border-radius: 0px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
  overflow: hidden;
  margin: 0;
  align-items: stretch;
  min-height: 400px;
  
}


/* Featured carousel container */
.featured {
  position: relative;
  height: 420px;                /* tune height */
  border-radius: 16px;
  overflow: hidden;
  margin: 12px 80px 36px;       /* align with your page padding */
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
}

/* Track hosts all slides stacked */
.featured-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Each slide fills the box, cross-fades + slight zoom */
.featured-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .6s ease, transform .8s ease;
}

.featured-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* dark-to-transparent overlay so white text pops on any image */
.featured-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 70%);
}

/* Left side text */
.featured-body {
  position: absolute;
  left: 480px;
  right: 360px; /* leave space for QR panel */
  top: 0;
  color: #fff;
}

.featured .event-title { color: #fff; margin: 8px 0; }
.featured .event-description { color: #fff; }

/* Right side QR */
.featured-qr {
  position: absolute;
  top: 100px;
  right: 28px;
  width: 340px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;         /* will be overridden by status colors in HTML if you want */
}

.featured-qr .qr-label { margin-bottom: 12px; }

/* Dots navigation */
.featured-dots {
  position: absolute;
  left: 520px;      /* align with .featured-body left */
  right: 360px;     /* align with .featured-body right */
  bottom: 30px;
  transform: none;  /* remove centering */
  display: flex;
  gap: 8px;
  justify-content: flex-start; /* align dots to the left */
}

.featured-dots .dot {
    width: 180px;
    height: 4px;
    border-radius: 10%;
    border: 0;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    line-height: 1;
  }

/* ...existing code... */

.featured-dots .dot.is-complete {
  background: #fff;
}

.featured-dots .dot.is-active {
  background: rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
}

.featured-dots .dot.is-active::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  border-radius: 20%;
  background: #fff;
  animation: dot-progress var(--carousel-interval, 15s) linear forwards;
  z-index: 2;
  opacity: 1;
  transform-origin: left;
}

/* ...existing code... */
@keyframes dot-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.carousel.single-slide .featured-dots .dot.is-active::after {
  display: none !important;
  animation: none !important;
}

.carousel.single-slide .featured-dots .dot {
  display: none !important;
}