/* ==========================================================================
   Panoton — Resources (/resources/). Loads AFTER site.css.
   Mirrors production panoton.com/resources/: full-bleed featured-post hero
   over a photo, then a dark #0a0a0a band with a grid of article cards
   (square image, category tag, title).
   ========================================================================== */

/* ------------------------------------------------------------------- hero */
.res-hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: flex-end;
  padding: clamp(170px, 16vw, 260px) 0 clamp(60px, 7vw, 110px);
  background-size: cover; background-position: center;
}
.res-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .55) 100%);
}
.res-hero .wrap { position: relative; }
.res-hero-meta {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  color: rgba(255, 255, 255, .85); font-size: .95rem;
}
.res-hero-sep { width: 26px; height: 1px; background: rgba(255, 255, 255, .4); }
.res-hero h1 { font-size: clamp(32px, 4vw, 60px); line-height: 1.06; margin: 0 0 20px; max-width: 900px; }
.res-hero h1 a { color: #fff; text-decoration: none; }
.res-hero h1 a:hover { color: var(--cyan, #32dbf2); }
.res-hero-excerpt {
  color: rgba(255, 255, 255, .75); font-size: 1.13rem; line-height: 1.7;
  max-width: 640px; margin: 0 0 30px;
}

/* --------------------------------------------------------------- category */
.res-cat {
  display: inline-block; font-family: var(--font-head, Cabin, sans-serif);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; padding: .55em 1em; border-radius: var(--r-pill, 100px);
}
.res-cat-cyan   { background: var(--cyan, #32dbf2); color: #00054c; }
.res-cat-orange { background: var(--orange, #fe4c10); color: #fff; }
.res-cat-blue   { background: var(--blue-deep, #1e43a6); color: #fff; }
.res-cat-white  { background: rgba(255, 255, 255, .92); color: #10131a; }

/* ------------------------------------------------------------------- grid */
.res-grid-band { background: #0a0a0a; padding: clamp(50px, 6vw, 90px) 0; }
.res-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 30px);
}
.res-card {
  position: relative; background: #141414; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.25, 1, .5, 1), box-shadow .35s ease;
}
.res-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.res-card-link { position: absolute; inset: 0; z-index: 2; }
.res-card-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.res-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.25, 1, .5, 1);
}
.res-card:hover .res-card-img img { transform: scale(1.06); }
.res-card-body { padding: 22px 24px 28px; display: grid; gap: 14px; align-content: start; }
.res-card-body h3 { color: #fff; font-size: 1.13rem; line-height: 1.4; margin: 0; }
.res-card:hover h3 { color: var(--cyan, #32dbf2); }
.res-card .res-cat { justify-self: start; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1199px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px)  { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .res-grid { grid-template-columns: 1fr; }
  .res-hero { min-height: 70vh; }
}
