        :root {
            --primary-color: #2c5aa0;
            --secondary-color: #d4af37;
            --accent-color: #8b4513;
            --text-dark: #2c3e50;
            --text-light: #7f8c8d;
            --background-light: #f8f9fa;
            --white: #ffffff;
            --success: #27ae60;
            --error: #e74c3c;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Georgia', 'Times New Roman', serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--white);
        }

        /* Logo Styles */
        .logo-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-svg {
            width: 60px;
            height: 60px;
        }

        .logo-text {
            font-size: 24px;
            font-weight: bold;
            color: var(--white);
        }

        /* Header & Navigation */
        .header {
            background: linear-gradient(135deg, var(--primary-color), #1e4080);
            color: var(--white);
            padding: 1rem 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 1rem;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-link {
            color: var(--white);
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            font-weight: 500;
            cursor: pointer;
        }

        .nav-link:hover,
        .nav-link.active {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Main Content */
        .main-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
            min-height: 70vh;
        }

        /* Page Sections 
        .page-section {
            display: none;
        }

        .page-section.active {
            display: block;
            animation: fadeIn 0.3s ease-in;
        }*/

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .page-title {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 2rem;
            text-align: center;
            border-bottom: 3px solid var(--secondary-color);
            padding-bottom: 1rem;
        }

        /* Hero Section 
        .hero {
            background: linear-gradient(135deg, rgba(44, 90, 160, 0.9), rgba(30, 64, 128, 0.9));
            color: var(--white);
            padding: 4rem 2rem;
            text-align: center;
            margin: -2rem -1rem 2rem -1rem;
            border-radius: 0 0 20px 20px;
        }*/

        .hero {
            position: relative;
			background: url('../uploads/images/DSC_5961.jpg') no-repeat center center / cover;
            color: var(--white);
            padding: 4rem 2rem;
            text-align: center;
            margin: -2rem -1rem 2rem -1rem;
            border-radius: 0 0 20px 20px;
        }

        /* שכבת כהות מעל התמונה */
        .hero::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(44, 90, 160, 0.7), rgba(30, 64, 128, 0.7));
            border-radius: 0 0 20px 20px;
        }

        /* מבטיח שהטקסט לא יכוסה */
        .hero > * {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-button {
            background: var(--secondary-color);
            color: var(--white);
            padding: 1rem 2rem;
            border: none;
            border-radius: 5px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .cta-button:hover {
            background: #c19b2a;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
        }

        /* Card Layout */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .card {
            background: var(--white);
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            border: 1px solid #e9ecef;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .card h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }

        /* Forms */
        .form-container {
            max-width: 600px;
            margin: 2rem auto;
            padding: 2rem;
            background: var(--white);
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
            color: var(--text-dark);
        }

        .form-control {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid #e9ecef;
            border-radius: 5px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
        }

        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }

        /* Gallery */
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .gallery-item {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover {
            transform: scale(1.05);
        }

        .gallery-placeholder {
            height: 200px;
            background: linear-gradient(45deg, var(--background-light), #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-style: italic;
            text-align: center;
            padding: 1rem;
        }

        /* Carousel */
        .gallery-wrapper {
            overflow: hidden;
            width: 100%;
            position: relative;
            margin: 20px auto;
        }

        .gallery-track {
            display: flex;
            transition: transform 0.6s ease-in-out;
        }

        .gallery-item {
            flex: 0 0 calc(100% / 3);
            /* תמיד 3 פריטים */
            padding: 10px;
            box-sizing: border-box;
        }

        .gallery-item img,
        .gallery-item video,
        .video-wrapper iframe {
            width: 100%;
            height: 220px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .video-wrapper {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
        }

        .video-wrapper iframe {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            border-radius: 10px;
        }

        .gallery-actions {
            margin-top: 8px;
            display: flex;
            justify-content: space-between;
        }

        .gallery-actions a {
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 14px;
            text-decoration: none;
            color: #fff;
        }

        .gallery-actions button {
            padding: 5px 10px;
            border-radius: 6px;
            font-size: 14px;
            color: #fff;
            border: none;
            cursor: pointer;
        }

        .btn-edit {
            background: #4caf50;
        }

        .btn-delete {
            background: #e53935;
        }

        .btn-edit:hover {
            background: #45a049;
        }

        .btn-delete:hover {
            background: #c62828;
        }


      /* Modal background */
      .modal {
          display: none; /* Hidden by default */
          position: fixed; /* Sit on top of the page */
          z-index: 1000; /* Sit on top */
          left: 0;
          top: 0;
          width: 100%; /* Full width */
          height: 100%; /* Full height */
          overflow: auto; /* Enable scroll if needed */
          background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
      }

      /* Modal content box */
      .modal-content {
          background-color: #fefefe;
          margin: 10% auto; /* 10% from top, centered */
          padding: 20px;
          border: 1px solid #888;
          width: 90%;
          max-width: 500px;
          border-radius: 10px;
          box-shadow: 0 5px 15px rgba(0,0,0,0.3);
          position: relative;
      }

      /* Close button */
      .modal .close {
          color: #aaa;
          position: absolute;
          top: 10px;
          right: 20px;
          font-size: 28px;
          font-weight: bold;
          cursor: pointer;
      }

      .modal .close:hover,
      .modal .close:focus {
          color: black;
      }

/* Overlay */
#gallery-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* חצי שקוף */
}

/* Modal content */
#gallery-modal .modal-content {
    background-color: #fff;
    margin: 5% auto; /* מרכז על הדף */
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Close button */
#gallery-modal .close-btn {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

/* Form fields */
#gallery-modal form input[type="text"],
#gallery-modal form input[type="file"],
#gallery-modal form select,
#gallery-modal form textarea {
    width: 100%;
    padding: 8px 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Buttons */
#gallery-modal form button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #2c5aa0;
    color: white;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

#gallery-modal form button:hover {
    background-color: #1f4170;
}

        /* Articles */
        .article-preview {
            border-bottom: 1px solid #e9ecef;
            padding-bottom: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .article-preview:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .article-meta {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
/* גריד של ההמלצות */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* כרטיס המלצה */
.recommendation-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
}

/* תוכן ההמלצה */
.recommendation-file h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
}

/* כפתור הורדה */
.download-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #0056b3;
}

/* פעולות אדמין */
.admin-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.admin-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-actions button:first-child {
    background: #ffc107;
    color: #000;
}

.admin-actions button:last-child {
    background: #dc3545;
    color: #fff;
}

/* כפתור הוספת המלצה */
.add-recommendation-btn {
    margin-top: 20px;
    padding: 10px 16px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.add-recommendation-btn:hover {
    background: #218838;
}


        /* Recommendations */
        .recommendation-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            margin-bottom: 1rem;
            transition: background-color 0.3s ease;
        }

        .recommendation-item:hover {
            background-color: var(--background-light);
        }

        .pdf-icon {
            font-size: 2rem;
            color: #e74c3c;
        }

        .download-btn {
            background: var(--primary-color);
            color: var(--white);
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-decoration: none;
            font-size: 0.9rem;
        }

        .download-btn:hover {
            background: #1e4080;
        }

        /* Donation Section */
        .donation-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .donation-card {
            background: var(--white);
            border: 2px solid var(--secondary-color);
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .donation-card:hover {
            background: rgba(212, 175, 55, 0.05);
            transform: translateY(-2px);
        }

        .donation-icon {
            font-size: 3rem;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        /* Admin Panel */
        .admin-panel {
            background: var(--background-light);
            border-radius: 10px;
            padding: 2rem;
            margin: 2rem 0;
            border: 2px solid var(--primary-color);
        }

        /* Success/Error Messages */
        .message {
            padding: 1rem;
            border-radius: 5px;
            margin: 1rem 0;
        }

        .message.success {
            background: rgba(39, 174, 96, 0.1);
            border: 1px solid var(--success);
            color: var(--success);
        }

        .message.error {
            background: rgba(231, 76, 60, 0.1);
            border: 1px solid var(--error);
            color: var(--error);
        }

        /* Footer */
        .footer {
            background: var(--text-dark);
            color: var(--white);
            text-align: center;
            padding: 3rem 1rem 1rem;
            margin-top: 4rem;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-section h4 {
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        .footer-section p,
        .footer-section a {
            color: #bdc3c7;
            text-decoration: none;
            line-height: 1.8;
        }

        .footer-section a:hover {
            color: var(--white);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--primary-color);
                padding: 1rem;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            }

            .nav-menu.active {
                display: flex;
            }

            .mobile-menu-toggle {
                display: block;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .page-title {
                font-size: 2rem;
            }

            .card-grid {
                grid-template-columns: 1fr;
            }

            .donation-methods {
                grid-template-columns: 1fr;
            }
        }