/* =====================================================
   case-study.css
   Styles for the Case Studies listing + detail pages
   (loaded after style.css in layouts/main.php)
   ===================================================== */

:root {
  --navy: #284b8c;
  --navy-2: #143a68;
  --gold: #F58634;
  --soft: #f4f6fa;
  --ink: #1b2430;
  --mut: #5b6677;
  --line: #e1e6ee;
  --bs-primary: #284b8c;
  --bs-body-color: var(--ink);
}

* {
  box-sizing: border-box;
}


h1 {
  font-size: clamp(26px, 5vw, 48px);
}

p {
  font-size: 16px;
  line-height: 1.6;
}

/* ─────────── LISTING PAGE (case-studies) ─────────── */

/* Page hero banner */
.bdm-page-title {
  padding: 5rem 0 4.5rem;
  background:
    linear-gradient(135deg, rgba(9, 20, 50, 0.88) 0%, rgba(18, 48, 120, 0.75) 50%, rgba(9, 20, 50, 0.92) 100%),
    url("https://www.springboard.com/blog/wp-content/uploads/2021/05/useful-data-analysis-methods-to-use-on-your-next-project.jpeg") center / cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.bdm-hero-inner {
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.bdm-breadcrumb {
  display: inline-flex;
  margin-bottom: 1.75rem;
}

.bdm-breadcrumb .breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: .4rem 1.2rem;
  font-size: var(--fs-sm);
}

.bdm-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color .2s;
}

.bdm-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.bdm-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.5);
}

.bdm-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, .35);
}

/* Category badge */
.bdm-hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-orange);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(245, 134, 52, 0.35);
}

/* Main hero title */
.bdm-hero-title {
  font-family: "Open Sans", sans-serif;
  font-weight: 900;
  font-size: var(--fs-3xl);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  letter-spacing: -.01em;
}

/* Subtitle */
.bdm-hero-sub {
  font-family: var(--bs-body-font-family);
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.service-card {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(40, 75, 140, .1);
}

/* Tag + case-study card (used on listing and detail pages) */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  background: #e8eef7;
  border-radius: 99px;
  padding: .25rem .75rem;
  margin: 0 .35rem .35rem 0;
}

.cs-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: .25s;
  background: #fff;
}

.cs-card:hover {
  box-shadow: 0 14px 40px rgba(13, 43, 78, .14);
  transform: translateY(-3px);
}

.cs-card.todo {
  border-style: dashed;
  background: transparent;
}

.cs-card.todo:hover {
  box-shadow: none;
  transform: none;
}

*/ .cs-page .eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Hero */

/* Quick facts strip overlapping the hero */
.cs-page .facts {
  position: relative;
  z-index: 3;
  margin-top: -2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(13, 43, 78, .12);
  overflow: hidden;
}

.cs-page .meta {
  height: 100%;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
}

.cs-page .meta small {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .2rem;
}

.cs-page .meta b {
  color: var(--navy);
  font-weight: 700;
}

.cs-page .facts .row>div:first-child .meta {
  border-top: 0;
}

@media (min-width: 768px) {
  .cs-page .facts .row>div:nth-child(-n+3) .meta {
    border-top: 0;
  }

  .cs-page .facts .row>div:not(:nth-child(3n)) .meta {
    border-right: 1px solid var(--line);
  }
}

/* Sections */
.cs-page .section {
  padding: 4.5rem 0;
}

.cs-page .bg-soft {
  background: var(--soft);
}

.cs-page .section h2 {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  line-height: 1.2;
}

/* Prose */
.cs-page .prose p {
  color: var(--mut);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.cs-page .prose .lead-ink {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.6;
}

/* Service tiles */
.cs-page .svc {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  transition: .25s;
}

.cs-page .svc:hover {
  box-shadow: 0 14px 40px rgba(13, 43, 78, .12);
  transform: translateY(-3px);
}

.cs-page .svc span {
  display: block;
  margin-bottom: .5rem;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold);
}

/* Client quote */
.cs-page .quote {
  background: var(--soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
}

.cs-page .quote p {
  color: var(--ink);
}

/* Stats */
.cs-page .stat {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem;
}

.cs-page .stat b {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.cs-page .stat p {
  margin: .5rem 0 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--mut);
}

/* Closing tagline */
.cs-page .tagline {
  text-align: center;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

/* Related case-study card link */
.cs-page .link-arrow {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.cs-page .link-arrow::after {
  content: " →";
  transition: margin-left .2s;
}

.cs-page .link-arrow:hover::after {
  margin-left: .25rem;
}

/* Call to action */
.cs-page .cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}

.cs-page .cta h2 {
  color: #fff;
}

.cs-page .cta p {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, .78);
  line-height: 1.7;
}

.cs-page .btn-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: #fff;
  font-weight: 700;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  transition: .25s;
}

.cs-page .btn-gold:hover {
  background: #b07f2c;
  border-color: #b07f2c;
  color: #fff;
  transform: translateY(-2px);
}


/* ─────────── CASE STUDY BODY (rich text from admin editor) ───────────
   Paste at the END of case-study.css                                   */

.cs-page .cs-body {
  /* max-width: 820px;
  margin: 0 auto; */
  color: var(--mut);
  font-size: 16px;
  line-height: normal;
}

.cs-page .cs-body>*:first-child {
  margin-top: 0;
}

.cs-page .cs-body p {
  margin: 0 0 1.3rem;
}

.cs-page .cs-body p:first-of-type {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: normal;
}

.cs-page .cs-body h2 {
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: normal;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.cs-page .cs-body>h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.cs-page .cs-body h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.3rem;
  margin: 2.2rem 0 .8rem;
}

.cs-page .cs-body h4 {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
  margin: 1.8rem 0 .6rem;
}

.cs-page .cs-body strong {
  color: var(--ink);
}

.cs-page .cs-body a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.cs-page .cs-body a:hover {
  color: var(--gold);
}

.cs-page .cs-body ul,
.cs-page .cs-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}

.cs-page .cs-body li {
  margin-bottom: .55rem;
  padding-left: .25rem;
}

.cs-page .cs-body ul li::marker {
  color: var(--gold);
}

.cs-page .cs-body ol li::marker {
  color: var(--gold);
  font-weight: 700;
}

.cs-page .cs-body blockquote {
  margin: 2rem 0;
  background: var(--soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  color: var(--ink);
  font-style: italic;
}

.cs-page .cs-body blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
}

.cs-page .cs-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #000;
}

table td {
  border: 1px solid #000;
  padding: 15px;
  vertical-align: top;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

@media (max-width: 768px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table tbody {
    display: table;
    width: 100%;
    min-width: 600px;
    table-layout: fixed;
  }

  table td {
    padding: 10px;
    font-size: 14px;
  }
}

/* .cs-page .cs-body table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .95rem; } */
.cs-page .cs-body th,
.cs-page .cs-body td {
  border: 1px solid var(--line);
  padding: .7rem .9rem;
  text-align: left;
}

.cs-page .cs-body th {
  background: var(--soft);
  color: var(--navy);
}



.cs-card {
  overflow: hidden
}

.cs-card__img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eef1f0
}

.cs-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease
}

.cs-card:hover .cs-card__img img {
  transform: scale(1.05)
}

.cs-card__img--empty {
  background: linear-gradient(135deg, #1a3a8f, #12907b)
}

.cs-cover {
  margin: 0
}

.cs-cover img {
  width: 100%;
  /* max-height: 480px; */
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 30px rgba(20, 32, 42, .12)
}