.case-studies-page {
  background: #fff;
}

.case-studies-hero {
  /*background: #f7fafc;*/
  /*border-bottom: 1px solid #dbe5ec;*/
  /*padding: 36px 0 30px;*/
    padding: 36px 0 0px;
}

.case-studies-kicker {
  color: rgb(72 166 44 / 100%);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.case-studies-hero h1 {
  color: #2c333e;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
  max-width: 760px;
  text-transform: uppercase;
}

.case-studies-hero p {
  color: #51606f;
  font-size: 1rem;
  line-height: 1.65;
  margin: 1rem 0 0;
  max-width: 720px;
}

.case-studies-list {
  padding: 32px 0 56px;
}

.case-studies-grid {
  row-gap: 24px;
}

.case-study-card {
  background: #fff;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(44, 51, 62, 0.06);
  height: 100%;
  overflow: hidden;
}

.case-study-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.case-study-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.case-study-card__media {
  background: #edf2f5;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.case-study-card__media::after {
  background: linear-gradient(180deg, rgba(12, 22, 33, 0) 38%, rgba(12, 22, 33, 0.78) 100%);
  bottom: 0;
  content: '';
  height: 48%;
  left: 0;
  position: absolute;
  right: 0;
}

.case-study-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-study-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.case-study-card__vehicle {
  bottom: 14px;
  left: 14px;
  position: absolute;
  right: 14px;
  z-index: 1;
}

.case-study-card__vehicle strong {
  color: #fff;
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
}

.case-study-card__vehicle span {
  color: rgba(255, 255, 255, 0.92);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 3px;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.case-study-card__link:hover .case-study-card__vehicle strong,
.case-study-card__link:hover .case-study-card__vehicle span {
  color: #fff;
}

.case-study-card__customer {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 9px 10px;
}

.case-study-card__customer span {
  color: #51606f;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-study-card__customer strong {
  color: rgb(72 166 44 / 100%);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: right;
}

.case-study-card__quote {
  background: #f7fafc;
  border-radius: 8px;
  color: #334253;
  display: block;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  padding: 12px 34px 12px 34px;
  position: relative;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.case-study-card__quote::before {
  color: rgb(72 166 44 / 100%);
  content: '\201C';
  font-size: 2.1rem;
  font-weight: 900;
  left: 12px;
  line-height: 1;
  position: absolute;
  top: 8px;
}

.case-study-card__quote::after {
  color: rgb(72 166 44 / 100%);
  content: '\201D';
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  position: absolute;
  right: 12px;
  bottom: -12px;
}

.case-study-card__link:hover .case-study-card__quote {
  color: rgb(34 87 122 / 100%);
}

.case-studies-pagination {
  margin-top: 32px;
}

.case-studies-empty {
  background: #f7fafc;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  padding: 24px;
}

.case-studies-empty h2 {
  color: #2c333e;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
}

.case-studies-empty p {
  color: #51606f;
  line-height: 1.6;
  margin: 0;
}

.case-study-detail-hero {
  background: #f7fafc;
  border-bottom: 1px solid #dbe5ec;
  padding: 28px 0 34px;
}

.case-study-back-link {
  color: rgb(34 87 122 / 100%);
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 18px;
  text-decoration: none;
}

.case-study-back-link:hover {
  color: rgb(72 166 44 / 100%);
  text-decoration: none;
}

.case-study-detail-hero h1 {
  color: #2c333e;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  max-width: 820px;
  text-transform: uppercase;
}

.case-study-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.case-study-detail-meta span {
  background: #fff;
  border: 1px solid #dbe5ec;
  border-radius: 999px;
  color: #51606f;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 12px;
}

.case-study-detail-image {
  background: #edf2f5;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  margin-top: 24px;
  overflow: hidden;
}

.case-study-detail-image img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-study-detail-content {
  padding: 34px 0 58px;
}

.case-study-detail-section {
  border-bottom: 1px solid #dbe5ec;
  padding: 0 0 28px;
  margin-bottom: 28px;
}

.case-study-detail-card > span {
  color: rgb(72 166 44 / 100%);
  display: block;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.case-study-rich-text {
  color: #3f4a55;
  font-size: 1rem;
  line-height: 1.72;
}

.case-study-rich-text p {
  margin: 0 0 1rem;
}

.case-study-findings-list {
  display: grid;
  gap: 10px;
}

.case-study-finding {
  align-items: stretch;
  background: #fbfcfd;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 5px 1fr;
  overflow: hidden;
}

.case-study-finding__marker {
  background: #c7442e;
}

.case-study-finding__content {
  padding: 11px 14px 12px;
}

.case-study-finding__header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.case-study-finding__header span {
  color: #51606f;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.case-study-finding__header strong {
  background: rgba(199, 68, 46, 0.08);
  border: 1px solid rgba(199, 68, 46, 0.2);
  border-radius: 999px;
  color: #c7442e;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
}

.case-study-finding h2 {
  color: #2c333e;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.case-study-detail-card p,
.case-study-muted {
  color: #51606f;
  line-height: 1.62;
  margin: 10px 0 0;
}

.case-study-finding p {
  color: #51606f;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 5px 0 0;
}

.case-study-review {
  background: #f7fafc;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  margin: 0;
  padding: 20px;
}

.case-study-review--sidebar {
  background: transparent;
  border: 0;
  padding: 0;
}

.case-study-review__ratings {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.case-study-review__ratings--inspector {
  margin: 14px 0 10px;
}

.case-study-review__ratings div {
  background: #fff;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  padding: 10px 12px;
}

.case-study-review__ratings--inspector div {
  position: static;
}

.case-study-review__ratings span {
  color: #51606f;
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.case-study-review__ratings strong {
  display: block;
  line-height: 1.1;
}

.case-study-rating-stars {
  color: #c4ced6;
  font-size: 1rem;
  letter-spacing: 0;
}

.case-study-rating-stars i {
  font-style: normal;
}

.case-study-rating-stars .is-filled {
  color: #f5a623;
}

.case-study-review__ratings em {
  color: rgb(34 87 122 / 100%);
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
  margin-top: 6px;
}

.case-study-review__words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.case-study-inspector-quality-list {
  background: transparent !important;
  border: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0 !important;
}

.case-study-inspector-quality-list em {
  background: #edf2f5;
  border-radius: 999px;
  color: #2c333e;
  display: inline-flex;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 9px;
}

.case-study-review__words span {
  background: #edf2f5;
  border-radius: 999px;
  color: #2c333e;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 9px;
}

.case-study-review p {
  color: #2c333e;
  font-size: 0.95rem;
  line-height: 1.62;
  margin: 0;
}

.case-study-review__comment {
  background: #f7fafc;
  border-left: 4px solid rgb(72 166 44 / 100%);
  border-radius: 0 8px 8px 0;
  margin-top: 14px !important;
  padding: 14px 14px 14px 18px;
  position: relative;
}

.case-study-review__comment::before {
  color: rgb(72 166 44 / 35%);
  content: "\201C";
  font-size: 2.4rem;
  font-weight: 900;
  left: 8px;
  line-height: 1;
  position: absolute;
  top: 2px;
}

.case-study-detail-sidebar {
  display: grid;
  gap: 16px;
}

.case-study-detail-card {
  background: #fff;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  padding: 18px;
}

.case-study-detail-card .case-study-finding {
  padding: 14px;
}

.case-study-detail-card .case-study-finding h2 {
  font-size: 0.94rem;
}

.case-study-detail-card--highlight {
  background: rgb(34 87 122 / 100%);
  border-color: rgb(34 87 122 / 100%);
}

.case-study-detail-card--highlight span,
.case-study-detail-card--highlight strong {
  color: #fff;
}

.case-study-detail-card--highlight strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.case-study-detail-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.case-study-detail-card dt {
  color: #51606f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-study-detail-card dd {
  color: #2c333e;
  font-size: 0.95rem;
  font-weight: 800;
  margin: -4px 0 4px;
}

.case-study-inspector {
  align-items: center;
  display: flex;
  gap: 12px;
}

.case-study-inspector img,
.case-study-inspector div {
  align-items: center;
  background: #edf2f5;
  border-radius: 50%;
  color: rgb(34 87 122 / 100%);
  display: flex;
  flex: 0 0 48px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  object-fit: cover;
  width: 48px;
}

.case-study-inspector strong {
  color: #2c333e;
  font-weight: 900;
}

.case-study-detail-card a {
  color: rgb(34 87 122 / 100%);
  display: inline-block;
  font-weight: 900;
  margin-top: 12px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .case-studies-hero {
    /*padding: 52px 0 42px;*/
  }

  .case-studies-hero h1 {
    font-size: 3rem;
  }

  .case-studies-list {
    padding-top: 42px;
  }

  .case-study-detail-hero {
    padding: 42px 0 46px;
  }

  .case-study-detail-hero h1 {
    font-size: 3rem;
  }

  .case-study-detail-section .page-h2 {
    font-size: 1.9rem;
    line-height: 2.2rem;
  }

  .case-study-detail-image {
    margin-top: 0;
  }
}
