/**
 * Standardized Contributors Section Styling
 * This file contains all the necessary styles for the contributors section
 * to ensure consistent appearance across all pages.
 */

/* Contributors Title Section */
.contributors-title-section {
  padding: 110px 0 60px;
  text-align: center;
  background-color: #fff;
}

.contributors-title {
  font-size: 48px;
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
  display: inline-block;
  margin: 0;
  position: relative;
}

.contributors-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 4px;
  background-color: #ff1f20;
}

/* Contributors Carousel Section */
.contributors-carousel-section {
  padding: 0;
  overflow: hidden !important;
  width: 100%;
  position: relative;
  max-width: 100vw !important;
}

.contributors-carousel-container {
  width: 100% !important;
  position: relative;
  padding: 80px 0;
  overflow: hidden !important;
  max-width: 100vw !important;
}

.contributors-carousel {
  width: 100% !important;
  overflow: hidden !important;
  position: relative;
  max-width: 100vw !important;
}

.contributors-track {
  display: flex;
  width: max-content;
  position: relative;
  left: 0;
}

.contributors-track.animated {
  animation: contributorScroll 45s linear infinite;
}

.contributor-item {
  flex: 0 0 auto;
  width: 600px !important;
  height: 400px !important;
  margin: 0 30px !important;
  opacity: 1 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.contributor-item img {
  max-width: 100% !important;
  max-height: 350px !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
}

/* Custom animation keyframes with unique name to avoid conflicts */
@keyframes contributorScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-660px * 5));
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .contributors-title {
    font-size: 38px;
    letter-spacing: 4px;
  }
  
  .contributors-title::after {
    width: 120px;
    height: 3px;
    bottom: -10px;
  }
  
  .contributor-item {
    width: 400px !important;
    height: 280px !important;
    margin: 0 25px !important;
  }
  
  .contributor-item img {
    max-height: 240px !important;
  }
}

@media (max-width: 480px) {
  .contributors-title {
    font-size: 32px;
    letter-spacing: 3px;
  }
  
  .contributors-title::after {
    width: 100px;
    height: 3px;
    bottom: -8px;
  }
  
  .contributor-item {
    width: 320px !important;
    height: 220px !important;
    margin: 0 20px !important;
  }
  
  .contributor-item img {
    max-height: 180px !important;
  }
} 