/* ============================================================
   NUSANTARA INSIGHT — Homepage Styles
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section {
  margin-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* Main hero */
.hero-main a {
  display: block;
  color: inherit;
  transition: opacity 0.2s;
}
.hero-main a:hover { opacity: 0.85; }

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 32px;
}
.img-placeholder.sm { font-size: 22px; }

.hero-content {}
.hero-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 8px 0 10px;
  transition: color 0.2s;
}
.hero-main a:hover .hero-title { color: var(--accent); }

.hero-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-meta i { font-size: 13px; }

/* Side articles */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.hero-side-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item a { display: block; color: inherit; transition: opacity 0.2s; }
.hero-side-item a:hover { opacity: 0.8; }
.side-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 6px 0 5px;
  transition: color 0.2s;
}
.hero-side-item a:hover .side-title { color: var(--accent); }
.side-meta { font-size: 11px; color: var(--text-muted); }

/* ── Section Divider ──────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 16px;
}
.section-divider span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Article List ─────────────────────────────────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.article-row:last-child { border-bottom: none; }

.article-row-thumb {
  width: 100px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: block;
  transition: opacity 0.2s;
}
.article-row-thumb:hover { opacity: 0.85; }
.article-row-thumb .img-placeholder { height: 100%; }

.article-row-body { flex: 1; }
.article-row-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin: 6px 0 6px;
}
.article-row-title a {
  color: var(--text-primary);
  transition: color 0.2s;
}
.article-row-title a:hover { color: var(--accent); }
.article-row-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Load More ────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  padding: 28px 0 8px;
}
.btn-load-more {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: var(--radius-md);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-load-more:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--navy-pale);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
@media (max-width: 600px) {
  .article-row-thumb { width: 72px; height: 60px; }
  .article-row-excerpt { display: none; }
}
