/* ============================================================
   CASES & NEWS PAGE — ADDON CSS
============================================================ */

/* HERO */
.cases-hero {
  min-height: 56vh; padding-top: 72px;
  background: linear-gradient(148deg, #0e2219 0%, #1B4332 60%, #162e24 100%);
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding-bottom: 0;
}
.ch-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 80% 30%, rgba(196,96,28,.13) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 5% 80%, rgba(196,96,28,.07) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
.ch-content { position: relative; z-index: 2; padding: 80px 0 60px; }
.ch-h1 {
  font-family: var(--fd); font-size: clamp(40px, 6vw, 76px);
  font-weight: 800; line-height: .98; letter-spacing: -2px;
  color: rgba(255,255,255,.95); margin: 18px 0 22px;
}
.ch-h1 em { font-style: italic; color: var(--a2); font-weight: 400; }
.ch-sub { font-size: 15px; color: rgba(255,255,255,.52); line-height: 1.75; max-width: 520px; margin-bottom: 36px; }
.ch-search-wrap { max-width: 560px; }
.ch-search {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.2); border-radius: 8px;
  padding: 14px 18px; transition: border-color .3s;
}
.ch-search:focus-within { border-color: var(--a2); }
.cs-icon { font-size: 16px; flex-shrink: 0; }
.ch-search input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--fb); font-size: 14px; color: #fff;
}
.ch-search input::placeholder { color: rgba(255,255,255,.38); }
.cs-clear {
  background: none; border: none; color: rgba(255,255,255,.4);
  font-size: 14px; cursor: none; transition: color .25s;
}
.cs-clear:hover { color: rgba(255,255,255,.8); }

/* FILTER BAR */
.cases-filter {
  position: sticky; top: 72px; z-index: 500;
  background: rgba(240,237,229,.97); backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--bdr);
  box-shadow: 0 3px 12px rgba(27,67,50,.07);
}
.cf-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; gap: 16px; overflow-x: auto; scrollbar-width: none;
}
.cf-inner::-webkit-scrollbar { display: none; }
.cf-btns { display: flex; gap: 6px; flex-shrink: 0; }
.cfb {
  padding: 6px 18px; background: transparent;
  border: 1.5px solid var(--bdr); border-radius: 28px;
  font-family: var(--fm); font-size: 9.5px; letter-spacing: 1px;
  color: var(--mid); text-transform: uppercase; white-space: nowrap;
  transition: all .25s;
}
.cfb:hover { border-color: var(--g); color: var(--g); background: var(--gbg); }
.cfb.active { border-color: var(--g); color: #fff; background: var(--g); }
.cf-count {
  font-family: var(--fm); font-size: 9.5px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase; white-space: nowrap;
  flex-shrink: 0;
}

/* FEATURED STRIP */
.featured-strip { background: var(--bg); padding: 72px 0 56px; }
.fs-label { margin-bottom: 28px; }
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }

/* FEATURED MAIN CARD */
.feat-main {
  background: var(--card); border: 1px solid var(--bdr); border-radius: 12px;
  overflow: hidden; cursor: none; display: flex; flex-direction: column;
  transition: box-shadow .35s, transform .35s var(--ease);
  position: relative;
}
.feat-main:hover { box-shadow: 0 18px 48px rgba(27,67,50,.12); transform: translateY(-3px); }
.feat-main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(to right, var(--g), var(--a));
}
.fm-img {
  height: 240px; background: linear-gradient(135deg, var(--g) 0%, var(--g2) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
  overflow: hidden;
}
.fm-img img { width: 100%; height: 100%; object-fit: cover; }
.fm-img .fm-img-placeholder {
  font-size: 64px; opacity: .25;
}
.fm-category {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 12px; background: var(--a); color: #fff;
  font-family: var(--fm); font-size: 8.5px; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 4px;
}
.fm-body { padding: 28px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.fm-date {
  font-family: var(--fm); font-size: 9px; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 12px;
}
.fm-title {
  font-family: var(--fd); font-size: clamp(18px, 2vw, 24px); font-weight: 700;
  color: var(--g); line-height: 1.2; margin-bottom: 14px;
  transition: color .3s;
}
.feat-main:hover .fm-title { color: var(--a); }
.fm-excerpt { font-size: 13.5px; color: var(--ink3); line-height: 1.72; flex: 1; margin-bottom: 20px; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.fm-tag {
  padding: 3px 10px; border: 1px solid var(--bdr);
  font-family: var(--fm); font-size: 8px; letter-spacing: 1px;
  color: var(--mid); border-radius: 20px;
}
.fm-read {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fd); font-size: 13px; font-weight: 700;
  color: var(--g); transition: gap .3s, color .3s;
}
.fm-read:hover { gap: 14px; color: var(--a); }

/* FEATURED SIDE CARDS */
.feat-side { display: flex; flex-direction: column; gap: 16px; }
.feat-side-card {
  background: var(--card); border: 1px solid var(--bdr); border-radius: 10px;
  padding: 22px 24px; cursor: none; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.feat-side-card:hover { box-shadow: 0 10px 30px rgba(27,67,50,.09); transform: translateY(-2px); border-color: var(--gbg2); }
.feat-side-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--g), var(--a));
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.feat-side-card:hover::before { transform: scaleY(1); }
.fsc-cat {
  font-family: var(--fm); font-size: 8.5px; letter-spacing: 2px;
  color: var(--a); text-transform: uppercase; margin-bottom: 10px;
}
.fsc-title {
  font-family: var(--fd); font-size: 15.5px; font-weight: 700;
  color: var(--g); line-height: 1.25; margin-bottom: 10px; transition: color .3s;
}
.feat-side-card:hover .fsc-title { color: var(--a); }
.fsc-excerpt { font-size: 12px; color: var(--mid); line-height: 1.65; margin-bottom: 14px; }
.fsc-footer { display: flex; justify-content: space-between; align-items: center; }
.fsc-date { font-family: var(--fm); font-size: 8.5px; letter-spacing: 1px; color: var(--muted); }
.fsc-arrow { font-size: 16px; color: var(--g); transition: transform .3s var(--ease); }
.feat-side-card:hover .fsc-arrow { transform: translate(3px, -3px); color: var(--a); }

/* ARTICLES SECTION */
.articles-sec { background: var(--bg2); padding: 60px 0 80px; border-top: 1px solid var(--bdr); }
.as-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.sort-select {
  padding: 8px 14px; background: var(--card); border: 1.5px solid var(--bdr);
  border-radius: 6px; font-family: var(--fm); font-size: 9.5px; letter-spacing: 1px;
  color: var(--mid); text-transform: uppercase; cursor: none; outline: none;
  transition: border-color .25s;
}
.sort-select:hover { border-color: var(--g); }

/* ARTICLE CARD */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  background: var(--card); border: 1px solid var(--bdr); border-radius: 10px;
  overflow: hidden; cursor: none; display: flex; flex-direction: column;
  transition: box-shadow .35s, transform .35s var(--ease), border-color .3s;
  position: relative;
}
.article-card:hover { box-shadow: 0 12px 36px rgba(27,67,50,.1); transform: translateY(-3px); border-color: var(--gbg2); }
.ac-img {
  height: 160px;
  background: linear-gradient(135deg, var(--g) 0%, var(--g2) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ac-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-img-ph { font-size: 40px; opacity: .2; }
.ac-cat-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--fm); font-size: 8px; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
}
.ac-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ac-date {
  font-family: var(--fm); font-size: 8.5px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
.ac-title {
  font-family: var(--fd); font-size: 16px; font-weight: 700;
  color: var(--g); line-height: 1.25; margin-bottom: 10px;
  transition: color .3s;
}
.article-card:hover .ac-title { color: var(--a); }
.ac-excerpt { font-size: 12.5px; color: var(--mid); line-height: 1.68; flex: 1; margin-bottom: 16px; }
.ac-footer { display: flex; justify-content: space-between; align-items: center; }
.ac-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.ac-tag {
  font-family: var(--fm); font-size: 7.5px; letter-spacing: .5px;
  color: var(--mid); background: var(--bg); border: 1px solid var(--bdr);
  padding: 2px 8px; border-radius: 20px;
}
.ac-read { font-size: 16px; color: var(--g); transition: transform .3s var(--ease), color .3s; }
.article-card:hover .ac-read { transform: translate(3px, -3px); color: var(--a); }

/* STATES */
.loading-state {
  text-align: center; padding: 80px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.ls-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--bdr);
  border-top-color: var(--g);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { font-family: var(--fm); font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.empty-state { text-align: center; padding: 80px 0; }
.es-icon { font-size: 48px; margin-bottom: 20px; }
.empty-state h3 { font-family: var(--fd); font-size: 24px; font-weight: 700; color: var(--g); margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--mid); margin-bottom: 28px; }

/* LOAD MORE */
.load-more-wrap { text-align: center; margin-top: 48px; }
.btn-load-more {
  padding: 13px 36px; background: transparent; border: 2px solid var(--g);
  color: var(--g); font-family: var(--fd); font-size: 13.5px; font-weight: 700;
  border-radius: 4px; cursor: none; transition: all .3s;
}
.btn-load-more:hover { background: var(--g); color: #fff; }
.lm-count { font-family: var(--fm); font-size: 9.5px; letter-spacing: 1.5px; color: var(--muted); margin-top: 12px; text-transform: uppercase; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 34, 25, 0.85); backdrop-filter: blur(8px); }
.modal-box {
  position: relative; z-index: 1; background: var(--card);
  border-radius: 16px; width: 90%; max-width: 780px;
  max-height: 88vh; overflow-y: auto; overflow-x: hidden;
  animation: modalIn .35s var(--ease);
  box-shadow: 0 32px 80px rgba(14,34,25,.35);
}
@keyframes modalIn { from { opacity:0; transform:translateY(24px) scale(.97); } to { opacity:1; transform:none; } }
.modal-close {
  position: sticky; top: 16px; float: right; margin: 16px 20px 0 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--bdr);
  color: var(--mid); font-size: 14px; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s; z-index: 10;
}
.modal-close:hover { background: var(--g); color: #fff; border-color: var(--g); }
.modal-content { padding: 16px 40px 48px; clear: both; }
.mc-category {
  display: inline-block; padding: 5px 14px; background: var(--a); color: #fff;
  font-family: var(--fm); font-size: 8.5px; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 4px; margin-bottom: 18px;
}
.mc-title {
  font-family: var(--fd); font-size: clamp(22px, 3vw, 34px); font-weight: 800;
  color: var(--g); line-height: 1.1; margin-bottom: 16px;
}
.mc-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--bdr);
}
.mc-date { font-family: var(--fm); font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.mc-author { font-family: var(--fm); font-size: 9px; letter-spacing: 1px; color: var(--teal,var(--g)); display: flex; align-items: center; gap: 6px; }
.mc-author::before { content: '✍'; }
.mc-img-wrap {
  width: 100%; height: 260px; border-radius: 10px; overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--g) 0%, var(--g2) 100%);
  display: flex; align-items: center; justify-content: center;
}
.mc-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mc-img-ph { font-size: 80px; opacity: .2; }
.mc-body { font-size: 15px; color: var(--ink2); line-height: 1.85; }
.mc-body p { margin-bottom: 18px; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--bdr); }
.mc-tag { padding: 5px 14px; background: var(--gbg); border: 1px solid var(--gbg2); font-family: var(--fm); font-size: 8.5px; letter-spacing: 1px; color: var(--g2); border-radius: 20px; text-transform: uppercase; }
.mc-cta { margin-top: 28px; padding: 24px; background: var(--gbg); border-radius: 8px; text-align: center; }
.mc-cta p { font-size: 14px; color: var(--ink3); margin-bottom: 16px; }

/* CATEGORY COLOUR HELPERS */
.cat-Fintech     { background: #1B4332; }
.cat-Crypto      { background: #7B4F12; }
.cat-DataProtection { background: #1A3A5E; }
.cat-Enforcement { background: #7A1E1E; }
.cat-CaseStudy   { background: #2D5016; }
.cat-Regulatory  { background: #3D3070; }
.cat-General     { background: #4A4A4A; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr; }
  .feat-side { flex-direction: row; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ch-h1 { font-size: 38px; }
  .feat-side { flex-direction: column; }
  .articles-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 12px 24px 36px; }
  .cf-inner { padding: 0; }
  .as-header { flex-direction: column; align-items: flex-start; gap: 12px; }

footer .ft-grid { display: grid !important; grid-template-columns: 1.5fr 1fr 1fr 1fr !important; gap: 52px !important; }
footer .ft-bot  { display: flex !important; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}

