/* =========================================================
   BLOG PAGE — FEATURED "IN THE NEWS"
   Three image cards built from the site's own editorial
   content. Styles embedded from the in-the-news design and
   tuned to the site container + card language.
   ========================================================= */

.itn {
  --itn-navy: #1e1a5c;
  --itn-text: #111;
  --itn-blue: #5b8def;

  position: relative;
  padding: 90px 0 60px;
  background: #fff;
  font-family:"Inter", sans-serif;
  color: var(--itn-text);
}

.itn-title {
  margin: 0 0 64px;
  text-align: center;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 2.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #222;
}

/* Six-column grid: the first three cards each span 2 (2+2+2),
   so the two remaining cards can each span 3 and fill the
   second row at one-and-a-half times the width. */

.itn-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}

.itn-card {
  grid-column: span 2;
}

.itn-card:nth-child(n + 4) {
  grid-column: span 3;
}

/* --- card --- */

.itn-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  background: #fff;
  border: 1px solid #e4e7ef;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(60, 50, 140, 0.14);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.itn-card:hover {
  box-shadow: 0 14px 36px rgba(60, 50, 140, 0.2);
  transform: translateY(-4px);
}

.itn-img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(135deg, #7b6df0, #2bb4c8);
}

.itn-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 26px;
}

.itn-tag {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #17173a;
}

.itn-heading {
  margin: 16px 0 0;
  font-family: "Geist", "Inter", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #111;
}

.itn-link {
  margin-top: auto;               /* pins link to card bottom */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  font-size: 1.05rem;
  color: var(--itn-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--itn-navy);
}

.itn-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.itn-link:hover svg,
.itn-link:focus-visible svg {
  transform: translate(2px, -2px);
}

/* ===== Responsive ===== */

@media (max-width: 1200px) {
  .itn-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 clamp(20px, 3vw, 40px);
    gap: 24px;
  }

  .itn-card,
  .itn-card:nth-child(n + 4) {
    grid-column: auto;
  }

  .itn-heading {
    font-size: 1.3rem;
  }

  .itn-card {
    min-height: 0;
  }

  .itn-img {
    height: 240px;
  }
}

@media (max-width: 800px) {
  .itn {
    padding: 60px 0 40px;
  }

  .itn-title {
    margin-bottom: 40px;
  }

  .itn-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .itn-img {
    height: 220px;
  }

  .itn-link {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .itn-card,
  .itn-link svg {
    transition: none;
  }
}
