/* Tighten the intro block so the article list starts sooner */
.insights-intro { padding-top: 25px; padding-bottom: 40px; font-size: 2rem; }
.insights-intro .section-title { margin-bottom: 0; }

/* Left-align heading */
.insights-intro .section-title {
  max-width: 1200px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.insights-intro .section-title h2 {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.insights-intro .section-title .eyebrow { justify-content: flex-start; }
.insights-intro .section-title .lede { margin-left: 0; }

/* Article Card Enhancements */
.article-card { position: relative; }

.article-index {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: #fff;
  background: rgba(0,30,74,.55); backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.35);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.article-card:hover .article-index {
  background: var(--gold); color: var(--navy); border-color: var(--gold);
  transform: scale(1.08);
}

.article-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--signal));
  transition: width .45s ease; z-index: 3;
}
.article-card:hover::before { width: 100%; }

.article-body .eyebrow .mark { transition: transform .4s ease; }
.article-card:hover .article-body .eyebrow .mark { transform: rotate(225deg); }

.article-body h2 { transition: transform .3s ease, color .3s ease; }
.article-card:hover .article-body h2 { transform: translateX(3px); }

/* Grid Layout */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-cover {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.article-body h2 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.article-body .body-sm {
  font-size: .9rem;
}

.read-more-btn {
  margin-top: 12px;
  margin-bottom: 8px;
  align-self: flex-start;
}

/* Fix spacing issue when expanding text */
.article-full {
  margin-top: 8px;
}

.article-full > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.article-full h4 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.article-full p {
  margin-bottom: 8px;
}

.callout-line {
  margin-top: 6px;
  margin-bottom: 6px;
}

.tag-row {
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .article-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .article-list { grid-template-columns: 1fr; }
  .article-cover { height: 180px; }
}

/* ==========================================================================
   Responsive Styles (Tablet & Mobile)
   ========================================================================== */

/* Tablet View (1024px and below) */
@media (max-width: 1024px) {
  /* 2 cards per row on tablet */
  .article-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .insights-intro {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .insights-intro .section-title h2 {
    font-size: 1.8rem;
  }

  .article-cover {
    height: 180px;
  }

  .article-body {
    padding: 18px;
  }

  .article-body h2 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .article-body .body-sm {
    font-size: 0.875rem;
  }

  .callout-line {
    font-size: 0.85rem;
    padding: 8px 10px;
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

/* Small Tablet / Large Mobile View (820px and below) */
@media (max-width: 820px) {
  .article-list {
    gap: 16px;
  }

  .article-cover {
    height: 160px;
  }

  .article-body {
    padding: 16px;
  }
}

/* Mobile View (680px and below) */
@media (max-width: 680px) {
  /* 1 card per row on small screens */
  .article-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-cover {
    height: 180px;
  }

  .insights-intro .section-title h2 {
    font-size: 1.5rem;
  }
}