/* ==== Common Skin Concerns Styles Starts here==== */
.carousel-pagination {
  text-align: center;
  margin-top: 15px;
}

.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #10375c;
}


.common-skin-concerns {
  text-align: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.common-skin-concerns h2 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #10375c;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-arrow {
  background-color: rgba(0, 0, 0, 0.3);  /* lighter background */
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;  /* subtle, not too bold */
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.6); /* slightly darker on hover */
}


.carousel-arrow.left {
  margin-right: 10px;
}

.carousel-arrow.right {
  margin-left: 10px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.concerns-container {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollConcerns 40s linear infinite;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
  overflow-x: auto;
  padding: 20px 0;
  min-width: 1500px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.concerns-container.no-animate {
  animation: none;
}
.concerns-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
   min-width: 1500px;
}


/* Pause animation on hover (for desktop) */
.carousel-wrapper:hover .concerns-container {
  animation-play-state: paused;
}

/* Hide scrollbar */
.concerns-container::-webkit-scrollbar {
  display: none;
}

/* Individual item */
.skin-concern {
  flex: 0 0 auto;
  width: 250px;
  margin-right: 30px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  scroll-snap-align: start;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.skin-concern:hover {
  transform: scale(1.05);
}

.skin-concern img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 10px;
}


/* Keyframes for desktop scroll animation */
@keyframes scrollConcerns {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* ===== Responsive Enhancements ===== */

@media (max-width: 992px) {
  .common-skin-concerns h2 {
    font-size: 28px;
  }

  .skin-concern {
    width: 220px;
    padding: 16px;
    margin-right: 20px;
  }

  .skin-concern img {
    width: 90px;
  }

  .skin-concern__description {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .concerns-container {
     animation: scrollConcerns 40s linear infinite;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 10px;
  }

  .skin-concern {
    width: 220px;
    scroll-snap-align: start;
  }
}

@media (max-width: 576px) {
  .common-skin-concerns {
    padding: 40px 15px;
  }

  .common-skin-concerns h2 {
    font-size: 24px;
  }

  .skin-concern {
    width: 200px;
    padding: 14px;
    margin-right: 16px;
	
  }
/* Ensure cards are properly aligned for scrolling */
.skin-concern {
  scroll-snap-align: start;
} 
  .skin-concern img {
    width: 80px;
  }

  .skin-concern__title {
    font-size: 16px;
  }

  .skin-concern__description {
    font-size: 13px;
  }
}

/* ==== Common Skin Concerns Styles Ends Here==== */

