/* EVENT HORIZONTAL SCROLL */
/* === Event Scroll Section === */
#c_scrollWrap_Events {
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}
#c_scrollWrap_Events::-webkit-scrollbar {
  height: 8px;
}
#c_scrollWrap_Events::-webkit-scrollbar-track {
  background: transparent;
}
#c_scrollWrap_Events::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}
#c_scrollWrap_Events::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.c_event_card {
  width: 255px;
  scroll-snap-align: start;
  background: transparent;
  border-radius: 1rem;
  padding: 1.1rem 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.c_event_inner {
  transition: transform 0.3s ease;
  transform-origin: center;
}
.c_event_card:hover .c_event_inner {
  transform: scale(1.05);
}
.c_org_logo {
  width: 30px;
  height: 30px;
  background: var(--text_color_alt);
  border-color: var(--text_color);
  border: 2px solid;
  border-radius: 50%;
  padding: 2px;
  object-fit: contain;
}
.c_org_logo_xl {
  width: 50px;
  height: 50px;
  background: var(--text_color_alt);
  border-color: var(--text_color);
  border: 2px solid;
  border-radius: 50%;
  padding: 2px;
  object-fit: contain;
}
.c_poster_wrap {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 0.75rem;
  overflow: hidden;
}
.c_service_wrap {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 0.75rem;
  overflow: hidden;
}
.c_poster_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Wrapper for the underline section */
.c_filter_group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

/* Remove old background styles */
.c_filter_btn {
  position: relative;
  background: none !important;
  border: none;
  color: var(--text_color_mute);
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Create underline */
.c_filter_btn::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: linear-gradient(145deg, var(--white5), var(--white1));
  transition: width 0.3s ease;
  opacity: 0.8;
}

/* Hover or Active underline effect */
.c_filter_btn:hover::after,
.c_filter_btn.active::after {
  width: 100%;
}

/* Text color transitions */
.c_filter_btn:hover,
.c_filter_btn.active {
  color: var(--text_color_strong_alt);
}

/* EVENT DETAIL */

.c_event_detail_nav {
  color: var(--text_color_alt);
  background-color: transparent;
  border-color: var(--text_color_alt);
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid var(--text_color_alt);
}

.c_event_detail_nav:hover {
  background-color: var(--text_color_alt);
  color: var(--text_color);
}

.c_event_detail_poster {
  aspect-ratio: 2/3;
  height: 90vh; /* fixed height relative to viewport */
  max-height: 90%;
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking when right content grows */
}

.c_event_detail_poster img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keep aspect ratio, no distortion */
}

.c_service_detail_poster {
  aspect-ratio: 3/2;
  max-width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking when right content grows */
}

.c_service_detail_poster img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keep aspect ratio, no distortion */
}

/* RIGHT PANEL BEHAVIOR ON DESKTOP */
.event-detail-right {
  max-height: 90vh; /* Prevent it from overflowing screen */
  overflow-y: auto; /* Scroll only the right content if needed */
}

.event-detail-content {
  flex-wrap: nowrap;
  overflow: hidden; /* Prevent image area from stretching */
}

/* Align content bottom if not overflowing */
.event-detail-right > .mb-3 {
  margin-top: auto;
}

/* On smaller screens */
@media (max-width: 768px) {
  .event-detail {
    height: auto !important; /* Don’t fix to viewport */
    padding: 2rem 1rem;
  }

  .event-detail-content {
    flex-direction: column; /* Stack image and details */
  }

  .c_event_detail_poster {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
  }

  .event-detail-right {
    max-height: none;
    overflow: visible;
  }
}


