.section-project_categories .background {
  position: absolute;
  inset: 0;
  background-color: var(--white);
}
.section-project_categories .background img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.1;
}
.section-project_categories:has(.background) {
  margin: 0;
  padding: 5em 0;
}
.section-project_categories .container {
  position: relative;
}
.section-project_categories .container .categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  grid-gap: 20px;
}
.section-project_categories .container .categories .cat {
  width: calc(33% - 14px);
  background-color: var(--white);
  border-top: 5px solid var(--primary);
  padding: 20px;
  border-radius: 0 0 10px 10px;
}
.section-project_categories .container .categories .cat a {
  text-decoration: none;
  position: relative;
}
.section-project_categories .container .categories .cat a img.icon {
  height: 50px;
}
.section-project_categories .container .categories .cat a h3 {
  color: var(--black);
  font-size: 1.5em;
  transition: all 0.1s;
  height: 60px;
  margin: 20px 0;
  padding-right: 50px;
  position: relative;
}
.section-project_categories .container .categories .cat a h3:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 90%;
  height: 20px;
  width: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("/wp-content/uploads/2026/05/arrow.png");
  transition: all 0.2s;
}
.section-project_categories .container .categories .cat a:hover h3 {
  color: var(--primary);
}
.section-project_categories .container .categories .cat a:hover h3:after {
  left: 92%;
}
.section-project_categories .container .categories .cat .cats, .section-project_categories .container .categories .cat .projs {
  display: none;
}
.section-project_categories .container .categories .cat .accordion .item {
  background-color: var(--gray);
}
.section-project_categories .container .categories .cat .accordion .item:not(:last-child) {
  margin-bottom: 6px;
}
.section-project_categories .container .categories .cat .accordion .item .top {
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.section-project_categories .container .categories .cat .accordion .item .top p {
  margin: 0;
  font-size: 0.9em;
}
.section-project_categories .container .categories .cat .accordion .item .top .btn {
  position: relative;
  width: 16px;
  height: 16px;
}
.section-project_categories .container .categories .cat .accordion .item .top .btn div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 1px;
  background-color: var(--black);
}
.section-project_categories .container .categories .cat .accordion .item .top .btn div:nth-child(1) {
  transform: translate(-50%, -50%) rotate(90deg);
}
.section-project_categories .container .categories .cat .accordion .item .content {
  display: none;
  font-size: 0.9em;
  padding: 8px;
}
.section-project_categories .container .categories .cat .accordion .item .content a {
  font-weight: 500;
}
.section-project_categories .container .categories .cat .accordion .item .content a:hover {
  text-decoration: underline;
}
.section-project_categories .container .categories .cat .accordion .item.active .top .btn div:nth-child(1) {
  display: none;
}
.section-project_categories .container .categories .cat .accordion .item.active .content {
  display: block;
}
.section-project_categories .container .buttons {
  justify-content: center;
  margin-top: 50px;
}
.section-project_categories .top-logo {
  position: absolute;
  top: -15px;
  left: calc(100vw - 225px);
  width: 200px;
}

@media (max-width: 1100px) {
  .section-project_categories .container .categories .cat {
    width: calc(50% - 10px);
  }
}
@media (max-width: 700px) {
  .section-project_categories .container .categories .cat {
    width: 100%;
  }
  .section-project_categories .top-logo {
    opacity: 0.1;
    width: 150px;
    left: calc(100vw - 150px);
  }
}
/*

Options > List categories

*/
.section-project_categories[options~=list-categories] .container .categories .cat .cats {
  display: block;
}

/*

Options > List projects

*/
.section-project_categories[options~=list-projects] .container .categories .cat .projs {
  display: block;
}

/*

Options > Show as image blocks

*/
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat {
  position: relative;
  border-top: 0;
  background-color: var(--primary);
  border-radius: 10px;
  aspect-ratio: 1;
  max-height: 350px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-decoration: unset;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat .background {
  position: absolute;
  inset: 0;
  background-color: unset;
  overflow: hidden;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat .background img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  opacity: 0.5;
  transition: all 0.5s;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat .background:after {
  content: "";
  position: absolute;
  top: 0;
  right: -25px;
  transition: all 0.5s;
  width: 75px;
  height: 100%;
  background-color: var(--primary);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat .content {
  position: absolute;
  color: var(--white);
  inset: 0;
  top: 100%;
  padding: 0 20px;
  transition: all 0.5s;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat .content h3 {
  position: absolute;
  bottom: 100%;
  margin: 0 0 20px;
  font-size: 1.8em;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat:hover .background img {
  opacity: 0.25;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat:hover .background:after {
  right: 0;
}
.section-project_categories[options~=show-as-image-blocks] .container .categories .cat:hover .content {
  top: 40%;
}

@media (max-width: 1000px) {
  .section-project_categories[options~=show-as-image-blocks] .container .categories .cat .content {
    position: relative;
    top: unset !important;
  }
  .section-project_categories[options~=show-as-image-blocks] .container .categories .cat .content h3 {
    position: relative;
    bottom: unset;
  }
  .section-project_categories[options~=show-as-image-blocks] .container .categories .cat .background img {
    opacity: 0.25 !important;
  }
  .section-project_categories[options~=show-as-image-blocks] .container .categories .cat .background:after {
    right: 0px !important;
  }
}
/*

Scroll Animations

*/
.section-project_categories.scrolled-to .block:nth-child(1) {
  animation: block1 0.5s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(2) {
  animation: block2 0.6s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(3) {
  animation: block3 0.7s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(4) {
  animation: block4 0.8s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(5) {
  animation: block5 0.9s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(6) {
  animation: block6 1s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(7) {
  animation: block7 1.1s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(8) {
  animation: block8 1.2s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(9) {
  animation: block9 1.3s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(10) {
  animation: block10 1.4s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(11) {
  animation: block11 1.5s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(12) {
  animation: block12 1.6s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(13) {
  animation: block12 1.7s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(14) {
  animation: block12 1.8s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(15) {
  animation: block12 1.9s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(16) {
  animation: block12 2s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(17) {
  animation: block12 2.1s forwards;
}
.section-project_categories.scrolled-to .block:nth-child(18) {
  animation: block12 2.2s forwards;
}
.section-project_categories.scrolled-to .block {
  animation: block13 2.3s forwards;
}

@keyframes block1 {
  from {
    margin: -50px 0 50px;
    opacity: 0;
  }
  to {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block2 {
  0%, 20% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block3 {
  0%, 33% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block4 {
  0%, 43% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block5 {
  0%, 50% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block6 {
  0%, 55% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block7 {
  0%, 60% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block8 {
  0%, 64% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block9 {
  0%, 67% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block10 {
  0%, 70% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block11 {
  0%, 72% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block12 {
  0%, 74% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}
@keyframes block13 {
  0%, 75% {
    margin: -50px 0 50px;
    opacity: 0;
  }
  100% {
    margin: 0;
    opacity: 1;
  }
}