.category-page { background: #f5f8fb; color: #102a43; }
.category-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ── Hero ─────────────────────────────────────────────────── */
.category-hero {
  padding: 150px 0 90px;
  background: linear-gradient(rgba(0, 46, 95, 0.92), rgba(0, 46, 95, 0.85)), url('../images/banner3.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.category-kicker {
  margin: 0 0 14px;
  color: #6ce8ff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: inherit;
}
.category-hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.24;
  margin-bottom: 2rem;
}
.category-hero-line {
  width: 110px;
  height: 4px;
  margin: 0 auto 2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ce8ff, #00bfff);
}
.category-hero p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.8rem;
  line-height: 1.7;
}

/* ── Content section ──────────────────────────────────────── */
.category-content { padding: 72px 0 100px; }

/* ── Grid ─────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ── Card (matching casestudy style) ─────────────────────── */
.category-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8eff6;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 46, 95, 0.14);
}

/* Card image (covers top portion like casestudy card) */
.category-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Icon fallback when no image */
.category-icon-wrap {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e4f3fc, #d0ebf7);
  flex-shrink: 0;
}
.category-icon-wrap i {
  font-size: 52px;
  color: #087fbe;
  opacity: 0.75;
}

/* Card body */
.category-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Badge / kicker */
.category-card-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #087fbe;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Title */
.category-card h2 {
  margin: 0 0 12px;
  color: #002e5f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

/* Description */
.category-card-desc {
  margin: 0 0 22px;
  color: #587083;
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1;
}

/* Actions row */
.category-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #edf2f7;
  padding-top: 18px;
}

/* "Discuss this capability" link — matches casestudies .view-more style */
.category-discuss-link {
  color: #00bfff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
}
.category-discuss-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* "Download PDF" button */
.category-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid #b9dbe8;
  border-radius: 6px;
  color: #002e5f;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  align-self: flex-start;
}
.category-download:hover {
  background: #e8f5fb;
  border-color: #087fbe;
  text-decoration: none;
  color: #002e5f;
}

/* Loading / empty state */
.category-loading {
  padding: 60px 0;
  color: #587083;
  text-align: center;
  grid-column: 1 / -1;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .category-shell { width: min(100% - 28px, 1120px); }
  .category-hero { padding: 120px 0 64px; }
  .category-grid { grid-template-columns: 1fr; }
}
