﻿.benefits-container {
    padding-top: 5svh;
    width: 100%;
    background-color: #FFF2EF;
    z-index: 1;
    font-family: Arial;
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    overflow-y: auto;
    overflow-x: visible;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
    transform-origin: left center;
    will-change: transform;
    backface-visibility: hidden;
}


    .benefits-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(2.5svw) translateY(0);
        width: 91svw;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 35px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    }

    .benefits-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .benefits-container::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }

    .benefits-container h1 {
        font-family: amaticasc-regular;
        font-size: var(--space-5xl);
        font-weight: 700;
        text-align: right;
        margin-right: 2rem;
        line-height: 1.3;
        color: #5D688A;
        display: none;
    }

.benefits-header {
    direction: rtl;
    position: relative;
    padding: 0 1rem 0 2rem;
}

    .benefits-header h2 {
        font-family: amaticasc-regular;
        font-size: var(--space-2xl);
        font-weight: 700;
        margin-bottom: .5rem;
        line-height: 1.3;
        color: #5D688A;
    }

    .benefits-header h4 {
        font-family: amaticasc-regular;
        font-size: 3rem;
        margin-bottom: .25rem;
        font-weight: 300;
        color: black;
        margin-top: -2.6rem;
        line-height: 1.5;
    }

.benefits-row {
    display: flex;
    flex-wrap: wrap;
    max-width: 100svw;
    margin: 0 auto;
    gap: 2rem;
}

.benefits-column {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

    .benefits-column:nth-child(1) {
        /*margin-top: -125px;*/
    }

    .benefits-column:nth-child(2) {
        margin-top: 150px;
    }

.benefit-card {
    background-color: transparent;
    padding: .5rem;
    padding-bottom: 3rem;
    direction: rtl;
    width: 70%;
    margin: 0 auto;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.benefit-icon {
    width: 12.5rem;
    height: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
    padding: 0;
}

    .benefit-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }



.benefit-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--main-color);
    line-height: 1.2;
    text-align: center;
}

.benefit-text {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    text-align: justify;
    margin-top: 0;
}

.histadrut-link {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0 auto;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-color);
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--main-color);
    border-radius: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

    .histadrut-link:hover {
        background-color: var(--main-color);
        color: white;
    }




/* =======RESPO========= */
@media (max-width: 768px) {
    .benefits-row {
        flex-direction: column;
    }

    .benefits-column:nth-child(1) {
        margin-top: 0;
    }

    .benefits-column:nth-child(2) {
        margin-top: 0;
    }

    .benefit-card {
        width: 60%;
    }
}


@media (max-width: 468px) {
    .benefits-container {
        scroll-margin-top: 20svh;
        padding: 2rem 5%;
    }

        .benefits-container p {
            color: var(--main-color);
            font-size: var(--text-base);
            line-height: 1.6;
        }


    .benefits-header {
        padding: 0;
    }

        .benefits-header h1 {
            font-size: 5rem;
            padding: 0;
            margin-bottom: 3svh;
            line-height: 0.9;
        }

    .page-container.shrink .benefits-header h1 {
        font-size: 3rem;
        padding-right: 3%;
    }

    .page-container.shrink .benefits-header h4 {
        font-size: 2rem;
        line-height: 2;
        padding-right: 3%;
    }

    .benefit-icon {
        width: 150px;
        height: 80px;
    }

    .benefit-title {
        font-size: 1.3rem;
    }

    .page-container.shrink .benefit-text {
        text-align: right;
    }

    .benefit-text {
        font-size: 1.1rem;
    }


    .benefits-column {
        flex: 1;
        min-width: 100px;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 1.5rem;
    }

        .benefits-column:nth-child(2),
        .benefits-column:nth-child(1) {
            margin-top: 1.5rem;
        }


    .benefit-card {
        background-color: transparent;
        padding: 0;
        padding-bottom: 1.5vh;
        direction: rtl;
        width: 100%;
    }

    .page-container.shrink .benefit-card {
        padding: 0;
    }

    .pag-container.shrink .benefit-card p {
        font-size: .9rem;
        text-align: justify;
    }

    .histadrut-link {
        font-size: 1rem;
        padding: 0.5rem .5rem;
        margin: 1rem auto 0 auto;
    }
}

.benefit-card,
.benefit-icon {
    opacity: 1;
    transform: none;
}
