/* Ensure all images have the same size */
.event-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rl-event-image-wrap {
  width: 9rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  position: relative;
}

.rl-event-image-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rl-event-click-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #bc1823;
  color: #fff;
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  opacity: 0.95;
  pointer-events: none;
  transition: opacity 0.3s;
}

.rl-event-caption-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Hero section for whatson page */
.hero-section {
  min-height: 500px;
  background: linear-gradient(135deg, #bc1823 0%, #8b1318 100%);
}

/* Text content overlay container */
.hero-content-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-content {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.hero-content h1 {
  color: #bc1823;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.hero-content p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
  }

  .hero-content-container {
    margin: 1rem;
    gap: 0;
    position: relative;
    min-height: 28rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
    position: relative;
  }

  /* Increase padding specifically for rotating boxes on mobile */
  .hero-content.rotating-box {
    padding: 2.5rem 2rem 2rem 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  /* Stack of cards effect - Box1 (header) on top */
  #box1 {
    z-index: 10;
    transform: translateY(0);
    position: relative;
    margin-bottom: 3rem;
  }

  /* Create stacked card appearance for the rotating boxes */
  .hero-content.rotating-box {
    display: block !important;
    position: absolute;
    width: calc(100% - 1rem);
    left: 0.5rem;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, filter 0.8s ease-in-out, z-index 0s 0.4s;
  }

  /* Hide the non-selected rotating boxes but show outline */
  .hero-content.rotating-box:not(.show-mobile) {
    opacity: 0.3;
    filter: blur(1px);
  }

  #box2 {
    z-index: 3;
    top: 10rem;
    transform: translateY(0.3rem) scale(0.97);
  }

  #box3 {
    z-index: 2;
    top: 10rem;
    transform: translateY(0.6rem) scale(0.94);
  }

  #box4 {
    z-index: 1;
    top: 13rem;
    transform: translateY(0.9rem) scale(0.91);
  }

  /* The selected box appears on top of the stack */
  .hero-content.rotating-box.show-mobile {
    z-index: 5 !important;
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    top: 10rem;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, filter 0.8s ease-in-out, z-index 0s 0s;
  }

  /* Add spacing after the card stack */
  .hero-content-container::after {
    content: '';
    display: block;
    height: 15rem;
  }
}
