/* News Carousel Styles */
.news-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px 0;
  padding: 0;
}

.carousel-wrapper {
  position: relative;
  height: 180px; /* 3 items × 60px */
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
}

.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-out;
  width: 100%;
}

.carousel-item {
  flex-shrink: 0;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-item:last-child {
  border-bottom: none;
}

.carousel-item em {
  color: #999;
  font-style: normal;
  margin-right: 8px;
}

/* Carousel Buttons */
.carousel-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 8px;
}

.carousel-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.carousel-btn:active {
  background: #e8e8e8;
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-wrapper {
    height: 120px; /* 2 items */
  }
  
  .carousel-item {
    height: 60px;
    font-size: 13px;
    padding: 10px 12px;
  }
}
