/* Home Welcome */
body section.HomeWelcome {
    padding-bottom: 115px !important;
    overflow: hidden !important;
    padding-top: 115px !important;

    &>h2.bloqTitle {
        margin: 0 auto 0 auto;
        max-width: 650px;
        position: relative;
    }

    &>div.Welcome {
        --welcome-max-width: 1080px;

        &>.WelcomeFlex {
            padding-left: min(var(--welcome-max-width) * 0.35, 35%);
            min-height: calc(var(--welcome-max-width) * 0.35);

            &>h3.Title {
                font-family: var(--hp-bloq-family);
                font-weight: var(--hp-bloq-weight);
                font-size: var(--hp-bloq-font-size);
                text-transform: var(--hp-bloq-text-transform);
                color: rgb(var(--hp-bloq-color));
                line-height: 1em;
                padding: 0 0 .2em 50px;
            }

            &>.ItemContent {
                padding-left: 50px;
            }

            &>.LinkWrapper {
                padding-left: 50px;
            }

            &>.ItemImage {
                width: 35%;
                top: 8px;

                &>.ItemBefore {
                    aspect-ratio: 1/0.9;
                    border-radius: 0;
                }
            }
        }
    }

    &::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        left: 50%;
        bottom: 150px;
        transform: translateX(-50%);
        background-image: var(--welcomecross);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

/* QUICK LINKS */
body section.mod_grid_concertina.quicklinks div.Concertina>ul>li {
    max-height: 330px;

    &>.Item .ItemInner {
        max-width: none !important;

        h3.Title {
            position: absolute;
            bottom: 57px;
            right: 30px;
            top: auto;
            text-transform: none;
            font-weight: 700;
            font-size: 23px;
            transform: translateX(0%);
            transition: 0.35s;
        }

        &>.ItemContent .paracontent {
            border: 1px solid white;
            font-size: 12px;
            position: relative;
            bottom: -30px;
        }

        &::before {
            top: auto;
            bottom: 35px;
            left: 0;
            right: 0;
            width: 100%;
            transition: 0.5s;
            height: 74px;
            position: absolute;
        }
    }

    &:hover {
        &>.Item .ItemInner {
            h3.Title {
                right: 50%;
                bottom: calc(50% + 15px);
                transform: translateX(50%);
                margin-bottom: 0;
            }

            &>.ItemContent .paracontent {}

            &::before {
                bottom: 0;
                height: 100%;
            }
        }
    }
}

/* EVENTS */
body section.mod_toside_slider.homeevents {
    --SliderRowHeight: 215px;
    --SliderItemMinWidth: 215px;

    &>h2.bloqTitle {
        left: auto;
        right: calc(50% + min(480px, calc(50vw - 270px)));
        text-indent: 145px;
        bottom: 160px;
        position: absolute !important;

        &>span {
            text-indent: 0px;
        }
    }

    &>.filterSourceSideBySideButtons .sourceButtonWrapper {
        right: calc(50% + min(414px, calc(50vw - 270px)));
        left: auto;
        bottom: 160px;

        &>.buttonstyle {
            position: absolute;
            border-color: rgb(var(--color1));
            color: rgb(var(--color1));
            background-color: rgb(var(--color1));
            color: white;

            &:hover {
                background-color: rgb(var(--color2));
                border-color: rgb(var(--color2));
                color: white;
            }

            &::after {
                content: 'ALL EVENTS';
            }
        }
    }

    &>div.Slider {
        padding: 0 65px 0 380px;
        padding-left: calc(248px + 11vw);
        max-width: 1440px;

        &>.nav {
            bottom: 91px;

            &.next {
                right: 0;
            }

            &.last {
                left: calc(181px + 11vw);
            }
        }

        &>.SliderInner>ul>li .Item {
            position: relative;
            margin-top: 0;
            height: 100%;

            &>.ItemBefore {
                display: none;
            }

            &>.ItemInner {
                background-color: transparent;
                height: 100%;

                &>.ItemContent .paracontent .location {
                    display: none;
                }

                &>.ItemDate {
                    color: white;
                    font-size: 19px;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    max-width: 223px !important;
                    min-width: 223px !important;
                    top: 40px;
                    text-align: center;
                    padding-top: 32px;

                    &>d:nth-child(1) {
                        position: absolute;
                        left: 56px;
                        top: 0px;

                        &+d {
                            position: absolute;
                            left: 83px;
                            top: 0px;

                            &+d {
                                position: absolute;
                                left: 128px;
                                top: 0px;
                            }
                        }
                    }

                    &>i {
                        font-size: 13px;

                        &+d {
                            font-size: 13px;
                        }
                    }

                    &>d:nth-child(3) {
                        &+d {
                            display: none;

                            &+d {
                                display: none;

                                &+d {
                                    display: none;

                                    &+d {
                                        display: none;
                                    }
                                }
                            }
                        }
                    }
                }

                &>h3.Title {
                    position: absolute;
                    bottom: 50px;
                    text-align: center;
                    left: 50%;
                    transform: translateX(-50%);
                    max-width: 140px;
                    min-width: 140px;
                    font-weight: 900;
                    font-size: 18px;
                    color: white;
                    text-transform: none;
                }
            }

            &::before {
                content: '';
                position: absolute;
                width: 215px;
                height: 215px;
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                background-color: rgb(var(--color1));
                border-radius: 50%;
            }

            &::after {
                content: '';
                position: absolute;
                width: 199px;
                height: 199px;
                background-color: rgb(var(--color2));
                border: 7px solid white;
                border-radius: 50%;
                top: 1px;
                left: 50%;
                transform: translateX(-50%);
                opacity: 0;
            }

            .ItemContent .paracontent .cardBottomLinks a {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 66px;
                border-color: transparent;
                font-weight: 900;
                font-size: 14px;
                max-width: 130px;
                min-width: 130px;
                z-index: 1;

                &:hover {
                    background-color: transparent;
                    color: rgb(var(--color1));
                }

                &::before {
                    font-style: normal;
                    font-variant: normal;
                    text-rendering: auto;
                    -webkit-font-smoothing: antialiased;
                    font-family: "Font Awesome 6 Free";
                    font-weight: 900;
                    content: '\f055';
                    font-size: 26px;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    top: -40px;
                }
            }

            &:hover {
                .ItemInner {
                    &>* {
                        opacity: 0;
                    }

                    &>.ItemContent {
                        opacity: 1;
                    }
                }
                &::before{
                    background-color: rgb(var(--color2));
                }
                &::after {
                    opacity: 1;
                }
            }
        }

        &::before {
            content: '';
            position: absolute;
            width: 100vw;
            height: 1px;
            background-color: rgb(var(--color1));
            top: 106px;
            left: calc(181px + 11vw);
        }
    }
}

/* NEWS */
body section.homenews {
    --SliderItemMinWidth: 290px;
    --SliderRowHeight: 290px;
    --SliderGridGap: 20px;
    padding-top: 90px !important;
    z-index: 1;

    &>h2.bloqTitle {
        position: absolute;
        bottom: 413px;
        left: calc(50% - 350px);
        text-indent: -105px;

        &>span {
            text-indent: 0px;
        }
    }

    &>.filterSourceSideBySideButtons {
        position: absolute;
        top: 90px;
        left: calc(50% + 210px);
        z-index: 1;

        .sourceButtonWrapper .sourceLink:first-child {
            width: fit-content;
            padding: var(--button-padding);

            &::before {
                font-style: normal;
                font-variant: normal;
                text-rendering: auto;
                -webkit-font-smoothing: antialiased;
                font-family: "Font Awesome 6 Free";
                font-weight: 900;
                content: '\f178';
            }

            &::after {
                content: 'ALL NEWS';
                display: inline-block;
            }
        }
    }

    &>div.Slider {
        padding: 125px 0 0 0;

        &>.nav {
            top: 14px;

            &.next {
                right: calc(50% - 470px);
            }

            &.last {
                right: calc(50% - 425px);
                left: auto;
            }
        }

        .SliderInner {
            margin: 0 auto;
            max-width: 1180px;

            &>ul>li .Item {
                border-radius: 0 !important;
                .ItemInner {
                    height: 145px;
                    background-color: rgba(var(--grey10), 0.9);
                    justify-content: flex-start;
                    flex-wrap: nowrap;
                    padding: 20px 20px;
                    border-radius: 0;

                    &>.ItemDate {
                        width: fit-content;
                        min-width: 1px;
                        padding: 8px 15px;
                        background-color: rgb(var(--color1));
                        color: white;
                        font-size: 13px;
                        position: absolute;
                        top: -145px;
                    }

                    &>h3.Title {
                        font-size: 18px;
                        font-weight: 900;
                        color: rgb(var(--color1));
                    }

                    &>.ItemContent {
                        opacity: 1;
                        max-height: none;
                        margin-top: 3px;

                        &>.paracontent {
                            font-size: 15px;
                        }
                    }

                    &>.ItemIcon {
                        top: auto;
                        bottom: 20px;
                        padding: 8px 15px;
                        font-size: 13px;
                        font-weight: 900;
                        background-color: transparent;
                        color: rgb(var(--color1));
                        border: 1px solid rgb(var(--color1));
                        z-index: 1;
                        width: fit-content;
                        height: fit-content;
                        font-family: var(--font-heading);
                        transition: 0.4s;
                        opacity: 0;

                        &:hover {
                            background-color: rgb(var(--color1));
                            color: white;
                        }

                        &::before {
                            content: 'READ MORE';
                        }
                    }
                }

                &:hover {
                    &>.ItemBefore {
                        top: 0px;
                        left: 0px;
                        right: 0px;
                        bottom: 0px;
                    }

                    &>.ItemInner {
                        height: 100%;

                        &>.ItemIcon {
                            opacity: 1;
                        }
                    }
                }
            }
        }
    }

    &::before {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        right: -82px;
        top: -33px;
        background-image: var(--welcomecross);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 100% 0%;
    }
}

/* STATISTICS */
body .statswrapper {
    background-image: var(--statsbg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: 200px 0 115px 0;
    margin: -200px 17px 0 17px;

    &>h2.bloqTitle {
        text-align: center;
        text-indent: -6.5em;
        color: white;
        position: relative;
        margin-bottom: 45px;

        span {
            color: white;
        }
    }

    &>.tabset {
        justify-content: center;

        &>label {
            max-width: 214px;
            margin: 0 0;
            border-radius: 0;
            font-size: 13px;
        }
    }

    section.mod_line_textonly div.StatTextOnly>ul>li .statistic .StatText {
        &>.AnimationWrapper {
            padding-bottom: 5px;
            margin-bottom: 22px;

            &>.StatFigure {
                font-size: 60px;

                &>* {
                    color: white !important;
                }
            }
            &::after{
                background-color: white;
            }
        }

        &>.StatTitle {
            color: white;
            font-weight: 900;
            font-size: 22px;
        }
    }

    &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: rgba(var(--grey2), 0.75);
    }
}

/* FACEBOOK */
body section.homefacebookslider {
    --SliderGridGap: 38px;
    --SliderRowHeight: 280px;
    --SliderItemMinWidth: 330px;
    padding-bottom: 100px;

    &>h2.bloqTitle {
        text-align: center;
        margin-bottom: 60px;
    }

    &>div.Slider {
        max-width: 1180px;
        padding: 0 calc(var(--nav-size) + 35px);
        margin: 0 auto;



        &>.SliderInner>ul>li .Item {
            border-radius: 0;

            &>.ItemInner {
                right: auto;
                width: 59%;
                height: 91%;
                bottom: 0px;
                background-color: rgb(var(--color4));
                justify-content: flex-start;
                padding-top: 77px;
                transition: 0.4s;
                &>.ItemIcon {
                    top: 25px;
                    border-radius: 50%;
                    background-color: rgb(var(--color2));
                    color: white;
                }

                &>.ItemContent {
                    opacity: 1;
                    max-height: none;
                    font-size: 15px;
                    margin-top: 0;
                }

                &>h3.Title {
                    font-size: 0;
                    padding: var(--button-padding);
                    border: 1px solid rgb(var(--color1));
                    color: rgb(var(--color1));
                    font-weight: 900;
                    text-transform: uppercase;
                    text-align: center;
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    bottom: 50px;
                    min-width: 1px;
                    transition: 0.4s;
                    opacity: 0;
                    width: max-content;

                    &:hover {
                        background-color: rgb(var(--color1));
                        color: white;
                    }

                    &::before {
                        font-size: 14px;
                        font-family: var(--font-heading);
                        content: 'READ MORE';
                        line-height: 1em;
                    }
                }

                &>.ItemDate {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    padding: 6px 10px;
                    background-color: rgb(var(--color1));
                    color: white;
                    font-size: 12px;

                    &>d {
                        float: right;
                        margin-left: 3px;
                    }

                    &::before {
                        content: '@EllisCE';
                        text-transform: none;
                        float: left;
                    }

                }
            }

            .ItemBefore {
                background-image: none;
                position: static;

                &>img {
                    position: absolute;
                    right: 0;
                    bottom: 29px;
                    border-radius: 0;
                    width: 46%;
                    height: calc(100% - 29px) !important;
                }
            }

            &:hover {
                &>.ItemInner {
                    height: 100%;
                    &>h3.Title {
                        opacity: 1;
                    }
                }
            }
        }
    }

    &::before {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        left: -82px;
        top: -33px;
        background-image: var(--welcomecross);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: 0% 0%;
    }
}

@media only screen and (max-width: 1000px) {
    body section.mod_toside_slider.homeevents {
        padding: 80px 10px !important;

        &>h2.bloqTitle {
            left: 50% !important;
            transform: translateX(-50%) !important;
            top: 40px !important;
            height: min-content;
            width: min-content;
        }

        &>.filterSourceSideBySideButtons .sourceButtonWrapper {
            right: 50% !important;
            transform: translateX(50%) !important;
            left: auto !important;
            top: 148px !important;
            height: fit-content !important;
            position: absolute;

            &>.buttonstyle {
                width: max-content;
            }
        }

        &>div.Slider {
            padding: 150px 40px 0 40px !important;

            &>.nav {
                top: auto !important;

                &>.next {
                    left: auto !important;
                }

                &.last {
                    left: 0;
                }
            }

            &::before {
                display: none;
            }
        }
    }

    body section.homenews {
        padding-top: 0 !important;

        &>h2.bloqTitle {
            left: 50%;
            transform: translateX(-50%);
            top: 0px;
            text-indent: 0;
            width: max-content;
        }

        &>.filterSourceSideBySideButtons {
            left: calc(50% - 90px);
            transform: translateX(-50%);
            top: 135px;
            width: fit-content;
        }

        &>div.Slider {
            padding: 220px 0 0 0;

            &>.nav {
                &.last {
                    top: 149px;
                    right: calc(50% - 70px);
                    transform: translateX(50%);
                }

                &.next {
                    top: 149px;
                    right: calc(50% - 120px);
                    transform: translateX(50%);
                }
            }

        }
    }

    body .statswrapper {
        margin: 50px 0px 0 0px;
    }
}


@media only screen and (max-width: 600px) {
    body .statswrapper {
        margin: 50px 0px 0 0px;
        --SliderItemMinWidth: 270px;

        &>h2.bloqTitle {
            text-indent: 0;
        }
    }

    body section.HomeWelcome {
        padding-bottom: 50px !important;

        &>div.Welcome {
            &>.WelcomeFlex {
                padding-left: 0;

                &>.ItemContent {
                    padding-left: 0;
                }

                &>.ItemImage {
                    display: none !important;
                }
            }
        }
    }

    body section.homefacebookslider {
        --SliderItemMinWidth: 270px;
        padding: var(--hp-bloq-padding) 10px;

        &>div.Slider {
            padding: 0 40px;

            &>.SliderInner>ul>li .Item {
                & .ItemBefore {
                    &>img {
                        display: none !important;
                    }
                }

                &>.ItemInner {
                    width: 100%;
                    height: 100%;
                }
            }
        }

        &::before {
            display: none;
        }
    }
}