/* Commons  */

/* Section 1 - Hero  */
.post-hero-section {
    height: auto;
    padding-block: 10px;
    margin-inline: auto;
    background: var(--section-gradient);

    .post-hero {
        max-width: 1056px;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;

        .post-hero_image {
            max-width: 300px;
            width: 100%;
            height: 170px;
            overflow: hidden;
            border-radius: 12px;

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

        .post-hero_content {
            width: 100%;
            height: auto;

            .post-hero_meta {
                width: 100%;
                height: auto;
                display: flex;

                time {
                    padding-right: 12px;
                    border-right: 1px solid var(--bg-grey1);
                }

                p {
                    padding-left: 12px;
                }
            }
        }
    }

    @media screen and (max-width: 1025px) {
        & {
            width: auto;
            background: none;

            .post-hero {
                width: auto;
                flex-direction: column;

                .post-hero_image {
                    max-width: 100%;
                }
            }
        }
    }

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            margin-inline: 24px;
        }
    }

}

/* Section 2 - Layout */
.layout {
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 32px;
    margin-block: var(--spacer-120);

    .sidebar {
        max-width: 290px;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: var(--spacer-60);
        position: sticky;
        top: 20px;


        .sidebar_list {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding-left: 16px;
            border-left: 1px solid var(--bg-grey1);

            li {
                position: relative;
                list-style-type: none;

                a {
                    text-decoration: none;
                    color: var(--text-grey5);

                    &.inView {
                        color: var(--text-arcon-red);
                        font-size: 16px;
                        font-weight: 400;
                        line-height: 26px;

                        &::before {
                            opacity: 1;

                        }
                    }

                    &::before {
                        position: absolute;
                        content: '';
                        top: 0;
                        left: -18px;
                        width: 3px;
                        height: 100%;
                        border-radius: 5px;
                        background: var(--bg-arcon-red);
                        opacity: 0;
                        transition: opacity 0.3s ease;
                    }
                }
            }
        }

        .sidebar_social {
            width: 100%;
            height: auto;
            display: flex;
            gap: var(--spacer-24);
        }

        @media screen and (max-width: 1024px) {
            & {
                display: none;
            }
        }
    }

    .main-content {
        width: 100%;
        height: auto;

        .contentSection {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding-bottom: var(--spacer-32);
            border-bottom: 1px solid var(--bg-grey1);

            p {
                font-size: 16px;
                font-weight: 300;
                line-height: 28px;
                letter-spacing: 0;
                padding-top: 12px;
                text-align: start;
            }

            li {
                padding-top: 12px;
                margin-left: 20px;
                list-style-type: square;
            }

            &:not(:first-child) {
                padding-top: var(--spacer-32);
            }

            p.content_paragraph {
                margin-top: 20px;
            }

            iframe {
                max-width: 800px;
                width: 100%;
                height: 450px;
                margin-inline: auto;
                margin-top: 60px;
            }

            .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;
                        }
                    }
                }
            }

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

                .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,
                textarea {
                    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,
                textarea::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: 20px;
                    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: 100%;
                    /* 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) {
                h4 {
                    width: 100%;
                    text-align: left;
                    font-size: 18px;
                    font-weight: 400;
                    line-height: 26px;
                }

                p {
                    font-size: 14px;
                    font-weight: 300;
                    line-height: 22px;
                    letter-spacing: 0;
                    padding-top: 12px;
                }

                li {
                    padding-top: 12px;
                    margin-left: 20px;
                    list-style-type: square;
                    font-size: 16px;
                    font-weight: 400;
                    line-height: 24px;
                }

                &:not(:first-child) {
                    padding-top: var(--spacer-32);
                }

                p.content_paragraph {
                    margin-top: 20px;
                }

                iframe {
                    height: 320px;
                }
            }
        }

        .contentSection:last-child {
            border-bottom: 0;
        }
    }

    @media screen and (max-width: 1024px) {
        & {
            flex-direction: column;
            margin-block: 40px;
        }
    }
}

@media screen and (max-width: 1024px) {
    .anchor-container {
        width: 100%;
        height: auto;
        z-index: 6;
        position: sticky;
        background: none;
        top: 50px;
        margin-block: 40px;

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

            .anchor-cta {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 20px;
                border: 1px solid transparent;
                border-radius: 8px;
                cursor: pointer;
                background: linear-gradient(177deg, #fff 100%, #fff 100%) padding-box,
                    var(--blue-red-gradient) border-box;
                transition: all 0.5s ease;

                .anchor-title {
                    transition: all 0.5s ease;
                }

                svg {
                    min-width: 16px;
                    min-height: 16px;
                }
            }

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

            .titles-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-title {
                padding: 12px 20px;
                cursor: pointer;
                transition: background-color 0.3s ease;
                color: var(--text-black-primary);
            }

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

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

            .displayNone {
                border: 0;
            }

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

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

/* Section 3 - Related Blogs  */
.related-blogs {
    height: auto;

    .knowledge-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 1rem;

        .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;
                flex-shrink: 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: 100%;
                padding: 1.25rem;
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                .meta_data {

                    .card-content_date {
                        font-size: 12px;
                        font-weight: 400;
                        line-height: 20px;
                        letter-spacing: 0.48px;
                        text-transform: uppercase;
                        color: var(--text-grey1);
                    }

                    a {
                        text-decoration: none;

                        p {
                            font-weight: 400;
                            line-height: 26px;
                            color: var(--text-black-primary);
                            text-decoration: none;
                        }
                    }
                }

                .cta {
                    position: relative;
                    display: inline-block;
                    text-decoration: none;
                    color: var(--text-black-primary);
                    font-size: 0.875rem;
                    font-weight: normal;
                    margin-top: 40px;

                    &::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 screen and (max-width: 1025px) {
            & {
                padding: 0;
                grid-template-columns: 1fr;
            }

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

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

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

                    a {
                        display: block;
                        width: 100%;
                        height: 100%;

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

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

                    .meta_data {
                        a {
                            text-overflow: ellipsis !important;
                            display: -webkit-box !important;
                            overflow: hidden !important;
                            -webkit-box-orient: vertical !important;
                            -webkit-line-clamp: 3 !important;
                            text-decoration: none;
                            color: inherit;
                        }
                    }

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

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

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

                &:hover {
                    background: transparent;

                    .card-img {
                        margin-block: 0;

                        a {

                            img {
                                scale: 1;
                            }
                        }
                    }

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


        }

        @media screen and (min-width: 601px) and (max-width: 1024px) {
            & {
                grid-template-columns: repeat(2, 1fr);
            }
        }

    }
}

/* Section 4 - Latest Insights  */
.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);

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

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

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

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