/* ===== SLIDER FIX ===== */

.slider-wrapper {
  width: 100%;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 380px;
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 380px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: block;
}

/* ONLY ONE IMAGE VISIBLE */
.slider img.active {
  opacity: 1;
  z-index: 1;
}

/* SAFETY: prevent grid / flex interference */
.slider,
.slider * {
  float: none !important;
  box-sizing: border-box;
}
/* ===== HOME SLIDER (FINAL FIX) ===== */

.home-slider {
  width: 100%;
  height: 400px;          /* FIXED HEIGHT */
  position: relative;
  overflow: hidden;
}

.home-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;          /* SAME HEIGHT */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;

  /* FORCE OVERRIDE OLD CSS */
  display: block !important;
  float: none !important;
  max-width: none !important;
}

.home-slider .slide.active {
  opacity: 1;
  z-index: 2;
}