
<style>

@font-face {
  font-family: 'nimbus sans novus sc';
  font-weight: 500;
  font-style: normal;
  src: url('https://coachbachmann-site-images.s3.us-east-2.amazonaws.com/nimbussannovsc-med-webfont.woff2') format('woff2'),
       url('https://coachbachmann-site-images.s3.us-east-2.amazonaws.com/nimbussannovsc-med-webfont.woff') format('woff');
}

/* === BACKGROUND & GLASS WRAPPER === */
#background-wrapper {
  height: 100vh !important;
  left: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  top: 0 !important;
  width: 100vw !important;
  z-index: -3 !important;
}

#background-image {
  background: url('http://courses.coachbachmann.com/wp-content/uploads/2023/02/herommobile-4-scaled.webp') center center / cover no-repeat !important;
  filter: blur(46px) brightness(0.4) !important;
  height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  transform: scale(1.05) !important;
  width: 100% !important;
  will-change: transform !important;
}
  
  #background-wrapper {
  overflow: hidden !important;
}

#background-image {
  transform: scale(1.18) !important;
}

#background-image::after {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.2) 95%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
  content: "" !important;
  height: 100% !important;
  left: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: 0 !important;
  width: 100% !important;
  z-index: -1 !important;
}


.glass-content {
 max-width: 1600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transition: margin-left 0.3s ease !important;
  padding: 16px !important;
   padding-left: 20px !important;  /* Adjust '20px' to your desired minimum margin */
    padding-right: 20px !important; /* Adjust '20px' to your desired minimum margin */
   padding-top: 16px !important;
   padding-bottom: 120px !important;
}

#header-image-wrapper {
  position: relative !important;
  height: 400px !important; /* 👈 Compact height */
  border-radius: 24px !important;
  overflow: hidden !important;
  margin-bottom: 2rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove absolute positioning from #program-background-cover */
#program-background-cover {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: inherit !important;
  z-index: 0 !important;
  filter: none !important; /* ✅ No blur or darkness */
}


#program-background-cover::after {
  content: "" !important;
  height: 100% !important;
  left: 0 !important;
  position: absolute !important;
  top: 0 !important;
  width: 100% !important;
}

/* === PROGRAM HEADER SECTION === */
#program-header {
  position: relative !important;
  z-index: 2 !important;
  height: 100% !important;
  padding: 1.5rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  color: #1A1A1A !important;
}
  
.program-header-container {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
}

#program-header.loaded {
  display: flex !important;
  opacity: 1 !important;
  overflow: hidden !important;
  transition: opacity 0.1s ease-in-out !important;
}

.header-foreground {
  align-items: center !important;
  border-radius: 2rem !important;
  display: flex !important;
  justify-content: flex-start !important;
  max-width: 1200px !important;
  min-height: 100% !important;
  position: relative !important;
  width: 100% !important;
}

   .header-buttons-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: flex-start !important;
         margin-left: 0px !important;

}

.header-buttons {
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
} 
  
.header-glass {
  align-items: center !important;
  display: flex !important;
  height: 100% !important;
  justify-content: center !important;
  min-height: 100% !important;
  position: relative !important;
  width: 100% !important;
}

.header-content {
  align-items: flex-start !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  justify-content: center !important;
  width: 100% !important;
}

.header-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  justify-content: center !important;
  max-width: 55% !important;
}

.header-title {
  
  
    text-wrap: balance;
    color: #1A1A1A !important;
    font-size: clamp(1.8rem, 4vw, 4rem) !important;
    font-weight: 600 !important;
    line-height: 1.0 !important;
    text-overflow: clip !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    letter-spacing: 2px !important;
}

@media (min-width: 769px) {
 /*   .header-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important; 
    overflow: hidden !important;
  }*/
}


.header-description {
  color: #1A1A1A !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.header-meta {
  color: #1A1A1A !important;
  font-size: 0.85rem !important;
  font-weight: 450 !important;
}


.pill {
  border-radius: 999px !important;
  color: white !important;
  display: inline-block !important;
  font-size: 0.75rem !important;
  margin-right: 0.5rem !important;
  padding: 0.4rem 0.8rem !important;
}

.pill-discipline,
.pill-tag {
  background: rgba(1,1,1,0.65) !important;
}

.header-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-top: 0 !important;
}

  
  .carousel-title {
  color: white !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  margin: 3rem 0 1rem !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  text-transform: uppercase !important;
}


.tag-pill {
  align-items: center !important;
  background: white !important;
  border: 1px solid #ccc !important;
  border-radius: 9999px !important;
  color: black !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
}

.tag-pill.active {
  background: black !important;
  border-color: white !important;
  color: white !important;
}

/* === CAROUSEL SECTION === */
#carousels {
  overflow: visible !important;
  position: relative !important;
  z-index: 1 !important;
}

.carousel-section {
  margin-bottom: -2rem !important;
  width: 100% !important;
}

.carousel-wrapper {
  margin: 0 auto !important;
  max-width: 1600px !important;
  width: 100% !important;
}



.carousel-container {
  box-sizing: border-box !important;
  display: flex !important;
  gap: 1.5rem !important;
  overflow-x: auto !important;
  padding-bottom: 40px !important;
  scroll-snap-type: x mandatory !important;
  width: 100% !important;
}

.carousel-container::-webkit-scrollbar {
  display: none !important;
}

.carousel-container::after {
  content: "" !important;
  flex: 0 0 1rem !important;
}

.carousel-container .program-card {
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 24px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15) !important,
              0 4px 20px rgba(0, 0, 0, 0.3) !important;
  height: 180px !important;
  overflow: hidden !important;
  position: relative !important;
    scroll-snap-align: start !important; /* 👈 ADD THIS LINE */

}

.carousel-container .program-card:hover .card-img {
  filter: none !important;
  transform: scale(1.04) !important;
}

.carousel-container .program-card:hover .info-block {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === GRID SECTION === */
#filteredGrid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* Exactly 4 equal columns */
  gap: 24px !important;
  width: 100% !important;
  margin: 0 auto !important;      /* Center it */
  overflow: visible !important;
  position: relative !important;
    justify-content: center;
z
}

  
/* Main program card in the grid - Updated for new hover effect */
#filteredGrid .program-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important; /* ✅ Added this */
  background: transparent !important;
  overflow: visible !important;
  border-radius: 12px !important;
  transform-style: preserve-3d !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  transform-origin: center center !important;
}


#filteredGrid .program-card:hover {
  transform: scale(1.1) !important;
  z-index: 10 !important;
  position: relative !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: none !important;

}

#filteredGrid .program-card .card-img {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.3s ease !important;
}

#filteredGrid .program-card:hover .card-img {
  transform: scale(1.00) !important;
}

/* Static Footer (visible when not hovered) */
#filteredGrid .program-card .grid-static-footer {
  position: relative !important;
  padding: 0.75rem 0.6rem !important;
 /*  background: #181818 !important; */
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  transition: opacity 0.2s ease 0s, transform 0.2s ease 0s !important;
  opacity: 1 !important;
  z-index: 0 !important;
}
#filteredGrid .program-card .grid-static-footer h3 {
  font-size: 13px !important; font-weight: 500 !important; color: white !important;
  margin: 0 0 2px 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#filteredGrid .program-card .grid-static-footer p {
  font-size: 10px !important; color: #aaa !important; text-transform: uppercase !important;
   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
   margin-top: 2px !important; 
  margin-bottom: 0 !important;
}

#filteredGrid .program-card:hover .grid-static-footer {
  opacity: 0 !important;
  transform: translateY(5px) !important;
  pointer-events: none !important;
  transition-delay: 0s !important;
}

/* Content ON TOP of image on hover */
#filteredGrid .program-card .on-image-hover-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.35) !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  opacity: 0 !important;
  transition: none !important;
  pointer-events: none !important;
  z-index: 2 !important;
   gap: 0rem !important; 
}
#filteredGrid .program-card .on-image-hover-content .on-image-btn {
  padding: 4px 12px !important;
  font-size: 0.8rem !important;
  margin: 0.25rem !important;
}
#filteredGrid .program-card .on-image-hover-content .on-image-btn i[data-lucide] {
    width: 14px !important;
    height: 14px !important;
    margin-right: 5px !important;
}

#filteredGrid .program-card:hover .on-image-hover-content {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Area appearing BELOW image on hover */
#filteredGrid .program-card .below-image-hover-area {
  position: relative !important; /* Keep it in flow for this approach */
  width: 100% !important;
  background: #101010 !important; /* Or your desired glassmorphic background */
  /* Initial padding is 0 when collapsed */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0.75rem !important; /* Keep horizontal padding */
  padding-right: 0.75rem !important; /* Keep horizontal padding */
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  max-height: 0px !important; /* Start collapsed */
  overflow: hidden !important;
  transition: max-height 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) 0.05s,
              opacity 0.2s ease-in 0.05s,
              padding-top 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) 0.05s, /* Animate padding */
              padding-bottom 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) 0.05s !important;
  z-index: 5 !important;
}

#filteredGrid .program-card:hover .below-image-hover-area {
  opacity: 1 !important;
  max-height: 80px !important; /* Adjust based on content */
  /* Restore padding on hover */
  padding-top: 0.6rem !important;  
    padding-bottom: 1rem !important; /* ← Add this line or increase existing */

}

/* #filteredGrid .program-card .below-image-hover-area .below-image-text-content { } */

#filteredGrid .program-card .below-image-hover-area .title-and-trailer-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0.2rem !important;
}

#filteredGrid .program-card .hover-program-title {
  font-size: 13px !important;
  font-weight: 550 !important;
  color: #e0e0e0 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-grow: 1 !important;
  margin-right: 8px !important;
}

#filteredGrid .program-card .hover-trailer-button {
  padding: 4px 10px !important;
  font-size: 0.7rem !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
#filteredGrid .program-card .hover-trailer-button svg {
  width: 18px !important;
  height: 18px !important;
  margin-right: 4px !important;
}

#filteredGrid .program-card .hover-program-discipline {
  font-size: 10px !important;
  color: #888 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* === GENERAL CARD COMPONENTS === */
.program-card:hover .card-img { /* General hover, mainly for carousel now */
  transform: scale(1.04) !important;
}

.card-img {
  height: 100% !important;
  object-fit: cover !important;
  position: relative !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
  width: 100% !important;
  will-change: transform !important;
  z-index: 2 !important;
}

.card-img-wrapper { 
  overflow: hidden !important;
  position: relative !important;
  z-index: 2 !important;
}

  
  
.card-footer { /* General for carousel, grid uses .grid-static-footer primarily */
 /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important; */
  bottom: 0 !important;
  color: white !important;
  left: 0 !important;
  padding: 0.6rem 1rem !important;
  position: absolute !important;
  width: 100% !important;
  z-index: 2 !important;
}

.card-footer h3 {
  color: white !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 0 2px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.card-footer p {
    text-transform: none !important;
  color: #ccc !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.03em !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.card-footer.info-block { /* For carousel */
  bottom: 0 !important;
  left: 0 !important;
  padding: 1rem !important;
  position: absolute !important;
  transition: opacity 0.3s ease !important;
  width: 100% !important;
  z-index: 2 !important;
}

.card-overlay { /* For carousel */
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  height: 100% !important;
  justify-content: center !important;
  left: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 0 !important;
  transition: opacity 0.3s ease !important;
  width: 100% !important;
  z-index: 3 !important;
}

.program-card:hover .card-overlay { /* For carousel */
  opacity: 1 !important;
}
  
  /* Ensure overlay buttons never show in carousel view */
.carousel-container .program-card .card-overlay {
  display: none !important;
}


.card-overlay a { /* For carousel */
  border-radius: 0.4rem !important;
  display: inline-block !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin: 0.3rem 0 !important;
  padding: 0.6rem 2rem !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

/* === BUTTONS === */
.btn-glass {
  -webkit-backdrop-filter: blur(12px) !important;
  align-items: center !important;
  backdrop-filter: blur(12px) !important;
  background: rgba(1, 1, 1, 0.65) !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  color: white !important;
  cursor: pointer !important;
  display: inline-flex !important;
  font-family: 'Figtree', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  gap: 0.5rem !important;
  padding: 2px 18px !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px) !important;
}

.btn-glass.btn-yellow {
  background: #ffe75e !important;
  color: black !important;
  font-weight: 600 !important;
  margin-left: 0.5rem !important;
  text-decoration: none !important;
}

.btn-glass.btn-yellow:hover {
  background: #e6d656 !important;
  transform: translateY(-1px) !important;
}

.btn-start { /* Carousel button */
  background: #ffe75e !important;
  border: none !important;
  border-radius: 0.4rem !important;
  color: #000 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  max-width: 90% !important;
  min-width: unset !important;
  padding: 0.5rem 1rem !important;
  text-align: center !important;
  white-space: nowrap !important;
  width: auto !important;
}

.btn-start:hover {
  background: #e6d656 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.btn-info { /* Carousel button */
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  margin-top: 0.2rem !important;
  padding: 0 !important;
  text-decoration: underline !important;
}

.btn-info:hover {
  opacity: 0.8 !important;
  text-decoration-thickness: 2px !important;
}

.btn-trailer { /* General trailer button style */
  -webkit-backdrop-filter: blur(10px) !important;
  align-items: center !important;
  backdrop-filter: blur(10px) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  border-radius: 999px !important;
  color: white !important;
  display: flex !important;
  font-size: 0.75rem !important;
  gap: 0.4rem !important;
  padding: 6px 12px !important;
  white-space: nowrap !important;
}
  #filteredGrid .program-card:hover {
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
  
  .program-card-wrapper {
  position: relative;
  overflow: visible !important;
  /* match your desired card height: */
  width: 100% !important;
      aspect-ratio: 4 / 3 !important; /* ← enforce 16:9 */
 max-width: 287px !important; 
}
  
  
   @media (max-width: 1210px) {
    #filteredGrid {
      grid-template-columns: repeat(3, 1fr) !important; /* ≤1249px: 3 cards per row */
    }
  }
  
  
   @media (max-width: 940px) {
    #filteredGrid {
      grid-template-columns: repeat(2, 1fr) !important; /* ≤1249px: 3 cards per row */
    }
  }
  
  
  #filteredGrid .program-card .below-image-hover-area,
#filteredGrid .program-card .on-image-hover-content {
  position: absolute !important;
  left: 0; right: 0;
  /* if .below-image-hover-area sits at the bottom: */
  bottom: 0;
  max-height: none;
  opacity: 1;
/*  pointer-events: none; */
    pointer-events: auto !important;

}
  /* Match header “More Info” btn-glass style in grid hover */
#filteredGrid .program-card .on-image-hover-content .btn-glass:not(.btn-yellow) {
  background: rgba(255, 255, 255, 0.15) !important;   /* same glass blur background */
  color: white !important;                             /* white text */
  padding: 4px 18px !important;                        /* default btn-glass padding */
  font-size: 0.8rem !important;                        /* default btn-glass font size */
  font-weight: 350 !important;                         /* default btn-glass weight */
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
}

/* tighten up spacing so it doesn’t feel too “thick” */
#filteredGrid .program-card .on-image-hover-content .on-image-btn {
  margin: 0 0.5rem !important; /* horizontal gap between the two buttons */
}

/* ensure the info icon matches header size & stroke */
#filteredGrid .program-card .on-image-hover-content .btn-glass:not(.btn-yellow) i[data-lucide] {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 1 !important;
}
  
  /* Thin out the Lucide icon strokes in grid-hover */
#filteredGrid .program-card .on-image-hover-content .btn-glass:not(.btn-yellow) svg {
  stroke-width: 2 !important;         /* override inline stroke-width:2 */
  stroke-linecap: round !important;   /* preserve rounded ends */
  stroke-linejoin: round !important;  /* preserve rounded joins */
   width: 16px !important;
  height: 16px !important;
}

/* Lighter weight for More Info button text */
#filteredGrid .program-card .on-image-hover-content .btn-glass:not(.btn-yellow) {
  font-weight: 500 !important;        /* or 400 if you prefer “normal” */
    padding: 4px 18px !important;                        /* default btn-glass padding */

}

  
  
  .trailer-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  transition: opacity 0.2s ease !important;
}

.trailer-modal.hidden {
  display: none !important;
}

.trailer-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.75) !important;
  z-index: 1 !important;
}

.trailer-glass {
  position: relative !important;
  z-index: 2 !important;
  max-width: 960px !important;
  width: 90% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  backdrop-filter: blur(24px) brightness(1.2) !important;
  -webkit-backdrop-filter: blur(24px) brightness(1.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4) !important;
}

.trailer-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 3 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: none !important;
  border-radius: 9999px !important;
  color: white !important;
  padding: 6px !important;
  cursor: pointer !important;
  
}

.trailer-close i {
  width: 18px !important;
  height: 18px !important;
}

.trailer-video-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
}
  
  .trailer-video-fullscreen-wrapper {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

.trailer-video-fullscreen-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 24px !important;
}

/* Custom Controls */
.trailer-controls {
  position: absolute !important;
  bottom: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 1.2rem !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
    transition: opacity 0.3s ease !important;

}

.trailer-control-btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  border-radius: 9999px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  display: none !important;
}

.trailer-control-btn:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.trailer-control-btn i {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2 !important;
  color: white !important;
}
.hidden {
  display: none !important;
}
  
.header-buttons > * {
  min-height: 36px !important; /* or whatever height your trailer button naturally has */
  display: inline-flex !important;
  align-items: center !important;
}
  
  .header-buttons .btn-glass {
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
}
  .program-card.owned-outline {
  border: 2px solid #00ff6e !important;
  box-shadow: 0 0 8px #00ff6e66 !important;
}
  .program-header-visual {
  display: block !important;
}

.program-header-hidden {
  display: none !important;
}
  
  @media (max-width: 768px) {
  body {
    padding: 0 !important;
  }

  #glass-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0.5rem !important;
    border-radius: 0 !important;
  }
}
  
  @media (max-width: 768px) {
  #header-image-wrapper {
  border-radius: 24px !important;
  width: 100% !important; /* Ensure it fills its container width */
  height: auto !important; /* Unset the previous height */
  aspect-ratio: 369 / 450 !important; /* Final small adjustment */
}
}
  
@media (max-width: 768px) {
.carousel-container .program-card {
  /* --- The New Calculation --- */
  flex-basis: calc((100% - 12px) / 3.5);
  flex-shrink: 0; /* Prevents shrinking */

  /* --- Your Desired Shape & Styles --- */
  aspect-ratio: 12 / 17 !important;
  height: auto !important;
  border-radius: 8px !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  margin-right: 0 !important; /* Replaces your old margin rule */
}

  .carousel-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom 20px !important;
    gap: 4px !important; /* override existing gap */
     scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: auto !important;
    
  }

  .carousel-container .program-card img {
    border-radius: 0 !important;
    aspect-ratio: 12 / 17  !important;
    object-fit: cover !important;
        border-radius: 8px !important;

  }
}
  
@media (max-width: 768px) {
  .header-content {
    align-items: center !important;
    text-align: center !important;
    justify-content: flex-end !important;
    padding-bottom: 0rem !important; /* 👈 Push it up a bit from the very bottom */
 
  }

  .header-left {
    align-items: center !important;
    max-width: 100% !important;
        justify-content: flex-end !important;
    gap: 0.4rem !important;
  }

.header-tags {
  position: absolute !important;
  top: 0px !important;     
   left: 50% !important;        
  transform: translateX(-50%) !important;
  z-index: 5 !important;    
   display: flex !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.infinite-body .header-title {
        order: 2 !important;
        font-size: 2rem !important;
        line-height: 0.9 !important;
        font-family: "nimbus sans novus sc", sans-serif !important;
        text-shadow: 0 2px 7px rgba(0, 0, 0, 0.5) !important;
        color: white !important;
        font-weight: 500 !important;
        -webkit-text-stroke: 0.6px white;
        paint-order: stroke fill;
        letter-spacing: 1.6px !important;
          overflow: visible !important;
  }

  .header-description {
    order: 3 !important;
    max-width: 90% !important;
    margin-bottom: 0rem !important;
    display: none !important;
  }

.infinite-body .header-meta {
        /* font-family: 'montserat', sans-serif !important; */
        order: 4 !important;
        margin-bottom: 0rem !important;
        font-weight: 700 !important;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
        font-size: 1rem !important;
        letter-spacing: -0.5px !important;
      text-transform: none !important;

  }

  .header-buttons {
    order: 5 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .header-buttons > * {
    margin: 4px !important;
  }
}

@media (max-width: 768px) {
  #filteredGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    position: relative !important;
  overflow: visible !important;
  }

  #filteredGrid .program-card-wrapper {
    aspect-ratio: 3 / 4 !important;
    width: 100% !important;
    max-width: 30vw !important;  /* ✅ Cap max width */
    max-height: 300px !important;  /* ✅ Optional height limit */
      position: relative !important;
  overflow: visible !important;
      z-index: 1 !important;

  }

  #filteredGrid .program-card {
    height: 100% !important;
    width: 100% !important;
  }

  #filteredGrid .program-card .card-img {
    aspect-ratio: 3 / 4 !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  #filteredGrid .program-card .below-image-hover-area,
  #filteredGrid .program-card .grid-static-footer {
    padding: 0.5rem !important;
  }

  .grid-static-footer h3 {
    font-size: 10px !important;
  }

  .grid-static-footer p {
    font-size: 9px !important;
  }

  
#filteredGrid .program-card.active {
 position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 30 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  }

#filteredGrid .program-card:not(.active) .on-image-hover-content,
#filteredGrid .program-card:not(.active) .below-image-hover-area {
  pointer-events: none !important;
  opacity: 0 !important;
}

  #filteredGrid .program-card.active {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: 100% !important;
  z-index: 999 !important;
  transform: scale(1.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
}

  }
  
  @media (max-width: 768px) {
  #filteredGrid .program-card:hover {
    transform: none !important;
    box-shadow: none !important;
    z-index: auto !important;
  }

  #filteredGrid .program-card:hover .grid-static-footer {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  #filteredGrid .program-card:hover .on-image-hover-content,
  #filteredGrid .program-card:hover .below-image-hover-area {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
  



  
  #program-header .close-header-btn {
      /* --- Positioning --- */
  position: absolute !important;
  top: -35px !important; /* Negative top value to lift it onto the border */
  left: 50% !important;
  transform: translateX(-50%) !important; /* We no longer need to move it up with transform */
  right: auto !important;

  /* --- Styling --- */
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(30, 30, 30, 0.85) !important; /* Darker background */
  border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Added a more visible border */
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;

  /* --- Icon Centering & Font --- */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1rem !important; /* Slightly smaller 'X' */
  color: white !important;
  z-index: 10 !important;
  cursor: pointer !important;

    
 
  }
    
    #program-background-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
  #header-image-wrapper.program-header-floating #program-background-cover {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: none !important; /* remove blur/brightness */
    transform: none !important; /* remove zoom */
  }
      #program-header {
    position: absolute !important;
    bottom: 0 !important;
    padding: 1rem !important;
    width: 100% !important;
    border-bottom-left-radius: 24px !important;
    border-bottom-right-radius: 24px !important;
  }

    
}
@media (min-width: 769px) {
  #header-image-wrapper.program-header-floating #program-background-cover {
    display: none !important;
  }
}
  
@media (max-width: 768px) {
  #header-image-wrapper.program-header-floating {
    position: fixed !important;
    top: 10vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 500px !important;
    height: 60vh !important;
    border-radius: 24px !important;
    z-index: 9999 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5) !important;
  }
  
 
  #header-image-wrapper.program-header-floating {
  z-index: 9999 !important;
}


  
}
  
  
.carousel-title {
     font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    font-family: 'Figtree', sans-serif !important;
    margin: 1rem 0 0.5rem 0 !important;
    padding-left: 12px !important; /* aligns left like Netflix */
    text-align: left !important;
    line-height: 1.2 !important;
}
    
   
 

  /* Remove black footer overlay */
  .carousel-container .program-card .card-footer.info-block {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important; /* ← full height of the card */
  z-index: 10 !important;
  background: none !important;
      display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  flex-direction: column !important;
  padding: 0 0.5rem !important; /* optional: horizontal padding */

  }
      
.card-footer p {
display: none !important;
      }

    .carousel-container .program-card .card-footer.info-block h3 {
  font-size: 0.7rem !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  text-align: center !important;
}

      
  /* Style the title (h3) */
  .carousel-container .program-card .card-footer h3 {
    font-size: 0.6rem !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.2 !important;
    z-index: 10 !important;
  }

  /* Add subtle dark overlay that disappears on hover */
  .carousel-container .program-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.2) !important;
    transition: opacity 0.2s ease !important;
    z-index: 3 !important;
  }

  .carousel-container .program-card:hover::before {
    opacity: 0 !important;
  }

    }

    
    
   

 #header-image-wrapper.owned-outline {
  border: 1.5px solid #00ff6e !important;
  box-shadow: 0 0 12px #00ff6e44, 0 0 24px #00ff6e22 !important;
}
  
      /* hide the close button in the regular carousel/header */
#header-image-wrapper .close-header-btn {
  display: none !important;
}

/* only show the close button when we’re floating (mobile) */
#header-image-wrapper.program-header-floating .close-header-btn {
  display: block !important;
}
  
#header-image-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 40px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(24px) brightness(1.15) !important;
  -webkit-backdrop-filter: blur(24px) brightness(1.15) !important;
}
    
@media (max-width: 768px) {
  .header-buttons-wrapper {
    justify-content: center !important;
        margin-top: 0 !important;
     /* was    margin-top: 0.8rem !important; */
   margin-left: 0 !important;
  }

  .header-buttons {
    justify-content: center !important;
  }
}
 
  @media (min-width: 769px) {
  .carousel-container .program-card .card-footer.info-block {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    height: auto !important;
    padding: 1rem !important;
    display: block !important;
    text-align: left !important;
  }

  .carousel-container .program-card .card-footer.info-block h3 {
    font-size: 1rem !important;
    text-align: left !important;
    white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  }

  .carousel-container .program-card .card-footer.info-block p {
    display: block !important;
  }
}
  

@media (min-width: 769px) {

  /* 1. On desktop, force the parent container to stack items vertically */
  .header-glass {
    flex-direction: column !important;
      align-items: flex-start !important; 
  }

  /* 2. Reset the tags to be a normal part of the layout flow */
  .header-tags {
           margin-top: 0px !important;
        position: static !important;
  }
  
}





/* =================================================================== */
/* == NEW DARK GLASSMORPHISM LIST VIEW STYLES (v3 - FINAL)          == */
/* =================================================================== */

/* 1. Main grid container */
#filteredGrid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
}

/* 2. Card wrapper */
#filteredGrid .program-card-wrapper {
    aspect-ratio: unset !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 3. The Card: Base styles + Fix for the corner bug */
#filteredGrid .program-card {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
    background-color: rgba(30, 30, 30, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out !important;

    /* --- FIX 1: Prevents child elements (the image) from breaking the parent's border-radius on transform --- */
    isolation: isolate;
}

/* 4. The darkening overlay */
#filteredGrid .program-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    pointer-events: none;
    z-index: 5;
}

/* 5. Image wrapper */
#filteredGrid .program-card .card-img-wrapper {
    flex-shrink: 0;
    width: 135px !important;
    height: 100% !important;
    overflow: hidden;
    /* --- FIX: Force image to the bottom layer --- */
    position: relative;
    z-index: 1;
}

#filteredGrid .program-card .card-img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
}

/* Hide old elements */
#filteredGrid .program-card .grid-static-footer,
#filteredGrid .program-card .below-image-hover-area,
#filteredGrid .program-card .on-image-hover-content {
    display: none !important;
}

/* 6. Right-hand content area */
.list-view-content {
 /*    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; */
    flex-grow: 1;
    height: 100%;
    padding: 0.8rem 1.5rem 1rem 0.6rem !important;
}

/* 7. Text content */
.list-view-text {
    transition: opacity 0.1s ease-in-out;
}
.list-view-text h3 {
    font-size: 0.8rem !important; font-weight: 700 !important; color: #f0f0f0 !important; margin: 0 0 8px 0 !important;
}
.list-view-text p {
       font-size: 0.7rem !important;
    color: #a0a0a0 !important;
    margin: 0 !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

/* 8. Buttons container */
.list-view-buttons {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem !important;

    /* Hiding and transition properties remain */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out 0.05s;
}

/*
================================================
--- HOVER (Desktop) & ACTIVE (Mobile) STYLES ---
================================================
*/

/* Card lift effect */
#filteredGrid .program-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

/* Show darkening overlay for both desktop hover and mobile active state */
#filteredGrid .program-card:hover::after,
#filteredGrid .program-card.mobile-active::after {
    opacity: 1;
}

/* Hide text for both desktop hover and mobile active state */
#filteredGrid .program-card:hover .list-view-text,
#filteredGrid .program-card.mobile-active .list-view-text {
    opacity: 0;
    pointer-events: none;
}

/* Show and center buttons for both desktop hover and mobile active state */
#filteredGrid .program-card:hover .list-view-buttons,
#filteredGrid .program-card.mobile-active .list-view-buttons {
     opacity: 1;
    pointer-events: auto;

    /* The positioning logic remains the same */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 9. Button styling */
.list-view-buttons .btn-glass {
    -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important; font-weight: 500 !important; padding: 8px 16px !important; font-size: 0.8rem !important; border-radius: 999px !important;
}
.list-view-buttons .btn-glass:hover {
    background: rgba(255, 255, 255, 0.2) !important; border-color: rgba(255, 255, 255, 0.25) !important; transform: translateY(-1px) !important;
}
.list-view-buttons .btn-glass.btn-yellow {
    background: #ffe75e !important; color: black !important; border-color: #ffe75e !important;
}
.list-view-buttons .btn-glass.btn-yellow:hover {
    background: #e6d656 !important; border-color: #e6d656 !important;
}



@media (max-width: 576px) {
.glass-content {
    /* padding: 16px !important; */
    padding-left: 12px !important;
    padding-right: 12px !important;
      padding-bottom: 82px !important;
  }
}
/* =================================================================== */
/* == DESKTOP GRID VIEW (Applies on screens > 768px)                == */
/* =================================================================== */

@media (min-width: 769px) {

    /* 1. Revert #filteredGrid back to a multi-column grid layout */
    #filteredGrid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 2rem !important;
    }

    /* 2. Change the card to a vertical layout */
    #filteredGrid .program-card {
        flex-direction: column !important;
        height: auto !important; /* Let height be determined by content */
        align-items: stretch !important; /* Make children fill the width */
    }

    /* 3. Style the image wrapper for the top part of the card */
    #filteredGrid .program-card .card-img-wrapper {
        width: 100% !important;
        height: 180px !important; /* Give image a fixed height */
        position: relative !important; /* For positioning the tag */
    }

    /* 4. Style the content area below the image */
    #filteredGrid .program-card .list-view-content {
        padding: 1rem 1.25rem !important;
        justify-content: flex-start !important;
    }

    /* 5. Left-align text and always show buttons */
    #filteredGrid .program-card .list-view-text {
        text-align: left;
        opacity: 1 !important; /* Always visible */
        transition: none !important; /* No fade effect needed */
    }
    
    #filteredGrid .program-card .list-view-buttons {
        display: flex !important;
        opacity: 1 !important; /* Always visible */
        pointer-events: auto !important;
        position: static !important; /* Not absolutely positioned */
        justify-content: flex-start !important; /* Left-align buttons */
        margin-top: 1rem !important;
    }

    /* 6. Style the new on-image tag container */
    .on-image-tags {
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;
    }

    .discipline-tag {
         border-radius: 999px !important;
    color: white !important;
    display: inline-block !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.8rem !important;
         background: rgba(1, 1, 1, 0.65) !important;
    }
    
    /* 7. Disable all the mobile-specific hover/active effects */
    #filteredGrid .program-card:hover::after,
    #filteredGrid .program-card.mobile-active::after {
        opacity: 0 !important;
    }
    
    #filteredGrid .program-card.mobile-active {
         transform: none !important;
    }
  
  .list-view-buttons .btn-glass.btn-yellow {
        margin-left: 0 !important;
}
  
}
#filteredGrid .program-card.owned-outline {
    border: 2px solid #00ff6e !important;
    /* We combine the green glow with the original shadow to keep the depth effect */
    box-shadow: 0 0 8px #00ff6e66, 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Apply these styles only to desktop screens (769px and wider) */
@media (min-width: 769px) {

  /* Target the main hero container */
  #header-image-wrapper {   
        aspect-ratio: 1200 / 500;
    height: auto !important; 
  }
  #program-header {
    padding: 3rem !important;
  }
  .header-title {
        display: -webkit-box !important;
    text-wrap: balance;     
    font-size: clamp(2.25rem, 4.5vw, 4.0625rem);
    }
  
    .header-meta {
    font-size: clamp(1rem, calc(0.8rem + 0.5vw), 1.4rem) !important;
    font-weight: 650 !important;    
    height: 77% !important;
  }
  
        .header-description {
    font-size: clamp(0.9rem, calc(0.8rem + 0.25vw), 1.1rem) !important;
    font-weight: 600 !important;
    max-width: 80% !important;
      }
          
          .btn-glass.btn-yellow {
    margin-left: 0 !important;
      }
  
 #program-header .header-title,
  #program-header .header-meta {
    font-family: 'nimbus sans novus sc', sans-serif !important;
  }
  
  .header-content {
  gap: clamp(0.75rem, calc(0.5rem + 1vw), 1.5rem) !important; 
}
    #program-header .header-title {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  }

  
}
  
  @media (min-width: 769px) and (max-width: 979px) {
  #header-image-wrapper {
    aspect-ratio: 1200 / 600 !important;
  }
}
  
  
/* italic and inline by default */
.meta-line .type-label {
  font-style: italic;
}

/* desktop: inline with a dot separator */
@media (min-width: 769px) {
  .meta-line .type-label::before {
    content: " · ";
  }
}

/* mobile: drop to a new line */
@media (max-width: 768px) {
  .meta-line .type-label {
    display: block;
    margin-top: 6px;   /* ↑ increased spacing for better readability */
    line-height: 1.4;  /* optional: makes the two lines breathe a bit */
  }
}
  
</style>


<style>
/* ===== DESKTOP ONLY (>=769px): paddles + fades ===== */
@media (min-width: 769px) {

  /* anchor for buttons/fades */
  .cb-carousel .carousel-wrapper {
    position: relative !important;
  }

  /* edge fades */
  .cb-edge-fade {
    position: absolute !important;
    top: 0 !important;
    bottom: 40px !important; /* match your carousel bottom padding */
    width: 48px !important;
    pointer-events: none !important;
    z-index: 2 !important;
    opacity: 0 !important;                /* hidden by default, revealed on hover/focus */
    transition: opacity .2s ease !important;
  }
  .cb-left-fade {
    left: 0 !important;
    background: linear-gradient(to right, rgba(20,20,20,0.9), rgba(20,20,20,0)) !important;
  }
  .cb-right-fade {
    right: 0 !important;
    background: linear-gradient(to left, rgba(20,20,20,0.9), rgba(20,20,20,0)) !important;
  }

  /* paddles */
  .cb-carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    background: rgba(30,30,30,0.55) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0 !important;                /* hidden by default, revealed on hover/focus */
    transition: transform .15s ease, background .15s ease, opacity .2s ease !important;
  }
  .cb-carousel-btn:hover { transform: translateY(-50%) scale(1.05) !important; }
  .cb-carousel-btn:active { transform: translateY(-50%) scale(0.98) !important; }
  .cb-prev { left: 8px !important; }
  .cb-next { right: 8px !important; }

  /* hidden state used by JS when at ends / no overflow */
  .cb-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: scale(0.95) !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
  }

  /* reveal paddles/fades on hover or keyboard focus */
  .cb-carousel:hover .cb-carousel-btn,
  .cb-carousel:hover .cb-edge-fade,
  .cb-carousel .carousel-container:focus-within ~ .cb-carousel-btn,
  .cb-carousel .carousel-container:focus-within ~ .cb-edge-fade {
    opacity: 1 !important;
  }
}

/* ===== MOBILE/TABLET (<769px): hide entirely ===== */
@media (max-width: 768px) {
  .cb-carousel .cb-carousel-btn,
  .cb-carousel .cb-edge-fade {
    display: none !important;
  }
}

</style>