/* Case Study Widget Base Styles */
.csw-container {
  width: 100%;
  position: relative;
}

/* Slider */
.csw-slider-wrapper {
  position: relative;
  padding: 0;
}

.csw-swiper {
  overflow: hidden;
}

.csw-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.csw-swiper .swiper-slide {
  width: 100%;
  height: auto;
  display: flex;
  align-items: stretch;
}

.csw-slide-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 500px;
  background: transparent;
  overflow: hidden;
}

.csw-slide-image {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.csw-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.csw-slide-info {
  flex: 0 0 400px;
  background: #2a2a2a;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.csw-slide-title {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.csw-slide-summary {
  color: #ccc;
  margin: 0 0 30px 0;
  font-size: 16px;
  line-height: 1.6;
}

.csw-slide-metrics {
  margin: 30px 0;
}

.csw-slide-metric {
  margin-bottom: 20px;
}

.csw-slide-metric:last-child {
  margin-bottom: 0;
}

.csw-metric-label {
  color: #fff;
  font-size: 14px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.csw-metric-value {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.csw-slide-link {
  display: inline-block;
  padding: 14px 32px;
  background: #ff6b35;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
  text-align: center;
  transition: background 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  width: fit-content;
}

.csw-slide-link:hover {
  background: #e55a2b;
}

/* Navigation */
.csw-swiper .swiper-button-prev,
.csw-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  margin-top: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csw-swiper .swiper-button-prev {
  left: 10px;
}

.csw-swiper .swiper-button-next {
  right: 10px;
}

/* Hide default Swiper :after when custom icon exists */
.csw-swiper .swiper-button-prev.has-custom-icon:after,
.csw-swiper .swiper-button-next.has-custom-icon:after {
  display: none !important;
  content: none !important;
}

/* When custom icon is present (modern browser support) */
.csw-swiper .swiper-button-prev:has(.csw-nav-icon):after,
.csw-swiper .swiper-button-next:has(.csw-nav-icon):after {
  display: none !important;
  content: none !important;
}

/* Default Swiper arrows (fallback when no custom icon) */
.csw-swiper .swiper-button-prev:after,
.csw-swiper .swiper-button-next:after {
  font-size: 24px;
  font-weight: bold;
}

/* Custom icon styling */
.csw-swiper .csw-nav-icon {
  display: inline-block;
  line-height: 1;
}

.csw-swiper .csw-nav-icon i {
  display: inline-block;
  line-height: 1;
}

.csw-swiper .csw-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.csw-swiper .swiper-button-prev:hover,
.csw-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Pagination */
.csw-swiper .swiper-pagination {
  bottom: 20px;
}

.csw-swiper .swiper-pagination-bullet {
  background: #999;
  opacity: 1;
  width: 12px;
  height: 12px;
}

.csw-swiper .swiper-pagination-bullet-active {
  background: #ff6b35;
}

.csw-slide-image {
  height: 100% !important;
}

.csw-slide-metrics {
  display: flex;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 768px) {
  .csw-slide-content {
    flex-direction: column;
    min-height: auto;
  }

  .csw-slide-image {
    flex: 0 0 300px;
  }

  .csw-slide-info {
    flex: 1;
    padding: 30px 20px;
  }

  .csw-slide-title {
    font-size: 24px;
  }

  .csw-swiper .swiper-button-prev,
  .csw-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .csw-swiper .swiper-button-prev:after,
  .csw-swiper .swiper-button-next:after {
    font-size: 18px;
  }
}
