@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

.marquee-container {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.marquee {
  display: flex;
  gap: 1rem;
  position: absolute;
  animation: marquee 60s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

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

.news-card {
  flex: 0 0 300px;
  border: none;
  border-radius: 15px;
  height: 350px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card .card-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.news-card .card-text {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.5rem;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.news-info {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.btn-read-more {
  align-self: flex-start;
  background-color: #1a73e8;
  color: #ffffff;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
}

.news-info .float-end {
  color: red;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 250px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fa, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fa, transparent);
}