/* =========================================================
   STRATEGEM CLUB — Custom Events Carousel (own markup)
   No Tribe/Elementor classes involved — nothing to fight.

   Paste into: Elementor > Site Settings > Custom CSS
   ========================================================= */

:root{
  --sc-dark:        #122A22;
  --sc-gold:        #C99B3E;
  --sc-gold-hover:  #B98B2E;
  --sc-cream:       #F2E9D4;
  --sc-text-body:   #6B6B6B;
  --sc-border:      #E1D6BC;
}

/* ---------- Full-bleed wrapper — works no matter what container
   this sits inside, no Elementor Layout setting required ---------- */
.sc-events-carousel-wrap{
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 8px 40px 24px;
  overflow: hidden; /* prevents the 100vw trick from causing a horizontal scrollbar */
}

@media (max-width: 600px){
  .sc-events-carousel-wrap{
    padding: 8px 20px 24px;
  }
}

/* ---------- Carousel track ---------- */
.sc-events-carousel{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 8px 0 4px;
  margin: 0;
  scrollbar-width: none;
}

.sc-events-carousel::-webkit-scrollbar{
  display: none;
}

/* ---------- Card ---------- */
.sc-event-card{
  position: relative;
  flex: 0 0 auto;
  width: 41.5%;
  min-width: 380px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--sc-cream);
  border-radius: 13px;
  overflow: hidden;
}

@media (max-width: 900px){
  .sc-event-card{
    width: 88%;
  }
}

/* Image — right side, full card height */
.sc-event-card__image{
  flex: 0 0 45%;
  background-size: cover;
  background-position: center;
  min-height: 380px;
}

@media (max-width: 600px){
  .sc-event-card{
    flex-direction: column;
    width: 88%;
    min-width: 0;
  }
  .sc-event-card__image{
    flex: 0 0 auto;
    width: 100%;
    min-height: 220px;
  }
  .sc-event-card__body{
    padding: 24px 24px 28px;
  }
}

/* Text — left side */
.sc-event-card__body{
  flex: 1 1 55%;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-event-card__kicker{
  display: block;
  color: var(--sc-gold);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.sc-event-card__title{
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--sc-dark);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  text-decoration: none;
  margin-bottom: 10px;
}

.sc-event-card__title:hover{
  color: var(--sc-gold-hover);
}

.sc-event-card__meta{
  color: var(--sc-text-body);
  font-size: 15px;
  margin-bottom: 16px;
}

.sc-event-card__desc{
  color: var(--sc-text-body);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-event-card__pill{
  display: inline-block;
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--sc-border);
  color: var(--sc-text-body);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
}

/* ---------- Prev/Next arrows ---------- */
.sc-carousel-arrows{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.sc-carousel-arrow{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sc-cream) !important;
  background: #ffffff !important;
  color: var(--sc-dark) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background .2s ease, color .2s ease;
  box-shadow: none !important;
}

.sc-carousel-arrow:hover{
  background: var(--sc-gold) !important;
  color: #ffffff !important;
  border-color: var(--sc-gold) !important;
}

.sc-carousel-arrow:focus,
.sc-carousel-arrow:active{
  background: #ffffff !important;
  color: var(--sc-dark) !important;
  border-color: var(--sc-cream) !important;
  outline: none;
  box-shadow: none !important;
}
