.cms-slider {
  position: relative;
  max-width: 3840px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}
.cms-slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}
.cms-slide {
  min-width: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Add subtle box-shadow to active slide instead of scaling */
.cms-slide.active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.cms-slide-inner {
  width: 100%;
  position: relative;
}
.cms-slide-inner img {
  width: 100%;
  height: auto;
  display: block;
}

.cms-slide-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.795), transparent);
  pointer-events: none;
  z-index: 1;
}

.cms-slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 30%;
    color: #fff;
    z-index: 2;
    padding: 20px;
}
.cms-slide-tag {
  display: inline-block;
  background: hsl(228, 22%, 26%);
  padding: 5px 10px;
  text-transform: uppercase;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
}
.cms-slide-secondary-tag {
  display: inline-block;
  background: linear-gradient(to right, rgb(168, 173, 227), rgb(241, 214, 80));
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 8px;
  color: black;
  font-weight: 600;
}

.cms-slide-secondary-tag#platform {
  display: inline-block;
  background: linear-gradient(to right, rgb(32, 132, 122), rgb(99, 7, 138));
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
}
.cms-slide-title {
  font-size: 38px;
  margin-bottom: 20px;
}
.cms-slide-excerpt {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 26px;
}
.cms-btn {
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 3px;
  display: inline-block;
  margin-right: 10px;
  cursor: pointer !important;
}
.cms-btn-primary { background: #fff; color: #000; }
.um-bookmark { background: transparent; border: 1px solid #fff; color: #fff; }
.cms-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  overflow: visible;
}
.cms-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.cms-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #fff;
  transition: none;
}
.cms-dot.active::before {
  animation: fill-dot 8s linear forwards;
}
@keyframes fill-dot {
  to { width: 100%; }
}
/* Responsive */
@media (max-width: 1364px) {
  .cms-slide-content {
    position: static;
    transform: none;
    max-width: 100%;
    background: rgba(0,0,0,0.5);
    padding: 20px;
  }
  .cms-slide-inner {
    /* No special styling needed for mobile, image is responsive */
  }
  .cms-slider-dots {
    bottom: 10px;
  }
}

/* Style UM bookmark button to match slider buttons */
.cms-slide-buttons .um-clear {
  display: inline-block !important;
  margin-left: 10px !important;
  vertical-align: middle !important;
  font-size: 14px !important;
}
.cms-slide-buttons .um-user-bookmarks-add-button,
.cms-slide-buttons .um-user-bookmarks-remove-button {
  display: inline-block !important;
  padding: 10px 20px !important;
  border: 1px solid #fff !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  color: #fff !important;
  background: transparent !important;
  font-size: 14px !important;
  cursor: pointer !important;
  width: 200px !important;
  text-align: center !important;
}
.cms-slide-buttons .um-user-bookmarks-add-button .um-icon-plus,
.cms-slide-buttons .um-user-bookmarks-remove-button .um-icon-close {
  margin-right: 5px !important;
  vertical-align: middle !important;
  font-size: 14px !important;
}

/* Hide UM loading spinner to prevent shift */
.cms-slide-buttons .um-user-bookmarks-button .um-icon-loading,
.cms-slide-buttons .um-icon-loading {
  display: none !important;
}


/* Force-hide all Ultimate Member bookmark spinners in slider */
.um-user-bookmarks-ajax-loading,
.cms-slide-buttons > .um-user-bookmarks-ajax-loading {
  display: none !important;
}

.cms-slide-buttons .um-clear {
  display: contents !important;
}

.cms-slide-buttons {
  display: flex;
  align-items: center;
  gap: 10px; /* space between buttons */
}

.cms-slide-buttons .cms-btn {
  margin-right: 0;
}

/* Dot fill animation */
.cms-dot {
  position: relative;
  overflow: hidden;
}
.cms-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #fff;
  transition: none;
}
.cms-dot.active::before {
  animation: fill-dot 8s linear forwards;
}
@keyframes fill-dot {
  to { width: 100%; }
}