.sites-section-inner {
    border-bottom: 1px solid var(--border-color);
}

.site-item {
    position: relative;
    overflow: hidden;
    background: #171717;
    border-top: 1px solid var(--border-color);
    transition: all 0.5s ease;
}

.site-item-top {
    padding: 1.75rem 1.75rem 5rem 1.75rem;
}

.site-item-top-image {
    position: relative;
    width: 100%;
    bottom: -50px;
    opacity: 0.02;
    transition: opacity 1.5s ease, bottom 1.5s ease;
}

.site-item:first-child .site-item-top-image {
    opacity: 1;
    bottom: 0;
}

.site-item-top-image.animate {
    opacity: 1;
    bottom: 0;
}

.site-item-body {
    position: relative;
    max-height: 50rem;
    display: flex;
}

.site-item-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    background: #171717;
    padding: 1.75rem;
    width: 50%;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.site-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.site-item-headline {
    letter-spacing: -0.07rem;
    margin-bottom: 2rem;
}

.site-item-image {
    position: relative;
    width: 80%;
    /* transform: translate3d(-5%, 20%, 0); */
    transition: all 1.5s ease;
}

.site-item-image.animate {
    /* transform: translate3d(0%, 0%, 0); */
}

.site-item-image-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 50%;
    line-height: 0;
}

.site-item-second-image {
    position: absolute;
    right: 0;
    top: 0;
    max-width: 13%;
}

.site-item-second-image img {
    width: 100%;
}

.site-item-logo-wrapper {
    position: relative;
    height: 1.75rem;
}

.site-item-logo-wrapper img {
    height: 100%;
}

.site-item-domain {
    color: #fff;
}

.site-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-page {
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    border-radius: 6.25rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(7px);
    font-size: 0.875rem;
    color: #ffffffb3;
    line-height: 140%;
}

.site-pages-more {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    color: #ffffffb3;
}

.site-item-back {
    position: absolute;
    right: -10%;
    height: 100%;
    width: 60%;
    border-radius: 100%;
    filter: blur(200px);
}

.site-item-2 .site-item-back {
    background: linear-gradient(90deg, #12EEA7 0%, #29D9E2 100%);
}

.site-item-8 .site-item-back {
    background: linear-gradient(90deg, #EBDDA0 -5.8%, #F5D550 6.62%, #CAA200 25.91%, #957700 40.72%, #EBDDA0 75.08%);
}

.site-item-4 .site-item-back {
    background: linear-gradient(109deg, #70E0FF 0.01%, #2377FF 49.81%, #BE6CFF 99.62%);
}

.site-item-3 .site-item-back {
    background: linear-gradient(106deg, #FF2828 0.87%, #FF6C22 50.26%, #FFCE00 99.64%);
}

.site-item-2 .hw-button>i {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.20) 100%), linear-gradient(90deg, #12EEA7 0%, #29D9E2 100%);
}

.site-item-8 .hw-button>i {
    background: linear-gradient(227deg, #B08D00 -20.21%, #EBDDA0 16.32%, #F5D550 52.31%, #B08D00 100%);
}

.site-item-4 .hw-button>i {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%), linear-gradient(90deg, #70E0FF -105%, #2377FF 23.75%, #BE6CFF 152.5%);
}

.site-item-3 .hw-button>i {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.20) 100%), linear-gradient(123deg, #FF2828 0%, #FF6C22 63.52%, #FFCE00 127.03%);
}


.site-item-8 .hw-button-container:has(> a.button-border)::after {
    content: '';
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    background-image: url(/ai/wp-content/plugins/hw-main/sites/ai/assets/img/ai-icon-star.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 3rem;
    height: 3rem;
    aspect-ratio: 1 / 1;
    mix-blend-mode: color-dodge;
    pointer-events: none;
}

.site-item-8 .site-item-logo-wrapper::after {
    content: '';
    position: absolute;
    background-image: url(/ai/wp-content/plugins/hw-main/sites/ai/assets/img/ai-icon-star.svg);
    background-size: contain;
    background-repeat: no-repeat;
    top: -1rem;
    right: -0.825rem;
    width: 2rem;
    height: 2rem;
    aspect-ratio: 1 / 1;
    mix-blend-mode: color-dodge;
    pointer-events: none;
}


@media (max-width: 1270px) {
    .site-item-content {
        width: calc(100% / 3 * 2);
        gap: 6rem;
    }

    .site-item-image-wrapper {
        width: calc(100% / 3);
    }

    .site-item-image {
        width: 120%;
    }

    .site-item-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .site-item-top {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .site-item-image-wrapper {
        position: absolute;
        top: 30%;
    }

    .site-item-content {
        width: 90%;
        left: 10%;
    }

    .site-item-headline {
        font-size: 2rem;
    }
}

@media (max-width: 468px) {
    .site-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}