/* Infinite Marquee Styles */
.news-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 20px 5%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 2%,
    black 98%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 2%,
    black 98%,
    transparent
  );
}

.news-marquee-track {
  display: flex;
  width: max-content;
  /* animation removed for JS control */
  gap: 30px;
  cursor: grab;
}

.news-marquee-track:active {
  cursor: grabbing;
}

.news-card-marquee {
  width: 350px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border-radius: 15px; /* Premium rounded corners */
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Soft premium shadow */
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.news-card-marquee:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-card-marquee .card-inner-click-target {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-marquee .card-img-top {
  height: 220px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

.news-card-marquee:hover .card-img-top {
  transform: scale(1.05); /* Subtle zoom effect */
}

.news-card-marquee .card-body {
  padding: 1.5rem;
  flex: 1; /* Check body takes remaining space */
  display: flex;
  flex-direction: column;
}

.news-card-marquee .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  height: 3.3em; /* Limit to ~2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card-marquee .news-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 10px;
}

.news-card-marquee .news-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit description lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em; /* approx 2 lines * 1.35? */
  line-height: 1.4;
}

.news-card-marquee .read-more {
  margin-top: auto; /* Push to bottom */
}

.news-card-marquee .badge-new {
  background: linear-gradient(45deg, #ff357a, #fff172);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7em;
  vertical-align: middle;
  margin-right: 5px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(255, 53, 122, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-card-marquee {
    width: 280px;
  }
  .news-card-marquee .card-img-top {
    height: 180px;
  }
}
