.em-carousel{
  width:100%;
}

/* =========================
   CAROUSEL WRAPPER ONLY
   ========================= */
.em-carousel-track{
  overflow:hidden;
}

/* Flex track only for homepage carousel */
.em-carousel .em.em-events-list{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;

  grid-template-columns:none !important;
  grid-auto-flow:unset !important;

  gap:20px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;

  padding:28px 0 !important;
  margin:0 !important;

  list-style:none !important;
  scroll-behavior:auto !important;
  -webkit-overflow-scrolling:touch;
}

/* Equal-width slides in carousel */
.em-carousel .em.em-events-list > *{
  flex:0 0 320px !important;
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
  box-sizing:border-box !important;
}

.em-carousel .em-carousel-slide{
  flex:0 0 320px !important;
  width:320px !important;
  min-width:320px !important;
  max-width:320px !important;
  box-sizing:border-box;
}

.em-carousel .em.em-events-list::-webkit-scrollbar{
  display:none;
}
.em-carousel .em.em-events-list{
  scrollbar-width:none;
}

.em-carousel br{
  display:none;
}
.em-carousel p{
  margin:0;
}

/* =========================
   SHARED CARD STYLES
   (HOME + EM EVENTS PAGE)
   ========================= */
.em-card{
  display:flex;
  flex-direction:column;
  gap:0;
  align-items:stretch;
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 8px 20px rgba(17,24,39,0.10);
  height:100%;
  cursor:pointer;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.em-card:hover{
  box-shadow:0 14px 28px rgba(17,24,39,0.14);
  transform:translateY(-3px);
}

.em-card__img{
  display:block;
  width:100%;
  height:200px;
  min-height:200px;
  max-height:200px;
  background:#e5e7eb;
  position:relative;
  flex-shrink:0;
  overflow:hidden;
  z-index:1;
}

.em-card__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.em-card__overlay{
  position:absolute;
  top:14px;
  left:14px;
  right:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
  z-index:3;
}

.em-card__price{
  background:#fff;
  color:#111827;
  border-radius:12px;
  padding:8px 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.01em;
  pointer-events:auto;
}

.em-card__price .fa-ticket{
  font-size:13px;
  line-height:1;
}

.em-card__actions{
  display:flex;
  align-items:center;
  gap:10px;
  pointer-events:auto;
}

/* SHARE */
.em-share{
  position:relative;
}

.em-share__btn{
  width:42px !important;
  height:42px !important;
  border-radius:999px !important;
  border:0 !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  color:#4b5563 !important;
  box-shadow:0 2px 12px rgba(17,24,39,0.15) !important;
}

.em-share__icon .fa-solid,
.em-share__icon .fa-brands{
  font-size:18px !important;
  line-height:1 !important;
}

.em-share__menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:180px !important;
  background:#fff !important;
  border:1px solid rgba(17,24,39,0.10) !important;
  border-radius:14px !important;
  box-shadow:0 14px 40px rgba(17,24,39,0.12) !important;
  padding:8px !important;
  display:none !important;
  z-index:9999;
}

.em-share__menu.is-open{
  display:flex !important;
}

.em-share__item{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
  text-align:left !important;
  border:0 !important;
  background:transparent !important;
  padding:10px !important;
  border-radius:10px !important;
  cursor:pointer !important;
  font-weight:600 !important;
  color:#111827 !important;
}

.em-share__item:hover{
  background:rgba(17,24,39,0.06) !important;
  color:#111827 !important;
}

.em-share__item-icon{
  width:22px !important;
  height:22px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:12px !important;
  line-height:1 !important;
  background:#e5e7eb !important;
  color:#111827 !important;
  flex:0 0 22px !important;
}

.em-share__item[data-share="facebook"] .em-share__item-icon{
  background:#1877f2 !important;
  color:#fff !important;
}
.em-share__item[data-share="x"] .em-share__item-icon{
  background:#111827 !important;
  color:#fff !important;
}
.em-share__item[data-share="whatsapp"] .em-share__item-icon{
  background:#25d366 !important;
  color:#fff !important;
}
.em-share__item[data-share="email"] .em-share__item-icon{
  background:#0ea5e9 !important;
  color:#fff !important;
}
.em-share__item[data-share="copy"] .em-share__item-icon{
  background:#6b7280 !important;
  color:#fff !important;
}

.em-share__toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  background:#111827;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  z-index:99999;
}

/* =========================
   SHARED BODY / DATE / TEXT
   ========================= */
.em-card__body{
  display:flex !important;
  flex-direction:row !important;
  gap:18px !important;
  padding:18px 18px 20px !important;
  flex:1;
  align-items:flex-start !important;
  width:100% !important;
  background:#fff;
  position:relative;
  z-index:2;
}

.em-date-badge{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:10px !important;
  flex:0 0 74px !important;
  min-width:74px !important;
  text-align:left !important;
}

.em-date-badge__month{
  display:block !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:0.08em !important;
  text-transform:uppercase !important;
  color:#8b5cf6 !important;
  line-height:1 !important;
  margin-bottom:0 !important;
}

.em-date-badge__day{
  display:block !important;
  font-size:46px !important;
  font-weight:700 !important;
  line-height:1 !important;
  color:#111827 !important;
}

.em-card__main{
  flex:1 !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
}

.em-card__title{
  display:block !important;
  margin:0 !important;
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  color:#1F2937 !important;
  word-wrap:break-word;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.em-card__title a{
  text-decoration:none !important;
  color:#1F2937 !important;
  transition:color 0.2s ease;
}

.em-card__title a:hover{
  color:#8B5CF6 !important;
}

.em-card__meta{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  margin-top:9px !important;
  font-size:14px !important;
  color:#6b7280 !important;
  line-height:1.45 !important;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.em-card__excerpt{
  margin-top:10px;
  font-size:13px;
  line-height:1.5;
  color:#6B7280;
  display:none;
}

/* =========================
   AUTOMATIC EVENTS MANAGER GRID PAGE
   ========================= */
.em.em-view-container[data-view="grid"] .em.em-events-list.em-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:24px !important;
  align-items:stretch !important;
  padding:0 !important;
  margin:0 !important;
  list-style:none !important;
}

.em.em-view-container[data-view="grid"] .em.em-events-list.em-grid > .em-card-item{
  width:100% !important;
  min-width:0 !important;
  display:flex !important;
  align-items:stretch !important;
  grid-column:auto !important;
  justify-self:stretch !important;
  align-self:stretch !important;
}

.em.em-view-container[data-view="grid"] .em.em-events-list.em-grid > .em-card-item .em-card{
  width:100% !important;
  height:100% !important;
}

.em.em-view-container[data-view="grid"] .em.em-events-list.em-grid > *{
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:1024px){
  .em.em-view-container[data-view="grid"] .em.em-events-list.em-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width:640px){
  .em-carousel .em-carousel-slide{
    width:320px;
    min-width:320px;
    max-width:320px;
  }

  .em-card__img{
    height:180px;
    min-height:180px;
    max-height:180px;
  }

  .em-card__body{
    padding:14px !important;
    gap:14px !important;
  }

  .em-date-badge{
    flex-basis:58px !important;
    min-width:58px !important;
    gap:6px !important;
  }

  .em-date-badge__month{
    font-size:11px !important;
  }

  .em-date-badge__day{
    font-size:34px !important;
  }

  .em-card__title{
    font-size:15px !important;
  }

  .em.em-view-container[data-view="grid"] .em.em-events-list.em-grid{
    grid-template-columns:1fr !important;
  }
}
