/* TechSA News Scroller Styles */

.techsa-news-scroller-wrapper {
  background: linear-gradient(135deg, #fcf8e7 0%, #fcf8e7 100%);
  border-radius: 0px;
  border: 2px solid #c2fc85;
  padding: 0;
  margin: 10px 0;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  height: 60px;
  display: flex;
  align-items: center;
  margin: 1px 0;
}

/* Caption Styles */
.techsa-news-caption {
  z-index: 10;
  background: #c2fc85;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  position: relative;
}

/* Triangle arrow on the right side */
.techsa-news-caption::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid #c2fc85;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  z-index: 1;
}

.techsa-caption-text {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #000;
}

.techsa-news-scroller-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Gradient fade overlays */
.techsa-news-scroller-container::before,
.techsa-news-scroller-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Left fade overlay */
.techsa-news-scroller-container::before {
  left: 0;
  background: linear-gradient(
    to right,
    #fcf8e7 0%,
    rgba(252, 248, 231, 0) 100%
  );
}

/* Right fade overlay */
.techsa-news-scroller-container::after {
  right: 0;
  background: linear-gradient(to left, #fcf8e7 0%, rgba(252, 248, 231, 0) 100%);
}

.techsa-news-scroller-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-horizontal linear infinite;
  will-change: transform;
  padding-left: 100%;
  animation-duration: 10s !important;
}

.techsa-news-item {
  display: inline-flex;
  align-items: center;
  margin-right: 40px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

.techsa-news-icon {
  margin-right: 8px;
  font-size: 18px;
}

.techsa-news-text {
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.techsa-news-date {
  margin-left: 8px;
  margin-right: 12px;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.techsa-news-separator {
  margin-left: 8px;
  font-size: 18px;
  opacity: 0.7;
  font-weight: bold;
}

/* Scrolling Animation */
@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause on hover */
.techsa-news-scroller-wrapper:hover .techsa-news-scroller-content {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
  .techsa-news-scroller-wrapper {
    border-radius: 20px;
    height: 50px;
  }

  .techsa-news-caption {
    padding: 0 15px;
  }

  .techsa-caption-text {
    font-size: 12px;
  }

  .techsa-news-item {
    font-size: 14px;
    margin-right: 30px;
  }

  .techsa-news-icon {
    font-size: 16px;
    margin-right: 6px;
  }

  .techsa-news-date {
    font-size: 12px;
    padding: 1px 6px;
  }
}

@media (max-width: 480px) {
  .techsa-news-scroller-wrapper {
    border-radius: 0px;
    height: 45px;
    margin: 8px 0;
  }

  .techsa-news-caption {
    padding: 0 12px;
  }

  .techsa-caption-text {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .techsa-news-item {
    font-size: 13px;
    margin-right: 25px;
  }

  .techsa-news-text {
    margin-right: 6px;
  }

  .techsa-news-date {
    display: none; /* Hide dates on very small screens */
  }
}

/* Empty state */
.techsa-news-scroller-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
  border-radius: 25px;
  color: white;
  font-weight: 500;
  opacity: 0.8;
}
