@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-load {
  opacity: 0;
}

.site-header {
  animation: slideInDown 0.6s ease-out forwards;
}

.hero-banner,
.category-hero,
.page-hero {
  animation: fadeIn 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.mission-statement {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.featured-section {
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.categories-section {
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

.disclaimer-section {
  animation: fadeInUp 0.8s ease-out 1s forwards;
  opacity: 0;
}

.featured-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.featured-card:nth-child(1) {
  animation-delay: 0.7s;
}

.featured-card:nth-child(2) {
  animation-delay: 0.85s;
}

.featured-card:nth-child(3) {
  animation-delay: 1s;
}

.category-box {
  opacity: 0;
  animation: scaleIn 0.5s ease-out forwards;
}

.category-box:nth-child(1) {
  animation-delay: 0.9s;
}

.category-box:nth-child(2) {
  animation-delay: 1s;
}

.category-box:nth-child(3) {
  animation-delay: 1.1s;
}

.category-box:nth-child(4) {
  animation-delay: 1.2s;
}

.article-card,
.category-article-card,
.news-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.article-card:nth-child(1),
.category-article-card:nth-child(1),
.news-card:nth-child(1) {
  animation-delay: 0.2s;
}

.article-card:nth-child(2),
.category-article-card:nth-child(2),
.news-card:nth-child(2) {
  animation-delay: 0.35s;
}

.article-card:nth-child(3),
.category-article-card:nth-child(3),
.news-card:nth-child(3) {
  animation-delay: 0.5s;
}

.article-card:nth-child(4),
.category-article-card:nth-child(4),
.news-card:nth-child(4) {
  animation-delay: 0.65s;
}

.article-card:nth-child(5),
.category-article-card:nth-child(5),
.news-card:nth-child(5) {
  animation-delay: 0.8s;
}

.article-card:nth-child(6),
.category-article-card:nth-child(6),
.news-card:nth-child(6) {
  animation-delay: 0.95s;
}

.history-intro,
.news-section,
.breaking-news {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.timeline-section {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.site-footer {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-section {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .category-box:nth-child(n) {
    animation-delay: 0.3s;
  }
  
  .featured-card:nth-child(n) {
    animation-delay: 0.3s;
  }
}

