.case-page,
.case-detail-page {
  background: linear-gradient(180deg, #f7fbf5 0, #ffffff 320px);
}

.case-page-hero {
  padding: 48px 24px 30px;
}

.case-page-hero nav,
.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #647166;
  font-size: 10px;
}

.case-page-hero nav {
  margin-bottom: 31px;
}

.case-page-hero nav a,
.case-breadcrumb a {
  color: #25662e;
}

.case-page-hero .eyebrow,
.case-detail-kicker,
.case-kicker {
  color: #277934;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-page-hero .eyebrow {
  margin: 0 0 10px;
  font-size: 10px;
}

.case-page-hero h1 {
  max-width: 330px;
  margin: 0;
  color: #172219;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.case-page-hero h1::after {
  display: block;
  width: 38px;
  height: 4px;
  margin-top: 22px;
  border-radius: 4px;
  background: #f5782b;
  content: "";
}

.case-page-hero .description {
  max-width: 330px;
  margin: 21px 0 0;
  color: #657268;
  font-size: 13px;
  line-height: 1.7;
}

.case-directory {
  padding: 14px 22px 64px;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.case-filters button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #d4e5d0;
  border-radius: 999px;
  color: #677169;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.case-filters button.active {
  border-color: #287f34;
  color: #ffffff;
  background: #287f34;
  box-shadow: 0 8px 18px rgba(40, 127, 52, 0.18);
}

.case-card-list {
  display: grid;
  gap: 16px;
}

.case-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 142px;
  padding: 14px;
  border: 1px solid #d7e7d3;
  border-radius: 18px;
  color: #172219;
  background: linear-gradient(135deg, #ffffff, #f5faf3);
  box-shadow: 0 10px 25px rgba(38, 80, 40, 0.07);
}

.case-card[hidden] {
  display: none;
}

.case-card-image {
  width: 112px;
  height: 112px;
  border-radius: 13px;
  object-fit: cover;
}

.case-card-copy {
  min-width: 0;
}

.case-kicker {
  margin: 0 0 7px;
  color: #ef7129;
  font-size: 8px;
}

.case-card h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.case-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #286530;
  background: #e6f2df;
  font-size: 9px;
  font-weight: 700;
}

.case-empty {
  margin: 48px 0;
  color: #637166;
  text-align: center;
}

.case-detail {
  padding: 42px 20px 64px;
}

.case-breadcrumb {
  margin-bottom: 38px;
}

.case-detail-kicker {
  margin: 0 0 9px;
  color: #ef7129;
  font-size: 9px;
}

.case-detail h1 {
  margin: 0;
  color: #172219;
  font-size: 23px;
  line-height: 1.25;
}

.case-detail h1::after {
  display: block;
  width: 38px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: #f5782b;
  content: "";
}

.case-detail-tags {
  margin: 14px 0 0;
}

.case-detail-image {
  display: block;
  width: 100%;
  max-height: 310px;
  margin: 24px 0 30px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(32, 70, 35, 0.12);
}

.case-rich-content {
  color: #303632;
  font-size: 11px;
  line-height: 1.55;
}

.case-rich-content .ax_default,
.case-rich-content .text {
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  position: static !important;
}

.case-rich-content p {
  margin: 0 0 13px;
}

.case-rich-content .case-section-title {
  margin: 28px 0 14px;
  color: #43a34c;
  font-size: 14px;
  font-weight: 700;
}

.case-rich-content .case-day-line {
  padding-left: 0;
}

.case-rich-content .case-day-line strong {
  color: #172219;
}

.case-rich-content img,
.case-rich-content video,
.case-rich-content iframe {
  max-width: 100%;
  height: auto;
}

.case-rich-content table {
  width: 100%;
  margin: 18px 0 26px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 10px;
}

.case-rich-content th,
.case-rich-content td {
  padding: 9px 10px;
  border: 1px solid #a9b1aa;
  text-align: left;
  vertical-align: top;
}

.case-rich-content th {
  color: #286530;
  background: #edf6e8;
}

@media (min-width: 720px) {
  .case-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
