/* ============================================================
   INSIGHTS SECTION
   ============================================================ */

.insights-posts {
  background-color: #FBF9F5;
}

.insights-posts .container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   GRID 1 — FEATURED POST
   ============================================================ */

.insights-featured {
  margin-bottom: 10px;
  padding-bottom: 53px;
  padding-top: 53px;
}

.insight-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background-color: white;
  padding: 38px 58px;
  border-radius: 10px;
}

.insight-featured-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
  padding-block: 26px;
}

.divider {
  width: 100%;
  height: 2px;
  background-color: #BAA874;
  /* warm amber accent */
}

.insight-featured-content h2 {
  font-family: 'Sen';
  font-style: medium;
  font-size: 40px !important;
  font-weight: 500;
  color: #272346;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -3%;
}

.insight-featured-content p {
  font-family: 'Sen';
  font-size: 16px;
  color: #272346;
  line-height: 140%;
  letter-spacing: -2%;
  font-weight: 500;
  margin: 0;
}

.insight-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.insight-featured-meta img,
.insight-card-meta img {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.insight-featured-meta img {
  width: 70px;
  height: 70px;
}

.insight-card-meta img {
  width: 70px;
  height: 70px;
}

.insight-featured-meta div,
.insight-card-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  justify-content: center;
  font-family: 'Sen';
}

.author-name {
  font-family: 'Sen';
  font-size: 24px;
  font-weight: 500;
  color: #C7B299;
  line-height: 1.2;
  letter-spacing: -3%;
}

.post-date {
  font-family: 'Sen';
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -2%;
  color: #C7B299;
}

.insight-featured-image {
  border-radius: 5px;
  overflow: hidden;
  /* aspect-ratio: 4 / 3; */
  padding: 10px
}

.insight-featured-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  min-height: 500px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

/* ============================================================
   SHARED BUTTON STYLES
   ============================================================ */


.read-more {
  cursor: pointer;
  max-width: 130px;
}

/* ============================================================
   GRID 2 — CARD GRID
   ============================================================ */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.insight-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  border-radius: 10px
}

/* First 2 cards span 3 columns each (2 cards across 6 cols) */
.insight-card:nth-child(1),
.insight-card:nth-child(2) {
  grid-column: span 3;
}

.insight-card:nth-child(1) .insight-card-image img,
.insight-card:nth-child(2) .insight-card-image img {
  min-height: 473px;
  max-height: 473px;
  object-fit: cover;
}

.insight-card:nth-child(1) .insight-card-content h3,
.insight-card:nth-child(2) .insight-card-content h3 {
  font-size: 40px;
}


.insight-card>a {
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  text-decoration: none;
  color: inherit;
  gap: 32px
}

.insight-card-image {
  overflow: hidden;
}

.insight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 309px;
  max-height: 309px;
}

.insight-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.insight-card-content a h3 {
  font-size: 30px;
  margin-bottom: 32px
}

.insight-card-content h3 {
  font-family: 'Sen';
  font-size: 40px;
  font-weight: 500;
  color: #272346;
  line-height: 120%;
  letter-spacing: -3%;
  margin: 0;
}

.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  /* margin-top: auto; */
  justify-content: space-between;
}

.insight-card-meta a:first-of-type {
  display: flex;
  align-items: center;
  gap: 10px;
  color: red !important;
}

.insight-card-meta:first-child img {
  height: 70px;
  width: 70px;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.insights-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  padding-bottom: 28px
}

.insights-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 45px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.insights-pagination .page-numbers li a,
.insights-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sen', sans-serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  color: #C7B29940;
  background: none;
  border: none;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s ease;
}

.insights-pagination .page-numbers li a:hover {
  color: #C7B29940;
  background: none;
  border: none;
}

.insights-pagination .page-numbers li span.current,
.insights-pagination .page-numbers li span[aria-current="page"],
.insights-pagination .page-numbers li a.is-current {
  color: #C7B299 !important;
  background: none;
  border: none;
  font-weight: 500;
}

/* prev / next arrows */
.insights-pagination .page-numbers li a.prev,
.insights-pagination .page-numbers li a.next {
  font-size: 15px;
  color: #C7B299;
  border: none;
  background: none;
}

.insights-pagination .page-numbers li span.prev,
.insights-pagination .page-numbers li span.next {
  font-size: 15px;
  color: #C7B299;
  border: none;
  background: none;
}

.insights-pagination .page-numbers li a.prev:hover,
.insights-pagination .page-numbers li a.next:hover {
  color: #C7B299;
  background: none;
  border: none;
}

.disabled {
  color: #C7B29940 !important;
  pointer-events: none;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
  .insight-featured-card {
    gap: 32px 0;
    padding: 10px 20px
  }

  .insights-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px 0;
  }
}

/* Mobile: featured stacks, grid shows 1 col (2×2 = 4 cards visible via scroll) */
@media (max-width: 767px) {
  .insight-featured-image img {
    min-height: 360px;
    max-height: 360px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }

  .insights-featured {
    padding-top: 0;
    padding-bottom: 22px
  }


  .insight-card-content a h3 {
    margin-bottom: 16px
  }

  .insights-posts {
    padding: 40px 0 40px;
  }

  .insight-featured-content {
    /* gap: 16px; */
    padding-top: 0;
    padding-inline: 15px;
    gap: 16px;
    padding-block: 20px
  }

  .insight-featured-content p {
    margin-top: 15px
  }

  /* Featured: stack image above content */
  .insight-featured-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }


  .insight-featured-image {
    order: -1;
    /* image on top */
    padding: 0;
  }

  .insight-featured-content h2 {
    font-size: 1.4rem;
  }

  /* Card grid: 2-column, shows 4 cards (2 rows) before pagination */
  .insights-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 32px 0;
  }

  /* Limit visible cards to 4 on mobile, hide the rest */
  .insights-grid .insight-card:nth-child(n+5) {
    display: none;
  }

  .insight-card-content {
    padding-inline: 15px;
    gap: 16px;
  }

  .insight-card-content h3 {
    font-size: 0.9rem;
  }

  .btn-read-more-sm {
    display: none;
    /* too cramped on mobile cards */
  }

  .insight-card-meta {
    gap: 32px;
    flex-direction: column;
    align-items: flex-start;
  }

  .insight-featured-meta {
    margin-bottom: 18px
  }

  .insights-pagination .page-numbers {
    padding: 0;
    padding-top: 20px
      /* gap: 16px; */
  }

  .insights-pagination {
    margin-bottom: 0;
    padding-bottom: 5px
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .insights-posts .container {
    padding: 0 16px;
  }

}