#case-study {
  background-color: #f5f5f0;
  padding: 80px 0;
}

.case-study-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.case-study-title {
  font-family: "Inter-SemiBold", Helvetica;
  font-weight: 600;
  font-size: 48px;
  color: #192f60;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.case-study-carousel {
  max-width: 900px;
  margin: 0 auto;
}

.case-study-header {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-study-description {
  font-family: "Inter-Medium", Helvetica;
  font-weight: 600;
  font-size: 24px;
  color: #192f60;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  position: relative;
}

.carousel-wrapper {
  flex: 1;
  overflow: visible;
  border-radius: 12px;
  padding: 0 0 20px 0;
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.case-study-card {
  width: 100%;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px 40px 30px 40px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.15s ease, transform 0.15s ease;

}

.case-study-card.active {
  opacity: 1;
  transform: scale(1);
}

.case-study-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  height: 100%;
}

.case-upper-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.company-logo {
  flex: 0 0 160px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.case-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-effect {
  width: 100%;
  margin-bottom: 20px;
}

.case-effect .case-item {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: 100%;
  position: relative;
}

.case-effect .case-label-box {
  position: absolute;
  left: 150px;
  transform: translateX(-50%);
}

.case-effect .case-text {
  margin-left: 200px;
}

.case-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.case-label-box {
  flex-shrink: 0;
  padding: 4px 16px;
  font-family: "Inter-Medium", Helvetica;
  font-weight: 500;
  font-size: 14px;
  color: #000000;
  border: 1px solid #192f60;
  text-align: center;
  min-width: 60px;
}

.case-label-box.circular {
  border-radius: 25px;
  padding: 10px 20px;
}

.case-text {
  font-family: "Inter-Regular", Helvetica;
  font-weight: 400;
  font-size: 16px;
  color: #192f60;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.case-label {
  display: inline-block;
  color: #000000;
  font-family: "Inter-Medium", Helvetica;
  font-weight: 400;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  margin-right: 12px;
}

.carousel-nav {
  width: 50px;
  height: 50px;
  border: none;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #192f60;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
}

.carousel-nav:hover {
  background-color: #192f60;
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.carousel-nav:disabled:hover {
  background-color: #ffffff;
  color: #192f60;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background-color: #cccccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: #192f60;
  transform: scale(1.2);
}

.dot.active {
  background-color: #FBB03B;
  transform: scale(1.3);
}


/* Responsive adjustments for case study carousel */
@media (max-width: 768px) {
  .case-study-container {
    padding: 0 20px;
  }

  .carousel-container {
    gap: 15px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .case-study-content {
    gap: 20px;
  }

  .case-upper-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .company-logo {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .company-logo img {
    max-width: 200px;
    width: auto;
    height: auto;
  }

  .case-item {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .case-label-box {
    min-width: 80px;
    font-size: 13px;
    padding: 6px 12px;
  }

  .case-label-box.circular {
    padding: 8px 16px;
  }

  .case-text {
    font-size: 14px;
    text-align: center;
  }

  .case-effect .case-item {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .case-effect .case-label-box {
    position: static;
    left: auto;
    transform: none;
  }

  .case-effect .case-text {
    margin-left: 0;
    text-align: center;
  }

  .case-study-card {
    padding: 30px 20px;
  }

  .case-study-title {
    font-size: 32px;
  }

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

  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .case-study-container {
    padding: 0 15px;
  }

  .carousel-container {
    gap: 10px;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .case-details {
    gap: 15px;
  }

  .company-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .company-logo img {
    max-width: 180px;
    width: auto;
    height: auto;
  }

  .case-item {
    gap: 8px;
  }

  .case-label-box {
    min-width: 70px;
    font-size: 12px;
    padding: 5px 10px;
  }

  .case-label-box.circular {
    padding: 6px 12px;
  }

  .case-text {
    font-size: 14px;
  }

  .case-effect .case-item {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .case-effect .case-label-box {
    position: static;
    left: auto;
    transform: none;
  }

  .case-effect .case-text {
    margin-left: 0;
    text-align: center;
  }

  .case-study-card {
    padding: 20px 15px;
  }

  .case-study-title {
    font-size: 32px;
  }

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

  .case-label {
    font-size: 12px;
    padding: 4px 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .carousel-dots {
    gap: 8px;
    margin-top: 15px;
  }
}
