/* ─── Insights / Resources Section ─── */
.insights-card-main {
  /* background: #f7f8fb; */
  padding: 13rem 0;
  background-image: url("../../images/resource-bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.insights-container {
  max-width: 100%;
  margin: 0 auto;
}

.insights-card-main .container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 2rem; */
  text-align: center;
}

.insights-card-main .container > div:first-child {
  margin-bottom: 3rem;
}

.insights-heading {
  font-size: 60px;
  font-weight: bold;
  text-transform: uppercase;
  font-family: "Inter", Aeonik, "Segoe UI", sans-serif;
  color: #0d1b2e;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
}

.insights-card-main .container > div:first-child p {
  font-size: 20px;
  color: #5a6575;
  margin: 0;
  line-height: 1.6;
}

/* ─── Cards Grid ─── */
.insights-card-main .bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
  margin-bottom: 2.5rem;
}

/* ─── Individual Insight Card ─── */
.insight-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  height: 550px;
  width: 380px;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.06);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.insight-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.insight-card-body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Title row: title + arrow */
.insight-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.insight-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0d1b2e;
  line-height: 1.35;
  flex: 1;
}

.insight-card-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: #0d1b2e;
  margin-top: 3px;
}

/* Excerpt */
.insight-card-excerpt {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #5a6575;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Author row */
.insight-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 0;
}

.insight-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.insight-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insight-card-author-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0d1b2e;
  line-height: 1.3;
}

.insight-card-date {
  margin: 0;
  font-size: 14px;
  color: #8592a6;
  line-height: 1.3;
}

/* ─── View All Button ─── */
.insights-view-all-btn {
  display: inline-block;
  padding: 0.8rem 4.75rem;
  background: #4873b7;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.insights-view-all-btn:hover {
  background: #1a2d47;
  transform: translateY(-2px);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .insights-heading {
    font-size: 2.4rem;
  }

  .insights-card-main .bottom-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .insight-card-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .insights-card-main {
    padding: 8rem 0;
  }
  .insight-card {
    height: 480px;
    width: auto;
  }

  .insights-heading {
    font-size: 2rem;
  }

  .insights-card-main .bottom-row {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .insight-card-image {
    height: 220px;
  }

  .insight-card-title {
    font-size: 1.2rem;
  }
  .insight-card-title {
    font-size: 2rem;
  }
  .insight-card-excerpt {
    font-size: 1.575rem;
  }
}

@media (max-width: 480px) {
  .insights-card-main .container {
    padding: 0 1rem;
  }

  .insights-heading {
    font-size: 1.75rem;
  }

  .insight-card-body {
    padding: 1.25rem;
  }

  .insight-card-image {
    height: 190px;
  }

  .insight-card-title {
    font-size: 2rem;
  }

  .insight-card-excerpt {
    font-size: 1.575rem;
  }
}
