/* ============================================================
   MEILS – NEWS & MEDIA PAGE
============================================================ */

/* ── Hero ── */
.news-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 55%, #1a8080 100%);
  padding: 120px 0 64px; position: relative; overflow: hidden;
}
.news-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(62,201,110,.13) 0%, transparent 60%);
}
.news-hero-content { position: relative; z-index: 1; max-width: 720px; }
.news-hero-content h1 {
  font-size: 2.7rem; font-weight: 800; color: #fff; line-height: 1.2; margin: 14px 0 16px;
}
.news-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 24px;
}
.news-hero-sources {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.news-hero-sources > span:first-child {
  font-size: .8rem; color: rgba(255,255,255,.65); font-weight: 600;
}
.news-src-badge {
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; border: 1.5px solid;
  background: rgba(255,255,255,.06);
}

/* ── Feed section ── */
.news-feed { padding: 56px 0 80px; background: var(--gray-bg); }

/* Filter bar */
.news-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.news-filter-btn {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--gray-border);
  background: #fff; color: var(--text-muted); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .18s;
}
.news-filter-btn:hover { border-color: var(--cta-orange); color: var(--cta-orange); }
.news-filter-btn.active {
  background: var(--cta-orange); border-color: var(--cta-orange); color: #fff;
}

/* Loading */
.news-loading {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 80px 0; color: var(--text-muted); font-size: .9rem;
}
.news-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--gray-border);
  border-top-color: var(--teal-mid);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error / Empty */
.news-error, .news-empty {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 80px 0; color: var(--text-muted); text-align: center;
}
.news-error > i, .news-empty > i {
  font-size: 2.5rem; color: var(--gray-border);
}
.news-error h3, .news-empty h3 { font-size: 1.1rem; color: var(--text-dark); }
.news-error p, .news-empty p { font-size: .88rem; max-width: 380px; }

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card */
.news-card {
  background: #fff; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.news-card:hover {
  border-color: var(--teal-mid); box-shadow: var(--shadow); transform: translateY(-3px);
}
.news-card-featured {
  grid-column: 1 / -1; flex-direction: row;
}

/* Image */
.news-card-img {
  height: 180px; background-size: cover; background-position: center;
  background-color: var(--gray-bg); flex-shrink: 0;
}
.news-card-featured .news-card-img { width: 360px; height: auto; }
.news-card-img-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--gray-border);
}

/* Body */
.news-card-body {
  padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.news-card-source {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  width: fit-content;
}
.news-card-title {
  font-size: .95rem; font-weight: 700; color: var(--text-dark); line-height: 1.45; flex: 1;
}
.news-card-featured .news-card-title { font-size: 1.15rem; }
.news-card-title a {
  color: inherit; text-decoration: none;
  transition: color .15s;
}
.news-card-title a:hover { color: var(--teal-mid); }
.news-card-summary {
  font-size: .8rem; color: var(--text-muted); line-height: 1.7;
}
.news-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--gray-border);
}
.news-card-date {
  font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}
.news-card-link {
  font-size: .75rem; font-weight: 700; color: var(--teal-mid);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  transition: color .15s;
}
.news-card-link:hover { color: var(--teal-dark); }

/* Meta bar */
.news-meta {
  margin-top: 32px; text-align: center;
  font-size: .8rem; color: var(--text-muted);
}

/* btn-outline-teal (shared with community.css but safe to re-declare) */
.btn-outline-teal {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--cta-orange); color: var(--cta-orange);
  background: transparent; padding: 10px 22px; border-radius: 8px;
  font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline-teal:hover { background: var(--cta-orange); color: #fff; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card-featured { flex-direction: column; }
  .news-card-featured .news-card-img { width: 100%; height: 200px; }
}
@media (max-width: 640px) {
  .news-hero-content h1 { font-size: 2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-filter-bar { gap: 6px; }
  .news-filter-btn { font-size: .75rem; padding: 6px 14px; }
}
