/* Scrolling Quotes Animation */
.scrolling-quotes-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  margin: 10px 0;
}

.scrolling-quotes-container::before,
.scrolling-quotes-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scrolling-quotes-container::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.scrolling-quotes-container::after {
  right: 0;
  background: linear-gradient(270deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.scrolling-quotes-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-quotes 90s linear infinite;
  animation-delay: 0s;
  will-change: transform;
}

.quote {
  display: inline-block;
  color: #ffffff !important;
  font-size: 1.4em;
  font-style: italic;
  font-weight: 500;
  margin-right: 80px;
  padding: 8px 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  white-space: nowrap;
  background: rgba(0,0,0,0.6);
  border-radius: 6px;
}

.quote::before {
  content: '';
}

.quote::after {
  content: '';
}

@keyframes scroll-quotes {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause animation on hover for accessibility */
.scrolling-quotes-container:hover .scrolling-quotes-track {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quote {
    font-size: 1.4em;
    margin-right: 60px;
  }
  
  .scrolling-quotes-track {
    animation-duration: 120s;
  }
}

@media (max-width: 480px) {
  .quote {
    font-size: 1.2em;
    margin-right: 40px;
  }
  
  .scrolling-quotes-track {
    animation-duration: 100s;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .quote {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }
  
  .scrolling-quotes-container {
    background: rgba(0,115,230,0.2);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .scrolling-quotes-track {
    animation: none;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .quote {
    white-space: normal;
    text-align: center;
    max-width: 300px;
  }
}
