.projects-page main {
  overflow: hidden;
}

.projects-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #d8dfdd url("../../images/project/energy-storage-project-cases-banner.webp") center / cover no-repeat;
}

.projects-hero__content {
  padding-top: 5px;
}

.projects-hero h1 {
  width: fit-content;
  margin: 0;
  padding-bottom: 17px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(var(--green), var(--green)) left bottom / 94px 3px no-repeat;
}

.projects-hero p {
  margin: 38px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.projects-hero .button {
  min-width: 251px;
  min-height: 60px;
  margin-top: 43px;
  border-color: rgba(0, 157, 82, 0.5);
  background: rgba(0, 190, 94, 0.48);
  font-size: 18px;
  text-transform: none;
  backdrop-filter: blur(2px);
}

.project-filter {
	margin-top:42px;
  border-bottom: 1px solid #dedede;
  background: #fff;
}

.project-filter__inner {
  min-height: 53px;
  display: flex;
  align-items: stretch;
  gap: 80px;
  padding-left: 32px;
}

.project-filter a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.project-filter a::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -1px;
  left: -3px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  opacity: 0;
}

.project-filter a:hover,
.project-filter a:focus-visible,
.project-filter a.is-active {
  color: var(--green-dark);
}

.project-filter a.is-active::after {
  opacity: 1;
}

.project-listing {
  padding: 32px 0 80px;
  background: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 397px);
  gap: 33px 43px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f3f3;
}
.project-card:hover h2{color: #0bc265;}
.project-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 397 / 251;
  object-fit: cover;
}

.project-card h2 {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.project-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.project-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.project-pagination .page-numbers {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #8c8c8c;
  border-radius: 7px;
  color: #111;
  background: #fff;
}

.project-pagination .current {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.projects-page .inquiry-section {
  min-height: 882px;
  background: #f3f3f3;
}

.projects-page .inquiry-field select:invalid {
  color: #cfcfcf;
}

.projects-page .inquiry-submit {
  background: #0bc265;
}

.projects-page .site-footer {
  margin-top: 0;
}

@media (max-width: 1420px) {
  .project-filter__inner {
    gap: 44px;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}

@media (max-width: 1160px) {
  .projects-hero {
    min-height: 470px;
    background-position: 56% center;
  }

  .projects-hero h1 {
    font-size: 38px;
  }

  .project-filter__inner {
    min-height: 80px;
    gap: 10px;
    padding-left: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .project-filter a {
    flex: 0 0 auto;
    padding-inline: 20px;
    font-size: 16px;
  }

  .project-filter a::after {
    right: 20px;
    left: 20px;
  }
}

@media (max-width: 900px) {
  .project-listing {
    padding: 28px 0 64px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .projects-hero {
    min-height: 405px;
    align-items: flex-end;
    color: #fff;
    background-position: 64% center;
    background-color: rgba(8, 18, 20, 0.34);
    background-blend-mode: multiply;
  }

  .projects-hero__content {
    padding-bottom: 40px;
  }

  .projects-hero h1 {
    max-width: 310px;
    padding-bottom: 12px;
    font-size: 32px;
    background-size: 76px 3px;
  }

  .projects-hero p {
    max-width: 310px;
    margin-top: 23px;
    font-size: 14px;
  }

  .projects-hero .button {
    min-width: 210px;
    min-height: 50px;
    margin-top: 27px;
    font-size: 16px;
  }

  .project-filter__inner {
    min-height: 68px;
  }

  .project-filter a {
    padding-inline: 14px;
    font-size: 14px;
  }

  .project-filter a::after {
    right: 14px;
    left: 14px;
  }

  .project-listing {
    padding: 22px 0 48px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-card {
    width: min(100%, 397px);
    justify-self: center;
  }

  .project-card h2 {
    min-height: 62px;
    padding: 9px 18px;
    font-size: 16px;
  }

  .projects-page .inquiry-section {
    min-height: 0;
  }
}
