/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* Apply global styles to avoid body scroll issues */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
  }
  

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Wrapper styles */
.wrapper {
  max-width: 100%;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #343F4F;
  overflow: hidden;
}

/* Arrow icons */
.wrapper i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  width: 44px;
  background: #fff;
  color: #343F4F;
  border-radius: 50%;
  font-size: 1.15rem;
  text-align: center;
  line-height: 44px;
  cursor: pointer;
  transition: transform 0.1s linear;
  z-index: 1;
}

.wrapper i:hover {
  background: #f2f2f2;
}

.wrapper i:active {
  transform: translateY(-50%) scale(0.9);
}

.wrapper i:first-child {
  left: 10px;
  display: none;
}

.wrapper i:last-child {
  right: 10px;
}

/* Carousel container */
.wrapper .carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  padding: 10px 0;
  scrollbar-width: none; /* Firefox */
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.carousel.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.carousel img {
  flex-shrink: 0;
  height: auto;
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  user-select: none;
  border-radius: 10px;
}

/* Responsive styles */
@media screen and (max-width: 900px) {
  .carousel img {
    max-width: 48%;
  }
}

@media screen and (max-width: 550px) {
  .carousel img {
    max-width: 100%;
  }
}
