/**
 * Case Study Carousel Styles
 */

.arc-case-study-carousel-wrapper {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* Critical Splide structure fixes */
.arc-case-study-carousel-wrapper .splide__track {
  overflow: visible;
}

.arc-case-study-carousel-wrapper .splide__list {
  display: flex;
  margin: 0;
  padding: 0;
}

.arc-case-study-carousel-wrapper .splide__slide {
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  position: relative;
  transition: all 0.3s;
}

.arc-case-study-carousel-wrapper .splide__slide.is-prev,
.arc-case-study-carousel-wrapper .splide__slide.is-active + .splide__slide + .splide__slide + .splide__slide {
  opacity: 0.62;
}

.case-study-card {
  background: #fff;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.case-study-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-study-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  margin: 0 0 20px !important;
  min-height: 68px;
  color: #000;
}

.case-study-title a {
  color: #000;
  text-decoration: none;
}

.case-study-title a:hover {
  color: #d72c23;
}

.case-study-stats {
  margin-bottom: 25px;
  flex: 1;
}

.case-study-stat {
  padding: 10px 0;
  border-bottom: 1px solid #e7e7e7;
}

.case-study-stat:first-child {
  border-top: 1px solid #e7e7e7;
}

.stat-label {
  font-weight: 600;
  font-size: 18px;
}

.stat-value {
  font-size: 18px;
}

.case-study-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #d72c23;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.case-study-button:hover {
  background-color: #000;
  color: #fff;
  text-decoration: none;
}

/* Splide overrides */
.arc-case-study-carousel-wrapper .splide__arrow {
  background-color: #d72c23;
  width: 56px;
  height: 67px;
  border-radius: 0;
  top: 130px;
  transform: none;
  opacity: 1;
}

.arc-case-study-carousel-wrapper .splide__arrow--prev {
  left: 0;
}

.arc-case-study-carousel-wrapper .splide__arrow--next {
  right: 0;
}

.arc-case-study-carousel-wrapper .splide__arrow:hover {
  background-color: #000;
}

.arc-case-study-carousel-wrapper .splide__arrow svg {
  fill: #fff;
}

/* Responsive */
@media (max-width: 1400px) {
  .case-study-image {
    height: 200px;
  }

  .case-study-content {
    padding: 25px;
  }

  .case-study-title {
    font-size: 20px;
  }

  .arc-case-study-carousel-wrapper .splide__arrow {
    top: 100px;
    transform: translateY(-50%);
  }

  .arc-case-study-carousel-wrapper .splide__slide.is-active + .splide__slide + .splide__slide {
    opacity: 0.62;
  }
}

@media (max-width: 1024px) {
  .case-study-image {
    height: 180px;
  }

  .case-study-content {
    padding: 20px;
  }

  .case-study-title {
    font-size: 18px;
  }

  .arc-case-study-carousel-wrapper .splide__arrow {
    width: 40px;
    height: 40px;
    top: 90px;
  }

  .arc-case-study-carousel-wrapper .splide__slide.is-active + .splide__slide {
    opacity: 0.62;
  }
}
