/* ============================================
   Jalur Samping — Content Pages
   Blog / Tools listing, content cards
   ============================================ */

/* ---- Content Grid ---- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 640px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Content Card ---- */
.content-card {
  background: var(--card-bg);
  border: var(--border-card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.content-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.content-card:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-none);
}

/* Image placeholder */
.content-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--brand-gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  font-size: var(--fs-3xl);
  border-bottom: 2px solid var(--brand-navy);
  overflow: hidden;
}

.content-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card body */
.content-card .card-body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-card .card-title {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
  margin-bottom: var(--sp-2);
  line-height: var(--lh-tight);
}

.content-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.content-card .card-title a:hover {
  color: var(--brand-gold);
}

.content-card .card-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Content Meta ---- */
.content-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.content-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.content-meta .meta-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-light);
}

.content-meta .category-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  background: var(--brand-navy);
  color: var(--brand-gold-light);
  border-radius: var(--r-sm);
}

/* ---- Listing Header ---- */
.listing-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--border-light);
}

.listing-header h1,
.listing-header h2 {
  margin-bottom: 0;
}

.listing-header .result-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}

/* ---- Featured Content Card (horizontal) ---- */
@media (min-width: 768px) {
  .content-card.featured {
    flex-direction: row;
  }

  .content-card.featured .card-image {
    width: 280px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 2px solid var(--brand-navy);
  }

  .content-card.featured .card-body {
    padding: var(--sp-6);
  }

  .content-card.featured .card-title {
    font-size: var(--fs-2xl);
  }
}

/* ---- Content Card Grid Variants ---- */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .content-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- No Results ---- */
.no-results {
  text-align: center;
  padding: var(--sp-16) var(--pad);
  color: var(--text-muted);
}

.no-results h3 {
  color: var(--brand-navy);
  margin-bottom: var(--sp-3);
}
