/* =====================================================================
   Cusec Insights + Case Studies — public styles
   Scoped under .cusec-insights so they never clash with the main site CSS.
   Design tokens: navy #1c2733 scale, orange accent #f08a2e, Poppins/Inter.
   ===================================================================== */
.cusec-insights {
  --ci-navy-900: #1c2733;
  --ci-navy-700: #2b3a4d;
  --ci-navy-500: #45586e;
  --ci-orange:   #f08a2e;
  --ci-orange-d: #d9781f;
  --ci-ink:      #22262b;
  --ci-muted:    #6b7686;
  --ci-line:     #e7eaef;
  --ci-bg:       #f6f7f9;
  --ci-card:     #ffffff;
  --ci-radius:   14px;
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ci-ink);
  background: var(--ci-bg);
}
.cusec-insights * { box-sizing: border-box; }
.cusec-insights .ci-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---- Page header ---- */
.cusec-insights .ci-head {
  background: linear-gradient(135deg, var(--ci-navy-900), var(--ci-navy-700));
  color: #fff; padding: 64px 0 56px; text-align: center;
}
.cusec-insights .ci-head h1 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 10px;
  color: #ffffff !important;            /* force white over site's global h1 colour */
}
.cusec-insights .ci-head p { color: #c7d0dc !important; font-size: 17px; max-width: 620px; margin: 0 auto; }

/* ---- Category filter ---- */
.cusec-insights .ci-filter {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: -26px auto 40px; position: relative; z-index: 2;
}
.cusec-insights .ci-chip {
  padding: 9px 18px; border-radius: 999px; background: var(--ci-card);
  border: 1px solid var(--ci-line); color: var(--ci-navy-700);
  font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 10px rgba(28,39,51,.06); transition: all .18s ease;
}
.cusec-insights .ci-chip:hover { border-color: var(--ci-orange); color: var(--ci-orange-d); }
.cusec-insights .ci-chip.is-active { background: var(--ci-orange); border-color: var(--ci-orange); color: #fff; }

/* ---- Featured (hero) post ---- */
.cusec-insights .ci-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--ci-card); border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius); overflow: hidden; margin-bottom: 44px;
  box-shadow: 0 6px 26px rgba(28,39,51,.08);
}
/* Show the WHOLE banner (no side-cropping); letterbox blends with the navy graphic */
.cusec-insights .ci-featured__img {
  min-height: 320px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--ci-navy-900);
}
.cusec-insights .ci-featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.cusec-insights .ci-featured__body h2 {
  font-family: 'Poppins','Inter',sans-serif; font-size: 28px; font-weight: 800;
  margin: 14px 0 12px; line-height: 1.25; color: var(--ci-navy-900);
}
.cusec-insights .ci-featured__body p { color: var(--ci-muted); font-size: 16px; margin: 0 0 20px; }

/* ---- Card grid ---- */
.cusec-insights .ci-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 64px;
}
.cusec-insights .ci-card {
  background: var(--ci-card); border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease;
}
.cusec-insights .ci-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(28,39,51,.12); }
/* Cards keep the whole banner too, on a navy backing */
.cusec-insights .ci-card__img {
  height: 190px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--ci-navy-900);
}
.cusec-insights .ci-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cusec-insights .ci-card__body h3 {
  font-family: 'Poppins','Inter',sans-serif; font-size: 18px; font-weight: 700;
  margin: 10px 0 8px; line-height: 1.35; color: var(--ci-navy-900);
}
.cusec-insights .ci-card__body p { color: var(--ci-muted); font-size: 14px; margin: 0 0 16px; flex: 1; }

/* ---- Tag / meta ---- */
.cusec-insights .ci-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--ci-orange-d);
}
.cusec-insights .ci-meta { font-size: 13px; color: var(--ci-muted); margin-top: auto; }
.cusec-insights .ci-meta strong { color: var(--ci-navy-700); font-weight: 600; }

/* ---- Buttons ---- */
.cusec-insights .ci-btn {
  display: inline-block; background: var(--ci-orange); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; font-size: 15px;
  transition: background .18s ease; align-self: flex-start;
}
.cusec-insights .ci-btn:hover { background: var(--ci-orange-d); }

/* ---- Single article ---- */
.cusec-insights .ci-article { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.cusec-insights .ci-article h1 {
  font-family: 'Poppins','Inter',sans-serif; font-size: clamp(26px,3.6vw,40px);
  font-weight: 800; line-height: 1.2; color: var(--ci-navy-900); margin: 14px 0 16px;
}
.cusec-insights .ci-article__meta { color: var(--ci-muted); font-size: 14px; margin-bottom: 28px; }
.cusec-insights .ci-article__hero { width: 100%; border-radius: var(--ci-radius); margin-bottom: 32px; }
.cusec-insights .ci-body { font-size: 17px; line-height: 1.75; color: #2c333c; }
.cusec-insights .ci-body h2 { font-family:'Poppins','Inter',sans-serif; font-size: 26px; font-weight: 700; margin: 34px 0 14px; color: var(--ci-navy-900); }
.cusec-insights .ci-body h3 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; color: var(--ci-navy-700); }
.cusec-insights .ci-body p { margin: 0 0 18px; }
.cusec-insights .ci-body ul, .cusec-insights .ci-body ol { margin: 0 0 18px 22px; }
.cusec-insights .ci-body li { margin-bottom: 8px; }
.cusec-insights .ci-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; }
.cusec-insights .ci-body blockquote {
  border-left: 4px solid var(--ci-orange); background: #fff7ef; margin: 22px 0;
  padding: 16px 22px; border-radius: 0 8px 8px 0; color: var(--ci-navy-700); font-style: italic;
}
.cusec-insights .ci-body a { color: var(--ci-orange-d); }

/* ---- Case study single: challenge/solution/results ---- */
.cusec-insights .ci-cs-hero {
  background: linear-gradient(135deg, var(--ci-navy-900), var(--ci-navy-700));
  color: #fff; padding: 56px 0;
}
.cusec-insights .ci-cs-hero .ci-tag { color: #ffce9a; }
.cusec-insights .ci-cs-hero h1 { color: #fff !important; font-family:'Poppins','Inter',sans-serif; font-size: clamp(26px,3.6vw,40px); font-weight: 800; margin: 12px 0; }
.cusec-insights .ci-cs-hero .ci-headline {
  display: inline-block; margin-top: 10px; background: var(--ci-orange);
  color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 10px; font-size: 18px;
}
.cusec-insights .ci-cs-section { max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.cusec-insights .ci-cs-block { margin-bottom: 38px; }
.cusec-insights .ci-cs-block h2 {
  font-family:'Poppins','Inter',sans-serif; font-size: 24px; font-weight: 800;
  color: var(--ci-navy-900); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ci-line);
}
.cusec-insights .ci-cs-quote {
  background: var(--ci-navy-900); color: #fff; border-radius: var(--ci-radius);
  padding: 34px; margin: 12px 0 0; text-align: center;
}
.cusec-insights .ci-cs-quote p { font-size: 20px; font-style: italic; line-height: 1.5; margin: 0 0 14px; }
.cusec-insights .ci-cs-quote span { color: #ffce9a; font-weight: 600; }

/* ---- Empty state ---- */
.cusec-insights .ci-empty { text-align: center; color: var(--ci-muted); padding: 60px 20px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cusec-insights .ci-featured { grid-template-columns: 1fr; }
  .cusec-insights .ci-featured__img { min-height: 220px; }
  .cusec-insights .ci-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cusec-insights .ci-grid { grid-template-columns: 1fr; }
  .cusec-insights .ci-featured__body { padding: 26px; }
}
