.carousel-section {
  margin-top: 40px;
  padding: 20px;
}

.carousel-section h3 {
  text-align: center;
  margin-bottom: 20px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  min-width: 320px;
  max-width: 800px;
  background-color: #e1eaf4;
  padding: 20px;
  border-radius: 8px;
  scroll-snap-align: start;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-wrap: break-word;
}

.carousel-container {
  position: relative;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  width: 100%;
  display: flex;
  overflow: hidden;
  justify-content: center;
}

.carousel-slide > .carousel-item {
  display: none;
  width: 100%;
  max-width: 800px;
}

.carousel-nav {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1E71D6;
  padding: 10px;
  z-index: 1;
}

.carousel-dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #1E71D6;
}

/* ✅ MOBILE STYLES BELOW */
@media (max-width: 768px) {
  .carousel-slide {
    flex-direction: column;
    align-items: center;
  }

  .carousel-slide > .carousel-item {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .carousel-nav {
    font-size: 1.5rem;
    padding: 5px;
  }

  .carousel-item {
    padding: 15px;
    font-size: 0.95rem;
  }
}
