/* sectionstory.module.css */

/* cardFour.module.css - MODIFIED */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Changed to always create 4 equal columns */
  gap: 1rem;
  pointer-events: none;
  padding: 1rem;
}

.card {
  color: var(--card-text-color);
  padding: var(--card-padding);
  background-color: var(--card-bg-color);
  pointer-events: auto;
  transform: scale(1);
  opacity: 1;
  transition: all 150ms ease-in-out;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cardTitle {
  position: relative;
  color: var(--title-color);
}

.cardTitle::before {
  content: '';
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 3px #bb86fc;
  background-color: transparent;
  position: absolute;
  right: 0;
}

.logoSize {
  width: 900px;
  height: 900px;
}

.title {
  font-size: 1.5rem;
  color: var(--title-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 0.9rem;
  color: var(--card-text-color);
  line-height: 1.4;
}

.logoClipContainer {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.logoContainer {
  display: flex;
  overflow-x: hidden;
  width: auto;
  margin: 2% auto;
  white-space: nowrap;
  animation: scrollLogos linear infinite;
  animation-duration: var(--animation-duration);
}

@keyframes scrollLogos {
  0% {
      transform: translateX(0%);
  }
  100% {
      transform: translateX(calc(-1 * var(--container-width)));
  }
}

.logoWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 20px;
  padding: 0 10px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  width: auto;
  height: auto;
  box-sizing: border-box;
}

.logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
  .cards {
      grid-template-columns: 1fr; /* Single column on mobile */
      padding: 0.5rem;
      gap: 0.5rem;
  }

  .card {
      padding: 1rem;
  }

  .title {
      font-size: 1.2rem;
  }

  .description {
      font-size: 0.8rem;
  }
}

/*Media Queries for Tablets*/
@media (max-width: 1024px) and (min-width: 769px) {
  .cards {
      grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
      padding: 0.75rem;
      gap: 0.75rem;
  }
}