/* Daftar artikel — grid 3 kolom, kartu */
.articles-page .articles.section {
  padding-top: 5rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 42%);
}

.articles-page .articles-page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.articles-page .articles-page-header .articles-page-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #475569;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.articles-page .article-card-grid {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.articles-page .article-card-grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.articles-page .article-card-grid .article-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  background: #f1f5f9;
}

.articles-page .article-card-grid .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.articles-page .article-card-grid:hover .article-img img {
  transform: scale(1.04);
}

.articles-page .article-card-grid .article-img-placeholder {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%) !important;
}

.articles-page .article-card-grid .article-content-modern {
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.articles-page .article-card-grid .article-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.articles-page .article-card-grid .article-meta time {
  font-variant-numeric: tabular-nums;
}

.articles-page .article-card-grid .article-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.articles-page .article-card-grid .article-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.articles-page .article-card-grid .article-title a:hover {
  color: #2563eb;
}

.articles-page .article-card-grid .article-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-page .article-card-grid .article-read-more a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.articles-page .article-card-grid .article-read-more a:hover {
  color: #1d4ed8;
}

.articles-page .article-card-grid .article-read-more a i {
  transition: transform 0.2s ease;
}

.articles-page .article-card-grid .article-read-more a:hover i {
  transform: translateX(4px);
}

.articles-page .pagination {
  gap: 0.25rem;
}

.articles-page .pagination .page-link {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.45rem 0.85rem;
}

.articles-page .pagination .page-item.active .page-link {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Detail artikel — baca nyaman + sidebar */
.article-detail-page .article-detail.section {
  padding-top: 4.5rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%);
}

.article-detail-page .article-content-wrapper {
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.article-detail-page .article-header-modern {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.5rem;
}

.article-detail-page .article-header-modern .article-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.article-detail-page .article-header-modern .article-meta {
  font-size: 0.875rem;
  color: #64748b;
}

.article-detail-page .article-featured-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.article-detail-page .article-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-detail-page .article-prose {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.82;
  color: #334155;
}

.article-detail-page .article-prose > *:first-child {
  margin-top: 0;
}

.article-detail-page .article-sidebar-modern {
  position: sticky;
  top: 6.5rem;
}

.article-detail-page .sidebar-widget-modern {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.article-detail-page .sidebar-widget-modern .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}

.article-detail-page .related-article-item-modern {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.article-detail-page .related-article-item-modern:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-detail-page .related-article-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.article-detail-page .related-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-page .related-article-content h5 {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.25rem;
}

.article-detail-page .related-article-content h5 a {
  color: #0f172a;
  text-decoration: none;
}

.article-detail-page .related-article-content h5 a:hover {
  color: #2563eb;
}

.article-detail-page .related-article-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.article-detail-page .breadcrumb {
  font-size: 0.875rem;
}

@media (max-width: 991.98px) {
  .article-detail-page .article-sidebar-modern {
    position: static;
    margin-top: 2rem;
  }
}
