/* ------------------------------------ */
/* עיצוב גלובלי (BODY)        */
/* ------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@700&family=Heebo:wght@400;700&display=swap');
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
      font-family: var(--font_modules_header), 'Frank Ruhl Libre', Arial, sans-serif;
}

h2 {
    text-align: center;
    font-size: 50px; 
    margin-bottom: 30px;
    color: #1a3e6d; 
}

/* ------------------------------------ */
/* תפריט וניווט (HEADER & NAV)*/
/* ------------------------------------ */
.header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background:gray; 
    padding: 10px 30px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px; 
    transition: transform 0.3s ease-out;
}

.logo img {
    height: 110px; 
    width: auto;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s;
}

/* כפתור ההמבורגר - מוסתר בדסקטופ */
.menu-toggle {
    display: none; 
    font-size: 30px;
    cursor: pointer;
    order: 3;
}

/* כפתור תרומה ושפה */
.nav #donate-btn {
    background: #d12f2f;
    padding: 8px 12px;
    border-radius: 5px;
    margin-inline-start: auto; 
    margin-inline-end: 10px; 
}

.lang-switch-btn {
    background: #1a3e6d; 
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    color: white !important; 
    text-decoration: none; 
    transition: background 0.3s;
}

.lang-switch-btn:hover {
    background: #d12f2f;
}

.nav a:hover {
    color: #ffcc00; 
}

/* ------------------------------------ */
/* באנר ראשי (HERO) - סליידר רקע קבוע            */
/* ------------------------------------ */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 400px; 
}

/* מיכל תמונות הרקע */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
}

.hero-background img.active {
    opacity: 1;
}

/* שכבת צבע מעל הרקע */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 20;
}

/* עיצוב הטקסט הקבוע */
.hero-content-static {
    position: relative; 
    z-index: 30; 
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; /* יישור הטקסט למרכז */
    color: white;
    padding: 10px 20px;
    transform: translateY(70px); /* מעלה את הבלוק כולו ב-15% מגובהו */
}

/* גדלי טקסט בדסקטופ */
.hero-content-static .page-title {
    font-size: 3.5em; 
    font-weight: 700; 
    margin-bottom: 0.5em; 
}

.hero-content-static p {
    font-size: 1.8em; 
    font-weight: 400; 
}

/* אפקט הצללה על הטקסט */
.hero-content-static .page-title,
.hero-content-static p {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 10px 0;
}

/* ------------------------------------ */
/* קטעי תוכן (SECTIONS)       */
/* ------------------------------------ */
.section {
    width: 80%;
    margin: auto;
    padding: 50px 0;
    max-width: 1100px;
    direction: rtl; 
    text-align: right;
}
/* אם אין לך כלל כללי ל-p, הוסיפי אותו כאן */
p {
    font-size: 23px; /* או 18px */
    line-height: 1.7; /* מומלץ להגדיל גם את מרווח השורה */
}

/* ------------------------------------ */
/* גלריה (GALLERY)            */
/* ------------------------------------ */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

/* עיצוב פריטי הגלריה (תמונות וסרטונים) */
.gallery-container img, .gallery-container video {
    width: 30%; 
    min-width: 250px; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 20px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* הסתרת התוכן הנוסף בהתחלה */
.hidden-group {
    display: none; 
}

#loadMoreButton {
    display: block; 
    margin: 20px auto; 
    padding: 10px 25px;
    background-color: #007bff; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#loadMoreButton:hover {
    background-color: #0056b3;
}

/* ------------------------------------ */
/* אירועים (EVENTS)            */
/* ------------------------------------ */
.events {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.event-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 10px #00000020;
    text-align: right; /* יישור לימין */
}

/* ------------------------------------ */
/* צור קשר (CONTACT)              */
/* ------------------------------------ */

.big-donate-btn {
    /* הופך את הקישור לאזור מלבני שניתן לעצב */
    display: inline-block; 
    
    /* צבע רקע: אדום בוהק (Crimson) */
    background-color: #dc143c; 
    
    /* צבע טקסט: לבן */
    color: white; 
    
    /* ריווח פנימי גדול (מקבל גובה ורוחב לכפתור) */
    padding: 15px 30px; 
    
    /* מסיר את הקו התחתי של הקישור */
    text-decoration: none; 
    
    /* מעגל מעט את הפינות */
    border-radius: 8px; 
    
    /* גודל ומשקל הגופן */
    font-size: 22px; 
    font-weight: bold;
    
    /* מבטיח מעבר צבע חלק בריחוף עכבר */
    transition: background-color 0.3s ease; 
    
    /* הוספת צל קל כדי שיבלוט */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* אפקט ריחוף עכבר (Hover) */
.big-donate-btn:hover {
    /* צבע אדום כהה יותר כאשר העכבר מרחף מעליו */
    background-color: #a31030; 
    /* מרים מעט את הכפתור */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
#contact {
    background-color: #2c3e50; 
    color: white;
    border-radius: 20px;
    padding: 50px;
}

#contact h2 {
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; 
    text-align: right;
}

.contact-form button[type="submit"] {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #2980b9;
}

/* ------------------------------------ */
/* FOOTER                              */
/* ------------------------------------ */
.footer{
    background:gray; 
    padding: 10px 30px;
    color: white;
}

/* ---------------------------------------------------- */
/* 📱 שאילתות מדיה - רספונסיביות למכשירים קטנים (עד 768px) */
/* ---------------------------------------------------- */

@media screen and (max-width: 768px) {
    
    /* --- כותרות וטקסט גלובלי --- */
    h2 {
        font-size: 2em; 
    }

    /* --- ניווט (ההמבורגר) --- */
    .header {
        padding: 10px 15px;
    }
    .logo img {
        height: 70px; 
    }
    .menu-toggle {
        display: block; 
    }
    .nav {
        position: absolute; 
        top: 90px;
        left: 0;
        width: 100%;
        background: gray;
        flex-direction: column;
        align-items: stretch;
        transform: translateX(100%); 
        transition: transform 0.3s ease-out;
    }
    .nav.active {
        transform: translateX(0);
    }
    .nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav #donate-btn, .lang-switch-btn {
        margin: 10px 20px;
        text-align: center;
        width: auto;
    }
    
    /* --- HERO SECTION --- */
    .hero {
        padding: 60px 20px; 
        min-height: 350px;
    }
    .hero-content-static .page-title {
        font-size: 2.2em;
    }
    .hero-content-static p {
        font-size: 1.2em;
    }

    /* --- גלריה (Gallery) --- */
    .gallery-container {
        gap: 10px;
    }
    
    .gallery-container img,
    .gallery-container video {
        width: 45%; /* שתי תמונות בשורה */
        min-width: unset;
        height: auto;
    }
    
    /* --- אירועים (EVENTS) --- */
    .events {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .event-card {
        width: 90%;
    }

    /* --- סקשנים כלליים --- */
    .section {
        width: 100%;
        max-width: none; 
        padding: 30px 15px;
        margin: 15px auto;
        text-align: right;
    }
    
    /* תיקון סקשן צור קשר (Contact) */
    #contact {
        padding: 30px 20px;
    }
}