/* =========================================================
   STARWEB DESIGNS - INSIGHTS PAGE
   Page-specific styles only. Shared reset/theme comes from landing-page.css.
========================================================= */

.page-insights {
  background: #f9fafb;
  color: #0a1a33;
}

.page-insights main {
  background: #f9fafb;
}

.page-insights .page-hero h1,
.page-insights .page-hero p {
  color: #fff;
}

.insights-section {
  padding: 56px 20px 88px;
  background: #f9fafb;
}

.insights-heading {
  width: min(1380px, 100%);
  margin: 0 auto 30px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(10, 26, 51, 0.18);
}

.insights-heading h2 {
  margin: 0;
  color: #0f2341;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.insights-grid {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.insight-card {
  overflow: hidden;
  border: 1px solid rgba(10, 26, 51, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 26, 51, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(54, 163, 255, 0.18);
  box-shadow: 0 18px 42px rgba(10, 26, 51, 0.13);
}

.insight-card__media {
  display: block;
  aspect-ratio: 1.22 / 1;
  overflow: hidden;
  background: #eef4fb;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.03);
}

.insight-card__body {
  padding: 28px 30px 30px;
}

.insight-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: #5f6c7b;
  font-size: 0.94rem;
}

.insight-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.insight-pill--blue {
  background: #e9f2ff;
  color: #1f6fd4;
}

.insight-pill--cyan {
  background: #e8f6ff;
  color: #1378ce;
}

.insight-pill--purple {
  background: #f0e8ff;
  color: #6e35e8;
}

.insight-card h2 {
  margin: 0 0 14px;
  color: #0f2341;
  font-size: clamp(1.45rem, 1.8vw, 1.78rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0;
}

.insight-card h2 a {
  color: inherit;
  text-decoration: none;
}

.insight-card p {
  margin: 0 0 24px;
  color: #586270;
  font-size: 1.05rem;
  line-height: 1.55;
}

.insight-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #586270;
  font-size: 0.96rem;
}

.insight-card__author span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 35%, #1d75f0 0 32%, transparent 33%),
    radial-gradient(circle at 50% 105%, #1d75f0 0 44%, transparent 45%),
    #e9f2ff;
  flex: 0 0 auto;
}

.insight-card__author strong {
  color: #586270;
  font-weight: 500;
}

.insight-card__link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #126fea;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.insight-card__link:hover {
  color: #0a1a33;
}

.insight-card__link--purple {
  color: #6e35e8;
}

@media (max-width: 1120px) {
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .insights-section {
    padding: 36px 14px 64px;
  }

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

  .insight-card__body {
    padding: 24px 24px 26px;
  }

  .insight-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
