/* commons  */
.desktop {
    display: inline-flex !important;
}

.mobile-hide {
    display: none !important;
}

@media (max-width: 600px) {
    .desktop {
        display: none !important;
    }

    .mobile-hide {
        display: inline-flex !important;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    /* .desktop {
        display: none !important;
    } */

    .mobile-hide {
        display: none !important;
    }
}

/* Hero Banner - Section 1  */
.compliance_hero-section {
    position: relative;
    background: var(--bg-black-primary);

    .banner_image {
        width: 100%;
        height: auto;
        /* max-height: 435px; */

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

    .content {
        position: absolute;
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        width: 100%;
        max-width: 575px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--text-white);
    }

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

            .banner-img_mob {
                width: 100%;
                height: auto;

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

            .content {
                max-width: 80%;
                top: 45%;
                /* left: 45%; */
            }
        }
    }

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            .banner-img_mob {
                height: 400px;
            }
        }
    }
}

/* Data Secure - Section 2  */
.black-bg {

    .data_container {
        height: auto;
        display: flex;
        justify-content: space-between;
        align-items: start;
        padding-top: var(--spacer-80);
        padding-bottom: 300px;

        .data-left_container {
            max-width: 500px;
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: start;
            align-items: start;
            gap: var(--spacer-24);

            /* .desktop {
                display: inline-flex;
            }

            .mobile {
                display: none;
            } */

            .cta-secondary-container {
                display: none;
            }
        }

        .data-right_container {
            max-width: 515px;
            width: 100%;
            height: auto;

        }
    }

    @media screen and (max-width: 1025px) {
        & {
            .data_container {
                padding-block: var(--spacer-60);
                flex-direction: column;
                gap: 8px;

                /* .desktop {
                    display: none;
                }

                .mobile {
                    display: inline-flex;
                } */

                .cta-secondary-container {}
            }
        }
    }

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            .data_container {
                flex-direction: row;
            }
        }
    }
}

/* Solution - section 3  */
.solution-container {
    position: relative;
    height: auto;
    margin-top: -180px;
    background: linear-gradient(180deg, #F5FAFF 0%, #FFF 100%);
    border-radius: 20px;
    padding: 50px 45px;
    z-index: 5;
    display: flex;
    justify-content: start;
    align-items: center;

    .left-container {
        max-width: 560px;
        width: 100%;
        height: 100%;

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

    .right-container {
        width: 100%;
        max-width: 515px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;

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

        .cta-secondary-container {
            margin-top: 32px;

            .cta-secondary__text {
                color: var(--text-black-primary);
            }
        }
    }

    @media screen and (max-width: 1025px) {
        & {
            margin-top: 0;
            flex-direction: column-reverse;
            padding: 0;
            padding-top: var(--spacer-60);

            .left-container {
                max-width: 100%;
            }

            .right-container {
                max-width: 100%;

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

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

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            flex-direction: row;
        }
    }
}

/* Compliances - Section 4  */
.compliances_container {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--spacer-60);
    align-items: center;
    margin-block: var(--spacer-120);

    .section-gradient-bg {
        position: absolute;
        width: 100%;
        height: 65%;
        bottom: -30px;
        z-index: -1;
        background: #F4F9FF;
        filter: blur(82px);
    }

    .compliance_content {
        max-width: 500px;
        width: 100%;
        height: auto;
        text-align: center;

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

    .compliance_key-container {
        max-width: 1056px;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: start;
        gap: 24px;
        flex-wrap: wrap;
        z-index: 2;

        a {
            text-decoration: none;

            .key-item {
                width: 130px;
                height: 44px;
                text-align: center;
                border: var(--border-light-blue);
                border-radius: 8px;
                background: var(--bg-white);
                box-shadow: 0px 8px 44px 0px rgba(35, 70, 112, 0.08);

                p {
                    top: 25%;
                    position: relative;
                    color: var(--text-black-primary);
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                }
            }

        }
    }

    @media screen and (max-width: 1024px) {
        & {
            margin-block: var(--spacer-60);
            gap: var(--spacer-32);

            .compliance_key-container {
                justify-content: center;
                gap: 15px;

                .key-item {
                    width: 46%;
                }
            }
        }
    }
}

/* Knowledge - Section 5  */
.knowledge {
    margin-block: var(--spacer-120);
    display: flex;
    flex-direction: column;
    gap: 60px;

    /* Section Title */
    .sectionTitle {
        width: fit-content;
        height: auto;
        margin: 0 auto;
        text-align: center;
    }

    /* Grid Layout */
    .knowledge-grid-container {
        .knowledge-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            padding: 1rem;
        }
    }

    /* Card Styles */
    .card {
        width: fit-content;
        height: auto;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        border: var(--border-light-blue);
        background: var(--bg-white);
        overflow: hidden;

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

            img {
                width: 100%;
                height: auto;
                scale: 1;
                transition: all 0.4s ease;
            }
        }

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

            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;

                &::after {
                    content: "";
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 35%;
                    height: 0.5px;
                    background-color: var(--bg-arcon-red);
                    opacity: 0;
                    transition: opacity 300ms, transform 300ms;
                }

                &:hover::after,
                &:focus::after {
                    opacity: 1;
                }
            }
        }

        &:hover {
            background: var(--section-gradient);

            .card-img {
                margin-inline: auto;
                max-width: 250px;
                margin-top: 10px;
                margin-bottom: 3px;
                border-radius: 10px;

                img {
                    scale: 1.3;
                }
            }

            .cta {
                color: var(--text-arcon-red);
                transition: all 0.4s ease;
            }

            .cta::after {
                opacity: 1;
            }
        }
    }
}

/* Media Queries - Desktop First */
@media (max-width: 1024px) {
    .knowledge {
        gap: 32px;
        margin-block: var(--spacer-60);

        .sectionTitle {
            margin: 0;
            text-align: start;
        }

        .knowledge-grid-container {
            .knowledge-grid {
                padding: 0;
                grid-template-columns: 1fr;
            }

            .card {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                border: none;

                .card-img {
                    max-width: 145px;
                    max-height: 100px;
                    border-radius: 0.5rem;
                    overflow: hidden;
                }

                .card-content {
                    gap: 8px;
                    padding-block: 8.5px;

                    .cta {
                        text-decoration: underline;
                        text-underline-offset: 2px;

                        &::after {
                            content: none;
                            position: relative;
                        }

                        &:hover::after,
                        &:focus::after {
                            opacity: 1;
                        }
                    }
                }
            }

            &:hover {
                background-color: transparent;
            }
        }

        .dropdown {
            .custom-dropdown {
                position: relative;
                width: 100%;
            }

            .dropdown-cta {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 20px;
                border: 1px solid #d8e5f4;
                border-radius: 8px;
                cursor: pointer;
                background: var(--section-gradient);
            }

            .cta-arrow {
                transition: transform 0.3s ease;
            }

            .options-container {
                position: absolute;
                top: calc(100% + (-1px));
                left: 0;
                width: 100%;
                max-height: 0;
                transition: max-height 0.3s ease;
                overflow: hidden;
                background-color: #fff;
                /* border: 1px solid #d8e5f4; */
                border-top: 0;
                border-radius: 8px;
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                z-index: 10;
            }

            .dropdown-option {
                padding: 12px 20px;
                cursor: pointer;
                transition: background-color 0.3s ease;
                color: var(--text-black-primary);
            }

            .dropdown-option.active {
                color: var(--text-black-primary);
                opacity: 0.4;
            }

            .dropdown-open .options-container {
                max-height: 500px;
                transition: max-height 0.3s ease;
            }

            .displayNone {
                border: 0;
            }

            .dropdown-open .dropdown-cta {
                border-bottom: 0;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
            }

            .dropdown-open .cta-arrow {
                transform: rotate(180deg);
            }
        }
    }
}

@media (max-width: 640px) {
    & {
        &.knowledge-grid-container {
            .knowledge-grid {
                grid-template-columns: 1fr;
            }
        }
    }
}

/* latest insights - Section 6  */
.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;
        }
    }

    .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: 14px;
            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;
                }
            }
        }
    }

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

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

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            .left-content {
                max-width: 100%;
            }

            .form {
                max-width: 100%;
            }
        }
    }
}