:root {
  --sidebar-width: 31rem;
  --layout-gap: 4rem;
  --wp--style--block-gap: clamp(3.5rem, 2.737rem + 1.404vw, 4rem);
}

@media (min-width: 1300px) {
  :root {
    --sidebar-width: 34rem;
    --layout-gap: 6rem;
  }
}
/*
@mixin button {
    display: inline-flex;
    align-items: center;
    font-family: $ff-body;
    font-size: $font-17;
    font-weight: 500;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
    padding: 1.2rem 2rem;
    color: $dark-green;
    background: transparent;
    border: 1px solid $dark-green;
    border-radius: 3.2rem;
    cursor: pointer;
    transition: color $speed $cb, background $speed $cb;

    &:after {
        content: '';
        background-color: currentColor;
        mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.0247 9.55859C15.2669 9.80078 15.2669 10.1992 15.0247 10.4414L7.52472 17.9414C7.28253 18.1836 6.88409 18.1836 6.64191 17.9414C6.39972 17.6992 6.39972 17.3008 6.64191 17.0586L13.7005 10L6.64191 2.94141C6.39972 2.69922 6.39972 2.30078 6.64191 2.05859C6.88409 1.81641 7.28253 1.81641 7.52472 2.05859L15.0247 9.55859Z' fill='%23000000'/%3E%3C/svg%3E");        
        width: 20px;
        height: 20px;
        margin-left: 8px;
    }

    &:hover,
    &:active,
    &:focus {
        color: #fff;
        background: $dark-green;
    }

    &[href^="http"]:not([href*="origin-framework.luminated.co.uk"]):not([href*="originenterprises.com"]),
    &[target="_blank"] {
        &:after {
            margin-top: -3px;
            mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.4213 9.38932V14.6834C14.4213 15.1515 14.2354 15.6003 13.9045 15.9313C13.5735 16.2622 13.1247 16.4481 12.6566 16.4481H2.95074C2.48271 16.4481 2.03385 16.2622 1.70291 15.9313C1.37196 15.6003 1.18604 15.1515 1.18604 14.6834V4.97755C1.18604 4.50952 1.37196 4.06066 1.70291 3.72972C2.03385 3.39877 2.48271 3.21284 2.95074 3.21284H8.24486' stroke='%23006450' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.8916 1.44814H16.1857V6.74225' stroke='%23006450' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.50619 9.12796L16.1862 1.44814' stroke='%23006450' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
            background-size: cover;
        }
    }

    &[href*="wp-origin-resources-2024"] {
        &:after {
            mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.0247 9.55859C15.2669 9.80078 15.2669 10.1992 15.0247 10.4414L7.52472 17.9414C7.28253 18.1836 6.88409 18.1836 6.64191 17.9414C6.39972 17.6992 6.39972 17.3008 6.64191 17.0586L13.7005 10L6.64191 2.94141C6.39972 2.69922 6.39972 2.30078 6.64191 2.05859C6.88409 1.81641 7.28253 1.81641 7.52472 2.05859L15.0247 9.55859Z' fill='%23000000'/%3E%3C/svg%3E")!important;
            background-size: cover;
        }
    }
}
*/
.pillars {
  position: relative;
}
.pillars__item {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 2.5rem 2rem;
  position: relative;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  cursor: pointer;
}
.pillars__item:before {
  content: "";
  display: block;
  background: #00251c;
  border-radius: 4px;
  position: absolute;
  inset: 0 -3rem;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillars__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.pillars__item:hover, .pillars__item:focus-visible, .pillars__item.is-active {
  z-index: 5;
}
.pillars__item:hover:before, .pillars__item:focus-visible:before, .pillars__item.is-active:before {
  opacity: 1;
}
.pillars__item:hover .pillars__title, .pillars__item:focus-visible .pillars__title, .pillars__item.is-active .pillars__title {
  opacity: 0.7;
}
.pillars__content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}
.pillars__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.6rem, 8vw, 6rem);
  min-width: clamp(2.6rem, 8vw, 6rem);
}
.pillars__icon img {
  display: block;
  width: 100%;
  height: auto;
}
.pillars__title {
  font-size: var(--wp--preset--font-size--font-21);
  line-height: 1.45;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillars__image {
  display: block;
  margin-top: 2rem;
  line-height: 0;
  overflow: hidden;
  border-radius: 4px;
}
.pillars__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42/1;
  height: auto;
  object-fit: cover;
}
@media (max-width: 599px) {
  .pillars__content {
    align-items: flex-start;
    gap: 1.5rem;
  }
  .pillars__title {
    font-size: var(--wp--preset--font-size--font-17);
    line-height: 1.35;
  }
}
@media (max-width: 1023px) {
  .pillars__item {
    padding: 2rem calc(30% + 2rem) 2rem 1rem;
  }
  .pillars__item:before {
    inset: 0 -1rem;
  }
  .pillars__image {
    width: 28%;
    max-width: 18rem;
    margin: 0;
    position: absolute;
    top: 50%;
    right: 1rem;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(50%);
    transform: translateY(-50%) scale(0.96);
    transition: opacity 0.375s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.375s cubic-bezier(0.4, 0, 0.2, 1), clip-path 0.375s cubic-bezier(0.4, 0, 0.2, 1), transform 0.375s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
  }
  .pillars__item:hover .pillars__image, .pillars__item:focus-visible .pillars__image, .pillars__item.is-active .pillars__image {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0);
    transform: translateY(-50%) scale(1);
  }
}
@media (min-width: 1024px) {
  .pillars__item {
    padding: 5rem 0;
  }
  .pillars__image {
    width: 38%;
    max-width: 53rem;
    margin: 0;
    position: absolute;
    top: 50%;
    right: 3rem;
    opacity: 0;
    visibility: hidden;
    clip-path: inset(50%);
    transform: translateY(-50%) scale(0.96);
    transition: opacity 0.375s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.375s cubic-bezier(0.4, 0, 0.2, 1), clip-path 0.375s cubic-bezier(0.4, 0, 0.2, 1), transform 0.375s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
  }
  .pillars__item:hover .pillars__image, .pillars__item:focus-visible .pillars__image, .pillars__item.is-active .pillars__image {
    opacity: 1;
    visibility: visible;
    clip-path: inset(0);
    transform: translateY(-50%) scale(1);
  }
}
