﻿:root {
    --main-color: #576A8F;
    --No2: #B7BDF7;
    --No3: #FFF8DE;
    --No4: #FF7444;
    --blue-gradient: linear-gradient(90deg, #576A8F 0%, #383636 100%);
    --salmon-pink: #F7A5A5;
    --orange: #FFDBB6;
    --rosy-white: #FFF2EF;
    --color-text-main: #383636;
    --gradient: linear-gradient(90deg, #FF7444 0%, #ACB1D6 100%);
    --gradient1: linear-gradient(90deg, #FFF2EF 0%, #5D688A 100%);
}

.benefits-container {
    width: 100%;
    /*background: linear-gradient(to right, #E8E2DB, #547792);
    background: linear-gradient(145deg, #E8E2DB, #FAB95B);*/
    background: var(--blue-gradient);
    z-index: 1;
    /*font-family: Arial, Roboto, 'Assistant', sans-serif;*/
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    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;
        padding: 0;
        margin: 0;
    }

    .benefits-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .benefits-container::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }

.page-title h1 {
    font-size: 2rem !important;
    color: #FFFF;
    display: none;
}



.benefits-header {
    height: 40dvh;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .benefits-header h2 {
        font-family: Arial, Roboto, 'Assistant', sans-serif;
        font-size: 3.5rem;
        font-weight: bold;
        letter-spacing: 1px;
        line-height: 1.2;
        color: #FFF;
        margin: 0 auto 1.5rem;
        position: relative;
        display: inline-block;


    }


        .benefits-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 25%;
            right: 25%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #FFF, transparent);
            opacity: 0.6;
        }

.benefits-container.shrink .benefits-header h2 {
    font-size: 1rem;
}

.benefits-container.shrink .benefits-header {
    height: 12.5vh;
}

.benefits-row {
    width: 100%;
    height: auto;
    margin-top: 1.5%;
    margin-bottom: 1.5%;
}

.benefits-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 5%;
}

.benefit-card {
    flex: 0 0 calc((100% - (2 * 20px)) / 3);
    max-width: 33.33%;
    border-radius: 0;
    padding: 1.5rem;
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    background-color: transparent;
    /*box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.03);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    margin-bottom: 0 !important;

}

    .benefit-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
.benefit-card {

    /*border-top: .15rem solid var(--No3)!important;*/
}
    .benefit-icon {
        flex: 0 0 10%;
        width: 100%;
        height: 6rem;
        max-height: 75px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .75rem;
        border-radius: 12px;
    }

    .benefit-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.benefits-container.shrink .benefit-icon {
    padding: 1rem;
}

.benefit-text {
    flex: 1;
    min-height: 150px;
    font-size: .8rem;
    color: white;
    line-height: 1.8;
    text-align: center;
    margin-top: 0;
    font-size: .8rem;
    padding: 0 1.5rem;
}

.benefits-container.shrink .benefit-text {
    font-size: .7rem;
    padding: 0 .1rem;
    min-height: 125px;
}

.histadrut-link {
    width: 100%;
    flex: 0 0 10%;
    display: block;
    text-align: center;
    font-size: .9rem;
    font-weight: 600;
    background:var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border-radius: unset;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.benefits-container.shrink .histadrut-link {
    font-size: .8rem;
}
/*    .histadrut-link:hover {
        background-color: #56776C;
        color: white;
    }*/


@media (max-width: 1000px) {
    .benefits-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transition: width 0.4s ease-out, transform 0.4s ease-out;
        width: 100vw;
        height: 100svh;
        scrollbar-width: none;
        overflow: auto;
    }

        .benefits-container.shrink {
            height: 100vh;
            position: relative;
            transform: scale(1) translateX(0) translateY(0);
            width: 75vw;
            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;
        }

    .side-menu {
        width: 25vw;
    }

    .benefit-card {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}


@media (max-width: 768px) {
    .benefits-header {
        height: 20vh;
    }



    .benefits-column {
        padding: 0 3%;
        justify-content: center;
        align-items: center;
    }

    .benefit-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
        .benefit-card:hover {
            transform: translateY(-5px);
            box-shadow: none;
        }
}


@media (max-width: 600px) {
    .benefits-container.shrink {
        height: 100dvh;
        position: relative;
        transform: scale(1) translateX(0) translateY(0);
        width: 65vw;
        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;
    }

    .side-menu {
        width: 35vw;
    }

    .benefits-container {
        padding-top: 5vh;
    }

    .benefits-header {
        align-items: flex-end;
        height: 15vh;
    }

        .benefits-header h2 {
            font-size: 1.8em;
        }

    .benefits-column {
        padding: 0 10px;
        gap: 15px;
    }

    .benefits-column {
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .benefit-card {
        flex: 0 0 87.5%;
        max-width: 100%;
        padding: 0;
        border-top: .005rem solid #FFF8DE !important;
    }

    .benefit-text {
        font-size: .9rem;
        padding: 0 1rem;
    }
}


/*ADMIN*/
.admin-benefits-panel {
    direction: rtl;
    margin: 10vh 0 100px 0;
    padding: 20px;
    background-color: transparent;
    border-radius: 10px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .admin-benefits-panel h3 {
        margin-top: 0;
        color: white;
        margin-bottom: 15px;
    }

    .admin-benefits-panel button {
        margin-right: 10px;
        margin-bottom: 5px;
        padding: 10px 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
    }


.benefit-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    padding: 10px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.modal-content {
    background-color: #000;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: translateY(-20px);
    animation: slideUp 0.3s forwards;
    box-sizing: border-box;
    border: 1px solid #333;
    overflow: hidden;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.modal-content h2 {
    text-align: center;
    color: white;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-save, .btn-cancel {
    padding: 10px 20px;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color: #000;
    color: #fff;
    transition: all 0.2s ease;
}

    .btn-save:hover, .btn-cancel:hover {
        background-color: #fff;
        color: #000;
    }

.image-preview-container {
    text-align: center;
    margin-bottom: 20px;
}

.image-preview {
    max-width: 100px;
    max-height: 100px;
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 5px;
}

.btn-change-image {
    background-color: #000;
    color: white;
    border: 1px solid #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-change-image:hover {
        background-color: #fff;
        color: #000;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #fff;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: .25rem;
        border: 1px solid #333;
        border-radius: 5px;
        font-size: .7rem;
        background-color: #000;
        color: #fff;
        box-sizing: border-box;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }


@media (max-height: 700px) {
    .modal-content {
        padding: 20px;
        max-height: calc(100vh - 30px);
    }

    .form-group {
        margin-bottom: 15px;
    }
}
