/* commons  */

/* Hero Container - Section 1  */
.hero-events-container {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 66px;
    padding-block: 100px;

    .hero-content {
        max-width: 515px;
        width: 100%;
        height: auto;

        .eyebrow {
            color: var(--text-grey4);
        }

        h2 {
            margin-top: 8px;
        }

        .para-primary {
            margin-top: 8px;
        }

        ul {
            width: 100%;
            height: auto;
            margin-top: 21px;
            text-decoration: none;
            display: flex;
            flex-direction: column;
            gap: 14px;

            li {
                width: fit-content;
                height: auto;
                text-decoration: none;
                list-style: none;
                display: flex;
                justify-content: start;
                align-items: center;
                gap: 8px;
            }
        }

        .cta-secondary-container {
            margin-top: 40px;
        }
    }

    .image-container {
        width: 580px;
        height: 304px;
        overflow: hidden;
        border-radius: 12px;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    @media screen and (width <=1024px) {
        & {
            flex-direction: column-reverse;
            padding-block: 40px;
            gap: 20px;

            .hero-content {
                .cta-secondary-container {
                    margin-top: 25px;
                }
            }

            .image-container {
                width: auto;
                height: auto;
            }
        }
    }
}

/* Upcoming Events - Section 2   */
.upcoming-container {
    margin-block: var(--spacer-80);

    .upcoming_content {
        max-width: 540px;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        gap: 8px;
        margin-bottom: 0px;
        margin-inline: auto;
        text-align: center;

        p,
        h2 {
            width: 100%;
        }
    }

    .event-cards_container {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: var(--spacer-24);

        .event-card {
            width: 100%;
            height: auto;
            flex: 1;
            border-radius: 12px;
            border: var(--border-light-blue);
            background: var(--bg-white);
            padding-block: 40px;
            padding-inline: 24px;
            transition: all 0.2s ease-in-out;

            .card-img {
                max-width: 120px;
                width: 100%;
                max-height: 26px;
                height: auto;

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }

            h4 {
                margin-top: 40px;
                line-height: 36px;
            }

            .para-primary {
                color: var(--text-grey5);
                text-overflow: ellipsis;
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                margin-top: 8px;
            }

            ul {
                width: 100%;
                height: auto;
                margin-top: 21px;
                text-decoration: none;
                display: flex;
                flex-direction: column;
                gap: 14px;

                li {
                    width: fit-content;
                    height: auto;
                    text-decoration: none;
                    list-style: none;
                    display: flex;
                    justify-content: start;
                    align-items: center;
                    gap: 8px;
                }
            }

            a {
                text-decoration: none;

                p {
                    color: var(--text-black-primary);
                    margin-top: 60px;
                }
            }

            &:hover {
                background: var(--section-gradient) padding-box,
                    var(--blue-red-gradient) border-box;
                border: 1px solid transparent;
                transition: all 0.2s ease-in-out;

                a {
                    p {
                        color: var(--text-arcon-red);
                    }
                }
            }
        }
    }

    @media screen and (width <=1024px) {
        & {
            margin-block: var(--spacer-60);

            .upcoming_content {
                max-width: 100%;
                margin-bottom: 40px;
            }

            .event-cards_container {
                flex-direction: column;

                .event-card {
                    background: var(--section-gradient);

                    &:hover {
                        background: var(--section-gradient);
                        border: var(--border-light-blue);
                    }
                }
            }


        }
    }
}

/* All Events Container - Section 3  */
.allprods-container {
    position: relative;
    height: auto;
    display: flex;
    justify-content: start;
    align-items: start;
    gap: var(--spacer-24);
    margin-block: var(--spacer-60);

    .filter-container {
        position: sticky;
        top: 20px;
        max-width: 300px;
        width: 100%;
        max-height: 770px;
        height: 100%;
        padding: 20px;
        border-radius: 12px;
        background: var(--section-gradient);
        border: var(--border-light-blue);

        .filter-by {
            width: 100%;
            height: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 20px;
            border-bottom: 1px solid #E4E4E4;

            .clear-all {
                text-decoration: underline;
                cursor: pointer;
            }
        }

        .checkboxes-container {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding-block: 20px;
            padding-right: 12px;
            border-bottom: var(--border-light-blue);

            .checkbox_title {
                font-size: 14px;
                font-weight: 400;
                line-height: 26px;
                color: var(--bg-black-primary);
            }

            .form-control {
                display: grid;
                grid-template-columns: 1em auto;
                gap: 0.5em;
                margin-left: 12px;

                p {
                    color: var(--text-grey2);
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 16px;
                }

                input[type="checkbox"] {
                    -webkit-appearance: none;
                    appearance: none;
                    font: inherit;
                    width: 18px;
                    height: 18px;
                    border: 1px solid var(--bg-grey2);
                    border-radius: 4px;
                    transform: translateY(-0.075em);
                    display: grid;
                    place-content: center;

                    &::before {
                        content: "";
                        width: 10px;
                        height: 10px;
                        transform: scale(0);
                        box-shadow: inset 8px 8px var(--bg-white);
                        background: var(--bg-black-primary);
                        transform-origin: bottom left;
                        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
                    }

                    &:checked::before {
                        transform: scale(1);
                    }

                    &:checked {
                        background: var(--bg-black-primary);
                    }
                }
            }

            &:last-child {
                border-bottom: none;
                padding-bottom: 0;
            }

        }


    }

    .main-container {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: end;
        gap: 24px;

        .container_top {
            width: 100%;
            height: auto;
            display: flex;
            justify-content: flex-start;

            .search-box {
                display: flex;
                /* grid-column: 2 / -1; */
                 max-width: 600px; 
               width: 100%; 
                height: auto;
                /* flex-shrink: 0; */
                padding: 16px 20px;
                border: var(--border-light-blue);
                border-radius: 8px;
                background: var(--bg-white);
                justify-content: end;
                align-items: center;
                gap: 12px;

                .search-icon {
                    width: 24px;
                    height: 24px;

                    svg {
                        object-fit: cover;
                    }
                }

                .search-bar {
                    width: 100%;
                    height: 100%;

                    input {
                        font-family: "Sora", sans-serif;
                        width: 100%;
                        height: 100%;
                        color: var(--text-black-primary);
                        font-size: 16px;
                        font-weight: 400;
                        line-height: normal;
                        outline: none;
                        border: 0;

                        &::-webkit-input-placeholder {
                            text-align: start;
                            font-size: 16px;
                            font-style: normal;
                            font-weight: 400;
                            line-height: normal;
                            color: var(--text-grey1);
                        }
                    }
                }
            }

            .filterByCategories {
                display: none;
            }
        }

        .product-listing {
            width: 100%;
            height: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
            gap: 25px;

            .card {
                width: 100%;
                height: auto;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                border-radius: 10px;
                border: var(--border-light-blue);
                background: var(--bg-white);
                overflow: hidden;
                transition: all 0.2s ease-in-out;

                .card-img {
                    max-width: 100%;
                    max-height: 150px;
                    height: 100%;
                    margin-inline: auto;
                    margin-top: 0;
                    margin-bottom: 0;
                    border-radius: 0;
                    overflow: hidden;
                    transition: all 0.4s ease;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        scale: 1;
                        transition: all 0.4s ease;
                    }
                }

                .card-content {
                    width: 100%;
                    height: auto;
                    padding: 1.25rem;
                    display: flex;
                    flex-direction: column;
                    /* gap: 1.5rem; */

                    .date {
                        color: var(--text-grey2);
                        font-size: 12px;
                        font-weight: 400;
                        line-height: 26px;
                        letter-spacing: 0.48px;
                        text-transform: uppercase;
                    }

                    p {
                        color: var(--text-black-primary);
                    }

                    .cta {
                        position: relative;
                        display: inline-block;
                        text-decoration: none;
                        color: var(--text-black-primary);
                        font-size: 0.875rem;
                        font-weight: normal;
                        margin-top: 40px;
                        transition: all 0.2s ease-in-out;
                    }
                }

                &:hover {
                    background: var(--section-gradient);
                    transition: all 0.2s ease-in-out;

                    .card-img {
                        margin-inline: auto;
                        max-width: 265px;
                        margin-top: 6px;
                        /* margin-bottom: 3px; */
                        border-radius: 10px;

                        img {
                            scale: 1.3;
                        }
                    }

                    .card-content {
                        .cta {
                            color: var(--text-arcon-red);
                            transition: all 0.2s ease-in-out;
                        }
                    }
                }
            }
        }

        .pagination {
            width: 100%;
            height: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 60px;

            .bullet {
                width: 45px;
                height: 45px;
                border: var(--border-light-blue);
                border-radius: 4px;
                padding-block: 10px;
                cursor: pointer;

                /* p {
                width: fit-content;
                margin-inline: auto;
                text-align: center;
              } */

                .pagination-input-wrapper {
                    background-color: #F0F7FF;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .pagination-input {
                    width: 100%;
                    height: 100%;
                    text-align: center;
                    border: none;
                    background: transparent;
                    font-size: 16px;
                    outline: none;
                }

                .arrow-left {
                    rotate: 90deg;
                    margin-left: 15px;
                }

                .arrow-right {
                    rotate: 270deg;
                    margin-left: 15px;
                }

                &.active {
                    /* background: var(--bg-black-primary); */
                    background: #F0F7FF;
                    border: none;

                    p {
                        color: var(--text-white);
                    }
                }
            }

            .dots {
                padding: 10px 16px;
            }

            @media screen and (max-width: 1024px) {
                & {
                    justify-content: center;
                }
            }
        }

        @media screen and (width <=1024px) {
            & {
                align-items: start;

                .container_top {
                    display: flex;
                    gap: 8px;
                    justify-content: center;
                    align-items: start;

                    .search-box {
                        /* max-width: 300px; */
                        width: 100%;
                        padding: 12px;
                        grid-column: auto;
                    }

                    .filterByCategories {
                        display: block;
                        /* position: absolute; */
                        /* top: -30px; */
                        /* right: 0; */
                        width: fit-content;
                        height: auto;
                        padding: 8px;
                        border: var(--border-light-blue);
                        border-radius: 8px;
                        background: var(--section-gradient);
                        z-index: 99;
                    }
                }

                .product-listing {
                    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));

                    .card {
                        background: var(--section-gradient);
                        padding-top: 16px;

                        .card-content {
                            p {
                                display: flex;
                                flex-direction: column;
                            }
                        }

                        .card-img {
                            width: 100%;
                            max-width: 333px;
                            margin-inline: auto;
                            padding-bottom: 0;
                            border-radius: 12px;
                            overflow: hidden;
                        }

                        .card-content {
                            .cta {
                                color: var(--text-arcon-red);
                            }
                        }

                        &:hover {
                            .card-img {
                                width: 100%;
                                max-width: 333px;
                                margin-inline: auto;
                                padding-bottom: 0;
                                margin-top: 0;
                                border-radius: 12px;
                                overflow: hidden;

                                img {
                                    scale: 1;
                                }
                            }


                        }
                    }
                }
            }
        }
    }

}

.mobilePopup-container {
    position: fixed;
    top: 0;
    background: #0000003b;
    width: 100vw;
    height: 0;
    opacity: 0;
    z-index: 99;
    transition: opacity 0.2s linear;

    .mobilePopup {
        position: absolute;
        bottom: 0;
        width: 100%;
        max-height: 600px;
        padding: 30px 20px;
        background: var(--bg-white);
        border-radius: 12px 12px 0 0;
        transform: translateY(40%);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;

        .popUp-title {
            width: 100%;
            height: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--bg-grey1);
        }

        .checkboxes-container {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding: 20px 12px;
            max-height: 400px;
            overflow-y: auto;

            .form-control {
                display: grid;
                grid-template-columns: 1em auto;
                gap: 0.5em;

                p {
                    color: var(--text-black-secondary);
                    font-size: 12px;
                    font-weight: 400;
                    line-height: 16px;
                }

                input[type="checkbox"] {
                    -webkit-appearance: none;
                    appearance: none;
                    font: inherit;
                    width: 18px;
                    height: 18px;
                    border: 1px solid var(--bg-black-primary);
                    border-radius: 4px;
                    transform: translateY(-0.075em);
                    display: grid;
                    place-content: center;

                    &::before {
                        content: "";
                        width: 10px;
                        height: 10px;
                        transform: scale(0);
                        box-shadow: inset 8px 8px var(--bg-white);
                        background: var(--bg-black-primary);
                        transform-origin: bottom left;
                        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
                    }

                    &:checked::before {
                        transform: scale(1);
                    }

                    &:checked {
                        background: var(--bg-black-primary);
                    }
                }
            }
        }

        .mobilePopUp-actions {
            width: 100%;
            height: auto;
            display: flex;
            justify-content: start;
            align-items: center;
            gap: 12px;
            padding-top: 20px;

            button.showResultBtn {
                max-width: 230px;
                width: 100%;
                height: auto;
                padding: 12px 16px;
                background: var(--bg-black-primary);
                border-radius: 4px;
                outline: 0;
                border: 0;

                p {
                    color: var(--text-white);
                }
            }

            button.clearAllBtn {
                padding: 12px 16px;
                outline: 0;
                border: 0;
                background: var(--bg-white);

                p {
                    text-decoration: underline;
                    text-underline-offset: 4px;
                }
            }
        }
    }

    &.active {
        height: 100vh;
        opacity: 1;
        transition: opacity 0.2s ease;

        .mobilePopup {
            transform: translateY(0);
            opacity: 1;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }
    }
}

/* Checkbox dropdown for both Mobile and Desktop  */
.checkbox-dropdown {
    width: 100%;
    height: auto;
    padding-block: 20px;
    border-bottom: var(--border-light-blue);

    .top {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        user-select: none;

        img {
            transform: rotate(0deg);

            &.rotate {
                transform: rotate(180deg);
            }
        }
    }

    .checkboxes-container {
        width: 100%;
        height: 100%;
        max-height: 0;
        opacity: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-inline: 12px;
        justify-content: center;
        align-items: start;
        margin-top: 0;
        padding-top: 0;
        overflow: hidden;
        transition: all 0.1s ease-out;

        .form-control {
            display: grid;
            grid-template-columns: 1em auto;
            gap: 0.5em;

            p {
                color: var(--text-black-secondary);
                font-size: 12px;
                font-weight: 400;
                line-height: 16px;
            }

            input[type="checkbox"] {
                -webkit-appearance: none;
                appearance: none;
                font: inherit;
                width: 18px;
                height: 18px;
                border: 1px solid var(--bg-black-primary);
                border-radius: 4px;
                transform: translateY(-0.075em);
                display: grid;
                place-content: center;

                &::before {
                    content: "";
                    width: 10px;
                    height: 10px;
                    transform: scale(0);
                    /* transition: 120ms transform ease-in-out; */
                    box-shadow: inset 8px 8px var(--bg-white);
                    background: var(--bg-black-primary);
                    transform-origin: bottom left;
                    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
                }

                &:checked::before {
                    transform: scale(1);
                }

                &:checked {
                    background: var(--bg-black-primary);
                }
            }
        }

        &.active {
            max-height: 350px;
            opacity: 1;
            margin-top: 10px;
            padding-top: 2px;
            transition: all 0.3s ease-in;
        }
    }

    &:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
}

@media screen and (max-width: 1024px) {
    .checkbox-section {
        max-height: 450px;
        height: 100%;
        overflow: scroll;
        margin-bottom: 10px;

        .checkbox-dropdown-list {
            width: 100%;
            height: auto;
            border-bottom: 0;
            padding-block: 16px;

            .top {
                width: 100%;
                height: auto;
                display: flex;
                justify-content: space-between;
                align-items: center;
                cursor: pointer;
                user-select: none;

                img {
                    transform: rotate(0deg);

                    &.rotate {
                        transform: rotate(180deg);
                    }
                }
            }

            .checkboxes-container {
                width: 100%;
                height: 100%;
                max-height: 0;
                opacity: 0;
                display: flex;
                flex-direction: column;
                gap: 16px;
                padding-inline: 12px;
                justify-content: center;
                align-items: start;
                margin-top: 0;
                padding-top: 0;
                overflow: hidden;
                transition: all 0.1s ease-out;

                .form-control {
                    display: grid;
                    grid-template-columns: 1em auto;
                    gap: 0.5em;

                    p {
                        color: var(--text-black-secondary);
                        font-size: 12px;
                        font-weight: 400;
                        line-height: 16px;
                    }

                    input[type="checkbox"] {
                        -webkit-appearance: none;
                        appearance: none;
                        font: inherit;
                        width: 18px;
                        height: 18px;
                        border: 1px solid var(--bg-black-primary);
                        border-radius: 4px;
                        transform: translateY(-0.075em);
                        display: grid;
                        place-content: center;

                        &::before {
                            content: "";
                            width: 10px;
                            height: 10px;
                            transform: scale(0);
                            /* transition: 120ms transform ease-in-out; */
                            box-shadow: inset 8px 8px var(--bg-white);
                            background: var(--bg-black-primary);
                            transform-origin: bottom left;
                            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
                        }

                        &:checked::before {
                            transform: scale(1);
                        }

                        &:checked {
                            background: var(--bg-black-primary);
                        }
                    }
                }

                &.active {
                    max-height: 350px;
                    opacity: 1;
                    margin-top: 10px;
                    padding-top: 2px;
                    transition: all 0.3s ease-in;
                }
            }

            &:last-child {
                border-bottom: 0;
                padding-bottom: 0;
            }
        }
    }
}

/* latest insights - Section 4  */
.latest-insights {
    position: relative;
    height: auto;
    padding: 60px 100px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 50px;
    border: var(--border-light-blue);
    border-radius: 20px;
    background: var(--section-gradient);
    margin-block: var(--spacer-120);

    .triangle_graphic {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .left-content {
        max-width: 390px;
        width: 100%;
        height: auto;

        .para-primary {
            margin-top: 8px;
        }
    }

    .right-content {
        max-width: 625px;
        width: 100%;
        height: auto;
    }

    .form {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        width: 100%;
        max-width: 625px;
        height: auto;

        .screen-reader-response {
            display: none;
        }

        .form-row {
            width: 100%;
            display: flex;
            gap: 24px;
            justify-content: start;
            align-items: start;
            margin-top: 20px;

            p {
                width: 50%;
            }

        }

        .form-row-inner {
            p {
                width: 100%;
                display: flex;
                justify-content: start;
                align-items: start;
            }
        }

        input,
        select {
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #D8E5F4;
            background: #FFF;
            width: 100%;
            font-family: "Sora", sans-serif;
            color: var(--text-black-primary);
            font-size: 14px;
            font-weight: 400;
            line-height: normal;
        }

        select:focus-visible,
        input:focus-visible {
            outline: 0;
        }

        input::placeholder,
        select::placeholder {
            color: var(--text-grey2);
            font-size: 14px;
            font-weight: 400;
            line-height: normal;
        }

        input[type='submit'] {
            border-radius: 8px;
            background: #E6323A;
            padding: 16px 32px;
            border: none;
            color: #fff;
            margin-top: 40px;
            width: fit-content;
            color: var(--text-white);
            font-size: 16px;
            font-weight: 400;
            line-height: 22px;
            letter-spacing: 0;
        }

        select[name="country-code"] {
            width: fit-content;
            padding-right: 0;
            border-right: 0;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            font-family: "Sora", sans-serif;
            color: var(--text-black-primary);
            font-size: 14px;
            font-weight: 400;
            line-height: normal;
            padding: 15px;
            padding-right: 0;
        }

        input[type='tel'] {
            width: 185px;
            padding-left: 15px;
            border-left: 0;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .wpcf7-not-valid-tip {
            font-size: 14px;
        }

        .wpcf7-response-output {
            margin-top: 20px;
            font-size: 14px;
        }

        &:last-child {
            .form-row {
                p {
                    width: 100%;
                }

            }
        }

        @media screen and (max-width: 1024px) {
            & {

                .form-row {
                    flex-direction: column;
                }

                input[type='tel'] {
                    width: 100%;
                }

                input[type='submit'] {
                    width: 100%;
                    font-size: 14px;
                    line-height: 20px;
                    margin-top: 32px;
                }
            }
        }
    }

    @media screen and (max-width: 1024px) {
        & {
            flex-direction: column;
            gap: 32px;
            padding: 40px 20px;
            margin-block: var(--spacer-60);
        }
    }
}