/* s2-section */

/* Custom styles */
.s2-section {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll */
  /* Light background for the overall page */
  background: linear-gradient(
    to top right,
    #d2e3ff 0%,
    #f0e1ff 50%,
    #fbc6ff 100%
  );
}

/* Carousel specific styles */
.s2carousel-section {
  padding: 50px 0;
  background: linear-gradient(
    to top right,
    #d2e3ff 0%,
    #f0e1ff 50%,
    #fbc6ff 100%
  );
  overflow: hidden; /* Hide overflowing content */
  width: 100%; /* Ensure it takes full width */
  box-sizing: border-box; /* Include padding in width */
}

.s2carousel-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #007bff; /* Changed 100+ Elements included. text color to blue */
  margin-bottom: 40px;
}

/* Style for "YOU DON'T NEED ANY EXTERNAL PLUGINS." line */
.s2plugin-text {
  width: 30%;
  text-align: center;
  margin: 0 auto 30px auto; /* Center the element and add margin-bottom */
  color: #007bff; /* Changed text color to blue */
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  background-color: #e0e6f0; /* Gray-blue background color */
  border-radius: 5px; /* Added border radius */
  padding: 8px 15px; /* Added padding for better appearance */
}

.s2carousel-row-wrapper {
  width: 100%;
  overflow: hidden; /* Ensure content outside is hidden */
  /* Increased margin-bottom for space between carousel rows */
  margin-bottom: 30px; /* Added space between rows */
}

.s2carousel-row-wrapper:last-of-type {
  margin-bottom: 0; /* No margin after the last row */
}

.s2carousel-row {
  display: flex;
  width: fit-content; /* Allow content to dictate width for animation */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* Removed margin-bottom from here as it's now on the wrapper */
}

.s2carousel-item {
  flex-shrink: 0; /* Prevent items from shrinking */
  width: 250px; /* Default fixed width for carousel items */
  height: 150px; /* Fixed height for carousel items */
  background-color: #fff;
  margin: 0 10px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.s2carousel-item:hover {
  background-color: #007bff; /* Blue background on hover */
  color: white;
  transform: scale(1.02); /* Scale effect on hover */
}

/* Animation for right to left sliding */
@keyframes slide-right-to-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  } /* Slide half of the duplicated content */
}

/* Animation for left to right sliding */
@keyframes slide-left-to-right {
  0% {
    transform: translateX(-50%);
  } /* Start from half of the duplicated content */
  100% {
    transform: translateX(0%);
  }
}

/* Apply animations */
.s2carousel-row.rtl {
  animation-name: slide-right-to-left;
  animation-duration: 40s; /* Adjust speed as needed */
}

.s2carousel-row.ltr {
  animation-name: slide-left-to-right;
  animation-duration: 40s; /* Adjust speed as needed */
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
  .s2carousel-item {
    width: 200px; /* Smaller width for tablet screens */
    height: 80px;
    font-size: 1rem;
  }
  .s2carousel-title {
    font-size: 2rem;
  }
  .s2carousel-row-wrapper {
    margin-bottom: 25px; /* Adjust spacing for smaller screens */
  }
  .s2plugin-text {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .s2carousel-item {
    width: 180px; /* Even smaller width for mobile screens */
    height: 70px;
    font-size: 0.9rem;
    margin: 0 8px;
  }
  .s2carousel-title {
    font-size: 1.8rem;
  }
  .s2plugin-text {
    font-size: 0.85rem;
    padding: 6px 12px;
    width: 80%;
  }
  .s2carousel-row-wrapper {
    margin-bottom: 20px; /* Adjust spacing for smaller screens */
  }
}

@media (max-width: 480px) {
  .s2carousel-item {
    width: 120px; /* Smallest width for very small screens */
    height: 50px;
    text-align: center;
    font-size: 0.8rem;
    margin: 0 5px;
  }
  .s2carousel-title {
    font-size: 1.5rem;
  }
  .s2plugin-text {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .s2carousel-row-wrapper {
    margin-bottom: 15px; /* Adjust spacing for smallest screens */
  }
}

.s2carousel-item {
  flex-direction: column; /* Stack image and text */
  text-align: center;
  padding: 10px;
}

.s2carousel-item img {
  width: 90%; /* Adjust width as needed */
  height: 90%; /* Adjust height as needed */
  object-fit: contain;
  margin-bottom: 8px; /* Space between image and text */
}