/* ========= START Custom Parallax V5 ========= */
#home #custom-parallax-v5 {
    --cpv5-bg-height: clamp(380px, 36vw, 560px);
    --cpv5-box-overlap: 140px;
    --cpv5-box-offset: calc(var(--cpv5-bg-height) - var(--cpv5-box-overlap));
    --cpv5-overlay: rgba(0, 0, 0, .55);
    --custom-pv5-boxes-bg: var(--secondary-color);
    --custom-pv5-boxes-text: var(--secondary-color-contrast);

    position: relative;
    isolation: isolate;
    padding: var(--cpv5-box-offset) 20px 30px;
    display: flex;
    justify-content: center;

    .cpv5-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--cpv5-bg-height);
        z-index: -1;
        clip-path: inset(0);
        background-color: #333;

        &:after {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--cpv5-overlay);
        }

        .cpv5-bg-image {
            display: block;
            width: 100%;
            height: 100%;

            img {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                object-fit: cover;
                z-index: -1;
            }
        }

        .label {
            position: relative;
            z-index: 2;
        }
    }

    .cpv5-box {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1200px;
        background: var(--custom-pv5-main-box-bg, #fff);
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
        padding: 40px 45px 35px;

        @media (max-width: 767px) {
            padding: 30px 20px;
        }
    }

    .cpv5-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 20px 30px;

        @media (max-width: 767px) {
            grid-template-columns: 1fr;
        }

        >* {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
    }

    .cpv5-column {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
    }

    .cpv5-title {
        font-weight: 900;
        font-size: 22px;
        text-transform: uppercase;
        color: var(--custom-pv5-main-box-text, #000);
        margin: 0 0 18px;

        @media (max-width: 959px) {
            font-size: 20px;
        }
    }

    .cpv5-content {
        display: flex;
        align-items: center;
        flex: 1;
        background: var(--custom-pv5-boxes-bg);
        color: var(--custom-pv5-boxes-text);
        border-radius: 3px;
        padding: 25px 30px;
        font-size: 15px;
        line-height: 1.5;

        >*:first-child,
        >*>*:first-child {
            margin-top: 0;
        }

        >*:last-child,
        >*>*:last-child {
            margin-bottom: 0;
        }

        a {
            color: inherit;
            text-decoration: underline;
        }
    }
}

@media (hover: none) {
    #home #custom-parallax-v5 .cpv5-bg .cpv5-bg-image img {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

/* ========= END Custom Parallax V5 ========= */