/* Block Heading styles */
.tech-block {
    padding-top: 30px;
    padding-bottom: 31px;
    overflow: hidden;
    background: var(--wp--preset--color--light-gray);

    @media (max-width: 485px) {
        padding-right: 0 !important;
        margin-right: -12px !important;
        margin-left: -12px !important;
    }

    @media (min-width: 1024px) {
        padding-top: 43px;
        padding-bottom: 61px;
    }

    .tech-block__wrapper {
        max-width: 1268px !important;
        margin: 0 auto;
        overflow: hidden;

        .acf-innerblocks-container {
            @media (max-width: 485px) {
                padding-right: 12px;
            }

            .wp-block-heading {
                max-width: 784px;
                text-wrap: balance;
                margin-bottom: 16px;
            }
        }
    }

    .tech-block__cards {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 40px;
        justify-content: flex-start;
        gap: 18px;
        position: relative;

        &.splide {
            margin-bottom: 0;
            width: 100%;
        }
    }

    .splide__track {
        margin-bottom: 0;
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }

    .splide__list {
        display: flex;
        align-items: stretch;
    }

    .splide__slide {
        width: 100%;
        flex-shrink: 0;
    }

    /* Cards - Default styles */

    .tech-block__card {
        position: relative;
        max-width: 100%;
        border: 1px solid #dbdddd;
        border-radius: 10px;
        background: var(--wp--preset--color--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
        padding: 24px 24px;

        @media (max-width: 485px) {
            width: calc(100% - 54px) !important;
        }

        .tech-block__card-image {
            max-width: 169px;
            min-width: 169px;
            width: 100%;
            margin: 0 auto;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: all 0.25s;
                min-height: 169px;
                border: 4px solid rgba(0, 82, 61, 0.1);
                border-radius: 8px;
                aspect-ratio: 1/1;
            }
        }

        .tech-block__card-data {
            text-align: center;
            margin-top: 16px;

            .title {
                font-size: 24px !important;
                font-weight: 800;
                line-height: 32px;
                text-align: center;
                color: var(--wp--preset--color--secondary);
                margin: 0;
            }

            p {
                margin-top: 4px;
                margin-bottom: 0;
                font-size: 16px;
                color: var(--wp--preset--color--gray);
            }
        }
    }
}

.tech-block-wrapper.has-global-padding {
    max-width: 1224px !important;
    @media (min-width: 1250px) {
        padding: 0 !important;
    }
}

.align-end {
    align-items: flex-end !important;
}

/* Splide Navigation Container */
.tech-block .splide__navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    justify-content: flex-end;

    @media (max-width: 485px) {
        padding-right: 12px;
    }
}

/* Splide Navigation Arrows */
.tech-block .splide__arrows {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.tech-block .splide__arrow {
    position: static;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    transform: none;
    margin: 0;
    padding: 0;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--primary);
    opacity: 1;

    svg {
        width: 14px;
        height: 12px;

        path {
            fill: var(--wp--preset--color--white);
        }
    }

    &.splide__arrow--prev {
        svg {
            transform: rotate(0deg);
        }
    }

    &.splide__arrow--prev, &.splide__arrow--next {
        opacity: 1;

        &:disabled {
            opacity: .3;
            background: var(--wp--preset--color--white);
            color: var(--wp--preset--color--primary);

            svg {
                path {
                    fill: var(--wp--preset--color--primary);
                }
            }
        }
    }
}