/* SECTION PIN */
.stack-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* CARD WRAPPER */
.stack-section .cards {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 40px;
    flex-direction: column;
    /* height: 450px; */
}

/* CARD */
.stack-section .card {
    position: sticky;
    top: 20%;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background-image: linear-gradient(90deg, #531A8B 0%, #223368 50%, #4050D0 100%);
    display: flex;
    gap: 50px;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.stack-section .card::before {
    content: "";
    background-color: #0B1222;
    position: absolute;
    top: 1px;
    left: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-radius: 25px;
    opacity: 1;
    z-index: 0;
}

.stack-section .card::after {
    content: "";
    background-image: url('../images/card-bottom-circle.svg');
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: bottom right;
}

/* CONTENT */
.stack-section .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    width: 50%;
    z-index: 1;
    padding: 20px 0;
    color: #FAFAFA;
}

.stack-section .card-content>div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stack-section .card .card-title {
    font-size: 30px;
    line-height: 40px;
    font-weight: 400;
    margin: 0;
}

.stack-section .card .card-text {
    color: #90A1B9;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    margin: 0;
}

/* IMAGE */
.stack-section .card-image {
    width: 50%;
    border-radius: 16px;
    overflow: hidden;
    z-index: 1;
}

.stack-section .card-image img {
    width: 100%;
    height: 100%;
    max-height: 469px;
    border-radius: 16px;
    object-fit: cover;
}

.stack-section .gradient-btn {
    background-image: linear-gradient(to right, #155DFC 0%, #00B8DB 45%, #155DFC 100%);
    color: #fff !important;
    padding: 22px 54px 22px 24px;
    border-radius: 50px;
    transition: all .2s ease-in-out;
    background-size: 200% auto;
    position: relative;
    font-size: 18px;
    line-height: 16px;
    font-weight: 600;
    text-decoration: none;
}

.stack-section .gradient-btn:hover {
    color: #fff;
    transition: all .2s ease-in-out;
    background-position: right center;
}

.stack-section .gradient-btn:visited {
    color: #fff;
}

.stack-section .gradient-btn:focus {
    outline: none;
}

.stack-section .gradient-btn:focus-visible {
    outline: none;
}

.stack-section .gradient-btn::before {
    content: "";
    background-image: url('../images/white-arrow.svg');
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-repeat: no-repeat;
    background-position-x: calc(100% - 24px);
    background-position-y: 50%;
}

@media (max-width: 1200px) {
    .stack-section .card {
        position: relative;
    }
}

@media (max-width: 1024px) {
    .stack-section .cards {
        gap: 20px;
    }

    .stack-section .card {
        gap: 20px;
        padding: 10px;
    }

    .stack-section .card-image {
        width: 100%;
    }

    .stack-section .card-content {
        width: 100%;
        padding: 20px 10px;
        gap: 20px;
    }

    .stack-section .card-image img {
        width: 100%;
        height: 100%;
    }

    .stack-section .gradient-btn {
        padding: 20px 50px 20px 22px;
    }

    .stack-section .card-image img {
        max-height: unset;
    }
}

@media (max-width: 767px) {

    .stack-section .card {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    .stack-section .card-content {
        padding: 0 10px 10px 10px;
        width: 100%;
        gap: 25px;
    }

    .stack-section .gradient-btn {
        font-size: 14px;
        line-height: 20px;
        font-weight: 600;
    }

    .stack-section .card-image {
        width: 100%;
    }

    .stack-section .card-content>div {
        gap: 10px;
    }

    .stack-section .gradient-btn {
        padding: 15px 54px 15px 24px;
        font-size: 14px;
        line-height: 20px;
    }

    .stack-section .card .card-title {
        font-size: 22px;
        line-height: 28px;
    }

    .stack-section .card .card-text {
        font-size: 16px;
        line-height: 23px;
    }
}