:root {
    --green: #8BBE4C;
    --white: #fff;
    --blue: #002B64;
}

.desktop-bg {
    display: none;
}

.landing {
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 11;
}

    .landing .accent {
        position: absolute;
    }

        .landing .accent.stars {
            right: 0;
            bottom: -2rem;
        }

        .landing .accent.star {
            left: 50%;
            transform: translateX(-50%);
            top: 0;
        }

        .landing .accent.line {
            left: 50%;
            transform: translateX(-50%);
            top: 1.2rem;
        }

            .landing .accent.line img {
                width: 2px;
            }

    .landing h1 {
        font-weight: 700;
        font-size: 2rem;
        color: var(--green);
    }

    .landing h2 {
        font-weight: 400;
        font-size: 1.4rem;
    }

/*Landing Collapse*/

.landing-collapse {
    position: relative;
    overflow: hidden;
    border: 0.42px solid var(--white);
    border-radius: 0 33px 33px 33px;
    height: 170px;
    font-size: .7rem;
    text-align: left;
    margin-top: 2rem;
    transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: #002b64;
}
    .landing-collapse::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0, 43, 100, 0) 5%, rgba(0, 50, 150, 0.8) 40%, rgba(0, 86, 210, 1) 700%);
        z-index: 2;
        pointer-events: none;
    }

    .landing-collapse.is-open {
    height: unset;
    }
    
        .landing-collapse.is-open .text-summary {
            display: none;
        }

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    object-fit: cover;
    z-index: 1;
}

.landing-collapse.is-open .card-overlay {
    flex-direction: column;
    align-items: flex-end;
}

.card-overlay {
    position: relative;
    z-index: 3;
    padding: 4rem 1rem 1rem 1rem; 
    height: 100%;
    display: flex;
    gap: 1rem;
}

    .card-overlay .content-area {
        width: fit-content;
    }

.text-expanded {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s ease, opacity 0.4s ease;
}

.is-open .text-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1rem;
}

.toggle-btn {
    z-index: 4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid white;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-btn .desktop-text {
        display: none;
    }

.minus-icon {
    display: none;
}

.is-open .plus-icon {
    display: none;
}

.is-open .minus-icon {
    display: block;
}

section {
    position: relative;
}

    section .accent {
        position: absolute;
        left: 0;
        top: 1rem;
    }
    
section .navi-header {
    display: flex;
    justify-content: center;
}

section h3 {
    text-align: center;
    font-weight: 400;
    font-size: 1.75rem;
    color: var(--white);
    position: relative;
}

    section h3::after {
        content: " ";
        width: 100%;
        position: absolute;
        bottom: -.75rem;
        height: 2px;
        background-color: var(--green);
        left: 0;
    }

section .page-navigation {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: .5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 15;
}

    section .page-navigation .page-item {
        border: 0.42px solid var(--white);
        background: linear-gradient(180deg, rgba(0, 43, 100, 0) 26.8%, rgba(0, 122, 255, 0.85) 107.19%);
        position: relative;
        height: 165px;
        color: var(--white);
        text-decoration: none;
        display: flex;
        justify-content: flex-end;
        overflow: hidden;
        flex-direction: column;
        padding: 1rem .75rem 1.5rem .75rem;
    }

        section .page-navigation .page-item .bg-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: -5;
            height: 100%;
            object-fit: cover;
        }

        section .page-navigation .page-item .bg-cover {
            background-color: rgba(0,0,0,0.2);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -3;
        }

        section .page-navigation .page-item .text {
            display: flex;
            flex-direction: column;
            position: relative;
        }

            section .page-navigation .page-item .text h4 {
                font-size: 1.4rem;
                font-weight: 600;
                line-height: 1;
                margin-bottom: .5rem;
            }

            section .page-navigation .page-item .text .pre-text {
                font-size: 1.4rem;
                line-height: 1;
                font-weight: 300;
            }

            section .page-navigation .page-item .text p {
                font-size: .7rem;
                line-height: 1;
                margin: 0;
                width: 80%;
            }

                section .page-navigation .page-item .text .arrow {
                    position: absolute;
                    bottom: -.5rem;
                    right: 0;
                }
    
section .page-navigation .page-item:nth-child(1) {
    border-radius: 25px 25px 1px 25px;
}

        section .page-navigation .page-item:nth-child(2) {
            border-radius: 25px 25px 25px 1px;
        }

        section .page-navigation .page-item:nth-child(3) {
            border-radius: 25px 1px 25px 25px;
        }

        section .page-navigation .page-item:nth-child(4) {
            border-radius: 1px 25px 25px 25px;
        }

@media(min-width:950px){
    body {
        background-color: transparent !important;
    }
    
    .desktop-bg {
    display: block;
}
    
    .landing {
        padding-top: 150px;
        padding-bottom: 75px;
    }

        .landing h1 {
            font-size: 4.5rem;
        }

        .landing h2 {
            font-size: 2.75rem;
            margin-bottom: 2rem;
        }

    section h3 {
        font-size: 2.75rem;
    }

        section .page-navigation {
            grid-template-columns: repeat(4,1fr);
        }

        section {
                    position: relative;
        z-index: 5;
        }

        section, .landing .text {
            padding: 0 5rem;
            text-align: left;
        }

        .landing .accent.star {
            left: 3.76rem;
            top: 150px;
            z-index: 10;
        }

            .landing .accent.star img {
                width: 28px;
            }

            .landing::after {
                position: absolute;
                content: "";
                height: 83%;
                left: 3.70rem;
                top: 160px;
                width: 300px;
                border-left: 1.5px solid var(--green);
                border-bottom: 1.5px solid var(--green);
                border-radius: 0 0 0 25px;
            }

        section .navi-header {
            justify-content: flex-start;
        }

            section .navi-header h3::after {
                display: none;
            }

    section .page-navigation .page-item {
        height: 240px;
    }

        section .page-navigation .page-item .text h4 {
            font-size: 2rem;
        }

        section .page-navigation .page-item .text p {
            font-size: 1rem;
        }

        section .page-navigation .page-item .text .arrow img {
            width: 30px;
        }

        .toggle-btn {
            border-radius: 35px;
            width: unset;
            height: unset;
            color: var(--blue);
            padding: 15px 30px;
            background-color: var(--white);
        }

        .toggle-btn .mobile-text {
            display: none;
        }

        .toggle-btn .desktop-text {
            display: block;
        }

    .landing-collapse {
        height: unset;
        border: none;
        font-size: 1rem;
        background-color: transparent;
        overflow: unset;
        margin-top: 0;
        position: unset;
    }

                .landing-collapse.is-open .text-summary {
            display: block;
        }

        .landing-collapse::before {
            display: none;
        }

        .landing-collapse .bg-image {
            display: none;
        }

    .desktop-bg {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: -5;
    }

    .card-overlay {
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        position: unset;
    }

        .card-overlay .text-summary {
            width: 50%;
            font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        }

    .landing-collapse.is-open {
        height: unset;
    }

    .text-expanded {
        right: -30%;
        display: none;
        transition: right .5s ease-in-out;
    }

    .landing-collapse.is-open .card-overlay {
        align-items: flex-start;
    }

    .landing-collapse.is-open .text-expanded {
        opacity: 1;
        position: absolute;
        top: 0;
        right: 0;
        padding: 2.5rem;
        background-color: var(--white);
        border-radius: 35px 0 0 35px;
        width: 50%;
        height: 100vh;
        z-index: 10;
        color: var(--blue);
        display: block;
        transition: right .3s ease-in-out;
    }
    
        .landing-collapse.is-open .text-expanded p {
            color: var(--blue) !important;
            margin-bottom: 2rem;
        }

    .desktop-bg .desktop-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        .desktop-bg .gradient {
            background: #007AFF;
            background: linear-gradient(0deg,rgba(0, 122, 255, 0.85) 33%, rgba(0, 43, 100, 1) 100%);
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
        }
}

@media(max-width: 767px){
    .landing {
        padding: 3rem 1.34rem 1.5rem;
        margin-top: 100px;
    }
    section {
        padding: 0 1.34rem 1.5rem;
    }
}