﻿@font-face {
    font-family: 'amaticasc-regular';
    src: url('/font/AmaticaSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /*    https: //colorhunt.co/palette/f8f5e99dc08b3a7d44df6d14 --main-color: #576A8F;*/
    --No2: #B7BDF7;
    --No3: #FFF8DE;
    --No4: #FF7444;
    --salmon-pink: #F7A5A5;
    --orange: #FFDBB6;
    --rosy-white: #FFF2EF;
    --color-text-main: #383636;
    --blue: #576A8F;
    --green: #7A8D85;
    --yellow: #FFFBCA;
    --purple: #B771E5;
    --gradient: linear-gradient(90deg, #021024 0%, #052659 100%);
    --gradient1: linear-gradient(180deg, #E8F3EE 0%, #7A8D85 100%);
    --gradient2: linear-gradient(90deg, #B771E5 0%, #FFFBCA 100%);
    --gradient3: linear-gradient(90deg, #FFFBCA 0%, #B771E5 100%);
    --blue-green: linear-gradient(180deg,#7A8D85 0%,#576A8F 100%);
    --white: #f5f7fa;
}

@media (hover: hover) {
    a:hover {
        color: #333;
    }
}

@media (hover: none) {
    a:hover {
        color: inherit;
    }
}

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    border-radius: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

main, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    overflow: hidden;
    background-color: #333;
}

body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

    body.modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    body::-webkit-scrollbar {
        width: 1px;
    }

    body::-webkit-scrollbar-track {
        border-radius: 4px;
    }

    body::-webkit-scrollbar-thumb {
        background: var(--gradient1);
        border-radius: 4px;
        transition: background 0.3s ease;
    }


@media (max-width: 468px) {
    *::-webkit-scrollbar {
        display: none;
    }
}

._container h1 {
    /*    flex: 0 0 auto;
    margin-top: 1svh;
    color: white;
    font-size: 2rem !important;*/
}

/*.page-title {
    position: absolute;
    top: .5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 7.5svh;
    min-width: 100px;
}

    .page-title h1 {
        position: relative;
        display: inline-block;
        font-family: amaticasc-regular;
        font-size: 1.5rem;
        color: var(--rosy-white);
        opacity: 1;
        width: fit-content;
        transition: opacity 0.4s ease;*/
/*border: 1px solid red;*/
/*}*/

/*        .page-title h1::after {
            content: '';
            position: absolute;
            bottom: -.5rem;
            left: 50%;
            transform: translateX(-50%);
            width: 40%;
            min-width: 30px;
            height: 2%;
            background: var(--gradient1);
        }*/

p {
    white-space: normal;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.seo-hidden {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.admin-key {
    height: 40px;
    width: 40px;
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    z-index: 99999;
    display: none;
}

    .admin-key svg {
        fill: white;
    }

/*#region COOKIE */
.cookie-banner {
    position: fixed;
    width: 100vw;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

    .cookie-content p {
        margin: 0;
        color: #333;
        font-size: .8em;
        line-height: 1.5;
    }

.cookie-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

    .cookie-link:hover {
        text-decoration: underline;
    }


.cookie-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

    .cookie-buttons button {
        flex: 1;
        border-radius: 8px;
        font-size: .8em;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }

#confirmCookie {
    background-color: var(--green);
    color: white;
}

    #confirmCookie:hover {
        background-color: #262d3d;
    }

#rejectCookie {
    background-color: #dc3545;
    color: white;
}

    #rejectCookie:hover {
        background-color: #bb2d3b;
    }

#closeBannerBtn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
}

    #closeBannerBtn:hover {
        background-color: #f5f5f5;
        border-color: #999;
    }

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }

        .cookie-content p {
            font-size: .75em;
        }

    .cookie-buttons {
        width: auto;
    }

    .cookie-banner {
    }
}

/*#endregion */


/*#region LAYOUT */

/*#region HEADER */

header {
    position: fixed;
    right: 0;
    top: 0;
    width: 100dvw;
    z-index: 5;
    padding: 0 !important;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: flex-end;
}

#logo {
    position: fixed;
    top: 1.5svh;
    left: .5svw;
    width: 75px;
    max-width: 100px;
    height: 75px;
    max-height: 150px;
    overflow: hidden;
    z-index: 99;
    background-color: transparent;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    #logo a:focus-visible {
        border: 2px solid black;
        outline-offset: 5px;
        border-radius: 4px;
    }

    #logo:hover {
        transform: scale(1.05);
    }


    #logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        pointer-events: none;
    }

    #logo a {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        display: block;
    }



header *:nth-child(3) {
    width: 15dvw;
    background-color: transparent;
    pointer-events: none;
}

@media (max-width: 600px) {
    #logo {
        top: 1svh;
        left: 1svw;
        width: 60px;
        height: 60px;
    }
}
/*#endregion */

/*#region Hamburger */
.hamburger {
    transform: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-right: 0;
    border-radius: .25rem;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border: none;
    mix-blend-mode: difference;
}


/*    .hamburger:not(.is-active):hover {
        transform: scale(1.05);
        transition: all 0.2s ease;
    }*/


.hamburger-box {
    width: 1.75vw;
    position: relative;
    min-width: 24px;
    height: 2.5dvh;
    display: inline-block;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
    filter: brightness(1);
}

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: "";
        width: 100%;
        height: 2px;
        position: absolute;
        right: 0;
        transition: transform 0.2s ease, background-color 0.2s ease;
        background: #fff;
        filter: brightness(1);
    }

    .hamburger-inner::before {
        top: -8px;
    }

    .hamburger-inner::after {
        bottom: -8px;
    }

.hamburger.is-active .hamburger-inner {
    background: transparent;
}

    .hamburger.is-active .hamburger-inner::before {
        transform: translateY(8px) rotate(45deg);
        background-color: white !important;
    }

    .hamburger.is-active .hamburger-inner::after {
        transform: translateY(-8px) rotate(-45deg);
        background-color: white !important;
    }



/*#endregion */



.background-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    z-index: 0;
    overflow-y: auto;
    overscroll-behavior: none;
}

/*#region MENU */
.side-menu {
    padding-top: 5svh;
    height: 100svh;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 15.80svw;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    visibility: hidden;
    background-color: #333;
}

    .side-menu #menu-logo {
        height: 15svh;
        max-height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none;
        width: 100%;
    }


        .side-menu #menu-logo img {
            width: 12.5dvw;
            height: 12.5dvh;
            object-fit: contain;
            transition: all 0.3s ease;
            padding: 0.15rem;
        }

    .side-menu nav {
        flex-grow: 1;
        /*max-height: 70svh;*/
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

        .side-menu nav ul {
            width: 100%;
            list-style: none;
            padding: 0;
            text-align: center;
        }

        .side-menu nav a {
            position: relative;
            padding: 0;
            color: #e0e0e0;
            text-decoration: none;
            display: block;
            padding: .5rem 1.1rem;
            text-align: center;
            font-family: amaticasc-regular;
            font-size: 1.6rem;
            width: 75%;
            margin: 0 auto;
        }

.badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
    vertical-align: top;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@media (hover: hover) {
    .side-menu nav a:hover {
        color: var(--main-color);
        text-decoration: none;
        width: 30%;
        margin: 0 auto;
    }
}

.side-menu nav a::after {
    content: "";
    display: block;
    margin: auto;
    background-color: var(--main-color);
    height: 0.15rem;
    width: 0;
    transition: width .3s;
}

@media (hover: hover) {
    .side-menu nav a:hover::after {
        width: 45%;
    }

    .side-menu nav a:hover {
        color: gray;
        text-decoration: none;
        width: 75%;
    }
}

#side-menu-spacer {
    flex: 0 0 10svh;
}

.social-icons-menu {
    flex: 0 0 10svh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5vw;
    width: 100%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0;
}

    .social-icons-menu::before {
        content: "";
        position: absolute;
        top: .5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 50%;
        height: .05rem;
        background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
        box-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 0 10px rgba(100,200,255,0.2);
        border-radius: 4px;
    }


.social-link .fa-facebook-f {
    color: #3b5998;
}

.social-link .bi-facebook {
    color: #1877F2; /* הצבע המעודכן של פייסבוק */
    fill: currentColor;
}

.social-link .bi-instagram {
    color: #e4405f;
    fill: currentColor;
}

@media (hover: hover) {
    .social-link:hover {
        transform: translateY(-2px);
        opacity: 0.8;
    }
}


.social-icons a:nth-child(3) {
    color: white !important;
}

.social-icons a:nth-child(4) {
    color: #25D366 !important;
}

/*#endregion */

/*#endregion */

/*#region BANNER */
.banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* שחור חצי שקוף, אפשר לשנות ל-transparent אם רוצים שקוף לגמרי */
    z-index: 99998; /* אחד פחות מהבאנר שקיבל 99999 */
    display: none; /* מוסתר כברירת מחדל */
}

.banner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25dvw;
    min-width: 300px;
    /*height: 75svh;*/
    max-height: 75svh;
    z-index: 99999;
    background: #373737;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    display: none;
    font-family: Arial;
    border-bottom-right-radius: 14px;
}

.banner-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 50%;
    height: 250px;
    min-height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

    .banner-img img {
        /* במקום למלא הכל, ניתן לה גודל מקסימלי */
        max-width: 100%;
        max-height: 100%;
        /* מבטלים את ה-100% הקשיח כדי שלא תימתח אם היא קטנה */
        width: auto;
        height: auto;
        /* משנים ל-contain כדי לראות את כל התמונה בלי "זום" */
        object-fit: contain;
        display: block;
    }

.banner-text-container {
    position: relative;
    flex: 1 1 25%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    padding: .75rem .25rem;
}

    .banner-text-container .banner-title {
        flex: 0 0 25%;
        height: 25%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .banner-text-container .banner-title h1 {
            margin: .5rem !important;
            text-align: center;
            font-size: 1.5rem;
            font-weight: 300;
            line-height: 1.2;
            color: var(--No3);
        }

    .banner-text-container .banner-text {
        flex-grow: 1;
        height: 65%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        direction: rtl;
        padding: .25rem 1.25rem;
    }

        .banner-text-container .banner-text p {
            font-size: 1rem;
            margin: 0 !important;
            text-align: center;
            /*padding-top: 0.25rem;*/
            color: var(--No2);
            line-height: 1.3;
        }

.banner-link {
    flex: 1;
    min-height: 12.5%;
    display: flex;
    /*    justify-content: center;
    align-items: center;*/
    /*align-items: flex-end;*/
    padding: .25rem;
}

    .banner-link a {
        height: 100%;
        padding: .75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: var(--main-color);
        text-decoration: none;
        color: white;
        font-size: 1.1rem;
        border-bottom-right-radius: 14px;
        border-top-left-radius: 14px;
    }

.close-banner {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--rosy-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    transition: background-color 0.3s;
    font-size: 18px;
    line-height: 0;
    padding-bottom: 0;
}

@media (hover: hover) {
    .close-banner:hover {
        background-color: black;
    }
}


.close-banner span {
    margin-bottom: 5px;
}


@media (max-width: 468px) {
    .close-banner span {
        margin-bottom: 2px;
    }

    .banner-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
        width: 27.5svw;
        min-width: 325px;
        /*height: 75dvh;*/
        background: #373737;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        border: none;
        outline: none;
        display: none;
        font-family: Arial;
    }
}

/*#endregion */



/*#region MAIN-PAGE*/

.page-container {
    height: 100svh;
    width: 100svw;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    scroll-behavior: smooth;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
}


    .page-container::-webkit-scrollbar {
        width: .40em;
        height: 1px;
        background-color: #FFF;
    }

    .page-container::-webkit-scrollbar-thumb {
        background-color: #acaaaa;
        background-attachment: fixed;
        border-radius: .5rem;
    }

    .page-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(-5svh) translateY(0);
        width: 91svw;
        /*overflow: auto;*/
        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;
    }

/*section {
    position: relative;
    min-height: 100lvh;
    width: 100%;
}*/

.home-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    padding-bottom: .5rem;
}

.vimeo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

    .vimeo-wrapper iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.1);
        width: 100vw;
        height: 56.25vw;
        min-height: 100vh;
        min-width: 177.77vh;
        transform-origin: center center;
    }


/*@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {*/

/* הגדרות ספציפיות למצב שבו המסך ב-125% זום */
/*.vimeo-wrapper iframe {
        display: none;*/ /* הקטנה כדי לפצות על הזום */
/*}
}*/
@media (max-width: 1580px) {
    .vimeo-wrapper iframe {
        width: 177.77vh;
        min-height: 100vh;
        transform: translate(-50%, -50%) scale(1.35);
        border-radius: 20px;
    }
}

@media (max-width: 1280px) {
    .vimeo-wrapper iframe {
        left: 45%;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

@media (max-width: 900px) {
    .vimeo-wrapper iframe {
        left: 25%;
    }

    .page-container.shrink .vimeo-wrapper iframe {
        left: 5%;
    }
}


@media (max-width: 768px) {
    .vimeo-wrapper iframe {
        left: 15%;
    }

    .page-container.shrink .vimeo-wrapper iframe {
        left: 0;
    }
}

@media (min-resolution: 150dpi) {
    .vimeo-wrapper iframe {
        left: 50%;
    }
}
/**/
/*@media (max-width: 650px) {
    .vimeo-wrapper iframe {
        left: 5%;
    }
    .page-container.shrink .vimeo-wrapper iframe {
        left: -10%;
    }
}*/


/*@media (max-width: 899px) and (-webkit-max-device-pixel-ratio: 1.24), (max-width: 899px) and (max-resolution: 119dpi) {
    .vimeo-wrapper iframe {
        left: 25%;
    }
}*/
/*@media screen and (max-width: 768px) and (-webkit-max-device-pixel-ratio: 1.24), screen and (max-width: 768px) and (max-resolution: 119dpi) {
    .vimeo-wrapper iframe {
        left: 1%;
    }
}*/
/*@media (max-width: 568px) {
    .vimeo-wrapper iframe {
        left: -17.5%;
    }
}*/
@media only screen and (max-width: 586px) {
    /*    .vimeo-wrapper iframe {
        left: 30% !important;
        transform: translate(-50%, -50%) scale(2.2) !important;
    }
*/
    .page-container.shrink .vimeo-wrapper iframe {
        left: 50% !important;
    }
}

@media (max-width: 480px) {
    .vimeo-wrapper iframe {
        left: 30%; /* הזזה משמעותית שמאלה למובייל */
        transform: translate(-50%, -50%) scale(2.2);
    }
}

@media (max-width: 508px) {
    .vimeo-wrapper iframe {
        left: 50%;
        transform-origin: center center;
        transform: translate(-50%, -50%) scale(1);
    }
}

.vimeo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}
/**/
/*#bg-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left left;
}*/




/**/
/*.mute-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    outline: none;
}

    .mute-btn svg {
        width: 28px;
        height: 28px;
        pointer-events: none;
    }*/

/* הבהוב כשמושתק */
/*.mute-btn.pulsing {
    animation: pulse 1.5s ease-in-out infinite;
}*/

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/*@media (max-aspect-ratio: 1/1) {
    .vimeo-wrapper iframe {
        width: 200vh;
        height: 100vh;
    }
}*/



/*@media (max-width: 768px) {
    .vimeo-wrapper iframe {
        width: 177.77vh;*/ /* יחס 16:9 ביחס לגובה */
/*height: 100vh;
        transform: translate(-50%, -50%) scale(1.35);*/ /* זום חזק יותר במובייל להסתרת שוליים */
/*}
}*/


/*#region MASHA */
.masha-container {
    order: 2;
    flex: 1 1 400px;
    max-width: 500px;
    height: 100svh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin: 0 auto;
    /*margin-left: 2vw;*/
    margin-right: 15vw;
}

.question-container {
    flex: 1 1 500px;
    /*max-width: 500px;*/
    display: flex;
    flex-direction: row;
    /*padding: 20px;*/
    z-index: 2;
    /*margin-left: 15vw;*/
}

.question-wrapper {
    margin: 5%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 40%;
    height: fit-content;
    min-height: 90px;
    max-width: 800px;
    /*min-width: 250px;*/
    /*background-color: transparent;*/
    border-radius: 30px;
    /*padding: 10px 10px;*/
    z-index: 2;
    opacity: 0;
    will-change: transform, opacity;
    animation: fadeInQ 0.8s ease-out forwards;
    animation-delay: 1s;
    pointer-events: none;
    /*border: 1px solid red;*/
}
    /*.question-wrapper {
    background: rgba(30, 30, 30, 0.8);
}*/

    .question-wrapper button,
    .question-wrapper .home-question {
        pointer-events: auto;
    }

@keyframes fadeInQ {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.home-question {
    flex: 1;
    outline: none;
    border-radius: 30px;
    width: 100%;
    /*flex: 0 0 80%;*/
    outline: none;
    height: fit-content;
    /*height: 50%;*/
    min-height: 10%;
    padding: .5rem 1rem;
    font-weight: 100;
    outline: none;
    resize: none;
    overflow-y: auto;
    background-color: transparent;
    color: white;
    min-width: 150px;
    margin-right: 0rem;
    font-size: 1rem;
    font-family: Arial;
    z-index: 99999;
    background: rgba(30, 30, 30, 0.8);
}

    .home-question::placeholder {
        color: #c4c7c5;
        opacity: .5;
    }

    .home-question:empty::before {
        content: attr(placeholder);
        color: #c4c7c5;
        font-size: 1rem;
    }



/*.masha {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

    .masha img {*/
/*max-width: 100%;*/
/*max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        flex-shrink: 0;
    }*/




/*.masha-header {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 0;
}

    .masha-header > * {
        font-family: amaticasc-regular;
        flex: 0 0 auto;
        margin: 0;
        color: white;
        font-weight: 300;
    }
*/
/*    .masha-header h1,
    .masha-header h2 {
        background: var(--gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        display: block;
    }

    .masha-header h1 {
        font-size: var(--space-4xl);
        line-height: 1.05;
        margin-right: -.3rem;
    }*/

/*    .masha-header h2 {
        font-size: 2rem;
        line-height: 1;
        -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
        margin-top: -0.7rem;
    }
*/


.open-chat-button-container,
.home-send-button-container {
    flex: 0 0 auto;
    position: relative;
    border: none;
    cursor: pointer;
    width: auto;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    gap: .25rem;
    /*border: 1px solid red;*/
    width: 100%;
    max-height: 50px;
    /*padding-left: .5rem;*/
}

/*#unmuteIcon,
#muteBtn,*/
#open-chat-button,
#home-send-button {
    /*transform: rotate(180deg);*/
    background-color: transparent;
    outline: none;
    height: 80%;
    border: none;
    background: rgba(30, 30, 30, 0.8);
    /*    margin-bottom: .5rem;
    margin-left: .5rem;*/
    /*border-radius: 50%;*/
    border-radius: 50%;
    width: auto;
    aspect-ratio: 1/1;
    /*margin-left: 1rem;*/
    /*margin-bottom: .5rem;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

#open-chat-button {
    /*background-color: var(--No4);*/
}

#home-send-button {
    /*background-color: var(--No3);*/
}

    /*    #unmuteIcon:hover,
    #muteBtn:hover,*/
    #open-chat-button:hover,
    #home-send-button:hover {
        background-color: #333;
    }

    /*    #unmuteIcon svg,
    #muteBtn svg,*/
    #open-chat-button svg,
    #home-send-button svg {
        fill: #c4c7c5;
        width: 24px;
        height: 24px;
        display: block;
        /*border: 1px solid red;*/
    }

#replayBtn,
#muteBtn {
    position: absolute;
    top: 6.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    z-index: 99999;
    isolation: isolate;
}

    #muteBtn:hover {
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.08);
    }

#replayBtn {
    display: none;
    top: calc(6.5rem + 50px);
}

    #replayBtn svg {
        /*        fill: white;
        display: block;*/
    }

/*#endregion */
/*#region BackgroundVideo */
section.video-section {
    position: relative;
    width: 100%;
    display: flex;
    background-color: #FFF;
    z-index: 99998;
}

.background-video-container {
    width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
}


.background-video {
    width: 75%;
    height: 75%;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.8);
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: perspective(1000px) translateZ(0);
    transition: opacity 0.2s ease-in-out;
    background: #000;
}

    .background-video.loaded {
        opacity: 1;
    }

@keyframes fadeInUp {
    from {
        filter: blur(20px);
    }

    to {
        filter: blur(0px);
    }
}

.wave-container {
    position: absolute;
    bottom: 99.5%;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 0;
    z-index: 20;
    pointer-events: none;
}

    .wave-container svg {
        width: 100%;
        height: 100%;
        display: block;
    }

        .wave-container svg path {
            fill: white;
            z-index: -1;
        }


@media (max-width: 568px) {
    .background-video-container {
        background: black;
    }

    .background-video-container {
        background-color: #000;
        background-image: url('../images/noise-optimized.webp');
        background-repeat: repeat;
        background-size: 200px 200px;
        image-rendering: pixelated;
    }

    .background-video {
        width: 100%; /* מגדיל את הרוחב כדי שיראו משהו בטלפון */
        height: 100%;
        border: none; /* מעדן מעט את המסגרת למסך קטן */
        box-shadow: none /* צל עדין יותר */
    }

    .wave-container svg path {
        fill: black;
    }
}
/*#endregion */


/*#region ANSWER */
.answer-bubble,
.question-bubble {
    direction: rtl;
    font-size: .8rem;
    text-align: justify;
    line-height: 1;
}


.answer-bubble {
    background-color: transparent;
    color: black;
    margin: 0;
    padding-right: 1rem;
    padding-left: 1.2rem;
    scroll-margin-top: 100px;
}

    .answer-bubble table {
        width: 95%;
        border-collapse: collapse;
        font-size: 0.95em;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        overflow: hidden;
        line-height: 1.2;
        text-align: justify;
        margin: 5% auto;
    }

    .answer-bubble th {
        background-color: #e0e0e0;
        color: #333;
        font-weight: bold;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 2px solid #ccc;
    }

    .answer-bubble td {
        padding: 10px 15px;
        border-bottom: 1px solid #e0e0e0;
        text-align: right;
    }

    .answer-bubble tr:last-child td {
        border-bottom: none;
    }

    .answer-bubble tr:nth-child(even) {
        background-color: #f8f8f8;
    }

@media (hover: hover) {
    .answer-bubble tr:hover {
        background-color: #f0f0f0;
    }
}


.answer-bubble ul, .answer-bubble ol {
    padding-right: 20px;
    margin: .75rem 0;
}

.answer-bubble ul, .answer-bubble ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .answer-bubble ul li::before, .answer-bubble ol li::before {
        content: "– ";
        margin-right: 10px;
        padding-left: 5px;
    }

.answer-bubble p {
    line-height: 1.3;
    margin-bottom: .75rem;
}

.answer-bubble li {
    margin-bottom: .5rem;
}

.answer-bubble h1,
.answer-bubble h2,
.answer-bubble h3 {
    margin: 1rem 0 .75rem 0;
    color: #333;
}

.answer-bubble h1 {
    font-size: 1.5em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: .25rem;
}

.answer-bubble h2 {
    font-size: 1.3em;
}

.answer-bubble h3 {
    font-size: 1.1em;
}

.answer-bubble:not(:first-child)::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 15px 0 10px 0;
}

@media (hover: hover) {
    .answer-bubble:hover {
        opacity: 1;
    }
}

.answer-bubble.complete .answer-actions,
.answer-actions {
    opacity: 1;
}

    .answer-actions i {
        font-size: 1rem;
        color: #999;
        cursor: pointer;
        background-color: transparent;
        transition: color 0.2s, transform 0.2s;
    }

@media (hover: hover) {
    .answer-actions i:hover {
        color: #000;
        transform: scale(1.1);
    }
}


.answer-actions i.selected {
    color: #007bff;
}

.answer-actions i.selected-bad {
    color: #dc3545;
}

/*#endregion */


/*#region FOOTER */
.site-footer {
    position: relative;
    background: var(--blue-green);
    color: #ffffff;
    /*padding: 30px 20px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    direction: rtl;
    font-family: Arial;
    min-height: 150%;
    width: 100%;
    height: fit-content;
}

.ftr-main-title {
    font-size: 2.1rem;
    color: #FFF2EF;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

.page-container.shrink .ftr-main-title {
    font-size: 1.5em;
}

.ftr-social-icons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 1rem;
    /*margin-bottom: 60px;*/
}

.ftr-social-item {
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFF2EF;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

    .ftr-social-item svg {
        display: block; /* מונע רווחים מיותרים בתחתית */
        width: 1.2em; /* תוכל לשלוט בגודל האייקון מכאן בקלות */
        height: 1.2em;
    }

@media (hover: hover) {
    .ftr-social-item:hover {
        background: #FFF2EF;
        color: #1a1a1a;
        transform: translateY(-10px) rotate(8deg);
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    }
}

.ftr-about-us {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}



fieldset {
    width: 50%;
    border-top: .005rem solid #FFF8DE;
    border-bottom: .005rem solid #FFF8DE;
    padding: 1rem 3rem;
    /*border-radius: 8px;*/
    margin-bottom: 1rem;
}

legend {
    float: none;
    padding: 0 10px;
    /*font-weight: bold;*/
    width: fit-content !important;
    margin-bottom: 0;
}

fieldset p {
    text-align: justify;
    font-size: 1.2rem;
    font-weight: 100;
}


.ftr-contacts-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding-bottom: 1rem;
}

.ftr-contact-box {
    text-align: center;
    min-width: 250px;
}

.ftr-person-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 200;
    color: #fff;
    position: relative;
    padding-bottom: .5rem;
}


.ftr-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

:root {
}

.ftr-contact-link {
    color: #aaa;
    text-decoration: none;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    background: var(--gradient);
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/ /* צל עדין מאוד שנותן נפח */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #333;
    /* רקע חדש לבלוטות */
    /*padding: 12px 24px;*/
    border-radius: 50px;
    font-weight: 400;
    /*background-color: rgba(0, 0, 0, 0.05);*/ /* רקע אפור עדין */
}

    .ftr-contact-link svg {
        color: #FFF2EF;
        font-size: 1rem;
    }



@media (hover: hover) {
    .ftr-contact-link:hover {
        color: #fff;
        letter-spacing: 0.5px;
    }
}

.ftr-copyright {
    display: flex;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    /*max-width: 1200px;*/
    /*text-align: left;*/
    /*justify-content: flex-end;*/
    align-items: center;
    color: #666;
    font-size: 0.8rem;
}



#openCookieSettings,
#openAccessibility {
    flex: 1;
    display: flex;
    /*justify-content: center;*/
}

#openCookieSettings {
    justify-content: flex-end;
    /*align-items: flex-end;*/
}

#openAccessibility {
    justify-content: flex-start;
}

.ftr-copyright button {
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: .8rem;
    padding: .5rem .15rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*border: 1px solid red;*/
    /*min-width: 150px;*/
    /*background-color: rgba(0, 0, 0, 0.05);*/
    width: fit-content;
}

/*.ftr-copyright button:nth-child(2) {
        justify-content: flex-end;*/
/*max-width: 100px;*/
/*}
    .ftr-copyright button:nth-child(1) {
        justify-content: flex-start;*/
/*max-width: 100px;*/
/*}*/


/*.page-container.shrink .ftr-copyright button {
    font-size: .6rem;
}*/

.separator {
    margin: auto .25rem;
    color: white;
    font-weight: 100;
    font-size: 1rem;
}

@media (hover: hover) {
    .ftr-copyright button:hover {
        color: white;
        background-color: rgba(0, 0, 0, 0.05);
    }
}

.ftr-copyright button:active {
    transform: translateY(1px);
}

@media (max-width: 1268px) {
    fieldset {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        /*        min-height: 300px;
        padding: 20px 10px;*/
    }
    page-container.shrink .site-footer {
        height: 200%;
    }
 
    .ftr-main-title {
        font-size: 1.5rem;
        /*margin-bottom: 25px;*/
        letter-spacing: 1px;
    }

    .ftr-social-icons {
        gap: 12px;
        /*        margin-bottom: 30px;*/
    }

    .ftr-social-item {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .ftr-contacts-grid {
        /*gap: 0;*/
        /*justify-content: space-around;*/
    }

    fieldset {
        width: 90%;
    }

    .ftr-contact-box {
        /*        min-width: 0;
        flex: 1;
        padding: 0 5px;*/
    }

    .ftr-person-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .ftr-contact-link {
        font-size: 1em;
        gap: 6px;
        word-break: break-all;
    }

        .ftr-contact-link i {
            display: none;
        }

    /*    .page-container.shrink .ftr-contact-link {
        font-size: 0.5rem;
    }*/

    .ftr-link-group {
        gap: 8px;
    }

    .ftr-copyright {
        /*margin-top: 30px;*/
        font-size: 0.75rem;
    }
}


@media (max-width: 568px) {

    .page-container.shrink .site-footer {
        height: fit-content;
        /*border: 1px solid red;*/
    }

    .page-container.shrink .ftr-copyright {
        padding: .25rem 0;
    }

    fieldset {
        width: 95%;
        padding: 1rem 0.5rem;
    }


        fieldset p {
            font-size: 1em;
            /*text-align: right;*/
            /*line-height: .9em;*/
        }

    .page-container.shrink fieldset p {
        font-size: .8em;
    }

    .ftr-contacts-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding-bottom: 1rem;
        /*max-width: 1000px;*/
        /*flex-wrap: wrap;*/
    }

    .ftr-contact-box {
        /*border: 1px solid red;*/
        text-align: center;
        min-width: 125px;
    }

    .page-container.shrink .ftr-contacts-grid {
        gap: 0;
        /*padding: 2rem;*/
    }

    .page-container.shrink fieldset {
        padding: .5rem 0;
    }

    .ftr-person-name {
        /*padding: .5rem;*/
        margin: 0;
    }

    .page-container.shrink .ftr-person-name {
        font-size: 1rem;
    }

    .ftr-link-group {
        gap: 0;
    }

    .ftr-copyright button {
        font-size: .7rem;
    }

    .ftr-contact-link {
        padding: .25rem;
        font-size: .9em;
    }

    .page-container.shrink .ftr-contact-link {
        font-size: .6rem;
    }

    .ftr-contact-link svg {
        display: flex;
    }

    .page-container.shrink .ftr-contact-link svg {
        display: none !important;
    }

    .ftr-social-item:hover {
        transform: none;
    }
}

/*#endregion */


/*#region CHAT-MODAL */
.chat-modal-container {
    position: fixed;
    top: 100px;
    bottom: 55px;
    left: 2.5rem;
    width: 500px;
    height: auto;
    max-height: 80vh;
    max-width: 100dvw;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 99;
    background-color: white;
    transition: transform 0.3s ease;
}

body:has(.chat-modal-container.active) .masha-header,
body:has(.chat-modal-container.active) .question-wrapper {
    display: none !important;
}


.chat-modal-container.active {
    display: flex;
}

.page-container.shrink ~ .chat-modal-container {
    transform: scale(.8);
}

#empty-state-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Assistant', sans-serif;
    direction: rtl;
    pointer-events: none;
    /*border: 1px solid red;*/
    width: 100%;
}

#typing-text {
    display: block;
    font-size: 1.2rem;
    font-weight: 100;
    color: #333;
}




.close-chat-btn {
    position: relative;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 1/1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: .25rem;
}

    .close-chat-btn svg {
        fill: #333;
    }

.chat-history-header {
    border-radius: 12px;
    flex: 0 0 10%;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /*border: 1px solid red;*/
}

.logo-chat {
    display: none;
}

.chat-history-header > div:first-child {
    flex: 0 0 auto;
    display: flex;
    border-radius: 50%;
    background-color: white;
}

.chat-history-header > div:nth-child(4) {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 30px;
    padding: 0 .25rem;
    background-color: #F9F9F9;
    margin-top: .25rem;
    margin-left: .5rem;
}

.chat-history-header > div:last-child {
}

/*.feedback-btn {
    margin-right: auto;
    padding: 0;
    margin-bottom: -.5rem;
    background-color: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .feedback-btn svg {
        height: 24px;
        fill: var(--salmon-pink);
        height: 24px;
        width: 24px;
        margin: 0;
        display: block;
    }*/
.feedback-btn,
.start-new-chat,
.menu-toggle-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.new-chat-menu {
    cursor: pointer;
}

.left-btn > div svg {
    display: block;
    fill: #333;
}


.chat-masha-header {
    flex: 0 0 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1dvh;
    padding: 0;
    margin: 0;
}

    .chat-masha-header .masha-chat-img {
        display: none;
        position: relative;
        width: auto;
        height: 75px;
        aspect-ratio: 1/1;
        margin-top: 5dvh;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        position: relative;
        background: #f0f0f0;
    }


        .chat-masha-header .masha-chat-img img {
            width: 100%;
            height: 200%;
            object-fit: cover;
            object-position: center top;
            display: block;
            position: relative;
        }

.typing {
    font-size: .7rem;
    flex: 1;
    direction: rtl;
    display: flex;
    /* שנה את השורה הזו כדי להוריד למטה */
    align-items: flex-end;
    justify-content: flex-start;
    /*border: 1px solid red;*/
    /*height: 40px;*/
}

    .typing.with-dots {
        height: 40px;
        position: relative;
        display: inline-flex;
        /* שנה מ-baseline ל-flex-end */
        align-items: flex-end;
        /* מוודא שהטקסט לא יידבק לרצפה ממש, אלא אם זה מה שאתה רוצה */
        /*padding-bottom: 5px;*/
        opacity: 1; /* שיניתי ל-1 כדי שתוכל לראות את זה */
    }

        .typing.with-dots span {
            display: inline-block;
            position: relative;
        }

            .typing.with-dots span::after {
                content: '...';
                display: inline-block; /* במקום absolute */
                vertical-align: baseline; /* יישור לקו הטקסט */
                animation: dots 1.5s infinite;
                /*width: 1.5em;*/ /* שומר מקום קבוע שהטקסט לא יקפוץ */
            }

@keyframes dots {
    0%, 20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%, 100% {
        content: '...';
    }
}



.user-message {
    position: relative;
    color: white;
    direction: rtl;
    align-self: flex-end;
    background-color: var(--blue);
    border-radius: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    max-width: 100%;
    width: fit-content;
    font-family: Arial;
    padding: .25rem .75rem;
    transition: all 0.2s ease-in-out;
    margin: 1rem 0;
    overflow: visible;
    margin-right: .5rem;
    font-size: .8rem;
}

.chat-menu {
    position: absolute;
    left: 0;
    /*flex: 0 0 0;*/
    width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    height: 100%;
    background-color: white;
    z-index: 1;
    transition: all 0.3s ease-in-out;
    direction: rtl;
    overflow: hidden;
    /*border-right: 1px solid rgba(0,0,0,0.3);*/
    pointer-events: none;
    /*min-width: 400px;*/
}


.open {
    flex: 0 0 auto;
    width: 300px;
    pointer-events: auto;
    border-right: 1px solid rgba(0,0,0,0.3);
}

.chat-menu-btn {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

    .chat-menu-btn > div svg {
        fill: var(--main-color);
        cursor: pointer;
    }

    .chat-menu-btn > div:first-child {
        margin-top: 2dvh;
    }

    .chat-menu-btn > div:last-child {
        width: 90%;
        align-self: center;
        border-radius: 20px;
        border: 1.5px solid var(--No3);
        padding: .25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        margin: 1.5dvh 0;
    }

        .chat-menu-btn > div:last-child span {
            font-size: 0.8rem;
            font-weight: bold;
            font-family: 'Segoe UI';
            color: #333;
        }

.chat-menu h3 {
    width: 100%;
    flex: 0 0 auto;
    color: #333;
    margin-bottom: 1rem;
    font-size: .85rem;
    padding: 0.5rem 0.5rem 0 0;
    /*margin: 0.25rem;*/
}

#historyMenu {
    width: 100%;
    flex: 1;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: 0;
    overflow-y: auto;
}

    #historyMenu::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    #historyMenu::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }

.history-item {
    position: relative;
    width: 95%;
    display: flex;
    flex-direction: row;
    list-style: none;
    border-radius: 20px;
    cursor: pointer;
    padding: .25rem;
    font-size: .7em;
    z-index: 9999;
}

    .history-item:hover {
        border: 1px solid rgba(0,0,0,0.3);
    }

        .history-item:hover > *:last-child svg {
            fill: var(--main-color);
        }

    .history-item > *:first-child {
        padding-right: 0.5rem;
        flex: 1;
    }

    .history-item > *:last-child {
        background-color: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        color: var(--main-color);
    }

        .history-item > *:last-child svg {
            fill: #f7fafa;
        }

    .history-item > *:nth-child(3) {
        background-color: red;
    }

.chat-modal {
    flex: 1;
    width: auto;
    max-width: 100svw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    padding-top: 7.5dvh;
    transition: all 0.3s ease;
}


.chat-history-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    min-width: 100%;
    min-height: 0;
    overflow-y: auto;
}

    .chat-history-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .chat-history-container::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }




.chat-history {
    direction: rtl;
    overflow-y: auto;
    /*padding: 0 1rem 0 0.25rem;*/
    width: 100%;
}

    .chat-history::-webkit-scrollbar {
        display: none;
    }


.ask-masha {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    justify-content: center;
    /*min-height: 32px;*/
    /*max-height: 150px;*/
    width: 100%;
    min-width: 100%;
    max-width: 100dvw;
    padding: .12rem .25rem .12rem .25rem;
    border: none;
    /*margin-bottom: .25rem;*/
    /*gap: .15rem;*/
    outline: none;
    box-shadow: none;
    /*background-color: var(--rosy-white);*/
}

.textarea-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 .50rem;
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-right: 0;
    /*border: 1px solid red;*/
}

.rich-text-area {
    font-family: Arial;
    color: white;
    font-size: .8rem;
    background-color: white;
    border: none;
    outline: none;
    resize: none;
    overflow-y: hidden;
    line-height: 1.2;
    min-height: 10px;
    width: 100%;
    border-radius: 20px;
    padding: .40rem 1rem;
    background-color: #333;
    /*border: .5px solid rgba(0,0,0,0.3);*/
}


    .rich-text-area:empty:before {
        content: attr(placeholder);
        color: white;
        font-size: .8rem;
        pointer-events: none;
        font-family: Arial;
    }

.page-container.shrink .rich-text-area {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    max-width: 150px;
    overflow-y: hidden;
}


.buttons-area {
    flex: 0 0 auto;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spacer {
    flex-grow: 1;
}


#send-button {
    flex: 0 0 auto;
    height: 38px;
    max-height: 38px;
    max-height: 32px;
    width: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    flex-shrink: 0;
    border: none;
    padding: 0;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}


.buttons-area {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: .25rem;
    /*border: 1px solid red;*/
}

#send-button svg {
    fill: var(--main-color);
}

#castahContainer {
    direction: rtl;
    padding: 0 .5rem .25rem .5rem;
    /*flex: 0 0 2.5%;*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
    /*border: 1px solid red;*/
}

    #castahContainer p {
        font-size: 8px;
        margin: 0;
        padding: 0;
    }

#send-button {
}

#send-button {
}






/*.buttons-area {
    min-width: 0;
    flex: 0 0 auto;*/
/*display: flex;*/
/*padding: 0;
    margin: 0;*/
/*
    align-items: center;
    justify-content: center;*/
/*width: 40px;*/
/*height: 100%;
}*/



.typing-indicator {
    background-color: transparent;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 5px 0;
    display: flex;
    gap: 4px;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        background-color: #999;
        border-radius: 50%;
        display: inline-block;
        animation: bounce 1.3s infinite ease-in-out;
    }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }
}


/*custom-popup*/
.rect-popup {
    width: 40vw;
    min-width: 350px;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    direction: rtl !important;
}

.rect-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    text-align: right !important;
    width: 100%;
    color: white;
}


.rect-content {
    font-size: 0.8rem !important;
    color: #bbb !important; /* אפור בהיר יותר מהכותרת */
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    width: 100%;
}

.rect-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important; /* ב-RTL זה יוצא צד שמאל */
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 1rem !important;
}

.rect-btn {
    background: transparent !important;
    border: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 8px 15px !important;
    margin-right: 5px !important;
    text-transform: uppercase;
}

.rect-cancel,
.rect-confirm {
    border-radius: 20px;
    color: var(--orange) !important;
}

.rect-btn:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
/*#endregion */
/*#region accessibility */
#accessibilityModal {
    direction: rtl;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100svw;
    width: 100svw;
    height: 100dvh;
    max-height: 100dvh;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    width: 65%;
}

    #accessibilityModal > * {
    }

.accessibility-contact h1 {
    flex: 1;
    width: 100%;
    font-size: 1.8rem;
    text-align: center;
    margin: .5rem;
    margin: 0;
    padding: .15em;
}

#accessibilityModal section,
#accessibilityModal p,
#accessibilityModal li {
    font-size: 0.85rem;
}

#accessibilityModal section {
    flex: 1;
    text-align: justify;
    min-height: 10% !important;
}


.WCAG {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: .5rem;
}

    .WCAG li {
        font-size: 0.9rem;
        line-height: 1.2;
        background: #f4f4f4;
        padding: 3px 5px;
        border-radius: 4px;
    }

        .WCAG li strong {
            color: #000;
            display: inline-block;
            margin-left: 3px;
        }

.accessibility-contact-list {
    padding-right: 2rem;
}

#closeAccessibility {
    width: 100%;
    flex: 1;
    align-self: flex-end;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

#accessibilityModal h2 {
    font-size: 1.5rem;
    margin-top: 1rem;
}

#closeAccessibility button {
    position: absolute;
    bottom: .5rem;
    width: 65%;
    min-height: 7svh;
    max-height: 9svh;
    margin: .25svh auto .5svh auto;
    padding: 1.5svh 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    color: white;
    font-size: clamp(1rem, 2svh, 1.5rem);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-close {
    width: 10%;
    height: auto;
    padding: .5rem;
}

.modal button:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 3px;
}

@media (max-width: 468px) {

    #accessibilityModal {
        padding: .5rem;
        width: 90%;
    }

        #accessibilityModal > * {
        }

    .accessibility-contact {
        padding: .5rem;
    }

        .accessibility-contact h1 {
            padding: 4px 0;
            font-size: 1.3rem;
            margin: .5rem auto;
        }

    #accessibilityModal section {
        font-size: 0.80rem;
    }

    #accessibilityModal h2 {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    #accessibilityModal p,
    #accessibilityModal li {
        font-size: 0.75rem;
        margin: .10rem;
    }

    #closeAccessibility button {
        width: 96%;
        padding: 0 2%;
        /*padding: .5rem;*/
    }
}

/*#endregion */


/*#region privacy */

.privacy-container {
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    padding: 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;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    gap: 0;
    background-color: transparent;
}

    .privacy-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;
    }

    .privacy-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .privacy-container::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }

.privacy-card {
    background: white;
    width: 100%;
    /*box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);*/
    padding: 2rem;
    box-sizing: border-box;
}

    .privacy-card section {
        min-height: auto !important;
        margin-bottom: 2.5rem;
    }

    .privacy-card p {
        padding-right: 2.5rem;
    }

.privacy-title {
    color: var(--main-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.last-update {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}

section {
}

.privacy-section-title {
    /*border-right: 4px solid #0d6efd;*/
    padding-right: 1rem;
    margin-top: 1px;
    margin-bottom: 1rem;
    color: var(--main-color1);
    font-weight: 600;
    font-size: 1.5rem;
}

.highlight-box {
    background-color: #f0f7ff;
    padding: .5rem;
    border-radius: 8px 0 0 8px;
    margin-bottom: 1rem;
}


ul {
    padding-right: 3.5rem;
    line-height: 1.6;
}

li {
    margin-bottom: 0.5rem;
}

.text-primary {
    color: #0d6efd;
}

.fw-bold {
    font-weight: bold;
}

@media (max-width:1000px) {
    .privacy-container.shrink {
        height: 100vh;
        position: relative;
        transform: scale(1) translateX(0) translateY(0);
        width: 70vw;
        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: 30vw;*/
        padding: 0;
    }
}

@media (max-width: 600px) {
    .privacy-container.shrink {
        width: 65vw;
    }

    .side-menu {
        /*width: 35vw;*/
    }

    .privacy-container.shrink .privacy-card {
        padding: .25rem;
    }
}

/*#endregion */


/*#region Important */
.important-container {
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    /*gap: 3svh;*/
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    margin: 0;
    padding: 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;
    background: var(--white);
}

    .important-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(2.5svw) translateY(0);
        width: 91svw;
    }

.important-title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 15dvh;
    margin-bottom: .5rem;
    /*border: 1px solid white;*/
}

    .important-title h1 {
        font-family: amaticasc-regular;
        color: black;
        font-size: 3.5rem;
    }

.items-container {
    display: flex;
    /*justify-content: center;*/
    /*align-items: center;*/
    flex-direction: column;
    flex-wrap: wrap;
    /*margin-top: 10dvh;*/
    height: 80%;
    width: 70%;
    /*overflow: hidden;*/
    /*border: 1px solid red;*/
    display: flex;
    gap: 10px;
    /*justify-content: center;*/
    /*align-items: stretch;*/
    /*border: 3px solid red;*/
}




.important-item {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.02);
}

.right-items {
    height: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    flex: 1;
    gap: 0;
    display: none;
}


.left-items {
    position: relative;
    height: 80%;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    /*flex: 1 1 15%;*/
}

.important-container.shrink .left-items {
}

.important-item:hover {
    transform: translateY(-4px);
}



.important-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /*border: 3px solid red;*/
}

.important-item-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: .25rem;
    width: fit-content;
    min-width: 150px;
    height: 50px;
    border-radius: 22px;
    background-color: transparent;
    margin: .5rem;
}

.important-item h2 {
    color: #333;
    position: relative;
    z-index: 1;
    font-size: 1em;
    font-weight: 100;
    margin: 0;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 2.5px 5px;
    border: 2px solid #d1d5db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.important-item p {
    color: #333;
    position: relative;
    font-size: .8em;
    padding: 0;
    margin: 0;
}

.important-item-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
}

/* מיועד למסכים קטנים מ-768 פיקסלים (סמארטפונים) */
@media (max-width: 767px) {
    .important-item-img {

    }

        .important-item-img:nth-child(1) {
            /* החלפת התמונה בקובץ מובייל קבוע או זמני */
            content: url('/img/important/important_1_mobile.jpg');
            /* התאמת הסטייל כדי שהתמונה לא תתעוות */
            object-fit: cover;
            width: 100%;
            height: 100%;
        }
        .important-item-img:nth-child(3) {
            /* החלפת התמונה בקובץ מובייל קבוע או זמני */
            content: url('/img/important/important_2_mobile.jpg');
            /* התאמת הסטייל כדי שהתמונה לא תתעוות */
            object-fit: cover;
            width: 100%;
            height: 100%;
        }


    .right-items .important-item:nth-child(1) .important-item-img {
        content: url('/img/important/important_1_mobile.jpg');
    }

    .left-items .important-item:nth-child(1) .important-item-img {
        content: url('/img/important/important_2_mobile.jpg');
    }
}


@media (max-width: 568px) {

    .important-item:hover {
        transform: none;
    }

    .important-container.shrink .items-container {
        width: 95%;
        height: 40%;
        align-items: center;
    }



    .important-title {
        height: 20dvh;
    }

    .important-container.shrink .important-title {
        height: 0;
    }


    .items-container {
        width: 90%;
        height: 60%;
    }

    .important-container.shrink .left-items {
        gap: 5px;
    }

    .important-container.shrink .important-item {
        width: 10%;
    }

        .important-container.shrink .important-item h2 {
            font-size: .9em;
        }

        .important-container.shrink .important-item p {
            font-size: .6em;
        }
}
/*@media (max-width: 768px) {*/
/* מונע מהטורים לרדת אחד מתחת לשני */
/*.items-container {
        flex-direction: row-reverse !important;
        flex-wrap: nowrap !important;
        width: 90dvw;*/ /* הגדלת הרוחב במובייל כדי שלא יהיה צפוף מדי */
/*gap: 10px;*/ /* צמצום המרווח ביניהם */
/*}

    .right-items, .left-items {
        flex: 1;*/ /* מוודא ששניהם נשארים זה לצד זה */
/*min-width: 0;*/ /* מונע מהם לדחוף את הגבולות של האבא */
/*}*/
/* התאמת גובה הריבועים למובייל כדי שלא יהיו ענקיים */
/*.items-container {
        height: 60dvh;
        margin-top: 5dvh;
    }*/
/* הקטנת טקסט כדי שייכנס בריבועים הקטנים */
/*.important-item h2 {
        font-size: 1.1em;
    }

    .important-item p {
        font-size: 0.85em;
        display: -webkit-box;
        -webkit-line-clamp: 2;*/ /* מגביל ל-2 שורות טקסט */
/*-webkit-box-orient: vertical;
        overflow: hidden;
    }
}*/
/*ENDTEST*/


/*.important-container {
    position: relative;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3svh;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    margin: 0;
    padding: 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;
    background: var(--blue-gradient);
}
*/
/*.important-container .page-title h1 {
        color: black;
        display: none;
    }

    .important-container.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(2.5svw) translateY(0);
        width: 91svw;
    }


#important-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.important-item {
    font-family: Arial;
    position: relative;
    width: 60vw;
    min-width: 450px;
    aspect-ratio: 1000 / 183;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    z-index: -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.1, 1.1), width 0.4s ease-out;
}


    .important-item:hover {
        transform: translateY(-4px);
    }



.important-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.important-item-text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: .25rem 1rem;
}

.important-item h2 {
    color: #FAB95B;
    position: relative;*/
/*z-index: 1;*/
/*font-size: 1.5em;
    padding: 0;
    margin: 0;
}

.important-item p {
    color: #FAB95B;
    position: relative;
    font-size: 1.1em;
    padding: 0;
    margin: 0;
}*/
/*.important-item-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
}*/
/*    .important-item h2 {
        font-size: 1.8em;
        font-weight: bold;
        z-index: 99999;
    }

    .important-item p {
        margin: 0;
        font-size: 1.1em;
        max-width: 80%;
        line-height: 1;
    }*/
/*#guide p {
    text-align: justify;
}

@media (max-width: 600px) {
    #important-container {
        padding: 0;
    }

    .important-container.shrink {
        height: 100%;
    }

    .important-item {
        min-width: 350px;
        height: 80px;
    }

        .important-item h2 {
            font-size: 1.3em;
            line-height: 1;
            font-weight: bold;*/
/*margin: .25rem auto;*/
/*}

        .important-item p {
            font-size: 0.8em;
            line-height: 1;
        }
}*/
/*#endregion */
/*#region FEEDBACK */
.feedback-modal {
    direction: rtl;
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    height: 100dvh;
    transition: height 0.1s ease-out;
    /*padding-top: 20px;*/ /* הופך את שינוי הגובה לחלק יותר */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 20px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        color: #333;
    }

.modal-body {
    padding: 20px;
}

.rating-section {
    text-align: center;
    margin-bottom: 25px;
}

.stars-container {
    font-size: 40px;
    cursor: pointer;
    margin-bottom: 10px;
    direction: rtl;
}

.star {
    padding: 0 5px;
    transition: color 0.2s;
    color: #ccc;
}

/*.rating-text {
    font-size: 14px;
    color: #666;
    min-height: 20px;
}*/

.text-feedback-section label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

#feedbackText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

    #feedbackText:focus {
        outline: none;
        border-color: #007bff;
    }

.modal-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-btn, .submit-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.submit-btn {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.cancel-btn:hover {
    background: #e8e8e8;
}

.submit-btn:hover {
    background: #0056b3;
}


.feedback-modal {
    direction: rtl;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    height: 100dvh;
    padding: 12px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 350px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    margin-top: auto;
    margin-bottom: auto;
}

.modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
        font-size: 16px;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .close-btn:hover {
        color: #333;
    }

.modal-body {
    padding: 16px;
}

.rating-section {
    text-align: center;
    margin-bottom: 18px;
}

.stars-container {
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 6px;
    direction: rtl;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.star {
    padding: 0 1px;
    transition: color 0.2s;
    color: #ccc;
    flex-shrink: 0;
}
/*
.rating-text {
    font-size: 13px;
    color: #666;
    min-height: 18px;
}*/

.text-feedback-section label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

#feedbackText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    font-size: 15px;
    min-height: 90px;
    max-height: 180px;
}

    #feedbackText:focus {
        outline: none;
        border-color: #007bff;
    }

.modal-footer {
    padding: 14px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-btn, .submit-btn {
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-height: 40px;
}

.cancel-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

.submit-btn {
    background: #007bff;
    border: 1px solid #007bff;
    color: white;
}

.cancel-btn:hover {
    background: #e8e8e8;
}

.submit-btn:hover {
    background: #0056b3;
}

@media (max-width: 480px) {
    .feedback-modal {
        padding: 8px;
        align-items: center;
    }

    .modal-content {
        max-height: 88vh;
        border-radius: 8px;
    }

    .modal-header {
        padding: 12px 14px;
    }

        .modal-header h3 {
            font-size: 15px;
        }

    .modal-body {
        padding: 14px;
    }

    .stars-container {
        font-size: 28px;
        gap: 2px;
    }

    /*    .rating-text {
        font-size: 12px;
    }*/

    .cancel-btn, .submit-btn {
        padding: 7px 14px;
        font-size: 13px;
        min-height: 38px;
    }

    .modal-footer {
        padding: 12px 14px;
        gap: 8px;
    }
}


/*#endregion */



@media (max-width: 1000px) {
    .page-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: 100lvh;*/
        scrollbar-width: none;
        /*overflow: auto;*/
    }

        .important-container.shrink,
        .page-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;
            justify-content: center;
        }

    .side-menu {
        width: 25vw;
        padding: 0;
    }

        .side-menu #menu-logo {
            margin-top: 5svh;
        }

    .masha-container {
        margin-right: 0;
    }

    .masha {
        padding: 0;
        margin: 0;
        padding-right: 0;
        flex: 0 0 50dvw;
        /*border: 1px solid red;*/
    }

    .page-container.shrink .masha-container {
        max-width: 1000px;
        justify-content: center;
        margin-right: 0;
    }

    .page-container.shrink .masha img {
        /*margin: 0;*/
    }

    .page-container.shrink .question-container {
        display: none;
        flex: 0 0 0;
    }

    .social-icons-menu {
        gap: .75rem;
    }

    .chat-modal-container {
        width: 300px;
        /*left: 12.5vh;*/
    }

    body:has(.chat-modal-container.active) .masha-container {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .chat-modal-container {
        /*width: 25vw;*/
        /*left: 10vh;*/
        min-width: 300px;
        border-radius: unset;
        /*width: 35vw;*/
    }


    .page-container.shrink ~ .chat-modal-container {
        transform: none;
    }

    .page-container.shrink .masha-container {
        justify-content: center;
        max-width: 600px;
    }


    .masha img {
    }

    .page-container.shrink .masha img {
    }

    .masha-header {
    }

    .home-question {
    }
}

@media (max-width: 568px) {
    html, body {
        height: 100svh !important;
        max-height: 100svh !important;
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    .important-container.shrink,
    .page-container.shrink {
        width: 65vw;
    }

    /*        .important-container.shrink .important-item {
            min-width: 200px;
        }*/

    .side-menu {
        width: 35vw;
    }

        .side-menu nav a {
            width: 85%;
        }

    #historyMenu::-webkit-scrollbar,
    .chat-history-container::-webkit-scrollbar {
        display: none;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .background-menu {
        position: fixed;
        overflow: hidden;
        height: 100px !important;
    }

    body {
        /*height: 600px !important;*/
        /*background-color: blue;*/
    }

    .page-container {
        overflow: auto !important;
        height: 100dvh; /* d = Dynamic, משתנה עם המקלדת */
        width: 100%;
        position: relative;
    }

    body.chatmodal-open .page-container {
        display: none;
        height: 100px;
    }

    body.chatmodal-open {
        max-height: 500px;
    }

    .home-container {
        height: 100dvh;
        flex-direction: column;
        justify-content: flex-end;
        /*padding-top: 8svh;*/
    }

    /*    .page-container.shrink .home-container{
        height: 90%;
        max-height: 100dvh;
        border: 1px solid red;
    }
*/
    .masha-container {
        position: relative;
        flex: 1 1 60%;
        max-width: 60%;
        width: 60%;
        height: 100svh;
        display: flex;
        /*border: 2px solid green;*/
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        /*margin: 0 auto;*/
    }

    .page-container.shrink .masha-container {
        margin: 0;
        margin-right: 0;
        min-width: 400px;
    }

    #replayBtn,
    #muteBtn {
        top: 5rem;
        left: 1rem;
        width: 38px;
        height: 38px;
    }

    .page-container.shrink #muteBtn {
        top: 1rem;
    }

    #replayBtn {
        left: 1rem;
        top: calc(5rem + 40px);
    }

    .page-container.shrink #replayBtn {
        top: calc(1rem + 40px);
    }


    .masha {
        padding-right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 100%;
        width: 100%;
        /*border: 2px solid green;*/
    }

        .masha img {
            width: 350px;
            min-width: 350px;
            flex-shrink: 0;
            -webkit-flex-shrink: 0;
            height: auto;
            display: block;
            margin-top: -16rem;
            transform: scale(0.6);
            object-fit: contain;
            -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 71%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 71%);
            /*border: 1px solid red;*/
        }



    .page-container.shrink .masha {
        padding: 5rem;
    }

    .page-container.shrink .home-container {
        /*padding: 0;*/
    }

    .page-container.shrink .masha img {
        margin: 0;
        width: 450px;
        -webkit-clip-path: unset;
        clip-path: unset;
    }

    .question-container {
        position: relative;
        flex: 1 1 40%;
        max-width: 40%;
        width: 40%;
        gap: 0;
        /*border: 2px solid blue;*/
    }

        .question-container > * {
            padding: .25rem;
        }

    .question-wrapper {
        justify-content: center;
        width: 90%;
        min-width: 300px;
    }

    .page-container.shrink .question-wrapper {
        min-width: 150px;
    }

    .home-send-button-container {
        /*        justify-content: center;
        align-items: center;*/
    }

    .masha-header {
        margin-top: .5rem;
        margin-right: -3.5rem;
        flex: 0 0 55%;
    }

        .masha-header h1 {
            font-size: 4rem;
            margin-right: 0;
        }

        .masha-header h2 {
            /*margin-right: -2.9rem;*/
        }

    .home-question {
        /*flex: 0 0 100%;*/
        /*min-width: 350px;*/
        /*max-width: 250px;*/
        /*margin-right: -13rem;*/
        /*z-index: 1;*/
        /*border-radius: 7.5%;*/
        /*padding-top: 1rem;*/
        /*background-color: white;*/
        /*        color: black;*/
        /*border: .25px solid black;*/
        /*border-radius: 17.5px;*/
        font-size: .9rem;
        padding: .75rem 1rem;
    }


    #home-send-button {
        /*height: fit-content;*/
    }

        #home-send-button svg {
            /*height: 28px;*/
        }


    /*CHAT-MODAL*/
    .chat-masha-header .masha-chat-img {
        display: block;
    }

    .chat-modal-container {
        position: fixed !important;
        min-height: 0;
        left: unset;
        top: 0 !important;
        padding: 0;
        height: 100vh;
        max-height: 100svh;
        width: 100%;
        overflow: hidden !important;
        will-change: transform, height;
        transition: none !important;
        overscroll-behavior: contain;
        background-color: white;
    }

    .chatmodal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
        /* מונע מ-Safari להזיז את הדף כשהמקלדת נפתחת */
        touch-action: none;
    }


    .chat-history-header {
        padding: .5rem .5rem;
    }

    .chat-masha-header .masha-chat-img {
        max-width: 50px;
        max-height: 40px;
        margin-top: 0;
        margin-right: 0;
    }

    .chat-history-header > div:nth-child(4) {
        gap: .25rem;
    }
    /*LOGO*/
    .chat-history-header > div:last-child {
        flex: 0 0 10%;
        max-width: 40px;
        height: 40px;
        display: block;
    }

    /*    .logo-chat {
        flex: 0 0 auto;
        max-width: 35px;
        max-height: 25px;
        
    }
*/
    .logo-chat img {
        max-width: 100%; /* התמונה לא תתרחב מעבר ללוגו */
        max-height: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        /*display: none;*/
    }





    /*.chat-modal-container.active .page-container {
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;*/ /* מבטל את הגלילה של ה-body */
    /*position: fixed;*/ /* נועל את ה-body למקום */
    /*width: 100%;
        background-color: red;
    }*/
    /*    html:has(.chat-modal-container.active),
    body:has(.chat-modal-container.active),
    .home-container:has(.chat-modal-container.active),
    .page-container:has(.chat-modal-container.active) {
        height: 100dvh;

        overflow: hidden;
        position: fixed;
        width: 100%;
    }*/
    /*    html, body {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }*/
    /*    .page-container {
        height: 100%;
        overflow: hidden;
        position: fixed;
        width: 100%;
    }*/
    /*
    .chat-modal-container {
      
        display: none;
        flex-direction: column;
        z-index: 99999;
        background-color: white;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }*/
    .history-item {
        position: relative;
        width: 95%;
        display: flex;
        flex-direction: row;
        list-style: none;
        border-radius: 20px;
        cursor: pointer;
        padding: .25rem;
        font-size: .8rem;
        gap: 1rem;
    }

        .history-item:hover {
            border: none;
        }

        .history-item > *:last-child svg {
            fill: var(--main-color);
        }


    .chat-modal {
        width: 100%;
    }

    .chat-history-container {
        width: 100%;
        min-width: 100svw;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }


    .chat-history {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        height: 100%;
        padding: 0 1rem;
        background-color: white;
        background-color: transparent;
    }


    .ask-masha {
        flex-direction: row;
        flex: 0 0 auto;
        min-height: 32px;
        max-height: 150px;
        width: 100%;
        min-width: 100%;
        max-width: 100dvw;
        padding: .35rem .5rem .35rem .5rem;
        border: none;
        /*margin-bottom: .5rem;*/
        /*gap: .55rem;*/
        outline: none;
        box-shadow: none;
        background-color: white;
        /*border: 2px solid red;*/
    }

    .buttons-area {
        flex: 0 0 auto;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .spacer {
        flex: 1;
    }


    #send-button {
        flex: 0 0 auto;
        height: 40px;
        max-height: 40px;
        margin-bottom: -.007rem;
    }

    .textarea-wrapper {
        flex: 1 1 auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
        padding-right: 0;
        padding: 0;
    }

    .rich-text-area {
        max-height: 150px;
        overflow-y: auto;
        border-radius: 20px;
        border: 1px solid rgba(0,0,0,0.3);
        line-height: 2;
        width: 100%;
        min-height: 40px;
        resize: none;
        overflow: hidden;
        outline: none;
        padding: .25rem 1rem;
        font-size: 1rem;
        background-color: #333;
        color: white;
    }

        .rich-text-area:empty:before {
            content: attr(placeholder);
            color: #FFF2EF;
            font-size: 1rem;
            pointer-events: none;
            line-height: 2;
        }

    .page-container.shrink .rich-text-area {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        max-width: 150px;
        overflow-y: hidden;
    }

    .user-message {
        padding: 0.45rem .75rem;
        margin-right: 0;
        border-radius: 14px;
    }

    .answer-bubble {
        padding: 0 .5rem;
        margin: 0;
        /*padding-left: 5%;*/
    }

        .answer-bubble table {
            /*width: 95%;*/
        }

    .open {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .chat-history-container {
        min-width: 50%;
    }
}

@media (max-width: 500) {

    body::-webkit-scrollbar {
        display: none;
    }

    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden; /* מבטל את הגלילה של ה-body */
        position: fixed; /* נועל את ה-body למקום */
        width: 100%;
    }
}

/*==============================================
ADMIN
==============================================*/
/*#region LOGIN */

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    height: auto;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    color: white;
    /*border: 1px solid red;*/
}

.login-form {
    width: 30dvw;
    min-width: 350px;
    background-color: #252525;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

    .form-header h1 {
        color: #ffffff;
        font-size: 28px;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .form-header p {
        color: #bbb;
        font-size: 16px;
    }

.login-form-group {
    position: relative;
    margin-bottom: 20px;
}


    .login-form-group i {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        color: #ffffff;
    }

    .login-form-group .login-input {
        width: 100%;
        padding: 8px 50px 8px 16px;
        background-color: #252525 !important;
        border: 1.5px solid #ffffff;
        border-radius: 10px;
        font-size: 16px;
        color: white;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

        .login-form-group .login-input:-webkit-autofill,
        .login-form-group .login-input:-webkit-autofill:hover,
        .login-form-group .login-input:-webkit-autofill:focus {
            /* שימוש ב-Box Shadow פנימי כדי "לצבוע" את הרקע בשחור */
            -webkit-box-shadow: 0 0 0px 1000px #252525 inset !important;
            /* הגדרת צבע הטקסט ללבן */
            -webkit-text-fill-color: white !important;
            transition: background-color 5000s ease-in-out 0s;
        }

        .login-form-group .login-input:focus {
            outline: none;
            border-color: #ffffff;
            background-color: #000000;
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
        }

.login-input::placeholder {
    color: #888;
}

.login-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--rosy-white);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, background-color 0.2s;
}

    .login-btn:hover {
        background-color: #e6e6e6;
        transform: translateY(-2px);
    }

    .login-btn:active {
        transform: translateY(0);
    }

/* רספונסיביות לנייד */
@media (max-width: 480px) {
    .login-form {
        width: 90%;
        min-width: unset;
        padding: 30px 20px;
    }
}
/*#endregion */



#saveBtn {
    width: 100%;
    padding: 16px;
    /*background: linear-gradient(to right, #6e8efb, #a777e3);*/
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    #saveBtn:hover {
        background: var(--No3);
        transform: translateY(-2px);
        box-shadow: 0 7px 14px rgba(110, 142, 251, 0.25);
    }

    #saveBtn:active {
        transform: translateY(0);
    }


.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

    .form-footer a {
        color: #6e8efb;
        text-decoration: none;
        font-weight: 500;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .login-form {
        padding: 30px 25px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    input, button[type="submit"] {
        /*padding: 14px 45px 14px 14px;*/
    }
}


.admin-container {
    position: relative;
    width: 100vw;
    height: 100svh;
    margin: 0;
    padding: 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;
    background-color: white;
}

    .admin-container.shrink {
        width: 85vw;
    }

    .admin-container::-webkit-scrollbar {
        width: 6px;
    }

    .admin-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .admin-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

.admin-side-menu {
    width: 15vw;
}

.logout {
    position: absolute;
    top: 3rem;
    right: 1.5rem;
    /*transform: translateX(-10%);*/
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 10svw;
    height: 5svh;
    cursor: pointer;
    z-index: 6;
    pointer-events: auto;
}


.btn-danger {
    background-color: #252525;
    color: white;
    border: none;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    padding: 0 2rem !important;
    min-width: 50px;
    /*border: 1px solid #FFF;*/
    border-radius: 12px;
    z-index: 6;
}

    .btn-danger:hover {
        opacity: 0.8;
        border: 1px solid white;
    }



/*header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}*/


hr {
}

/*#region BANNER */

/* מיכל ראשי */
/* הגדרות כלליות לכל ה-Section */
.banner-button-update {
    background-color: #1a1a1a;
    color: #ffffff;
    direction: rtl;
    font-family: 'Segoe UI', system-ui, sans-serif;
    /* פריסה על כל המסך */
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    /* מרכז את הטופס בתוך ה-Section בשולחני */
    display: flex;
    flex-direction: column;
    align-items: center;
}

    /* הכותרת */
    .banner-button-update h1 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: #f39c12;
        text-align: center;
    }

/* רוחב מקסימלי לטופס עצמו בשולחני כדי שלא יתמרח מדי */
#bannerForm {
    width: 100%;
    max-width: 800px; /* ניתן לשנות ל-100% אם אתה רוצה שהשדות יהיו רחבים מאוד */
    display: flex;
    flex-direction: column;
}

/* אזור ה-Toggle */
.banner-status-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #252525;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #3d3d3d;
    width: 100%;
    max-width: 800px;
}

/* עיצוב ה-Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .switch::before {
        content: "";
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #444;
        transition: .4s;
        border-radius: 34px;
    }

    .switch::after {
        content: "";
        position: absolute;
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    .switch:has(input:checked)::before {
        background-color: #27ae60;
    }

    .switch:has(input:checked)::after {
        transform: translateX(30px);
    }

/* עיצוב שדות הטופס */
.popup-form-group {
    margin-bottom: 10px;
    width: 100%;
}

    .popup-form-group label {
        display: block;
        margin-bottom: 10px;
        color: #bbb;
        font-size: 1rem;
    }

    .popup-form-group input[type="text"],
    .popup-form-group textarea {
        width: 100%;
        padding: 10px;
        background: #2c2c2c;
        border: 1px solid #444;
        border-radius: 10px;
        color: #fff;
        font-size: 1rem;
    }

    .popup-form-group textarea {
        height: 75px;
        resize: none;
    }

/* כפתור עדכון */
.popup-saveBtn {
    width: 100%;
    max-width: 300px;
    align-self: center; /* ממרכז רק את הכפתור */
    padding: 8px;
    background-color: var(--No2);
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .popup-saveBtn:hover {
        background-color: var(--No3);
        transform: scale(1.02);
    }


@media (max-width: 480px) {
    .banner-button-update {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100dvh; /* גובה מלא של המסך */
        border-radius: 0; /* ביטול פינות עגולות כדי שייראה כמו דף אפליקציה */
        display: flex;
        flex-direction: column;
        padding: 15px;
        box-sizing: border-box;
        overflow-y: auto; /* מאפשר גלילה פנימית אם התוכן חורג במכשירים קטנים מאוד */
        padding-top: 10dvh;
    }

        .banner-button-update h1 {
            font-size: 1.3rem;
            margin-bottom: 15px;
        }

    .banner-status-control {
        padding: 10px;
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    /* צמצום המרווחים בין השדות */
    .popup-form-group {
        margin-bottom: 12px;
    }

        .popup-form-group label {
            font-size: 0.85rem;
            margin-bottom: 4px;
        }

        .popup-form-group input[type="text"],
        .popup-form-group textarea {
            padding: 8px 12px;
            font-size: 0.95rem;
        }

        .popup-form-group textarea {
            height: 70px; /* הקטנת גובה אזור הטקסט */
        }

    /* הצמדת הכפתור לתחתית */
    .popup-saveBtn {
        margin-top: auto; /* דוחף את הכפתור הכי למטה שאפשר */
        padding: 15px;
        font-size: 1rem;
    }
}
/*#endregion */


/*#region UPLOAD VIDEO */
/* עיצוב כללי ואיפוס קל */
.upload-video {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    direction: rtl;
    background-color: #ffffff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
}

    /* כותרת */
    .upload-video h1 {
        color: #333;
        font-size: 1.8rem;
        margin-bottom: 30px;
        font-weight: 600;
    }

/* מיכל הטופס */
.add-video {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

/* קבוצות בטופס */
.upload-video-form-group {
    margin-bottom: 25px;
}

.upload-video-label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
}

/* עיצוב שדה בחירת הקובץ */
.upload-video-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

    .upload-video-input:hover {
        border-color: #007bff;
        background-color: #f8f9fa;
    }

/* כפתור השליחה */
.upload-video-save {
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

    .upload-video-save:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
    }

    .upload-video-save:active {
        transform: translateY(0);
    }

/* התאמה לניידים (רספונסיביות) */
@media (max-width: 586px) {
    .add-video {
        padding: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .upload-video h1 {
        font-size: 1.5rem;
    }
}

/*#endregion */


@media (max-width: 600px) {

    .admin-container {
        padding-top: 0;
    }

        .admin-container.shrink {
            height: 100vh;
            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;
        }

    /*    .important-container.shrink .important-item {
        min-width: 200px;
    }*/

    .admin-side-menu {
        width: 35vw;
    }
}


.benefit-item {
    border: 1px solid #ddd;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

.benefit-edit-controls {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-align: left;
}

    .benefit-edit-controls button {
        margin: 0 5px;
        padding: 5px 10px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        .benefit-edit-controls button:hover {
            background: #0056b3;
        }

.benefit-content img {
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
}

.benefit-content p {
    margin: 10px 0;
}

#benefitsControls {
    margin: 20px 0;
}

    #benefitsControls button {
        margin: 0 10px;
        padding: 10px 20px;
        background: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        #benefitsControls button:hover {
            background: #218838;
        }




/*ADMIN-BENEFITS*/
/* מיכל ראשי - רקע כהה עמוק */
.important-container-update {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 40px 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    direction: rtl;
    min-height: 100vh;
}

    /* כותרת ראשית */
    .important-container-update h1 {
        text-align: center;
        color: #ffffff;
        font-size: 2rem;
        margin-bottom: 10px;
        border-bottom: 2px solid #333;
        padding-bottom: 15px;
    }

/* אזור הנחיות */
#guide {
    max-width: 900px;
    margin: 0 auto 30px auto;
    background: #252525;
    padding: 10px 20px;
    border-right: 2px solid var(--main-color); /* פס דקורטיבי */
    border-radius: 4px;
    font-size: .8rem;
}

/* פריסת הפריטים ב-Grid רספונסיבי */
.important-update {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* כרטיס פריט בודד */
.important-container-update .item-form {
    background: #2c2c2c;
    border: 1px solid #3d3d3d;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .important-container-update .item-form:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        border-color: #555;
    }

    /* כותרת פריט */
    .important-container-update .item-form h3 {
        margin-top: 0;
        color: var(--main-color);
        font-size: 1.2rem;
        border-bottom: 1px solid #3d3d3d;
        padding-bottom: 10px;
    }

/* תוויות ושדות קלט */
.important-container-update label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #bbb;
}

.important-container-update input[type="text"],
.important-container-update select {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    color: #fff;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

    .important-container-update input:focus,
    .important-container-update select:focus {
        outline: none;
        border-color: #f39c12;
        background: #252525;
    }

/* עיצוב שדות קובץ */
.important-container-update input[type="file"] {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

/* כפתור שמירה */
.important-save-btn {
    background-color: var(--No2);
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-top: auto; /* דוחף את הכפתור לתחתית הכרטיס */
    transition: background 0.3s;
}

    .important-save-btn:hover {
        background-color: var(--No3);
    }

/* התאמה לנייד */
@media (max-width: 600px) {
    .important-update {
        grid-template-columns: 1fr;
    }

    .important-container-update h1 {
        font-size: 1.5rem;
    }
}




/**/
/* מיכל ראשי - רקע בהיר מלא */
.files-container {
    background-color: #f8f9fa; /* אפור בהיר מאוד שנותן עומק ללבן */
    color: #333;
    direction: rtl;
    font-family: 'Segoe UI', system-ui, sans-serif;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

    /* כותרת ראשית */
    .files-container h1 {
        font-size: 2.2rem;
        color: #2c3e50;
        margin-bottom: 30px;
        font-weight: 700;
    }

/* שורת התוכן - פריסה לשני טורים בשולחני */
.agreement-row {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 80vh;
}

/* כרטיסי ניהול (העלאה ומחיקה) */
.agreement-upload, .agreement-delete-section {
    background: #ffffff;
    flex: 1;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.agreement-title {
    font-size: 1.25rem;
    color: #444;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* טופס העלאה */
.agreement-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agreement-file-input {
    padding: 15px;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    background: #fdfdfd;
    cursor: pointer;
    transition: all 0.3s;
}

    .agreement-file-input:hover {
        border-color: #3182ce;
        background: #ebf8ff;
    }

.agreement-submit-btn {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .agreement-submit-btn:hover {
        background-color: #2b6cb0;
    }

/* רשימת קבצים למחיקה */
.agreement-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* גלילה פנימית לרשימת הקבצים */
    max-height: 300px;
}

    .agreement-file-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px;
        border-bottom: 1px solid #edf2f7;
        font-size: 0.95rem;
    }

        .agreement-file-list li:last-child {
            border-bottom: none;
        }

/* כפתור מחיקה (אם תרצה להוסיף ב-JS בהמשך) */
.delete-btn {
    background: #fed7d7;
    color: #c53030;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* התאמה למובייל $100dvh$ */
@media (max-width: 768px) {
    .files-container {
        padding: 15px;
        overflow-y: auto; /* מאפשר גלילה של כל העמוד במובייל */
    }

    .agreement-row {
        flex-direction: column;
        max-height: none;
    }

    .agreement-upload, .agreement-delete-section {
        flex: none;
        width: 100%;
    }
}



/*==============================================
END ADMIN ---> START BENEFITS
==============================================*/
.benefits-container {
    width: 100%;
    background: var(--white);
    z-index: 1;
    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-title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 15dvh;
    margin-bottom: .5rem;
    /*border: 1px solid white;*/
}


.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 span,
    .benefits-header h2 {
        font-family: amaticasc-regular;
        color: #333;
        font-size: 4.5rem;
        font-weight: 600;
    }

.benefits-container.shrink .benefits-header span,
.benefits-container.shrink .benefits-header h2 {
    font-size: 2.5rem;
}

.benefits-container.shrink .benefits-header {
    height: 12.5vh;
}

.benefits-row {
    width: 100%;
    height: auto;
    margin-top: 1.5%;
    margin-bottom: 1.5%;
    margin-bottom: 2rem;
}

.benefits-column {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* ממרכז את הכרטיסים כשיש שורה לא מלאה */
    gap: 15px;
    width: 100%; /* תופס את כל רוחב המסך הזמין */
    max-width: 1260px; /* הגבלה לרוחב של 4 כרטיסים (300*4 + גאפ) */
    margin: 0 auto;
    direction: rtl;
}

.benefit-card {
    flex: 1 1 300px; /* מאפשר לגדול ולטבוע, עם בסיס של 300px */
    max-width: 300px; /* מונע מהכרטיס להימתח יותר מדי במסכים רחבים */
    width: 100%; /* חשוב בשביל מסכים קטנים מ-300px */

    aspect-ratio: 1 / 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

    .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-shrink: 0;*/
    min-height: 15%; /* אפקטיבי רק אם ההורה בגובה מוגדר */
    height: auto;
    flex: 0 0 15%;
    width: 100%;
    /*height: 6rem;*/
    max-height: 75px;
    /*padding: .5rem;*/
    border-radius: 12px;
}

    .benefit-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.benefits-container.shrink .benefit-icon {
    padding: 1rem;
    min-height: 25%;
}

.benefit-text {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto; /* יתחיל מהגובה הטבעי שלו */
    width: 100%;
    color: #333;
    line-height: 1.4;
    text-align: center;
    margin-top: 0;
    font-size: .9em;
    padding: 2rem 1rem 0 1rem;
}

.benefits-container.shrink .benefit-text {
    font-size: .9rem;
    /*min-height: 125px;*/
}

.histadrut-link {
    width: 100%;
    flex: 0 0 auto;
    padding: .75rem 0;
    text-align: center;
    font-size: .9em;
    font-weight: bold;
    background: var(--blue-green);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* ← זה קריטי! */
    border-radius: unset;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

    .histadrut-link:hover {
        color: #333;
    }

.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) / 3);
        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: 586px) {
    .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 {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 15dvh;
        margin-bottom: .5rem;
        margin-top: 15dvh;
        text-align: center;
    }

        .benefits-header h2 {
            line-height: 3.5rem !important;
            word-spacing: -0.1em;
            max-width: 310px;
            margin-bottom: 3rem;
            /*font-size: 1.8em;*/
        }

    .benefits-container.shrink .benefits-header h2 {
        line-height: 2.5rem !important;
        word-spacing: 0em;
    }

    .benefits-column {
        padding: 0 0;
        gap: 35px;
        justify-content: center;
        align-items: center;
    }

    .benefits-container.shrink .benefit-icon {
        padding: .25rem;
    }

    .benefit-card {
        max-width: 90%;
        padding-bottom: 30px;
        width: 90%;
    }

    .benefit-text {
        font-size: 1rem;
        /*padding: 0 1rem;*/
    }

    .benefits-container.shrink .benefit-text {
        padding: .5rem .5rem;
    }
}


/*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;
    }
}




/*===========================================*/

.download-container {
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    padding: 0;
    padding-top: 10svh;
    overflow-y: auto;
    overflow-x: visible;
    background: var(--white);
    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;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    /*direction: rtl;*/
}

    .download-container::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .download-container::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }

    .download-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;
    }


    .download-container h1 {
        font-family: amaticasc-regular;
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: .5rem;
        line-height: 1.3;
        color: #F7A5A5;
        align-self: flex-end;
        margin-right: 5%;
        display: none;
    }

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

/* אזור התצוגה המקדימה ל-PDF */
.pdf-background-preview {
    width: 100%;
    height: 100%;
    background-color: #f1f1f1; /* רקע אפרפר בהיר */
    background-image: linear-gradient(45deg, #e74c3c 10%, transparent 10%), /* משולש אדום בפינה */
    url('https://upload.wikimedia.org/wikipedia/commons/8/87/PDF_file_icon.svg'); /* לוגו PDF */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%; /* גודל הלוגו במרכז */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* טקסט PDF גדול במרכז (אם אתה לא רוצה להסתמך רק על תמונת רקע) */
.pdf-text-center {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(231, 76, 60, 0.2); /* אדום שקוף מאוד */
    letter-spacing: 5px;
    user-select: none;
}

/* עיצוב משלים לכרטיס כדי שהתמונה תיראה טוב */
.file-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.files-grid {
    height: auto;
    direction: rtl;
    width: 90%;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px; /* עדיף פיקסלים */
}

.file-card {
    flex: 0 0 calc(25% - 1.5%);
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    box-sizing: border-box; /* הכרחי! */
}

    .file-card:hover {
        transform: translateY(-2px);
    }

.file-icon {
    flex: 0 0 auto;
    /*height: 30%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 2.5rem;
}

.file-info {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
}

    .file-info * {
        flex: 1;
    }

.file-name {
    font-size: 0.7rem;
    font-weight: 600;
    /*margin-bottom: 6px;*/
    color: #2c3e50;
}

.file-description {
    color: #6c757d;
    margin-bottom: 12px;
    font-size: 0.7rem;
}

.file-details {
    display: flex;
    justify-content: space-between;
    color: #95a5a6;
    font-size: 0.7rem;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #5D688A;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: center;
    text-decoration: none;
}

/*    .download-btn:hover {
        background: #0056b3;
    }*/
@media (max-width: 1000px) {

    .download-container.shrink {
        height: 100vh;
        position: relative;
        transform: scale(1) translateX(0) translateY(0);
        width: 70vw;
        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: 30vw;*/
    }

    .files-grid {
        direction: rtl;
        width: 90%;
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        flex-wrap: wrap;
        gap: 2%; /* חשוב: הוסף gap אחוזי */
    }

    .file-card {
        flex: 0 0 calc(33% - 1.5%);
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.2s ease;
        box-sizing: border-box; /* הכרחי! */
    }

    .download-container.shrink .file-card {
        flex: 0 0 calc(50% - 1.5%);
    }
}

@media (max-width: 600px) {
    .download-container.shrink {
        height: 100vh;
        position: relative;
        transform: scale(1) translateX(0) translateY(0);
        width: 70vw;
        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;
    }

    .download-container.shrink {
        width: 65vw;
    }

    .download-container h1 {
        font-size: 3rem;
        text-align: center;
        margin: 0 auto 1rem auto;
    }

    .side-menu {
        width: 35vw;
    }

    .files-grid {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 1rem;
        gap: 10px;
        padding: 0;
    }

    .download-container.shrink .files-grid {
        justify-content: center;
        padding: 0;
    }

    .file-card {
        flex: 1;
        height: auto;
        min-width: 150px;
        max-width: 50%;
        box-sizing: border-box;
    }

    .download-container.shrink .file-card {
        min-width: 200px;
    }

    .file-icon {
        padding: .5rem;
        font-size: 1.5rem;
    }

    .file-info {
        padding: 8px;
    }

    .file-name {
        font-size: 0.5rem;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .file-description {
        margin-bottom: 4px;
        font-size: 0.8rem;
    }

    .file-details {
        /*        display: flex;
        justify-content: space-between;*/
        font-size: 0.7rem;
        margin-bottom: 6px;
        padding-top: 4px;
    }

    .download-btn {
        display: block;
        width: 100%;
        /*padding: 6px;*/
        border-radius: 4px;
        font-size: 0.8rem;
    }
}



/*====================================*/
.gallery-root {
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    padding: 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;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    gap: 0;
    background: #f5f7fa;
    /*background: linear-gradient(to right, #E8E2DB, #547792);*/
    /*background: linear-gradient(to bottom, #FFF2EF 30%, #F7A5A5 70%);*/
}

body.gallery-root .hamburger-inner {
    background: black;
}



.gallery-root.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;
}

.gallery-root::-webkit-scrollbar {
    width: 6px;
    height: 4px;
}

.gallery-root::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4px;
}

.gallery-root h1 {
    flex: 0 0 auto;
    margin-top: 1svh;
    color: var(--gradient1);
    display: none;
    /*font-size: 2rem !important;*/
}

/*#region FOLDERS */

.folders {
    /*flex: 1;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: .25rem;
    width: 90%;
    box-sizing: border-box;
    padding-top: 2.5rem;
    height: auto;
    /*border: 3px solid red;*/
}



.folder-card {
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: .75rem .25rem;
    gap: .5rem;
    height: 325px;
    overflow: visible;
    /*border: 1px solid red;*/
}


.image-wrapper {
    width: 250px;
    height: 250px;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: visible;
    border-radius: 50%;
    display: block;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.25);
}

.folder-name {
    margin: 0;
    margin-top: .5rem;
    font-size: 1.1em;
    color: var(--main-color);
    font-weight: 400;
    text-align: right;
}

.image-wrapper:hover {
    transform: scale(1.1);
    z-index: 10;
}

.folder-details {
    background-color: #f8f9fa;
    background-color: transparent;
}









/*#endregion */


/*#region ADMIN */


.folder-delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 10;
    border: 2px solid white;
    line-height: 1;
    padding-bottom: 4px;
}

    .folder-delete:hover {
        background-color: #ff1a1a;
        transform: scale(1.1);
    }

.folder-delete {
    user-select: none;
}

.action-buttons {
    position: fixed;
    top: 6svh;
    right: 1svw;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 6;
    cursor: pointer;
    font-size: 0.6rem;
}

.action-btn {
    background-color: black;
    cursor: pointer;
    border: none;
    color: black;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .action-btn:hover {
        border: 1px solid black;
    }

.header-left {
    position: fixed;
    top: 1svh;
    left: 7.5svw;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 6;
}

.close-album,
.delete-album-btn,
.add-video-btn,
.add-to-album-btn {
    background-color: transparent;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
}

    .delete-album-btn:hover,
    .add-video-btn:hover,
    .add-to-album-btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35), 0 6px 18px rgba(0, 0, 0, 0.25);
        transform: translateY(-1px);
    }

/*#endregion */


.album-viewer {
    position: relative;
    width: 100%;
    height: 100svh;
    margin: 0;
    padding: 0;
    padding-top: 10svh;
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: var(--white);
}

    .album-viewer .page-title {
        color: red;
    }

    .album-viewer.shrink {
        height: 100svh;
        position: relative;
        transform: scale(0.9) translateX(2.5svw) translateY(0);
        width: 91svw;
    }

    .album-viewer::-webkit-scrollbar {
        width: 6px;
        height: 4px;
    }

    .album-viewer::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 4px;
    }
/*
.page-title {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 7.5svh;
    min-width: 300px;
}

    .gallery-root h1,
    .page-title span {
        font-family: amaticasc-regular;
        font-size: 1.5rem;
        color: var(--rosy-white);
        opacity: 1;
        transition: opacity 0.4s ease;
    }

        .page-title span::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 10%;
            height: 2%;
            background: var(--gradient1);
        }*/


.vimeo-container {
    flex: 0 0 auto;
    width: 100svw;
    max-width: 100%;
    position: relative;
    min-height: 200px;
    margin: 0;
    margin-bottom: 2rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    .vimeo-container.active {
        display: flex;
    }

.video-item {
    width: 33%;
    min-width: 350px;
}

    .video-item iframe {
        width: 100%;
        height: 100%;
        border: none;
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.25);
    }

.album-scroll {
    flex-grow: 1;
    width: 100%;
}

.album-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

    .album-images img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 12px;
        cursor: pointer;
        transition: transform 0.3s;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
    }



        .album-images img:hover {
            transform: scale(.99);
        }

        .album-images img.small,
        .album-images img.medium {
            height: 250px;
            object-fit: cover;
        }

        album-images img.large,
        .album-images img.tall {
            height: 500px;
            object-fit: cover;
        }

        .album-images img.wide {
            column-span: all;
            height: 250px;
            object-fit: cover;
            width: 100%;
        }


.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
    touch-action: none;
}

    .fullscreen-viewer.active {
        opacity: 1;
        pointer-events: all;
    }

.fullscreen-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 100px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 1001;
}

.close-fullscreen {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 5px black;
}



.gallery-root.swiping .gallery-container,
.gallery-root.swiping .album-viewer {
    transition: none !important;
}

.gallery-root.album-open .gallery-container {
    transform: translateX(-100%);
}

.gallery-root.album-open .album-viewer {
    transform: translateX(-100%);
}

.gallery-root.album-open .close-album {
    display: block;
    opacity: 1;
    pointer-events: all;
}



.image-item {
    position: relative;
    display: block;
    break-inside: avoid;
    margin-bottom: 0;
}

    .image-item img {
        width: 100%;
        display: block;
    }

@media (max-width: 768px) {
    .album-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
    }

        .album-images img {
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

    .album-viewer.shrink .album-images {
        grid-template-columns: repeat(1, 1fr);
    }
}



/*ADMIN*/
.image-checkbox {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    border: 1px solid white;
}



/*#region MODEL */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    direction: rtl;
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.status-message {
    margin-top: 15px;
}

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

.info {
    color: blue;
    font-weight: bold;
}

/*#endregion */



.album-images {
    column-count: 5;
}


@media (max-width: 1000px) {
    .album-images {
        column-count: 4;
    }
}

@media (max-width: 768px) {
    .album-images {
        column-count: 3;
    }
}

@media (max-width: 1000px) {
    .gallery-root.shrink,
    .album-viewer.shrink {
        height: 100vh;
        position: relative;
        transform: scale(1) translateX(0) translateY(0);
        width: 70vw;
        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: 30vw;
        padding: 0;
    }

    .video-item {
        margin: 0;
        width: 50%;
    }

    .album-viewer.shrink .album-images {
        column-count: 1 !important;
    }

        .album-viewer.shrink .album-images img.small,
        .album-viewer.shrink .album-images img.medium {
            height: 400px;
        }

    .album-images img.small, .album-images img.medium {
        height: 200px;
    }
    /*ADMIN*/
    .header-left {
        position: fixed;
        top: 6.5svh;
        left: 0;
        display: flex;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        width: 100svw;
    }

    .close-album,
    .delete-album-btn,
    .add-video-btn,
    .add-to-album-btn {
        padding: 3px;
    }
}

@media (max-width: 600px) {
    .gallery-root.shrink,
    .album-viewer.shrink {
        width: 65vw;
    }

    .side-menu {
        width: 35vw;
    }

    album-images img.large, .album-images img.tall {
        height: 200px;
    }

    .album-images img.small, .album-images img.medium {
        height: 125px;
    }

    .album-viewer.shrink .album-images img.small, .album-images img.medium {
        /*height: 200px;*/
    }


    .album-viewer.shrink .album-images img.small,
    .album-viewer.shrink .album-images img.medium {
        height: 200px;
    }
}

@media (max-width: 768px) and (pointer: coarse), (max-width: 768px) and (hover: none) {
    .gallery-root.shrink,
    .album-viewer.shrink {
        width: 65vw;
    }

    .side-menu {
        width: 35vw;
    }


    .album-viewer.shrink .album-images {
        column-count: 1 !important;
    }

    .album-viewer::-webkit-scrollbar {
        display: none;
        width: 0;
    }

    .nav-button {
        display: none !important;
    }

        .nav-button.prev-button,
        .nav-button.next-button {
            display: none !important;
        }

    .close-album {
        display: none !important;
    }

    .folders {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
        width: 100%;
        margin-top: 15dvh;
        margin-top: 12.5dvh;
        height: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: .15rem;
        padding: 0 4%;
    }

    .image-wrapper {
        width: 80px;
        height: 80px;
    }

    .folder-name {
        font-size: .7rem;
    }


    .folder-item {
        position: relative;
        height: 17.5dvh;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
        background-size: cover;
        background-position: top center;
    }


    .folder-card {
        height: 125px;
    }

    .vimeo-container {
        flex: 0 0 35svh;
        /*min-width: 100px;*/
        width: 100%;
        max-width: 100%;
        position: relative;
        min-height: 30svh;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .video-item {
        min-width: 325px;
    }

    .album-viewer.shrink .video-item {
        width: 90%;
        min-width: 80px;
    }

    .album-viewer.shrink .page-title {
        width: 100%;
        min-width: 80px;
    }
}


/*IMPORTANT PAGE*/
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    direction: rtl;
}

.file-card {
    background-color: transparent;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
}

    .file-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-color: #007bff;
    }

.file-preview {
    background-color: transparent;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .file-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

    .file-preview i {
        font-size: 50px;
        color: #555;
    }

.file-details {
    /*padding: 15px;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
    display: block;
}

.file-meta {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 600px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 0;
    }
}
