/* =========================================================
   HOME PROJECT RESULTS
   Isolated homepage project example section
   ========================================================= */

.eds-home-project-results {
  width: 100%;
  padding: 58px 0;
  background: #f7f9f7;
  color: var(--eds-text);
}

.eds-home-project-results__inner {
  width: min(1200px, calc(100% - 60px));
  margin: 0 auto;
}

.eds-home-project-results__intro {
  max-width: 920px;
  margin: 0 auto 30px;
  text-align: center;
}

.eds-home-project-results__eyebrow {
  margin: 0 0 10px;
  color: #37b437;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eds-home-project-results__intro h2 {
  margin: 0 0 16px;
  color: var(--eds-text);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.eds-home-project-results__intro p {
  margin: 0 auto 14px;
  color: var(--eds-text);
  font-size: 1.02rem;
  line-height: 1.72;
}

.eds-home-project-results__note {
  max-width: 850px;
  padding: 13px 16px;
  border-left: 4px solid #37b437;
  background: #ffffff;
  text-align: left;
}

.eds-home-project-results__secondary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 700px;
  margin: 0 auto 28px;
  padding: 10px 20px;
  background: #00bf63;
  
  border-radius: 14px;
 
}

.eds-home-project-results__secondary-cta p {
  margin: 0;
  color: var(--eds-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.eds-home-project-results__secondary-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid #37b437;
  border-radius: 999px;
  background: #333;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.eds-home-project-results__secondary-cta a:hover,
.eds-home-project-results__secondary-cta a:focus-visible {
  transform: translateY(-2px);
  background: #ffffff;
  color: #37b437;
  text-decoration: none;
}

.eds-home-project-results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 0 auto;
}

.eds-home-project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.055);
}

.eds-home-project-card__media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #eef8ef 0%, #dfeee2 100%),
    #eef3ef;
  color: rgba(31, 31, 31, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.eds-home-project-card__media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(31, 31, 31, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.eds-home-project-card__media--image::after {
  display: none;
}

.eds-home-project-card__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  padding: 18px;
  object-fit: contain;
  object-position: center top;
}

.eds-home-project-card.is-expanded .eds-home-project-card__media,
.eds-home-project-card[open] .eds-home-project-card__media {
  align-self: flex-start;
  height: auto;
  min-height: 210px;
  max-height: 300px;
}

.eds-home-project-card.is-expanded .eds-home-project-card__media img,
.eds-home-project-card[open] .eds-home-project-card__media img {
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: center top;
}

.eds-home-project-card__media span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
}

.eds-home-project-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
}

.eds-home-project-card__category {
  margin: 0 0 7px;
  color: #37b437;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eds-home-project-card h3 {
  margin: 0 0 8px;
  color: var(--eds-text);
  font-size: 1.03rem;
  line-height: 1.25;
}

.eds-home-project-card__summary {
  display: -webkit-box;
  min-height: 4.35em;
  margin: 0 0 12px;
  overflow: hidden;
  color: #333;
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.eds-home-project-card__meta {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.eds-home-project-card__meta div {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.eds-home-project-card__meta dt {
  margin: 0;
  color: #37b437;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.3;
}

.eds-home-project-card__meta dd {
  margin: 0;
  color: var(--eds-text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.eds-home-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 13px;
}

.eds-home-project-card__tag {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--eds-green-pale);
  color: var(--eds-text);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
}

.eds-home-project-card__link,
.eds-home-project-results__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #37b437;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}



.eds-home-project-card__link {
  width: 100%;
  margin-top: auto;
}

.eds-home-project-card__link:hover,
.eds-home-project-card__link:focus-visible,
.eds-home-project-results__action:hover,
.eds-home-project-results__action:focus-visible {
  background: #333;
  border-color: #37b437;
  color: #ffffff;
  text-decoration: none;
}

 .eds-home-project-results__action--primary {
  background: #ffffff;
  border-color: #333;
  color: #37b437;
  text-decoration: none;
}

.eds-home-project-results__action--primary:hover,
.eds-home-project-results__action--primary:focus-visible {
  background: #333;
  border-color: #333;
  color: #ffffff;
}

.eds-home-project-card__link:hover,
.eds-home-project-card__link:focus-visible,
.eds-home-project-results__action:hover,
.eds-home-project-results__action:focus-visible {
  transform: translateY(-2px);
}

.eds-home-project-results__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 0;
}

@media (max-width: 1180px) {
  .eds-home-project-results__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eds-home-project-card__media {
    min-height: 240px;
  }

  .eds-home-project-card__media img {
    max-height: 300px;
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .eds-home-project-results {
    padding: 38px 0;
  }

  .eds-home-project-results__inner {
    width: min(100% - 28px, 1200px);
  }

  .eds-home-project-results__intro {
    text-align: left;
  }

  .eds-home-project-results__intro h2 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .eds-home-project-results__intro p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .eds-home-project-results__secondary-cta {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .eds-home-project-results__secondary-cta a {
    width: 100%;
  }

  .eds-home-project-results__grid,
  .eds-home-project-card__meta {
    grid-template-columns: 1fr;
  }

  .eds-home-project-card__media {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }

  .eds-home-project-card__media img {
    max-height: 260px;
    padding: 16px;
  }

  .eds-home-project-card__body {
    padding: 20px 18px;
  }

  .eds-home-project-results__actions {
    flex-direction: column;
  }

  .eds-home-project-results__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eds-home-project-card__link,
  .eds-home-project-results__secondary-cta a,
  .eds-home-project-results__action {
    transition: none;
  }

  .eds-home-project-card__link:hover,
  .eds-home-project-card__link:focus-visible,
  .eds-home-project-results__secondary-cta a:hover,
  .eds-home-project-results__secondary-cta a:focus-visible,
  .eds-home-project-results__action:hover,
  .eds-home-project-results__action:focus-visible {
    transform: none;
  }
}
