/* Case Studies Section */
.case-studies-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #f0f2f5;
}

.case-studies-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  max-width: 1200px; /* Set a max-width for larger screens */
  margin-left: auto;
  margin-right: auto;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  flex: 0 0 300px; /* Set a fixed width for each card */
  margin: 0 1rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
}

.carousel-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.carousel-card h3 {
  margin: 1rem;
}

.carousel-card p {
  margin: 0 1rem 1rem;
  color: #666;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 50px; /* Set a fixed width */
  height: 50px; /* Set a fixed height */
  border-radius: 50%; /* Make it a circle */
  cursor: pointer;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prev-arrow {
  left: 1rem;
}

.next-arrow {
  right: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 100%; 
    margin: 0; /* Reset margin for full-width cards */
    border-radius: 0; /* Remove border-radius for a seamless look */
  }
}

@media (max-width: 480px) {
  .carousel-card {
    flex: 0 0 100%; 
    margin: 0;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
}
