.news-container {
  max-width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-header {
  text-align: center;
  margin-bottom: 40px;
}
.news-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 15px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #667eea #f1f1f1;
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

.carousel-track {
  display: flex;
  /* animation: scroll 60s linear infinite; */
  gap: 25px;
  padding: 10px 0;
  transition: transform 0.3s ease;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track.user-scrolling {
  animation-play-state: paused;
}

.carousel-track.manual-control {
  animation: none;
  transform: none;
}

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

.news-item {
  list-style: none;
  min-width: 350px;
  max-width: 350px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.news-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.news-item:hover::before {
  transform: scaleX(1);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image {
  transform: scale(1.05);
}

.news-content {
  padding: 25px;
  height: calc(100% - 200px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item:nth-child(odd) .news-content {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.news-item:nth-child(even) .news-content {
  background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.news-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item:hover .news-title {
  color: #667eea;
}

.news-description {
  color: #5a6c7d;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #667eea;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 25px;
  border: 2px solid #667eea;
  background: transparent;
  align-self: flex-start;
}

.read-more:hover {
  background: #667eea;
  color: white;
  transform: translateX(3px);
}

.read-more::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(3px);
}

.carousel-controls {
  text-align: center;
  margin-top: 30px;
}

.control-info {
  background: rgba(102, 126, 234, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: #667eea;
  font-size: 0.9rem;
}

.pause-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pause-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.speed-controls {
  margin-top: 15px;
}

.speed-btn {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.speed-btn:hover,
.speed-btn.active {
  background: #667eea;
  color: white;
}

@media (max-width: 768px) {
  .news-container {
    padding: 20px;
    margin: 10px;
  }

  .news-header h1 {
    font-size: 2rem;
  }

  .news-item {
    min-width: 300px;
    max-width: 300px;
  }

  .news-content {
    padding: 20px;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .carousel-track {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .news-item {
    min-width: 280px;
    max-width: 280px;
  }

  .carousel-track {
    gap: 10px;
  }
}
