/* === NEWS PAGE STYLES === */

/* Mini Hero */
#news-hero.mini-hero {
  min-height: 35vh;
  padding: 120px 0 60px;
}

#news-hero .hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

#news-hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 25px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--bg);
}

/* News List Container */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* News Item - Professional List View */
.news-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
}

.news-item.show {
  opacity: 1;
  transform: translateY(0);
}

.news-item:hover {
  border-color: var(--primary);
  background: rgba(255, 42, 42, 0.05);
  transform: translateX(8px);
}

/* News Date */
.news-date {
  text-align: center;
}

.news-date .date-day {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.news-date .date-month {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-date .date-year {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

/* News Content */
.news-content {
  min-width: 0; /* Prevents overflow */
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.news-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.news-excerpt {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* News Link */
.news-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.news-item:hover .news-link {
  background: var(--primary);
  color: var(--bg);
  transform: translateX(4px);
}

/* Load More */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

#loadMoreBtn {
  min-width: 200px;
}

/* Newsletter Form */
.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form .form-input {
  flex: 1;
  min-width: 250px;
}

/* Empty State */
.news-empty {
  text-align: center;
  padding: 80px 20px;
}

.news-empty i {
  font-size: 4rem;
  color: var(--muted);
  margin-bottom: 20px;
  opacity: 0.5;
}

.news-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.news-empty p {
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  .news-date .date-day {
    font-size: 1.5rem;
  }
  
  .news-date .date-month,
  .news-date .date-year {
    font-size: 0.75rem;
  }
  
  .news-category {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .news-title {
    font-size: 1.1rem;
  }
  
  .news-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
  
  .news-link {
    display: none; /* Hide arrow on mobile for better space usage */
  }
  
  .newsletter-form .form-group {
    flex-direction: column;
  }
  
  .newsletter-form .form-input {
    min-width: 100%;
  }
}

/* Animation Delays */
.news-item:nth-child(1) { transition-delay: 0.05s; }
.news-item:nth-child(2) { transition-delay: 0.1s; }
.news-item:nth-child(3) { transition-delay: 0.15s; }
.news-item:nth-child(4) { transition-delay: 0.2s; }
.news-item:nth-child(5) { transition-delay: 0.25s; }
.news-item:nth-child(6) { transition-delay: 0.3s; }