/* Case study / project single */

.apm-case-study-single .apm-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.apm-cs {
  background: #f8fafc;
}

.apm-cs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: #64748b;
}

.apm-cs-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.apm-cs-breadcrumb a:hover {
  color: #0d5bdb;
}

.apm-cs-breadcrumb__current {
  color: #0f172a;
  font-weight: 500;
}

.apm-cs-hero {
  padding: 32px 0 48px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}

.apm-cs-hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.apm-cs-hero__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.apm-cs-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apm-cs-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d5bdb;
}

.apm-cs-hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.apm-cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.apm-cs-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 600;
}

.apm-cs-hero__lead {
  margin: 0 0 20px;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #475569;
}

.apm-cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.apm-cs-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: #334155;
}

.apm-cs-meta__item svg {
  flex-shrink: 0;
  color: #0d5bdb;
}

.apm-cs-meta__item--kpi {
  font-weight: 600;
}

.apm-cs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.apm-cs-body {
  padding: 48px 0 72px;
}

.apm-cs-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.apm-cs-section {
  margin-bottom: 28px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.apm-cs-section--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.apm-cs-panel {
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.apm-cs-panel--challenge {
  border-top: 3px solid #f59e0b;
}

.apm-cs-panel--solution {
  border-top: 3px solid #0d5bdb;
}

.apm-cs-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.apm-cs-section__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
}

.apm-cs-section__head .apm-cs-section__title {
  margin-bottom: 0;
}

.apm-cs-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-cs-link:hover {
  text-decoration: underline;
}

.apm-cs-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.apm-cs-prose p {
  margin: 0 0 1em;
}

.apm-cs-prose p:last-child {
  margin-bottom: 0;
}

.apm-cs-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.apm-cs-results li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.9875rem;
  line-height: 1.5;
  color: #0f172a;
}

.apm-cs-results svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #16a34a;
}

.apm-cs-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.apm-cs-related__card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.apm-cs-related__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.apm-cs-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

.apm-cs-related__card:hover .apm-cs-related__thumb img {
  transform: scale(1.04);
}

.apm-cs-related__body {
  padding: 16px 18px 20px;
}

.apm-cs-related__industry {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0d5bdb;
}

.apm-cs-related__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.apm-cs-related__title a {
  color: #0f172a;
  text-decoration: none;
}

.apm-cs-related__title a:hover {
  color: #0d5bdb;
}

.apm-cs-related__excerpt {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

.apm-cs-related__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-cs-related__link:hover {
  text-decoration: underline;
}

.apm-cs-aside__card {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.apm-cs-aside__card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.apm-cs-aside__card p {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
}

.apm-cs-aside__all {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-cs-aside__all:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .apm-cs-hero__grid,
  .apm-cs-body__grid,
  .apm-cs-section--split,
  .apm-cs-related {
    grid-template-columns: 1fr;
  }

  .apm-cs-aside__card {
    position: static;
  }
}

@media (max-width: 640px) {
  .apm-cs-section,
  .apm-cs-panel {
    padding: 22px 18px;
  }

  .apm-cs-hero {
    padding-top: 20px;
  }
}

/* Archive */
.apm-cs-archive {
  padding: 48px 0 72px;
  background: #f8fafc;
}

.apm-cs-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.apm-cs-archive__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.apm-cs-archive__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.apm-cs-archive__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

.apm-cs-archive__card:hover .apm-cs-archive__thumb img {
  transform: scale(1.04);
}

.apm-cs-archive__body {
  padding: 18px 20px 22px;
}

.apm-cs-archive__industry {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0d5bdb;
}

.apm-cs-archive__title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.apm-cs-archive__title a {
  color: #0f172a;
  text-decoration: none;
}

.apm-cs-archive__title a:hover {
  color: #0d5bdb;
}

.apm-cs-archive__excerpt {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.apm-cs-archive__kpi {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.apm-cs-archive__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-cs-archive__link:hover {
  text-decoration: underline;
}

.apm-page-header__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.apm-page-header__lead {
  margin: 12px 0 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #64748b;
}

@media (max-width: 960px) {
  .apm-cs-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apm-cs-archive__grid {
    grid-template-columns: 1fr;
  }
}
