/* ============================================================
   Resources: the top page and the three listings (Blog, Insights,
   Case Studies). Shared header, footer and buttons live in styles.css;
   a single post keeps blog.css.
   ============================================================ */

.res-page { background: #F8F6F0; color: #1B2A4A; padding: 150px 24px 110px; }
.res-wrap { max-width: 1100px; margin: 0 auto; }

/* Top of every resources page */
.res-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF6B2B;
  margin: 0 0 14px;
}
.res-eyebrow a { color: inherit; text-decoration: none; }
.res-eyebrow a:hover { text-decoration: underline; }
.res-eyebrow .sep { margin: 0 8px; color: #B6BCC8; }
.res-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 18ch;
}
.res-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: #3C4A66;
  max-width: 56ch;
  margin: 0 0 52px;
}

/* The three category tiles on the top page */
.res-cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 84px;
}
.res-cat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 26px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(27,42,74,0.10), 0 4px 16px rgba(27,42,74,0.05);
  color: #1B2A4A;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.res-cat:hover { transform: translateY(-4px); box-shadow: 0 36px 90px rgba(27,42,74,0.14), 0 4px 16px rgba(27,42,74,0.06); }
.res-cat-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
}
.res-cat-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.res-cat.b .res-cat-ico { background: rgba(255,107,43,0.12); color: #FF6B2B; }
.res-cat.i .res-cat-ico { background: rgba(124,58,237,0.12); color: #7C3AED; }
.res-cat.c .res-cat-ico { background: rgba(27,42,74,0.08); color: #1B2A4A; }
.res-cat h2 { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.res-cat p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: #5F6B80; }
.res-cat .go { margin-top: auto; padding-top: 6px; font-size: 0.92rem; font-weight: 700; }
.res-cat.b .go { color: #FF6B2B; }
.res-cat.i .go { color: #7C3AED; }
.res-cat.c .go { color: #1B2A4A; }

/* Section heading inside a resources page */
.res-h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}

/* Cards: one per piece, whatever its kind */
.res-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.res-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 26px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(27,42,74,0.10), 0 4px 16px rgba(27,42,74,0.05);
  color: #1B2A4A;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.res-card:hover { transform: translateY(-4px); box-shadow: 0 36px 90px rgba(27,42,74,0.14), 0 4px 16px rgba(27,42,74,0.06); }
.res-kind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.res-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.res-kind.b { color: #FF6B2B; }
.res-kind.i { color: #7C3AED; }
.res-kind.c { color: #1B2A4A; }
.res-card h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.res-card p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: #5F6B80; }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.88rem; font-weight: 600; color: #7F8A9E; }
.res-meta span + span::before { content: "·"; margin-right: 14px; color: #B6BCC8; }
.res-card .more { margin-top: auto; padding-top: 4px; font-size: 0.92rem; font-weight: 700; color: #FF6B2B; }

/* A piece that is a video: a play tile at the top of the card */
.res-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 15% 85%, rgba(255,107,43,0.35) 0%, rgba(255,107,43,0) 70%),
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(124,58,237,0.35) 0%, rgba(124,58,237,0) 70%),
    #1B2A4A;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.res-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.res-video .play {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7);
  display: grid; place-items: center;
}
.res-video .play::after {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.res-video .series {
  position: absolute; left: 16px; top: 14px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Insights: the news itself reads on the listing, like a press note */
.res-note { gap: 10px; }
.res-note h3 { font-size: 1.45rem; max-width: 26ch; }
.res-note .body { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.res-note .body p { color: #3C4A66; font-size: 1.02rem; line-height: 1.65; }
.res-note .blank { color: #FF6B2B; font-weight: 700; }

/* The quiet door at the bottom of a listing */
.res-foot {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid rgba(27,42,74,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.98rem;
  color: #3C4A66;
}
.res-foot a { color: #FF6B2B; font-weight: 700; text-decoration: none; }
.res-foot a:hover { text-decoration: underline; }

@media (min-width: 700px) {
  .res-cats { grid-template-columns: repeat(3, 1fr); }
  .res-list { grid-template-columns: repeat(2, 1fr); }
  .res-list.one { grid-template-columns: minmax(0, 640px); }
  .res-list.notes { grid-template-columns: minmax(0, 760px); }
}
@media (min-width: 1000px) {
  .res-list { grid-template-columns: repeat(3, 1fr); }
  .res-list.one { grid-template-columns: minmax(0, 640px); }
  .res-list.notes { grid-template-columns: minmax(0, 760px); }
}
@media (max-width: 699px) {
  .res-page { padding: 120px 20px 80px; }
  .res-sub { margin-bottom: 36px; }
  .res-cats { margin-bottom: 56px; }
  .res-cat, .res-card { padding: 22px 22px 22px; border-radius: 20px; }
}
