/* news.css — News section for puestoadedo.com
   Matches the existing site design (dark red, white cards, Segoe UI) */

.news-wrapper {
  max-width: 1400px;
  margin: 0 auto 60px;
  padding: 0 30px;
}

.news-wrapper h2.section-title {
  font-size: 2em;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 3px solid #DC143C;
}

/* Section headers (ES / EN) */
.news-lang-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8B0000;
  border-bottom: 2px solid #DC143C;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

/* Card grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 36px;
}

/* Individual card */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
  height: 100%;
  border: 1px solid rgba(139,0,0,0.08);
}

.news-card:hover {
  box-shadow: 0 8px 30px rgba(139,0,0,0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-favicon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: contain;
}

.news-source {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #DC143C;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  color: #2c2c2c;
  flex-grow: 1;
}

.news-date {
  font-size: 0.72rem;
  color: #888;
  margin-top: auto;
  padding-top: 4px;
}

/* Loading / error states */
.news-loading {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .news-wrapper {
    padding: 0 16px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-wrapper h2.section-title {
    font-size: 1.5em;
  }
}
