/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a3a2a;
  background-color: #f4f9f6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== Site Header ===== */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #d6e8de;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a3a2a;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 4px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a6b5a;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}

.nav-link:hover {
  background-color: #e8f3ec;
  color: #1a3a2a;
}

.nav-link--active {
  background-color: #e0f0e6;
  color: #1a3a2a;
}

/* ===== Page Intro ===== */
.page-intro {
  padding-top: 32px;
  padding-bottom: 24px;
}

.page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a3a2a;
  line-height: 1.3;
  margin-bottom: 6px;
}

.page-desc {
  font-size: 0.9375rem;
  color: #4a6b5a;
  line-height: 1.55;
  max-width: 560px;
}

/* ===== Case Grid ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}

/* ===== Case Card ===== */
.case-card {
  background-color: #fff;
  border-radius: 14px;
  border: 1px solid #d6e8de;
  box-shadow: 0 8px 24px rgba(26, 58, 42, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  scroll-margin-top: 72px;
}

.case-card:hover {
  border-color: #a3cdb5;
  box-shadow: 0 12px 30px rgba(26, 58, 42, 0.1);
  transform: translateY(-2px);
}

.case-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Cover */
.case-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e8f3ec;
  flex-shrink: 0;
  border-radius: 14px 14px 0 0;
}

.case-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Some official customer-story banners reserve the left half for headline copy. */
.case-card-cover-image--focus-right {
  object-position: right center;
  transform: scale(1.32);
  transform-origin: right center;
}

/* Body */
.case-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2e9e6e;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.case-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a3a2a;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-summary {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #4a6b5a;
  margin-bottom: 12px;
  flex: 1;
}

/* Tags */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #2e9e6e;
  background-color: #e8f5ee;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.6;
}

/* Meta */
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #7a9a8a;
  border-top: 1px solid #e8f0ec;
  padding-top: 12px;
  margin-top: auto;
}

.meta-source,
.meta-reading {
  white-space: nowrap;
}

/* ===== Site Footer ===== */
.site-footer {
  border-top: 1px solid #d6e8de;
  background-color: #fff;
  padding: 20px 0;
}

.footer-text {
  font-size: 0.8125rem;
  color: #7a9a8a;
  text-align: center;
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 960px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
    align-items: flex-start;
  }

  .main-nav {
    gap: 2px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.8125rem;
    padding: 5px 10px;
  }

  .page-intro {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .page-desc {
    font-size: 0.875rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 32px;
  }

  .case-card-body {
    padding: 14px 16px 16px;
  }

  .case-title {
    font-size: 0.9375rem;
  }
}
