/* Home section: completed projects */
.az9s-home-section-heading {
  text-align: center;
}

.az9s-home-section-heading h2 {
  color: #0019c8;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
}

.az9s-home-projects {
  background: #fff;
  border-top: 4px solid #e30613;
  padding: 22px 0 34px;
}

.az9s-home-projects__inner,
.az9s-home-news__inner {
  margin: 0 auto;
  max-width: 1360px;
  padding: 0 16px;
  width: 100%;
}

.az9s-home-projects__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.az9s-home-project-card {
  background: #fff;
  text-align: center;
}

.az9s-home-project-card__image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
  color: #777;
  display: flex;
  font-size: 14px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.az9s-home-project-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.az9s-home-project-card:hover .az9s-home-project-card__image img {
  transform: scale(1.04);
}

.az9s-home-project-card__body {
  padding: 14px 10px 0;
}

.az9s-home-project-card__body h3 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 8px;
}

.az9s-home-project-card__body h3 a,
.az9s-home-news-card__body h3 a {
  color: #555;
  text-decoration: none;
}

.az9s-home-project-card__body h3 a:hover,
.az9s-home-news-card__body h3 a:hover,
.az9s-home-news__head > a:hover {
  color: #e30613;
}

.az9s-home-project-card__body p {
  color: #777;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Home section: latest news */
.az9s-home-news {
  background: #fff;
  padding: 30px 0 42px;
}

.az9s-home-news__head {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
}

.az9s-home-news__head .az9s-home-section-heading {
  grid-column: 2;
}

.az9s-home-news__head > a {
  color: #555;
  font-size: 14px;
  font-weight: 800;
  grid-column: 3;
  justify-self: end;
  text-decoration: none;
  text-transform: uppercase;
}

.az9s-home-news__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.az9s-home-news-card {
  background: #fff;
}

.az9s-home-news-card__image {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: #f4f4f4;
  color: #777;
  display: flex;
  font-size: 14px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.az9s-home-news-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.az9s-home-news-card:hover .az9s-home-news-card__image img {
  transform: scale(1.04);
}

.az9s-home-news-card__date {
  align-items: center;
  background: #fff;
  border: 2px solid #e30613;
  color: #e30613;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  left: 0;
  line-height: 1;
  position: absolute;
  top: 18px;
  width: 54px;
  z-index: 2;
}

.az9s-home-news-card__date span {
  font-size: 18px;
}

.az9s-home-news-card__date small {
  font-size: 12px;
  margin-top: 4px;
}

.az9s-home-news-card__body {
  padding: 16px 8px 0;
  text-align: center;
}

.az9s-home-news-card__body h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.az9s-home-news-card__meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 10px;
}

.az9s-home-news-card__body p {
  color: #777;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .az9s-home-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .az9s-home-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .az9s-home-section-heading h2 {
    font-size: 20px;
  }

  .az9s-home-projects {
    padding-top: 18px;
  }

  .az9s-home-projects__grid,
  .az9s-home-news__grid {
    grid-template-columns: 1fr;
  }

  .az9s-home-news__head {
    display: block;
    text-align: center;
  }

  .az9s-home-news__head > a {
    display: inline-block;
    margin-top: 10px;
  }
}
