/* News page specific styles */

/* Hero Section */
.news-hero {
  background: linear-gradient(
    135deg,
    rgba(163, 191, 250, 0.1),
    rgba(255, 232, 214, 0.1)
  );
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.news-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0.05;
  z-index: -1;
}

body[data-theme="dark"] .news-hero .hero-background {
  opacity: 0.1;
}

.news-hero .hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.news-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.news-hero .hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted-light);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body[data-theme="dark"] .news-hero .hero-subtitle {
  color: var(--text-muted-dark);
}

/* News Articles Section */
.news-articles {
  background: var(--bg-light);
}

body[data-theme="dark"] .news-articles {
  background: var(--bg-dark);
}

.news-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(163, 191, 250, 0.1);
  height: 100%;
}

body[data-theme="dark"] .news-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(163, 191, 250, 0.2);
}

.news-image {
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

body[data-theme="dark"] .news-category {
  background: var(--secondary-dark);
}

.news-content {
  padding: 2rem;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .news-title {
  color: var(--text-dark);
}

.news-excerpt {
  color: var(--text-muted-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

body[data-theme="dark"] .news-excerpt {
  color: var(--text-muted-dark);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-date {
  color: var(--text-muted-light);
  font-size: 0.875rem;
}

body[data-theme="dark"] .news-date {
  color: var(--text-muted-dark);
}

.news-date i {
  margin-right: 8px;
}

.news-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .news-link {
  color: var(--secondary-dark);
}

.news-link:hover {
  color: var(--accent-color);
}

body[data-theme="dark"] .news-link:hover {
  color: var(--accent-dark);
}

.load-more-btn {
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-hero {
    padding: 100px 0 60px;
  }

  .news-hero .hero-title {
    font-size: 2.5rem;
  }

  .news-hero .hero-subtitle {
    font-size: 1.125rem;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-image img {
    height: 200px;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
