/* ============================================
   CASE STUDIES — INDEX + DETAIL PAGES
   Prefix: csd-
   ============================================ */

:root {
  --csd-dark: #1a1a2e;
  --csd-orange: #ea6425;
  --csd-orange-light: #fff4ed;
  --csd-white: #ffffff;
  --csd-gray-50: #f9fafb;
  --csd-gray-100: #f3f4f6;
  --csd-gray-200: #e5e7eb;
  --csd-gray-400: #9ca3af;
  --csd-gray-600: #4b5563;
  --csd-gray-900: #111827;
  --csd-font: "Poppins", sans-serif;
}

/* ═══════════════════════════════════════════
   HERO — shared by index + detail
   ═══════════════════════════════════════════ */
.csd-hero {
  background: var(--csd-dark);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.csd-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 100, 37, 0.07) 0%, transparent 70%);
  top: -250px;
  right: -150px;
  pointer-events: none;
}

.csd-hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 85, 212, 0.05) 0%, transparent 70%);
  bottom: -200px;
  left: -100px;
  pointer-events: none;
}

.csd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero — index page (centered) */
.csd-hero--index .csd-hero__inner {
  text-align: center;
}

/* Breadcrumb */
.csd-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--csd-font);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.csd-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.csd-hero__breadcrumb a:hover {
  color: var(--csd-orange);
}

.csd-hero__breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.csd-hero__sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

/* Industry badge */
.csd-hero__industry {
  display: inline-block;
  font-family: var(--csd-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--csd-orange);
  background: rgba(234, 100, 37, 0.12);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.csd-hero__title {
  font-family: var(--csd-font);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--csd-white);
  margin: 0 0 20px;
  max-width: 820px;
}

.csd-hero--index .csd-hero__title {
  margin-left: auto;
  margin-right: auto;
}

.csd-hero__subtitle {
  font-family: var(--csd-font);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 680px;
  margin: 0;
}

.csd-hero--index .csd-hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   INDEX — Stats Bar
   ═══════════════════════════════════════════ */
.csd-stats {
  background: var(--csd-white);
  border-bottom: 1px solid var(--csd-gray-200);
  padding: 36px 0;
}

.csd-stats__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 56px;
}

.csd-stats__item {
  text-align: center;
}

.csd-stats__number {
  display: block;
  font-family: var(--csd-font);
  font-size: 28px;
  font-weight: 800;
  color: var(--csd-orange);
}

.csd-stats__label {
  font-family: var(--csd-font);
  font-size: 13px;
  color: var(--csd-gray-600);
}

/* ═══════════════════════════════════════════
   INDEX — Browse by Industry
   ═══════════════════════════════════════════ */
.csd-industries {
  padding: 64px 0;
  background: var(--csd-white);
}

.csd-industries__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.csd-industries__heading {
  font-family: var(--csd-font);
  font-size: 32px;
  font-weight: 700;
  color: var(--csd-gray-900);
  text-align: center;
  margin: 0 0 8px;
}

.csd-industries__subheading {
  font-family: var(--csd-font);
  font-size: 15px;
  color: var(--csd-gray-600);
  text-align: center;
  margin: 0 0 40px;
}

.csd-industries__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.csd-industries__card {
  background: var(--csd-gray-50);
  border: 1px solid var(--csd-gray-200);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.csd-industries__card:hover {
  border-color: var(--csd-orange);
  box-shadow: 0 4px 16px rgba(234, 100, 37, 0.06);
}

.csd-industries__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.csd-industries__card-icon {
  font-size: 22px;
  color: var(--csd-orange);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 100, 37, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.csd-industries__card-name {
  font-family: var(--csd-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--csd-gray-900);
  margin: 0;
}

.csd-industries__card-desc {
  font-family: var(--csd-font);
  font-size: 13px;
  color: var(--csd-gray-600);
  line-height: 1.6;
  margin: 0 0 14px;
}

.csd-industries__card-clients {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--csd-gray-200);
  padding-top: 12px;
}

.csd-industries__client-link {
  font-family: var(--csd-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--csd-orange);
  text-decoration: none;
  transition: color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.csd-industries__client-link:hover {
  color: #d4551c;
  text-decoration: none;
}

/* ═══════════════════════════════════════════
   INDEX — Card Grid (All Case Studies)
   ═══════════════════════════════════════════ */
.csd-index {
  padding: 64px 0 80px;
  background: var(--csd-gray-50);
}

.csd-index__heading {
  font-family: var(--csd-font);
  font-size: 32px;
  font-weight: 700;
  color: var(--csd-gray-900);
  text-align: center;
  margin: 0 0 40px;
}

.csd-index__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.csd-index__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.csd-index__card {
  background: var(--csd-white);
  border: 1px solid var(--csd-gray-200);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csd-index__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.csd-index__card-accent {
  height: 4px;
  background: var(--csd-orange);
}

.csd-index__card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.csd-index__card-body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.csd-index__card-industry {
  font-family: var(--csd-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--csd-orange);
  margin: 0 0 12px;
}

.csd-index__card-client {
  font-family: var(--csd-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--csd-gray-900);
  margin: 0 0 10px;
  line-height: 1.3;
}

.csd-index__card-result {
  font-family: var(--csd-font);
  font-size: 14px;
  color: var(--csd-gray-600);
  line-height: 1.65;
  flex: 1;
  margin: 0 0 20px;
}

.csd-index__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--csd-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--csd-orange);
  transition: gap 0.2s;
}

.csd-index__card:hover .csd-index__card-link {
  gap: 10px;
}

/* ═══════════════════════════════════════════
   DETAIL — Cover Image
   ═══════════════════════════════════════════ */
.csd-cover {
  background: var(--csd-gray-50);
  padding: 0;
}

.csd-cover__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
}

.csd-cover__img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ═══════════════════════════════════════════
   DETAIL — Body (Challenge + Solution)
   ═══════════════════════════════════════════ */
.csd-body {
  padding: 72px 0;
  background: var(--csd-white);
}

.csd-body__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.csd-body__block {
  padding: 32px;
  background: var(--csd-gray-50);
  border-radius: 16px;
  border: 1px solid var(--csd-gray-200);
}

.csd-body__eyebrow {
  display: inline-block;
  font-family: var(--csd-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--csd-orange);
  margin: 0 0 16px;
}

.csd-body__title {
  font-family: var(--csd-font);
  font-size: 22px;
  font-weight: 700;
  color: var(--csd-gray-900);
  margin: 0 0 16px;
  line-height: 1.3;
}

.csd-body__text {
  font-family: var(--csd-font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--csd-gray-600);
  margin: 0;
}

.csd-body__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.csd-body__list li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-family: var(--csd-font);
  font-size: 14.5px;
  color: var(--csd-gray-600);
  line-height: 1.7;
}

.csd-body__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--csd-orange);
}

.csd-body__list li strong {
  color: var(--csd-gray-900);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   DETAIL — Metrics
   ═══════════════════════════════════════════ */
.csd-metrics {
  padding: 64px 0;
  background: var(--csd-gray-50);
}

.csd-metrics__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.csd-metrics__heading {
  font-family: var(--csd-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--csd-orange);
  text-align: center;
  margin: 0 0 32px;
}

.csd-metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 3-column variant for pages with 3 metrics */
.csd-metrics__grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 840px;
  margin: 0 auto;
}

.csd-metrics__card {
  background: var(--csd-white);
  border: 1px solid var(--csd-gray-200);
  border-left: 4px solid var(--csd-orange);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.csd-metrics__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.csd-metrics__number {
  font-family: var(--csd-font);
  font-size: 30px;
  font-weight: 800;
  color: var(--csd-orange);
  display: block;
  margin-bottom: 8px;
  line-height: 1.2;
}

.csd-metrics__label {
  font-family: var(--csd-font);
  font-size: 13px;
  color: var(--csd-gray-600);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   DETAIL — Services Used
   ═══════════════════════════════════════════ */
.csd-services {
  padding: 56px 0 72px;
  background: var(--csd-white);
}

.csd-services__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.csd-services__heading {
  font-family: var(--csd-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--csd-gray-900);
  margin: 0 0 24px;
}

.csd-services__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.csd-services__tag {
  font-family: var(--csd-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--csd-gray-600);
  background: var(--csd-gray-100);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--csd-gray-200);
  transition: border-color 0.2s, background 0.2s;
}

.csd-services__tag:hover {
  border-color: var(--csd-orange);
  background: var(--csd-orange-light);
  color: var(--csd-gray-900);
}

/* ═══════════════════════════════════════════
   DETAIL — CTA
   ═══════════════════════════════════════════ */
.csd-cta {
  padding: 72px 0;
  background: var(--csd-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.csd-cta::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 100, 37, 0.08) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
  pointer-events: none;
}

.csd-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.csd-cta__title {
  font-family: var(--csd-font);
  font-size: 30px;
  font-weight: 700;
  color: var(--csd-white);
  margin: 0 0 12px;
  line-height: 1.3;
}

.csd-cta__text {
  font-family: var(--csd-font);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 32px;
  line-height: 1.7;
}

.csd-cta__btn {
  display: inline-block;
  font-family: var(--csd-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--csd-white);
  background: var(--csd-orange);
  padding: 14px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  min-height: 44px;
}

.csd-cta__btn:hover {
  background: #d4551c;
  transform: translateY(-1px);
  color: var(--csd-white);
  text-decoration: none;
}

/* Back link */
.csd-back {
  display: flex;
  justify-content: center;
  padding: 40px 24px 0;
  background: var(--csd-white);
}

.csd-back__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--csd-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--csd-orange);
  text-decoration: none;
  padding: 10px 0;
  min-height: 44px;
  transition: gap 0.2s;
}

.csd-back__link:hover {
  gap: 12px;
  text-decoration: none;
  color: #d4551c;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .csd-hero__title {
    font-size: 36px;
  }

  .csd-industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csd-index__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csd-body__inner {
    gap: 32px;
  }

  .csd-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .csd-metrics__grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .csd-hero {
    padding: 110px 0 56px;
  }

  .csd-hero__title {
    font-size: 28px;
  }

  .csd-hero__subtitle {
    font-size: 15px;
  }

  /* Stats bar */
  .csd-stats__inner {
    gap: 32px;
    flex-wrap: wrap;
  }

  .csd-stats__number {
    font-size: 24px;
  }

  /* Industries */
  .csd-industries {
    padding: 48px 0;
  }

  .csd-industries__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .csd-industries__heading {
    font-size: 26px;
  }

  /* Index cards */
  .csd-index {
    padding: 48px 0 64px;
  }

  .csd-index__heading {
    font-size: 26px;
  }

  .csd-index__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Cover image */
  .csd-cover__inner {
    padding: 32px 16px;
  }

  .csd-cover__img {
    max-height: 280px;
    border-radius: 8px;
  }

  /* Body — stack challenge + solution */
  .csd-body {
    padding: 48px 0;
  }

  .csd-body__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .csd-body__block {
    padding: 24px;
  }

  .csd-body__title {
    font-size: 20px;
  }

  /* Metrics */
  .csd-metrics {
    padding: 48px 0;
  }

  .csd-metrics__grid,
  .csd-metrics__grid--three {
    grid-template-columns: 1fr 1fr;
  }

  /* Services */
  .csd-services {
    padding: 40px 0 56px;
  }

  /* CTA */
  .csd-cta {
    padding: 56px 0;
  }

  .csd-cta__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .csd-hero {
    padding: 100px 0 48px;
  }

  .csd-hero__title {
    font-size: 24px;
  }

  .csd-hero__breadcrumb {
    font-size: 12px;
  }

  /* Stats */
  .csd-stats__inner {
    gap: 24px;
  }

  .csd-stats__number {
    font-size: 22px;
  }

  .csd-stats__label {
    font-size: 12px;
  }

  /* Body */
  .csd-body__block {
    padding: 20px;
  }

  .csd-body__title {
    font-size: 18px;
  }

  .csd-body__text {
    font-size: 14px;
  }

  .csd-body__list li {
    font-size: 13.5px;
  }

  /* Metrics */
  .csd-metrics__grid,
  .csd-metrics__grid--three {
    grid-template-columns: 1fr;
  }

  .csd-metrics__number {
    font-size: 26px;
  }

  /* CTA */
  .csd-cta__title {
    font-size: 22px;
  }

  .csd-cta__btn {
    width: 100%;
    text-align: center;
  }

  /* Index */
  .csd-index__card-client {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════
   INDEX — Category-Wise Case Studies
   ═══════════════════════════════════════════ */
.csd-catwise {
  padding: 64px 0 80px;
  background: var(--csd-white);
}

.csd-catwise__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.csd-catwise__heading {
  font-family: var(--csd-font);
  font-size: 32px;
  font-weight: 700;
  color: var(--csd-gray-900);
  text-align: center;
  margin: 0 0 8px;
}

.csd-catwise__subheading {
  font-family: var(--csd-font);
  font-size: 15px;
  color: var(--csd-gray-600);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Filter pills */
.csd-catwise__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.csd-catwise__pill {
  font-family: var(--csd-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--csd-gray-600);
  background: var(--csd-white);
  border: 1px solid var(--csd-gray-200);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.csd-catwise__pill:hover {
  border-color: var(--csd-orange);
  color: var(--csd-orange);
}

.csd-catwise__pill--active {
  background: var(--csd-orange);
  border-color: var(--csd-orange);
  color: var(--csd-white);
}

.csd-catwise__pill--active:hover {
  background: #d4551c;
  border-color: #d4551c;
  color: var(--csd-white);
}

/* Category grid (reuses .csd-index__card styles) */
.csd-catwise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ═══════════════════════════════════════════
   INDEX — FAQ
   ═══════════════════════════════════════════ */
.csd-faq {
  padding: 64px 0;
  background: var(--csd-gray-50);
}

.csd-faq__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.csd-faq__heading {
  font-family: var(--csd-font);
  font-size: 32px;
  font-weight: 700;
  color: var(--csd-gray-900);
  text-align: center;
  margin: 0 0 40px;
}

.csd-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.csd-faq__item {
  background: var(--csd-white);
  border: 1px solid var(--csd-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.csd-faq__q {
  font-family: var(--csd-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--csd-gray-900);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.csd-faq__q::-webkit-details-marker {
  display: none;
}

.csd-faq__q::after {
  content: "\F0140";
  font-family: "Material Design Icons";
  font-size: 22px;
  color: var(--csd-gray-400);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.csd-faq__item[open] .csd-faq__q::after {
  transform: rotate(180deg);
  color: var(--csd-orange);
}

.csd-faq__a {
  font-family: var(--csd-font);
  font-size: 15px;
  color: var(--csd-gray-600);
  line-height: 1.7;
  padding: 0 24px 20px;
  margin: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Category + FAQ additions
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .csd-catwise__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .csd-catwise {
    padding: 48px 0 64px;
  }

  .csd-catwise__heading {
    font-size: 26px;
  }

  .csd-catwise__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .csd-catwise__pill {
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 16px;
  }

  .csd-catwise__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .csd-faq {
    padding: 48px 0;
  }

  .csd-faq__heading {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .csd-catwise__heading {
    font-size: 22px;
  }

  .csd-faq__heading {
    font-size: 22px;
  }

  .csd-faq__q {
    font-size: 15px;
    padding: 16px 20px;
  }

  .csd-faq__a {
    font-size: 14px;
    padding: 0 20px 16px;
  }
}
