/* =========================================================
   DMER Accessible Banner Slider (WCAG + GIGW Compliant)
   ========================================================= */

#dmer-banner-slider {
  position: relative;
  /*max-width: 1200px;
  border-radius: 14px;*/
  margin: 0px auto;
  overflow: hidden;
  /*background: #000;*/
  box-shadow: 0 6px 22px rgba(11, 32, 63, 0.1);
}

#dmer-banner-slider .dmer-slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

#dmer-banner-slider .dmer-slide {
  min-width: 100%;
  position: relative;
}

#dmer-banner-slider img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

#dmer-banner-slider .dmer-caption {
  position: relative; /* ensures assistive tech can detect container properly */
  bottom: 0;
  left: 0;
  right: 0;

  /* High-contrast accessible gradient */
  background: linear-gradient(135deg, #2ba282 0%, #105b7a 100%);

  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;

  text-align: center;

  /* Prevents text from touching edges */
  box-sizing: border-box;

  /* For zoom 200% viewport */
  max-width: 100%;
  overflow-wrap: break-word;

  /* Smooth rendering */
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation Buttons --- */
#dmer-banner-slider .dmer-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #2ba282;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

#dmer-banner-slider .dmer-controls button:hover,
#dmer-banner-slider .dmer-controls button:focus {
  background: #105b7a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  outline: 2px solid #ffbf47;
  outline-offset: 3px;
}

#dmer-banner-slider .dmer-prev {
  left: 8px;
}

#dmer-banner-slider .dmer-next {
  right: 45px; /* space for play/pause button */
}

/* --- Play/Pause Button (Top Right Corner, Semi-transparent) --- */
#dmer-banner-slider .dmer-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 43, 92, 0.85); /* semi-transparent navy */
  color: #ffcc33;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

#dmer-banner-slider .dmer-toggle:hover,
#dmer-banner-slider .dmer-toggle:focus {
  background: #ffcc33;
  color: #002b5c;
  outline: 2px solid #ffbf47;
  outline-offset: 3px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  #dmer-banner-slider .dmer-controls button {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  #dmer-banner-slider .dmer-toggle {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  #dmer-banner-slider .dmer-caption {
    font-size: 0.9rem;
    bottom: 0.75rem;
  }
}
