.projects-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 120px;
}

.projects-section.projects {
  padding-top: 176px;
  gap: 72px;
  flex-direction: column;
}

.projects-main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1280px;
}

.header-main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 16px;
  max-width: 1280px;
}

.header-section-title {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: var(--regular);
  color: var(--neutral-05);
  text-align: center;
}

.header-title {
  font-size: 48px;
  line-height: 48px;
  font-weight: var(--bold);
  color: var(--neutral-01);
  text-align: center;
}

.header-description {
  margin-top: 8px;
  max-width: 800px;
  text-align: center;
  font-size: 18px;
  line-height: 26px;
  color: var(--neutral-06);
  text-align: center;
}

.filter-banner-main-container {
  width: 100%;
  height: 80px;
  background-color: var(--neutral-18);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.filter-banner-placeholder {
  width: 0;
  min-width: 0;
  height: 0;
  flex: 0 0 0;
  overflow: hidden;
  pointer-events: none;
}

.filter-banner-main-container.is-fixed {
  position: fixed;
  top: var(--navbar-visible-height, 0px);
  left: 0;
  right: 0;
  z-index: 950;
}

.object-filter {
  font-size: 14px;
  line-height: 20px;
  color: var(--neutral-08);
  font-weight: var(--medium);
  padding: 12px;
  background-color: transparent;
  outline: none;
}

.object-filter:is(:hover, :focus-visible, :focus-within) {
  color: var(--white);
  font-weight: var(--semiBold);
  cursor: pointer;
}

.object-filter.active {
  color: var(--white);
  font-weight: var(--semiBold);
  border: solid 2px var(--brand-terracotta-02);
}

[data-filter-item][hidden] {
  display: none !important;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px 160px;
  align-items: start;
  width: 100%;
  margin-top: 14px;
}

.projects-grid > .single-project-card:nth-child(2n) {
  margin-top: 96px;
}

.single-project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
}

.project-card-image {
  width: 100%;
  overflow: hidden;
}

.project-card-image > img {
  display: block;
  width: 100%;
  transform: scale(1);
  transform-origin: center;
  transition: transform 260ms ease;
}

.project-card-details {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  align-items: flex-end;
  padding: 32px 16px;
  border: 1px solid var(--neutral-18);
}

.project-card-location-name {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 340px;
}

.project-location-year {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-text {
  font-family: "Montserrat", sans-serif;
  font-weight: var(--regular);
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neutral-05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-name {
  font-weight: var(--bold);
  font-size: 32px;
  line-height: 40px;
  color: var(--neutral-01);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button-count {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--brand-terracotta-01);

  display: flex;
  justify-content: center;
  align-items: center;

  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 100%;
  font-weight: var(--medium);
  color: var(--white);

  position: absolute;
  top: -16px;
  right: -16px;
}

.single-project-card:hover .project-card-details {
  background-color: var(--neutral-01);
}

.single-project-card:hover .project-card-image > img {
  transform: scale(1.03);
}

.single-project-card:hover .project-text {
  color: var(--neutral-12);
}

.single-project-card:hover .project-name {
  color: var(--brand-dark-grey-01);
}

.single-project-card:hover .facade-btn {
  background-color: var(--brand-terracotta-01);
  border: 1px solid var(--brand-terracotta-01);
}

.single-project-card:hover .facade-btn img {
  filter: var(--filter-white);
  rotate: 270deg;
}
.no-news-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 200px;
  padding-bottom: 120px;
}

.news-grid-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 20px;
  width: fit-content;
}

.no-news-text {
  font-size: 16px;
  line-height: 24px;
  width: 100%;
  max-width: 700px;
  color: var(--neutral-06);
  font-weight: var(--medium);
  text-align: center;
}

.news-image {
  width: 100%;
  overflow: hidden;
}

.news-img {
  width: 100%;
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 260ms ease;
}

.single-news:hover .news-img {
  transform: scale(1.03);
}

.single-news:hover .news-description-container {
  background-color: var(--neutral-02);
  border: 1px solid var(--neutral-02);
}

.single-news:hover .facade-btn {
  background-color: var(--brand-terracotta-01);
  border: 1px solid var(--brand-terracotta-01);
}

.single-news:hover .facade-btn img {
  rotate: 270deg;
  filter: var(--filter-white);
}

.single-news:hover .news-name {
  color: var(--brand-dark-grey-01);
}

.single-news:hover .news-date {
  color: var(--neutral-12);
}

@media (max-width: 1340px) {
  .news-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
  }
}

@media (max-width: 1080px) {
  .header-main-container {
    padding: 0 48px;
  }

  .header-section-title {
    font-size: 14px;
  }

  .header-title {
    font-size: 32px;
    line-height: 32px;
  }

  .header-description {
    font-size: 16px;
    line-height: 26px;
  }
}

@media (max-width: 991px) {
  .header-main-container {
    padding: 0 32px;
  }

  .filter-banner-main-container {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 32px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-banner-main-container::-webkit-scrollbar {
    display: none;
  }

  .object-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid > .single-project-card:nth-child(2n) {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .header-main-container {
    padding: 0 24px;
  }

  .news-grid-container {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding-inline: 16px;
  }

  .news-grid-container .single-news {
    width: 100%;
    max-width: none;
    height: fit-content;
  }

  .news-img {
    height: unset;
  }

  .filter-banner-main-container {
    padding: 0 20px;
  }
}

@media (max-width: 500px) {
  .header-main-container {
    padding: 0 20px;
  }

  .header-section-title {
    font-size: 14px;
  }

  .header-title {
    font-size: 28px;
    line-height: 28px;
  }

  .header-description {
    font-size: 14px;
    line-height: 24px;
  }
}
