@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

/* ── Section ── */
.cm-events-section {
  background: transparent;
  padding: 0 0 40px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.cm-events-heading {
  color: rgb(228, 214, 167);
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 40px 0;
}

/* ── Carousel wrapper ── */
.cm-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}

.cm-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  align-items: stretch;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Card ── */
.cm-card {
  background: #141414;
  border: 0.8px solid #E4D6A74A;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 20px 20px;
  position:relative;
  height:600px;
}

.cm-card__img {
  width: 100%;
  height: 200px!important;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px!important;
  display: block;
  flex-shrink: 0;
  margin-bottom: 20px;
}

/* Category pill */
.cm-card__cat {
  display: inline-block;
  color: rgb(251, 215, 132);
  font-size: 12px;
  border: 0.8px solid rgb(251, 215, 132);
  border-radius: 23px;
  padding: 5px 10px;
  margin-bottom: 16px;
  line-height: 1;
  width: fit-content;
}

/* Title */
.cm-card__title {
  color: rgb(228, 214, 167);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* Location */
.cm-card__location {
  color: rgb(217, 217, 217);
  font-size: 16px;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

/* Date */
.cm-card__date {
  color: rgb(211, 169, 75);
  font-size: 16px;
  margin: 0 0 14px 0;
  line-height: 1.4;
}

/* Excerpt */
.cm-card__excerpt {
  color: rgb(183, 171, 159);
  font-size: 16px;
  margin: 0 0 auto 0;
  padding-bottom: 20px;
  line-height: 1.55;
  
}

/* Footer */
.cm-card__footer {
	margin-top: auto;
	position:absolute;
	left:0;
	right:0;
	bottom:30px;
}

/* Ticket button */
.cm-card__btn {
  display: block;
  width: 80%;
  background: rgb(211, 169, 75);
  color: rgb(20, 20, 20);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
	margin: 0 auto;
}

.cm-card__btn:hover {
  background: rgb(225, 182, 85);
}

/* Referral note */
.cm-card__referral {
  color: rgb(183, 171, 159);
  font-size: 12px;
  text-align: center;
  margin: 8px 0 0 0;
}

/* By Invitation */

.cm-card__invitation {
	color: rgb(211, 169, 75);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding-bottom:40px;
}

/* No events fallback */
.cm-no-events {
  color: rgb(183, 171, 159);
  font-size: 16px;
  text-align: center;
  padding: 40px 20px;
}

/* ── Controls row ── */
.cm-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 2px;
}

.cm-carousel-counter {
  color: rgb(217, 217, 217);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}

.cm-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cm-nav__btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0.8px solid rgb(217, 217, 217);
  border-radius: 50px!important;
  width: 34px!important;
  height: 34px!important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer!important;
  color: rgb(217, 217, 217);
  padding: 0!important;
  margin: 0;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 10;
}

.cm-nav__btn:hover {
  background:rgb(211, 169, 75)!important;
}

.cm-nav__btn:active {
  background:black!important;
}


/*.cm-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
}*/


/* ── Responsive ── */
@media (max-width: 1024px) and (min-width: 601px) {
  .cm-events-section {
    padding: 50px 30px 70px;
  }
}

@media (max-width: 600px) {
  .cm-events-section {
    padding: 0 0 30px;
  }
}
