/* ----------------------------------------
   Hero
----------------------------------------- */
.case-studies-hero {
  background: #f9f8f6;
  padding: 10px 16px;
}

.case-studies-hero h1 {
  font-size: 2.2rem;
  color: #001e60;
  margin-bottom: 12px;
}

.case-studies-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  color: #444;
}

/* ----------------------------------------
   Wrapper
----------------------------------------- */
.case-studies-wrapper {
  padding: 5px 16px;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ----------------------------------------
   Cards
----------------------------------------- */
.case-study-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.case-study-card img {
  width: 100%;
  height: auto;
  display: block;
}

.case-study-card-body {
  padding: 20px;
}

.case-study-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ff7a00;
  margin-bottom: 8px;
}

.case-study-card h2 {
  font-size: 1.25rem;
  color: #001e60;
  margin-bottom: 8px;
}

.case-study-card h2 a {
  color: inherit;
  text-decoration: none;
}

.case-study-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.case-study-link {
  font-weight: 600;
  color: #001e60;
  text-decoration: none;
}

.case-study-link:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   Mobile
----------------------------------------- */
@media (max-width: 992px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .case-studies-hero h1 {
    font-size: 1.9rem;
  }
}
/* Best-for chips */
.case-study-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}

.case-study-chips li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 500;
}
/* ======================================================
   HEADER SPACER
   Desktop uses global site-wrapper offset
   Mobile needs extra protection
====================================================== */

.header-spacer {
  display: none;
}

@media (max-width: 768px) {
  .header-spacer {
    display: block;
    height: 96px; /* mobile header height */
  }
}
@media (max-width: 768px) {
  .header-spacer {
    display: block;
    height: var(--mobile-header-height, 96px);
  }
}
