/*----------------------
# HP V2 Case Studies Section
------------------------------*/
.hp-v2-casestudies {
  padding: 0;
  background: #FFFFFF;
}

.hp-v2-casestudies .hp-v2-section-title {
  margin-bottom: 40px;
}

/*----------------------
# Slider Wrapper
------------------------------*/
.casestudies-slider-wrapper {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.slider-nav {
  position: absolute;
  top: 15%;
  bottom: 15%;
  width: 30px;
  height: 70%;
  background: white;
  border: 1px solid #939497;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171A1A;
}

.slider-nav-left {
  left: 10px;
}

.slider-nav-right {
  right: 10px;
}

.slider-nav:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #0066a8;
  color: #0066a8;
}

.slider-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider-nav svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.fix-height {
  height: auto !important;
}

/*----------------------
# Case Card
------------------------------*/
.case-card {
  flex: 0 0 auto;
  width: auto;
  min-width: 300px;
  background: white;
  padding: 10px;
  border: 1px solid #939497;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.case-card-image {
  width: 100%;
  height: 160px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-content {
  padding: 10px;
  min-height: 300px;
  background: white;
}

.case-card-tag {
  display: inline-block;
  background: #1A57A2;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border: 1px solid #1A57A2;
}

.case-card-title {
  font-size: 16px;
  font-weight: bold;
  color: #171A1A;
  margin: 0 0 12px 0;
  line-height: 1.4;
  min-height: 44px;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
}

.case-card-description {
  font-size: 14px;
  color: #7C7676;
  line-height: 1.6;
  margin: 0;
  font-family: 'Lato', sans-serif;
  flex: 1;
}

.case-card-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 10px;
  flex-shrink: 0;
}

.case-card-label {
  font-size: 14px;
  font-weight: bold;
  color: #171A1A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.case-card-value {
  font-size: 14px;
  color: #7C7676;
  text-transform: uppercase;
  white-space: nowrap;
}

/*----------------------
# Responsive Styles
------------------------------*/

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .hp-v2-casestudies {
    padding: 0;
  }

  .hp-v2-casestudies .hp-v2-section-title {
    margin-bottom: 30px;
  }

  .casestudies-slider-wrapper {
    gap: 15px;
  }

  .casestudies-slider {
    padding: 0 50px;
  }

  .slider-nav {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    font-size: inherit;
    border-radius: 0;
  }

  .slider-nav svg {
    width: 24px;
    height: 24px;
  }

  .case-card {
    width: 280px;
    min-height: 400px;
  }

  .case-card-content {
    padding: 18px;
  }

  .case-card-title {
    font-size: 18px;
    min-height: 42px;
  }

  .case-card-description {
    font-size: 16px;
  }

  .case-card-footer {
    height: auto;
    padding: 18px;
  }

  .case-card-label,
  .case-card-value {
    font-size: 16px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .hp-v2-casestudies {
    padding: 0;
  }

  .hp-v2-casestudies .hp-v2-section-title {
    margin-bottom: 25px;
  }

  .casestudies-slider-wrapper {
    flex-direction: row;
    gap: 10px;
  }

  .slider-nav {
    width: 26px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    font-size: inherit;
    border-radius: 0;
  }

  .slider-nav-left {
    left: 2px;
  }

  .slider-nav-right {
    right: 2px;
  }

  .slider-nav svg {
    width: 24px;
    height: 24px;
  }

  .case-card {
    width: 260px;
    min-height: 380px;
  }

  .case-card-content {
    padding: 16px;
    min-height: auto;
  }

  .case-card-title {
    font-size: 16px;
  }

  .case-card-description {
    font-size: 14px;
  }

  .case-card-footer {
    padding: 13px;
  }

  .case-card-label,
  .case-card-value {
    font-size: 13px;
  }
}

/* Fix responsive bug for case studies slider */
@media (max-width: 1024px) {
  .casestudies-slider-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  .swiper-slide {
    width: 45%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .casestudies-slider-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  .swiper-slide {
    width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .casestudies-slider-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  .swiper-slide {
    width: 100%;
    margin: 0 auto;
  }
}
