/* Additional CSS for Enhanced News Page */

/* News Thumbnail Styles */
.news-thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

/* Clickable News Items */
.clickable-news {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 0.5rem;
  margin: -0.5rem;
}

.clickable-news:hover {
  background-color: rgba(40, 167, 69, 0.05);
  transform: translateX(5px);
}

.clickable-news:hover .news-thumbnail {
  border-color: var(--primary-green);
  transform: scale(1.05);
}

/* Dynamic Calendar Navigation */
.calendar-nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Calendar Animation */
.calendar-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.calendar-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* News Modal Enhancements */
.news-modal-image {
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

/* Category Badge */
.category-badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
}

/* Responsive News Items */
@media (max-width: 768px) {
  .news-thumbnail {
    width: 60px;
    height: 45px;
  }

  .clickable-news .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .clickable-news .news-thumbnail {
    margin: 0 auto 0.5rem auto;
  }
}

/* Loading Animation for Calendar */
.calendar-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.calendar-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
