/* CW Custom Slider */

.cw-custom-slider {
  width: 100%;
}

/* Height is controlled by Elementor responsive control (slider_height) via selectors.
   So we do NOT hardcode height here. */
.cw-custom-slider .swiper-slide {
  height: auto;
}

.cw-custom-slider .slide-inner {
  height: 100%;
  padding: 24px;
  background-size: cover;
  background-position: center center;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
}

.cw-custom-slider .slide-bottom-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: rgba(255, 255, 255, 0.85);
  padding: 16px 18px;
  text-decoration: none;
  color: #111;
  border-radius: 10px;
}

.cw-custom-slider .row-left h3 {
  margin: 0 0 12px 0;
  line-height: 1.2;
  font-family: "Fustat", Sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #242424;
}

.cw-custom-slider .row-left p {
  line-height: 1.4;
  opacity: 0.9;
  font-family: "Fustat", Sans-serif;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 0px;
  color: #242424;
}

.cw-custom-slider .row-btn {
  display: flex;
  align-items: center;
  background-color: #55B341;
  font-family: "Fustat", Sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border-radius: 40px 40px 40px 40px;
  padding: 8px 8px 8px 16px;
}

.cw-custom-slider .slide-bottom-row:hover .row-btn {
  opacity: 0.92;
}

.cw-custom-slider .slide-bottom-row .row-btn img {
  background: #fff;
  padding: 11px 8px;
  border-radius: 40px;
  margin-left: 16px;
}

/* ============ Slider Shell (allows arrows outside slider) ============ */
.cw-slider-shell {
  position: relative;
  width: 100%;
  overflow: visible;
}

.cw-slider-shell .cw-custom-slider{
  overflow-x: hidden;
  overflow-y: visible;
}

.cw-custom-slider{
  overflow-x: hidden;
}

/* Shared arrow button style */
.cw-slider-shell .cw-swiper-arrow {
  position: absolute;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px;
  border: 1px solid #CCCBC9;
  background: #fff;
  cursor: pointer;

  border-radius: 999px;
  line-height: 0;
}

.cw-slider-shell .cw-swiper-arrow:hover {
  border-color: #55B341;
}

.cw-slider-shell .cw-swiper-arrow img {
  width: 24px;
  height: auto;
  display: block;
}

/* =========================
   STYLE 1
   ========================= */

.cw-slider-shell.style-1 .slide-bottom-row {
  min-height: 180px;
  align-items: flex-start;
}

/* =========================
   STYLE 2 (image row + content row)
   ========================= */
.cw-slider-shell.style-2 .cw-custom-slider .swiper-slide {
  height: auto;
}

.cw-slider-shell.style-2 .cw-custom-slider .cw-slide-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cw-slider-shell.style-2 .cw-custom-slider .cw-slide-image {
  flex: 1 1 auto;
  min-height: 0;
  background-size: cover;
  background-position: center center;
  border-radius: 16px;
  max-height: 350px;
  min-height: 350px;
}

/* Bottom row becomes a normal row (no background/opacity/radius) */
.cw-slider-shell.style-2 .cw-custom-slider .cw-content-row {
  flex: 0 0 auto;
}

.cw-slider-shell.style-2 .cw-custom-slider .slide-bottom-row {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Keep typography same, but remove the forced opacity from paragraph in style-2 */
.cw-slider-shell.style-2 .cw-custom-slider .row-left p {
  opacity: 1;
}

/* ============ Mobile ============ */
@media (max-width: 767px) {

  .cw-custom-slider .slide-inner {
    height: 100%;
    padding: 15px;
  }

  .cw-custom-slider .slide-bottom-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
