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

/* --- News Filter --- */
.news-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 24px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-light);
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

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

/* --- News Card --- */
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-card-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.news-card-cover .news-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary-dark);
}

.news-card-body {
  padding: 24px;
}

.news-card-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
}

.news-card:hover .news-card-link {
  gap: 10px;
}

/* --- News Empty State --- */
.news-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.news-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ============================
   ARTICLE HERO
   ============================ */
.article-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #e8f5f5 0%, #f0ebe4 100%);
  text-align: center;
}

.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(10,90,105,0.1);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.article-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  gap: 12px;
}

.article-meta-sep {
  color: var(--border);
}

/* ============================
   ARTICLE BODY
   ============================ */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
  line-height: 2;
  font-size: 1.05rem;
  color: var(--text-body);
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 36px 0 16px;
  color: var(--text-dark);
}

.article-body h4 {
  font-size: 1.1rem;
  margin: 28px 0 12px;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 12px 0 20px 20px;
  list-style: disc;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.9;
}

.article-body strong {
  color: var(--text-dark);
}

.article-back {
  text-align: center;
  padding: 40px 0 80px;
}

/* ============================
   NEWS PREVIEW (index.html)
   ============================ */
.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-preview-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.news-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-preview-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
}

.news-preview-body {
  padding: 20px 24px 24px;
}

.news-preview-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.news-preview-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-preview-summary {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-preview-grid {
    grid-template-columns: 1fr;
  }
  .article-hero h1 {
    font-size: 1.6rem;
  }
  .article-body {
    font-size: 0.98rem;
    padding: 40px 16px;
  }
  .news-filter {
    gap: 8px;
  }
  .filter-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}
