#offices:not(.single) .offices-wrapper > .intro {
    margin-top: 5rem;
    .text {
        padding-bottom: 4.5rem;
        p:last-child {
            margin-bottom: 0;
        }
    }
}

#offices-results {
    margin-bottom: 4rem;
    .item {
        aspect-ratio: 2/1;
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        padding: 3rem;
        text-decoration: none !important;
        border-radius: var(--bs-border-radius);
        overflow: hidden;
        margin-bottom: 2rem;
        &::before,
        &::after {
            content: "";
            display: block;
            position: absolute;
            z-index: 2;
            /* inset: 0; */
            top: 20%;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            opacity: .6;
            background: linear-gradient(to bottom,rgba(5,13,50,0) 0%,rgba(5,13,50,1) 100%);
            transition: all .3s ease-in-out;
        }
        &::after {
            opacity: 0;
            background: linear-gradient(to bottom,rgba(5,13,50,0) 0%,rgba(5,13,50,1) 100%);
        }
        .title {
            position: relative;
            z-index: 3;
            width: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 1rem;
            h3 {
                color: var(--bs-light);
            }
            > svg {
                flex: 1 0 100px;
                max-width: 100px;
                transition: all .2s ease-in-out;
                circle,
                path {
                    stroke: #F3F5F8;
                }
            }
        }
        .image {
            position: absolute;
            z-index: 1;
            inset: 0;
            > img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        &:hover {
            &::after {
                opacity: 1;
            }
            .title {
                > svg {
                    transform: rotate(-45deg);
                    circle {
                        stroke: #CFFC51;
                        fill: #CFFC51;
                    }
                    path {
                        stroke: #121317;
                    }
                }
            }
        }
    }
}

#offices.single {
    .intro {
        position: relative;
        padding: 2rem;
        margin-top: 3rem;
        aspect-ratio: 2/1;
        border-radius: var(--bs-border-radius);
        overflow: hidden;
        .bg-img {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        > .btn {
            position: relative;
            z-index: 2;
        }
    }
    #office-details {
        padding: 3.5rem 0;
        .text {
            border-top: solid 1px var(--bs-light-gray);
            padding-top: 1.5rem;
            margin-bottom: 3.75rem;
        }
        .acf-map {
            border-radius: var(--bs-border-radius);
            overflow: hidden;
        }
    }
}

@media (max-width: 767px) {
    #offices:not(.single) .offices-wrapper > .intro {
        margin-top: 2rem;
        .text {
            padding-bottom: 2.5rem;
        }
    }

    #offices-results {
        margin-bottom: 2.5rem;
        .item {
            aspect-ratio: 1.125/1;
            padding: 1rem;
            .title {
                svg {
                    flex: 1 0 45px;
                    max-width: 45px;
                    max-height: 45px;
                }
            }
        }
    }

    #offices.single {
        .intro {
            margin-top: 2rem;
            aspect-ratio: 1.125/1;
            .btn {
                width: 100%;
            }
        }
        #office-details {
            padding: 2.5rem 0;
            .acf-map {
                margin-top: 2rem;
            }
        }
    }
}