body.page_featured_sessions {
  overflow-y: auto;
  height: auto;
}

body.page_featured_sessions .home_layout {
  height: auto;
  min-height: 100svh;
}

body.page_featured_sessions .home_content {
  flex: 1;
  height: auto;
  overflow: visible;
  padding-top: 24px;
  padding-bottom: 40px;
}

.sessions_container {
  width: 100%;
  max-width: 900px;
  /* A bit narrower for a blog feel */
  margin: 0 auto;
}

.sessions_container h1 {
  text-align: center;
  color: #333;
  margin-top: 0;
  margin-bottom: 16px;
}

.sessions_intro {
  /* UPDATED: Added box styling */
  text-align: left;
  font-size: 17px;
  color: #555;
  max-width: 900px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
  background-color: #fcfcfc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
}

/* Filter Styles */
.sessions_filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter_btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter_btn:hover {
  background: #f9f9f9;
  border-color: #d0d0d0;
  color: #333;
}

.filter_btn.active {
  background: #333;
  border-color: #333;
  color: #fff;
}

.filter_btn--highlight {
  border-color: #c41e3a;
  color: #c41e3a;
  font-weight: 600;
}

.filter_btn--highlight:hover {
  background: #fff5f5;
  border-color: #a01830;
  color: #a01830;
}

.filter_btn--highlight.active {
  background: #c41e3a;
  border-color: #c41e3a;
  color: #fff;
}

.session_list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Session Card */
.session_card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.session_card--highlight {
  border: 2px solid #c41e3a;
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
}

.session_card_image_link {
  display: block;
}

.session_card_image {
  width: 100%;
  height: 300px;
  /* Fixed height for consistency */
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
}

.session_card_image_link:hover .session_card_image {
  transform: scale(1.03);
}

.session_card_image--festive {
  background-size: contain !important;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f5f5;
  /* Neutral gray */
  position: relative;
}

.session_card_image--portrait {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #f5f5f5;
}

@media (max-width: 768px) {

  .session_card_image--portrait,
  .session_card_image--festive {
    height: 500px;
    /* Taller on mobile to show portrait */
  }
}

.session_card_content {
  padding: 24px;
}

.session_card_meta {
  display: flex;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.session_card_meta .session_card_type {
  color: #333;
}

.session_card_title {
  margin: 0 0 16px 0;
}

.session_card_title a {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.session_card_title a:hover {
  color: #555;
}

.session_card_excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}

.session_card_excerpt p {
  margin: 0;
}

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

.session_card_footer .cta_button {
  padding: 10px 24px;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  width: auto;
  /* Ensure buttons don't stretch */
}

/* Removed sibling margin in favor of flex gap */

.cta_button--festive {
  background-color: #c41e3a;
  color: #fff;
  border: 1px solid #c41e3a;
}

.cta_button--festive:hover {
  background-color: #a01830;
  border-color: #a01830;
  color: #fff;
}

.cta_button--secondary {
  background-color: #fff;
  color: #555;
  border: 1px solid #e0e0e0;
}

.cta_button--secondary:hover {
  background-color: #f9f9f9;
  border-color: #d0d0d0;
  color: #333;
}

@media (min-width: 769px) {
  .session_card {
    flex-direction: row;
    /* Horizontal layout on desktop */
    align-items: stretch;
  }

  .session_card_image_link {
    flex: 0 0 40%;
    max-width: 400px;
  }

  .session_card_image {
    height: 100%;
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
  }

  .session_card_content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* --- Carousel Styles --- */
.sessions_carousel {
  position: relative;
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.carousel_slide {
  display: none;
  animation: fadeEffect 1s;
}

.carousel_slide.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4
  }

  to {
    opacity: 1
  }
}

/* Ensure the card inside the carousel looks good */
.sessions_carousel .session_card {
  margin-bottom: 0;
  box-shadow: none;
  /* Remove card shadow as container has it */
  border: none;
  border-radius: 0;
}

.sessions_carousel .session_card_content {
  padding-bottom: 60px;
  /* Reserve space for indicators */
}

.carousel_controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  /* Let clicks pass through to content */
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 10;
}

.carousel_prev,
.carousel_next {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  /* Re-enable clicks */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background-color 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel_prev:hover,
.carousel_next:hover {
  background-color: #fff;
}

.carousel_indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel_dot {
  width: 10px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel_dot.active {
  background-color: #c41e3a;
  /* Festive red */
}

/* --- End Carousel Styles --- */