/**
 * csm-frontend.css
 * Styles for the front-end slideshow
 */

/* Container */
.csm-slideshow {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 2rem auto;
  /* height: 600px; */
  height: 530px;
}

/* Slides wrapper */
.csm-slides-container {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Each slide (100% width) */
.csm-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  position: relative;
}

.csm-slide img {
  width: 100%;
  height: auto;
  display: block;
}



.csm-slideshow .csm-slide img {
  width: 100%;
  height: 530px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Dots navigation */
.csm-slideshow .csm-slideshow-dots {
  position: absolute;
  bottom: 30px;               /* distance from bottom edge of slideshow */
  left: 50%;                  /* center horizontally */
  transform: translateX(-50%);
  display: flex;
  gap: 0;                     /* spacing between dots */
  z-index: 9;                 /* ensure dots are on top of images */
  /* remove pointer-events: none; let clicks reach the dots */
  pointer-events: auto;
}

/* Make each dot respond to pointer-events */
.csm-slideshow .csm-slideshow-dots div {
  background: #ccc;
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  pointer-events: auto;      /* ensure this element can be clicked */
}

.csm-slideshow .csm-slideshow-dots div:hover,
.csm-slideshow .csm-slideshow-dots div:focus {
  transform: scale(1.2);
}

.csm-slideshow .csm-slideshow-dots div.active {
  background: #002F87;
  transform: scale(1.1);
  width: 16px;
  height: 16px;
  margin-top: -2px;
}
.clinica-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 128, 0, 0.8), rgba(0, 128, 0, 0));
}

/* ------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .csm-slideshow-dots div.active {
    width: 12px;
    height: 12px;
  }
  .csm-slideshow-dots div {
    width: 8px;
    height: 8px;
  }
}

/* Responsive: If you want a fixed height, you can add something like:
.csm-slideshow { max-height: 500px; }
.csm-slide img { object-fit: cover; height: 100%; }
*/
