/* ==========================================================================
   GRID ARTIKEL & EDUKASI KESEHATAN - RS ISLAM WONOSOBO
   Extracted from app/Views/frontend/artikel.php (Stage 3.4D.4)
   ========================================================================== */

/* Clean Article Grid UI — Forest Green x Champagne Gold */
.article-header {
  padding: 20px 0 28px;
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--rsi-gold-champagne, #C6A45A);
  text-align: center;
}
@media (min-width: 768px) {
  .article-header {
    padding: 28px 0 36px;
  }
}
.article-header-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rsi-forest-primary, #174C3C);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.article-header-desc {
  font-size: 1.1rem;
  color: #52635B;
  max-width: 600px;
  margin: 0 auto;
}
.article-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.05);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C6A45A 0%, #D4AF37 50%, #C6A45A 100%);
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.25s ease, height 0.25s ease;
}
.article-card:hover::before {
  opacity: 1;
  height: 3.5px;
}
.article-card:hover {
  border-color: var(--rsi-gold-champagne, #C6A45A);
  box-shadow: 0 16px 32px rgba(198, 164, 90, 0.16), 0 4px 16px rgba(6, 78, 59, 0.06);
  transform: translateY(-4px);
}
.article-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}
.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.article-card:hover .article-img-wrap img {
  transform: scale(1.04);
}
.article-badge {
  background: var(--rsi-gold-soft, #F4EBD0);
  color: var(--rsi-gold-text, #765900);
  border: 1px solid rgba(198, 164, 90, 0.45);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 12px;
}
.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.article-title a:hover {
  color: var(--rsi-forest-primary, #174C3C);
}
.article-meta {
  color: #64748B;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-meta i {
  color: var(--rsi-gold-champagne, #C6A45A);
}
