/* ============================================================
   News Page Styles — GRIND Lab
   ============================================================ */

/* ── Filter Bar ── */
.filter-bar {
  padding: 28px 28px 0;
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--text-gray); margin-right: 4px; white-space: nowrap; }
.filter-btn {
  padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-gray);
  background: var(--white); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: var(--white); border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,150,183,0.3);
}

/* ── News Search ── */
.news-search-wrap {
  max-width: 1200px; margin: 0 auto; padding: 20px 28px 0;
  display: flex; justify-content: flex-end;
}
.news-search {
  position: relative; width: 280px;
}
.news-search input {
  width: 100%; padding: 10px 16px 10px 40px;
  border-radius: 50px; border: 1.5px solid var(--border);
  font-size: 14px; font-family: var(--font); color: var(--text-dark);
  background: var(--white); outline: none; transition: var(--transition);
}
.news-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,150,183,0.1); }
.news-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 14px; }

/* ── News Grid ── */
.news-section { padding: 40px 28px 88px; }
.news-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}

/* ── Featured News (large top card) ── */
.news-featured {
  max-width: 1200px; margin: 0 auto; padding: 40px 28px 0;
}
.news-featured-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.news-featured-img {
  background: linear-gradient(135deg, #0a3d5c, var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: rgba(255,255,255,0.2);
  position: relative; overflow: hidden; min-height: 300px;
}
.news-featured-img .news-emoji { font-size: 80px; opacity: 0.6; }
.news-featured-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.news-featured-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.news-featured-body h2 { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 14px; }
.news-featured-body h2 a:hover { color: var(--accent-light); }
.news-featured-body p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 24px; }
.news-featured-footer { display: flex; align-items: center; gap: 16px; }
.news-author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--white); font-weight: 700;
}
.author-name { font-size: 13px; color: rgba(255,255,255,0.65); }

/* ── Regular News Card ── */
.news-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: var(--transition); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img {
  width: 100%; height: 190px;
  background: linear-gradient(135deg, var(--light), #d1e8ef);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative; overflow: hidden;
}
.news-card-img .cat-icon { position: absolute; top: 12px; right: 12px; }
.news-card-body { padding: 22px; }
.news-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.news-card-date { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.news-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--text-dark); }
.news-card-body h3 a:hover { color: var(--accent); }
.news-card-body p { font-size: 13.5px; color: var(--text-gray); line-height: 1.65; margin-bottom: 16px; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-light); }
.read-more { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.read-more:hover { gap: 9px; }

/* ── Pagination ── */
.pagination-wrap { max-width: 1200px; margin: 48px auto 0; padding: 0 28px; display: flex; justify-content: center; }
.pagination { display: flex; align-items: center; gap: 6px; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); color: var(--text-gray);
  background: var(--white); transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
.page-btn.prev, .page-btn.next { width: auto; padding: 0 14px; gap: 6px; font-size: 13px; }

/* ── Sidebar (for future use) ── */
.news-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.news-sidebar {}
.sidebar-widget { background: var(--lighter); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; border: 1px solid var(--border); }
.sidebar-widget h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.sidebar-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.sidebar-tag { padding: 5px 12px; border-radius: 50px; background: var(--white); border: 1px solid var(--border); font-size: 12px; color: var(--text-gray); cursor: pointer; transition: var(--transition); }
.sidebar-tag:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── Empty state ── */
.news-empty { text-align: center; padding: 80px 28px; color: var(--text-light); }
.news-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.4; }
.news-empty p { font-size: 16px; }

/* ── Responsive ── */
@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .news-featured-card { grid-template-columns: 1fr; }
  .news-featured-img { min-height: 200px; }
  .news-grid { grid-template-columns: 1fr; }
}
