/* ============================================================
   INSIGHTS INDEX PAGE
   ============================================================ */

.insights-index-page {
  background: var(--secondary-dark);  /* was var(--white) */
  min-height: 60vh;
  padding: 5rem 0 6rem;
}

/* ── Page header ─────────────────────────────────────────── */

.insights-index-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.insights-index-title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);  /* was var(--secondary-black) */
  margin: 0 0 0.75rem;
}

.insights-index-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);  /* was var(--secondary-gray) */
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Tag filter row ──────────────────────────────────────── */

.insights-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.insights-filter-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);  /* was var(--secondary-gray) */
  flex-shrink: 0;
}

.insights-filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.insights-filter-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);  /* was #d0d0d0 */
  background: transparent;                          /* was var(--white) */
  color: rgba(255, 255, 255, 0.7);                 /* was var(--secondary-gray) */
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

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

.insights-filter-btn.is-active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
}

/* ── Article grid ────────────────────────────────────────── */

.insights-index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Cards ───────────────────────────────────────────────── */

.insights-index-card {
  display: flex;
  border: 0.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease;
  min-height: 100px;
}

.insights-index-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Card image */
.insights-index-card__image-wrap {
  width: 150px;
  flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
  display: block;
}

.insights-index-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.insights-index-card:hover .insights-index-card__img {
  transform: scale(1.04);
}

.insights-index-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--secondary-dark);
}

/* Card body */
.insights-index-card__body {
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.insights-index-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.insights-index-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 6px;
}

.insights-index-card__title a {
  color: var(--secondary-black);
  text-decoration: none;
}

.insights-index-card__title a:hover {
  color: var(--primary-green);
}

.insights-index-card__meta {
  font-size: 11px;
  color: var(--secondary-gray);
  margin: 0;
}

/* ── No results message ──────────────────────────────────── */

.insights-no-results {
  display: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);  /* was var(--secondary-gray) */
  font-size: 14px;
  padding: 3rem 0;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .insights-index-page {
    padding: 4rem 0 5rem;
  }

  .insights-index-grid {
    grid-template-columns: 1fr;
  }

  .insights-index-card__image-wrap {
    width: 110px;
  }
}