/* News Page Styles */
.news-page {
  padding-top: 80px;
}

/* Featured Article */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background-color: var(--background-light);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-light);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
}

.featured-category {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-date {
  color: var(--text-secondary);
}

.featured-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-excerpt {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.featured-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.author {
  font-weight: 500;
}

.featured-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

/* Category Filter */
.category-filter {
  margin-bottom: 3rem;
}

.filter-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.category-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

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

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-base);
}

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

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
  color: #6b7280;
}

.news-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-base);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.news-author {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
}

.news-read-more:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.news-read-more img {
  width: 14px;
  height: 14px;
}

/* No Articles */
.no-articles {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

/* Newsletter Signup */
.newsletter-signup {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-description {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featured-article,
  .newsletter-signup {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .category-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .news-page {
    padding-top: 70px;
  }

  .featured-article,
  .newsletter-signup {
    padding: 2rem;
  }

  .featured-title {
    font-size: var(--font-size-2xl);
  }

  .featured-excerpt {
    font-size: var(--font-size-base);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-title {
    font-size: var(--font-size-2xl);
  }

  .newsletter-description {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .featured-article,
  .newsletter-signup {
    padding: 1.5rem;
  }

  .featured-title {
    font-size: var(--font-size-xl);
  }

  .category-buttons {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.4rem 0.8rem;
    font-size: var(--font-size-sm);
  }

  .news-content {
    padding: 1.25rem;
  }
}