/* *** סגנונות חדשים לתפריט המבורגר */
body.no-scroll {
    overflow: hidden;
}

/* סגנונות בסיסיים להמבורגר */
.hamburger-menu {
    display: none; /* מוסתר כברירת מחדל למסכים גדולים */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000; /* מעל תוכן אחר */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff; /* צבע הברים */
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* אנימציה למעבר לצורת X */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ניווט למובייל */
@media (max-width: 768px) {
    /* הצגת כפתור ההמבורגר */
    .hamburger-menu {
        display: flex;
     position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    }
    
    /* הסתרת תפריט הניווט הרגיל */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* התחלה מחוץ למסך */
        width: 85%; /* רוחב התפריט */
        height: 100%;
        background-color: #2c3e50; /* רקע כהה כמו הכותרת */
        flex-direction: column;
        padding-top: 10px; /* מרווח מלמעלה */
        box-shadow: -2px 0 5px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto; /* גלילה אם התוכן ארוך */

  
    scrollbar-width: thin;  

    }
    
    /* הצגת התפריט כאשר פעיל */
 .nav-links.active {
    right: 0;
    display: flex;
    flex-direction: column;
}
    
    .nav-links li {
        text-align: right;
     
    //    margin: 15px 15px;
     padding: 0.1rem;
    }
    
    .nav-links a {
        color: #fff;
        font-size: 1.1em;
        padding: 5px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);

          text-decoration: none;
   

   white-space: nowrap; /* מונע ירידת שורה */
 //   padding: 12px 20px; /* מרווח גדול יותר */

    }

 body.no-scroll {
    overflow: hidden;
  }

    
    .nav-links a:hover {
        background-color: rgba(232, 73, 29, 0.2);
    }
    
    /* התאמת הכותרת למסכים קטנים */
    header .container {
        justify-content: space-between;
    }
}

/*   */







        /* General Body Styles */
        body {
            font-family: 'Heebo', sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            color: #333;
            direction: rtl; /* Right-to-left for Hebrew */
            text-align: right; /* Align text to the right */
            transition: background-color 0.3s, color 0.3s; /* Smooth transitions for accessibility */
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: auto;
            overflow: hidden;
            padding: 20px 0;
        }

        /* Header */
        header {
            background: #2c3e50; /* Dark blue-grey */
            color: #fff;
            padding-top: 20px;
            min-height: 70px;
            border-bottom: #e8491d 3px solid;
            position: sticky; /* Make header sticky */
            top: 0;
            z-index: 1000; /* Ensure it stays on top */
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
        }

        header .logo {
            display: flex;
            align-items: center;
            margin-bottom: 10px; /* Space for wrapping */
            flex-shrink: 0; /* Prevent shrinking */
        }

        header .logo img {
            height: 60px; /* Larger logo */
            margin-left: 15px;
            border-radius: 50%; /* Make logo rounded */
            box-shadow: 0 0 10px rgba(0,0,0,0.3);
        }

        header h1 {
            margin: 0;
            font-size: 2.5em; /* Larger heading */
            color: #e8491d; /* Orange accent */
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        header nav ul {
            margin: 0;
            padding: 0;
            list-style: none;
            display: flex;
            flex-wrap: wrap; /* Allow wrapping */
            justify-content: flex-end; /* Align nav items to the right */
        }

        header nav li {
            padding: 0 15px;
            margin-bottom: 10px; /* Space for wrapping */
        }

        header nav a {
            color: #fff;
            text-decoration: none;
            text-transform: uppercase;
            font-size: 1.1em; /* Slightly larger font */
            transition: color 0.3s ease, transform 0.2s ease;
            position: relative;
            padding-bottom: 5px;
        }

        header nav a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            right: 0; /* For RTL */
            background-color: #e8491d;
            transition: width 0.3s ease-out;
        }

        header nav a:hover {
            color: #e8491d;
            transform: translateY(-2px);
        }

        header nav a:hover::after {
            width: 100%;
            left: 0; /* For RTL */
        }

        /* Accessibility Menu */
        .accessibility-menu {
            position: relative;
            margin-right: 20px; /* Adjust as needed for RTL */
        }

        #accessibility-btn {
            background-color: #e8491d;
            color: #fff;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 1em;
            border-radius: 5px;
            display: flex;
            align-items: center;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        #accessibility-btn .icon {
            margin-left: 8px; /* Space for icon */
            font-size: 1.2em;
        }

        #accessibility-btn:hover {
            background-color: #d63f1a;
            transform: translateY(-2px);
        }

        #accessibility-options {
            position: fixed; /* Changed to fixed for centering on screen */
            background-color: #2c3e50;
            border: 1px solid #e8491d;
            padding: 0; /* Start with 0 padding */
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            z-index: 1001; /* Above header */
            top: 50%; /* Center vertically */
            left: 50%; /* Center horizontally */
            transform: translate(-50%, -50%) translateY(10px); /* Adjust for initial hidden state */
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 200px;
            max-height: 0; /* Initially hidden by height */
            opacity: 0; /* Initially transparent */
            overflow: hidden; /* Hide overflowing content */
            transition: max-height 0.5s ease-out, opacity 0.5s ease-out, transform 0.3s ease; /* Smooth transitions */
        }

        #accessibility-options.visible {
            max-height: 500px; /* Sufficiently large height to show content */
            opacity: 1;
            padding: 15px; /* Add padding when visible */
            transform: translate(-50%, -50%) translateY(0); /* Center and show */
        }

        #accessibility-options label {
            color: #fff;
            font-size: 0.95em;
            margin-bottom: 5px;
            display: block;
        }

        #accessibility-options button,
        #accessibility-options input[type="color"] {
            background-color: #34495e;
            color: #fff;
            border: 1px solid #4a667b;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.95em;
            width: 100%; /* Full width within the menu */
            box-sizing: border-box; /* Include padding and border in element's total width and height */
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        #accessibility-options input[type="color"] {
            height: 40px; /* Ensure color input is visible */
            padding: 5px;
        }

        #accessibility-options button:hover {
            background-color: #e8491d;
            border-color: #e8491d;
        }

        /* High Contrast Mode */
        body.high-contrast {
            background-color: #000 !important;
            color: #0f0 !important; /* Bright green for text on black */
        }
        body.high-contrast header,
        body.high-contrast footer,
        body.high-contrast #accessibility-options {
            background-color: #333 !important;
            border-color: #0f0 !important;
        }
        body.high-contrast header nav a {
            color: #0f0 !important;
        }
        body.high-contrast header nav a:hover {
            color: #fff !important;
        }
        body.high-contrast section {
            background-color: #111 !important;
            border-color: #0f0 !important;
        }
        body.high-contrast section:nth-of-type(even) {
            background-color: #222 !important;
        }
        body.high-contrast section h2 {
            color: #0f0 !important;
        }
        body.high-contrast section h2::after {
            background: #0f0 !important;
        }
        body.high-contrast section ul li::before {
            color: #0f0 !important;
        }
        body.high-contrast .video-item {
            background-color: #333 !important;
            box-shadow: 0 2px 5px rgba(0, 255, 0, 0.2) !important;
        }
        body.high-contrast .video-item h3 {
            color: #0f0 !important;
        }
        body.high-contrast .form-group label {
            color: #0f0 !important;
        }
        body.high-contrast .form-group input,
        body.high-contrast .form-group textarea {
            background-color: #444 !important;
            color: #0f0 !important;
            border-color: #0f0 !important;
        }
        body.high-contrast form button {
            background: #0f0 !important;
            color: #000 !important;
        }
        body.high-contrast form button:hover {
            background: #fff !important;
            color: #000 !important;
        }
        body.high-contrast .error-message {
            color: #ff0 !important;
        }
        body.high-contrast .button {
            background: #0f0 !important;
            color: #000 !important;
        }
        body.high-contrast .button:hover {
            background: #fff !important;
            color: #000 !important;
        }
        body.high-contrast footer .social-media a {
            color: #0f0 !important;
        }
        body.high-contrast footer .social-media a:hover {
            color: #fff !important;
        }
        body.high-contrast #accessibility-btn {
            background-color: #0f0 !important;
            color: #000 !important;
        }
        body.high-contrast #accessibility-btn:hover {
            background-color: #fff !important;
        }
        body.high-contrast #accessibility-options button,
        body.high-contrast #accessibility-options input[type="color"] {
            background-color: #444 !important;
            color: #0f0 !important;
            border-color: #0f0 !important;
        }
        body.high-contrast #accessibility-options button:hover {
            background-color: #0f0 !important;
            color: #000 !important;
        }


        /* Hero Section */
        #hero {
            min-height: 500px; /* Taller hero section */
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://placehold.co/1920x1080/4a667b/ffffff?text=Ra%27anana') no-repeat center center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #fff;
            position: relative;
            overflow: hidden; /* For parallax effect */
        }

        #hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4); /* Dark overlay */
            z-index: 1;
        }

        #hero .hero-content {
            position: relative;
            z-index: 2;
            padding: 20px;
            border-radius: 10px;
            background: rgba(44, 62, 80, 0.7); /* Semi-transparent dark background */
            box-shadow: 0 5px 15px rgba(0,0,0,0.5);
            animation: fadeInScale 1s ease-out;
        }

        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }

        #hero h2 {
            font-size: 3.5em; /* Larger hero title */
            margin-bottom: 10px;
            color: #e8491d;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        }

        #hero p {
            font-size: 1.5em; /* Larger hero text */
            margin-bottom: 20px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .button {
            display: inline-block;
            background: #e8491d;
            color: #fff;
            padding: 12px 25px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 1.1em;
            transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 3px 6px rgba(0,0,0,0.3);
        }

        .button:hover {
            background: #d63f1a;
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.4);
        }

        /* Section Styling */
        section {
            padding: 40px 0;
            background: #fff;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        section:nth-of-type(even) {
            background: #f9f9f9;
        }

        section h2 {
            text-align: center;
            font-size: 2.8em;
            color: #2c3e50;
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 10px;
        }

        section h2::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 4px;
            background: #e8491d;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }

        /* About Section */
        #about p {
            font-size: 1.1em;
            text-align: justify;
            margin-bottom: 15px;
        }

        /* Goals Section */
        #goals ul {
            list-style: none;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        #goals ul li {
            background: #e8491d;
            color: #fff;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            font-size: 1.2em;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.2s ease, background-color 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        #goals ul li::before {
            content: '\f058'; /* Checkmark icon */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5em;
            color: rgba(255,255,255,0.3);
        }

        #goals ul li:hover {
            transform: translateY(-5px);
            background-color: #d63f1a;
        }

        /* Procedures Section */
        #procedures .procedure-item {
            background: #f0f0f0;
            padding: 20px;
            margin-bottom: 15px;
            border-radius: 8px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }

        #procedures .procedure-item h3 {
            color: #2c3e50;
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 1.6em;
        }

        #procedures .procedure-item p {
            font-size: 1.05em;
            text-align: justify;
        }

        /* Downloads Section */
        #downloads .download-list {
            list-style: none;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        #downloads .download-list li {
            background: #34495e; /* Darker blue-grey */
            color: #fff;
            padding: 15px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: transform 0.2s ease, background-color 0.3s ease;
        }

        #downloads .download-list li:hover {
            transform: translateY(-3px);
            background-color: #2c3e50;
        }

        #downloads .download-list li a {
            color: #e8491d;
            text-decoration: none;
            font-weight: bold;
            font-size: 1.1em;
            display: flex;
            align-items: center;
        }

        #downloads .download-list li a .icon {
            margin-left: 10px;
            font-size: 1.3em;
            color: #fff;
        }

        /* Videos Section */
        #videos .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        #videos .video-item {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.2s ease, box-shadow 0.3s ease;
        }

        #videos .video-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

        #videos .video-item iframe {
            width: 100%;
            height: 200px; /* Fixed height for consistency */
            border: none;
        }

        #videos .video-item h3 {
            color: #2c3e50;
            padding: 15px;
            margin: 0;
            font-size: 1.4em;
        }

        #videos .video-item p {
            padding: 0 15px 15px;
            font-size: 0.95em;
            color: #555;
        }

        /* Contact Section */
        #contact .contact-info {
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.1em;
        }

        #contact .contact-info p {
            margin-bottom: 10px;
        }

        #contact .contact-info a {
            color: #e8491d;
            text-decoration: none;
            font-weight: bold;
        }

        #contact form {
            background: #f0f0f0;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            max-width: 600px;
            margin: auto;
        }

        #contact .form-group {
            margin-bottom: 15px;
        }

        #contact .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #2c3e50;
            font-weight: bold;
        }

        #contact .form-group input,
        #contact .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box; /* Include padding and border in element's total width and height */
            font-size: 1em;
        }

        #contact .form-group textarea {
            resize: vertical;
            min-height: 100px;
        }

        #contact form button {
            width: 100%;
            padding: 12px;
            background: #2c3e50;
            color: #fff;
            border: none;
            border-radius: 5px;
            font-size: 1.2em;
            cursor: pointer;
            transition: background 0.3s ease, transform 0.2s ease;
        }

        #contact form button:hover {
            background: #34495e;
            transform: translateY(-2px);
        }

        .error-message {
            color: #e8491d;
            font-weight: bold;
            margin-top: 5px;
            text-align: center;
        }

        /* Footer */
        footer {
            background: #2c3e50;
            color: #fff;
            text-align: center;
            padding: 30px 0;
            margin-top: 30px;
            border-top: #e8491d 3px solid;
        }

        footer p {
            margin: 0;
            font-size: 0.9em;
        }

        footer .social-media {
            margin-top: 15px;
        }

        footer .social-media a {
            color: #fff;
            font-size: 1.8em;
            margin: 0 10px;
            transition: color 0.3s ease, transform 0.2s ease;
        }

        footer .social-media a:hover {
            color: #e8491d;
            transform: translateY(-3px);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            header .container {
                flex-direction: column;
                text-align: center;
            }

            header .logo {
                margin-bottom: 20px;
                justify-content: center;
            }

            header nav ul {
                flex-direction: column;
                width: 100%;
                align-items: center;
            }

            header nav li {
                margin-bottom: 15px;
            }

            header h1 {
                font-size: 2em;
            }

            #hero h2 {
                font-size: 2.5em;
            }

            #hero p {
                font-size: 1.2em;
            }

            section h2 {
                font-size: 2em;
            }

            #goals ul,
            #downloads .download-list,
            #videos .video-grid {
                grid-template-columns: 1fr;
            }

            /* Accessibility options for smaller screens */
            #accessibility-options {
                right: auto;
                left: 50%;
                transform: translate(-50%, -50%) translateY(10px); /* Adjust for initial hidden state */
            }
            #accessibility-options.visible {
                transform: translate(-50%, -50%) translateY(0); /* Center and show */
            }
        }

        @media (max-width: 480px) {
            .container {
                width: 95%;
            }

            header h1 {
                font-size: 1.8em;
            }

            header .logo img {
                height: 50px;
            }

            #hero h2 {
                font-size: 2em;
            }

            #hero p {
                font-size: 1em;
            }

            .button {
                padding: 10px 20px;
                font-size: 1em;
            }

            section h2 {
                font-size: 1.8em;
            }

            #videos .video-item iframe {
                height: 180px;
            }

            #contact form {
                padding: 20px;
            }
        }
