/* 1. הגדרות כלליות ומשתנים */
:root {
    --main-orange: #f39c12;
    --light-blue: #3498db;
    --royal-blue: #2980b9;
    --bg-light: #f9fbfd;
    --text-dark: #2c3e50;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.container {
    width: 85%;
    margin: auto;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.loader-content {
    text-align: center;
    animation: popup 0.8s ease-out;
}

.loader-logo {
    height: 220px;
    width: auto;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes popup {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 3. Header & Navigation */
header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 95px;
    width: auto;
    transition: transform 0.3s ease;
}


/* מחלקה מיוחדת להסתרת אלמנטים */
.hidden {
    display: none;
}

/* החשכת רקע החוצה (Fade out) */
.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

header nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    padding-top: 100px;
}

header nav.nav-active {
    left: 0;
}

header ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

header li {
    margin: 25px 40px;
}

header a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: 0.3s;
    display: block;
}

header a:hover {
    color: var(--main-orange);
}

.nav-btn {
    background: var(--main-orange);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    text-align: center;
}

/* כפתור המבורגר */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
}


@media (max-width: 1300px) {    
    /* מחביאים את תפריט השורה הרגיל כדי שלא יתערבב */
    #mainNav {
        display: none; 
    }
    
    /* מציגים את כפתור ההמבורגר עם כל ההגדרות המקוריות */
    .menu-toggle {
        display: flex; /* מחזיר את התצוגה במובייל */
        background: none;
        border: none;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001;
    }

    .feature-card p {
        text-align: justify !important;
        text-align-last: center !important;
        
        /* שיפור המראה בנייד ומניעת מרווחים מוגזמים */
        line-height: 1.5;
        padding: 0 5px; /* מרווח קל בצדדים שלא יידבק לקצה הכרטיסייה */
    }
}


.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--royal-blue);
    border-radius: 3px;
    transition: 0.3s;
}

.toggle-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.toggle-active span:nth-child(2) { opacity: 0; }
.toggle-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 4. Main & Hero Content */
main {
    flex: 1;
}

.hero {
    position: relative;
    height: 75vh; /* גובה ה-Hero - תופס 75% מגובה המסך */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* מונע מהוידאו לזלוג החוצה */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover; 
    object-position: 80% center; 
}

.hero-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.4), rgba(255, 255, 255, 0.2));
    z-index: 2;
}

.hero-content{
    position: relative;
    z-index: 3; /* מעל הוידאו והאובליי */
    padding: 0 20px;
}

.hero-logo {
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 4rem;
    color: #ffffff; /* שונה ללבן */
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* צל עדין לטקסט */
}

.hero p {
    font-size: 1.6rem;
    color: #ffffff; /* שונה ללבן */
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn {
    display: inline-block;
    background: var(--main-orange);
    color: #fff;
    padding: 15px 45px;
    text-decoration: none;
    border-radius: 35px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

/* עיצוב כללי לאייקונים בכותרות */
h2 i {
    color: #ff8c00; 
    margin-left: 10px; 
    font-size: 0.9em; 
    transition: transform 0.3s ease;
}


h2:hover i {
    transform: scale(1.15) rotate(-5deg); 
}


#contact h2 i, 
.join-team-section h2 i {
    color: #ffb700;
}

/* Content Sections הכללי */
.content-section {
    padding: 90px 0;
    text-align: center;
    scroll-margin-top: 130px;
    background-color: #f1f5f9;
}

.bg-white {
    background-color: #ffffff;
}

.bg-light {
    background-color: #f4f8fb;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--royal-blue);
    margin-bottom: 10px;
    margin-top: 0;
}

.section-subtitle {
    display: block;
    font-size: 1.3rem;
    color: var(--main-orange);
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 1px;
}


.divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c00, #ffb700); /* גראדיאנט כתום-זהב */
    margin: 10px auto 25px auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: #555;
}

/*-- מקרא מוקדים --*/
.centers-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px auto 25px auto;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 20px;
    max-width: fit-content;
    direction: rtl;
    border: 1px solid #e2e8f0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #4a5568;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}


.dot-talan, .c-talan {
    color: #047857 !important;
    font-weight: 700;
}
.dot-talan {
    background-color: #047857 !important;
}

.dot-zaharon, .c-zaharon {
    color: #dc2626 !important;
    font-weight: 700;
}
.dot-zaharon {
    background-color: #dc2626 !important;
}

.dot-chugim, .c-chugim {
    color: #7e22ce !important;
    font-weight: 700;
}
.dot-chugim {
    background-color: #7e22ce !important;
}



.placeholder-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.card-placeholder {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    padding: 40px 20px;
    width: 250px;
    color: #94a3b8;
    font-weight: 600;
}

.image-placeholder {
    flex: 1;
    min-width: 280px;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;  /* חותך את פינות התמונה לפי ה-border-radius */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* צל עדין במקום מסגרת */
}

/* העיצוב לתמונה עצמה בתוך המיכל */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* מונע מהתמונה להתעוות וממלא את כל הריבוע */
    object-position: center;
    transition: transform 0.3s ease; /* אנימציה חלקה לריחוף */
}

.image-placeholder:hover img {
    transform: scale(1.05);
}

/* יישור הטקסט וה-Placeholder בשדה הטלפון מימין לשמאל */
input[type="tel"],
input[type="tel"]::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

/* טופס צור קשר */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contact-form button {
    border: none;
    cursor: pointer;
    align-self: center;
}

/* עיצוב שדה העלאת קובץ */
.form-group input[type="file"] {
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px dashed #cccccc;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input[type="file"]:hover {
    border-color: #0056b3; /* מדגיש את המסגרת במעבר עכבר */
}

/* טקסט ההסבר הקטן מתחת לשדה */
.file-note {
    display: block;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 5px;
}

/* מיכל רשת לדרכי יצירת הקשר */
.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

/* עיצוב הכרטיסייה הלוחצת */
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 50px;
    color: #323030 !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-info-card i {
    font-size: 1.3rem;
    color: #ffb700;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-info-card.whatsapp:hover i {
    color: #25d366;
}


.contact-info-card.instagram:hover i {
    color: #e1306c; /* ורוד-אינסטגרם */
}

/* 5. Footer (הכתום השמח) */
footer {
    padding: 30px;
    background: var(--main-orange);
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
}

/* עיצובי רשתות ותוכן חדשים מהמצגת */
.features-grid, .team-grid, .programs-grid, .testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-card, .team-card, .program-box, .testimonial-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #eef2f5;
    text-align: right;
}


.feature-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* האייקון מימין לכותרת */
.feature-card-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2b6cb0;
    text-align: center
}

.bio-founder {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: right;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-right: 5px solid var(--light-blue);
}

.bio-founder h3 {
    margin-top: 0;
    color: var(--royal-blue);
}

/* דואג שהתמונה והטקסט יעמדו זה לצד זה */
.founder-flex-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.founder-img-container {
    width: 260px;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 4px solid #ffffff;
    background-color: var(--bg-light);
    flex-shrink: 0; /* מונע מהתמונה להתכווץ במסכים בינוניים */
}

.founder-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.bio-founder {
    flex: 1;
    min-width: 280px; /* מונע מהטקסט להצטמצם יותר מדי */
    text-align: right;
}

/* מיכל התמונה של המדריכים - עיגול כחול קטן יותר */
.team-member-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px auto;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--bg-light);
}

/* מכריח את תמונת המדריך להצטמצם לעיגול ולהתמרכז מהכתפיים ומעלה */
.team-member-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.team-card h4 {
    margin: 0 0 10px 0;
    color: var(--royal-blue);
    font-size: 1.2rem;
    text-align: center;
}

.team-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

/* מערכת טאבים דינמית */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.tab-btn {
    background-color: #f4f8fb;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #e2e8f0;
}

/* עיצוב הטאב כשהוא לחוץ ופעיל */
.tab-btn.active {
    background-color: var(--royal-blue);
    color: #ffffff;
    border-color: var(--royal-blue);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
}

/* המעטפת הכהה - תופסת את כל המסך ומחשיכה אותו */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* שחור עם 60% שקיפות */
    display: none; /* חבוי כברירת מחדל - ה-JS יפעיל את זה */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ערך גבוה מאוד כדי שיהיה מעל התפריט וכל שאר האתר */
    padding: 20px;
}

/* החלון הלבן במרכז שמכיל את התוכן */
.modal-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: right;
    direction: rtl;  
    /* אנימציה קלה שהחלון "יקפוץ" בעדינות לעין */
    animation: fadeInModal 0.3s ease-out;
    overflow-y: auto;
    max-height: 75vh;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px; /* המרווח בין האייקון לכותרת */
    margin-bottom: 20px; /* המרווח מפסקת הטקסט שמתחת */
}

/* מיכל התמונה בתחתית המודל */
.modal-image-container {
    margin-top: 20px;
    text-align: center;
}


.modal-activity-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* האייקון עצמו */
.modal-title-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--royal-blue, #2b6cb0);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #888888;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #ff3b30;
}

/* אנימציית הקפיצה של החלון */
@keyframes fadeInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* הצגת הטאב הפעיל */
.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
    color: var(--royal-blue);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.tab-content p {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.program-box {
    border-top: 5px solid var(--main-orange);
}

.program-badge {
    background: var(--royal-blue);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.program-box ul {
    padding-right: 20px;
    margin: 0;
}

.program-box li {
    margin-bottom: 8px;
    color: #444;
}

/* המיכל הראשי שמחלק את האזור לשני טורים */
.centers-wrapper {
    display: flex;
    flex-direction: row-reverse; /* מציג את המפה בצד ימין ואת הטקסט בשמאל */
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

/* הצד של הטקסט */
.centers-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* עיצוב כרטיסי הערים */
.center-city {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: right;
    border-right: 4px solid #0056b3;
}

.center-city h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 20px;
}

.center-city p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* הצד של המפה */
.centers-map-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* מיכל המפה הווקטורית */
.map-container {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.israel-map-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* מבנה הנעצים (הגדרות המיקום המוחלט) */
.map-pin {
    position: absolute;
    transform: translate(50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pin-dot {
    width: 12px;
    height: 12px;
    background-color: var(--royal-blue);
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    position: relative;
}

/* פעימת האנימציה של הנעץ */
.pin-dot::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; width: 12px; height: 12px;
    border: 2px solid var(--royal-blue);
    border-radius: 50%;
    animation: pinPulse 2s infinite ease-out;
}

.pin-text {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #222;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* בלוק פיזור הנקודות */
/* תל אביב */
.pin-tlv .pin-text {
    right: 18px; 
    top: -6px; /* מיושר בול למרכז הנקודה האדומה */
}

/* הרצליה */
.pin-herzliya .pin-text {
    left: 18px; 
    top: -6px; /* מיושר בול למרכז הנקודה האדומה */
}

/* כפר סבא */
.pin-kfar-saba .pin-text {
    right: 18px; 
    top: -6px; /* מיושר בול למרכז הנקודה האדומה */
}

/* פתח תקווה */
.pin-petah-tikva .pin-text {
    left: 18px;
}

@keyframes pinPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}


@media (max-width: 768px) {
    .centers-wrapper {
        flex-direction: column-reverse; /* המפה תהיה למעלה והטקסט מתחתיה */
        gap: 30px;
    }
    
    .map-container {
        max-width: 280px; /* טיפה קטן יותר במסכים קטנים */
    }

    .hero-section {
        min-height: 60vh;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        padding: 40px 20px;
    }

    .testimonials-slider {
        padding-top: 55px !important; /* מפנה שטח עליון לחצים */
        position: relative !important;
    }

    /* 2. מיקום החצים בחלק העליון (מתחת לכותרת המקטע ומעל הלוגו) */
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        top: 15px !important;      
        bottom: auto !important;     
        transform: none !important;
        z-index: 20 !important;      
        cursor: pointer !important;
    }

    /* 3. מיקום חץ הבא בצד שמאל */
    .testimonials-slider .swiper-button-next {
        left: 25px !important;
        right: auto !important;
    }

    /* 4. מיקום חץ הקודם בצד ימין */
    .testimonials-slider .swiper-button-prev {
        right: 25px !important;
        left: auto !important;
    }

    .testimonial-slide {
        padding-bottom: 25px !important;
        padding-top: 0 !important;
    }
    
    .testimonials-slider .swiper-button-next::after,
    .testimonials-slider .swiper-button-prev::after {
        font-size: 20px !important;
    }

    /*תמונת founder מרכוז */
    .founder-flex-wrapper {
        justify-content: center !important;
        text-align: center;
        gap: 20px !important;
    }

    /* מרכוז תיבת התמונה */
    .founder-img-container {
        margin: 0 auto !important; /* מבטיח שהתמונה תהיה ממורכזת בדיוק באמצע */
    }

}

.center-city {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.center-city h3 {
    margin: 0 0 5px 0;
    color: var(--main-orange);
}

/* --- עיצוב קרוסלת גלריה --- */
.gallery-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: hidden; /* מונע פסי גלילה מיותרים */
}

.gallery-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 60%;
    max-width: 600px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: transform 0.5s ease, opacity 0.5s ease !important;
    transform: scale(0.85);
    opacity: 0.4;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-swiper .swiper-slide-active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 2;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: var(--royal-blue) !important;
}


.swiper.testimonials-slider {
    overflow: hidden !important;
    position: relative;
    padding: 20px 0;
}

.swiper-wrapper {
    box-sizing: border-box;
}

.testimonials-slider {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
}


.testimonial-slide {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    padding: 30px 15px 40px 15px;
    max-width: 850px;
    margin: 0 auto; 
    background-color: #ffffff; 
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
    box-sizing: border-box;
}

.testimonial-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.4;
}

.testimonial-text {
    font-size: 1.02rem;
    color: #4a5568;
    line-height: 1.75;
    margin: 0;
    text-align: justify;
    direction: rtl;
    white-space: normal;
    word-break: normal;
    hyphens: auto;
}

.testimonial-author {
    font-size: 1.1rem;
    color: var(--royal-blue);
    margin: 0;
    font-weight: bold;
}

.testimonial-school-name {
    font-size: 1.15rem;
    color: var(--royal-blue, #2b6cb0);
    margin: 0;
    font-weight: bold;
}

.gallery-swiper, .testimonials-slider {
    overflow: visible !important;
    width: 100% !important;
}

#gallery, #testimonials {
    overflow: hidden !important;
}

#testimonials, .testimonials-section {
    background-color: #f1f5f9;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* התאמת צבעים לחצים של הספרייה */
.swiper-button-next, .swiper-button-prev {
    color: var(--main-orange) !important;
}

.swiper-pagination-bullet-active {
    background: var(--main-orange) !important;
}

/* --- עיצוב אזור סרטוני ההמלצות --- */
.video-testimonials-container {
    margin-top: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.testimonials-banner-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 12px;
}

.video-section-title, .carousel-section-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: bold;
}

.video-testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.video-testimonial-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 9/16; 
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    margin-bottom: 15px;
}

.single-video-player-wrapper {
    max-width: 380px;
    margin: 0 auto;
    background: #ffffff;
    padding: 15px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f5;
}

.main-video-box {
    width: 100%;
    aspect-ratio: 9/16; /* שומר על פרופורציית האורך של הטלפון באופן קבוע */
    border-radius: 16px;
    overflow: hidden;
    background: #000000;
}


.main-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    background-color: #000000;
}

.main-video-box video:-webkit-full-screen {
    object-fit: contain !important;
}

.main-video-box video:fullscreen {
    object-fit: contain !important;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.school-logo {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 12px;
    background-color: #ffffff;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    
    /* מונע מהדפדפן להוסיף שוליים שחורים פנימיים */
    background-color: transparent !important; 
    
    /* מאלץ גם את הפוסטר וגם את הוידאו הפיזי להימתח ולהתנהג בדיוק באותו האופן */
    object-fit: cover !important; 
    
    /* מיישר אותם לאותו המרכז הפיזי של התיבה */
    object-position: center center; 
    
    /* מונע מהדפדפנים להציג תצוגה מקדימה מוקטנת בשנייה הראשונה */
    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}

/* טריק CSS מיוחד שמאתר את תמונת הפוסטר ומותח אותה על כל הריבוע */
.video-wrapper video[poster] {
    object-fit: cover; /* הפוסטר ימלא את כל התיבה */
}

.video-wrapper video:active, .video-wrapper video:focus {
    object-fit: contain;
}

.video-author-name {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 5px 0 2px 0;
    font-weight: bold;
}

.video-author-sub {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.testimonials-separator {
    width: 150px;
    height: 2px;
    background: #eef2f5;
    margin: 40px auto;
}

.social-links-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* צבעי הרשתות החברתיות */
.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.youtube {
    background-color: #FF0000;
}

.social-btn i {
    font-size: 1.4rem;
}

/* --- עיצוב כפתור הוואטסאפ למחשב --- */
.whatsapp-desktop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-left: 10px;
    vertical-align: middle;
}
.whatsapp-desktop-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* ---  עיצוב כפתור הוואטסאפ הצף למובייל --- */
.whatsapp-mobile-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    left: 25px; /* צף בצד שמאל למטה כדי לא להפריע */
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}



.whatsapp-desktop-btn {
    display: none !important; /* מעלים את הכפתור מהתפריט/הקרוסלה במובייל */
}
.whatsapp-mobile-float {
    display: flex; /* מציגים את הכפתור הצף במובייל */
}

.founder-img-container img.img-tal {
    object-position: center -19%;
}

/*מדריכים*/
/* פז חטב */
.team-member-img-container img.img-paz {
    object-position: center 25%;
}

/* דוראל קובלנץ */
.team-member-img-container img.img-dorel {
    object-position: center -7%;
}

/* שירה ליאני */
.team-member-img-container img.img-shira {
    object-position: center 0%;
}

/* ליאור שהרבני */
.team-member-img-container img.img-lior-s {
    object-position: center 0%;
}

/* אורי מנדלברג */
.team-member-img-container img.img-uri {
    object-position: center 0%;
}

/* ליאור נחום */
.team-member-img-container img.img-lior-n {
    object-position: center -7%;
}

/* רן ילין */
.team-member-img-container img.img-ran {
    object-position: center 0%;
}

/* יהונתן אשואל */
.team-member-img-container img.img-yonatan {
    object-position: center 0%;
}

/* אוראל מור */
.team-member-img-container img.img-orel {
    object-position: center 0%;
}

.team-member-img-container img.img-einat {
    height: 160%;
    width: 160%;
    max-width: none; /* מונע הגבלות רוחב של 100% שקיימות לעיתים ב-CSS כללי */
    transform: translateX(30%);
    object-position: center 40%;
}

.team-member-img-container img.img-liel {
    object-position: center 40%;
}

/* קישור נגישות בפוטר */
.accessibility-link {
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

/* מודל נגישות */
.modal-accessibility {
    display: none; /* מוסתר כברירת מחדל */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-accessibility-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: right;
    direction: rtl;
}

.close-accessibility {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-accessibility:hover {
    color: #000;
}

@media (max-height: 750px), (max-width: 992px) {
    .hero-logo {
        max-width: 130px;
        margin-bottom: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-section {
        padding: 40px 20px;
    }
}

@media screen and (min-width: 769px) {
    .whatsapp-desktop-btn {
        display: inline-flex !important;
    }
    .whatsapp-mobile-float {
        display: none !important;
    }
}


@media (max-width: 480px) {
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* התאמה קלה למובייל שהקרוסלה לא תהיה רחבה מדי */
@media (max-width: 768px) {
    .testimonial-slide {
        width: 300px;
        padding: 20px;
    }
    .testimonial-text {
        font-size: 1rem;
    }
}

/* התאמה למובייל הוספת המלצות הילדים */
@media (max-width: 768px) {
    .video-testimonials-grid {
        gap: 20px;
    }
    
    .video-testimonial-card {
        width: 100%; /* במובייל הסרטון ייפרס לרוחב המלא הזמין */
        max-width: 340px;
    }
    
    .video-section-title, .carousel-section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .testimonial-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media(max-width: 768px) {
    .placeholder-grid {
        flex-direction: column;
        align-items: center;
    }
    .content-section h2 {
        font-size: 2rem;
    }
    .logo-container {
        justify-content: center;
    }

}

/* --- ברירת מחדל (מובייל ומסכים קטנים): השורה החדשה מוסתרת לחלוטין --- */
.desktop-nav {
    display: none;
}

header {
    width: 100% !important;
    background-color: #ffffff !important; 
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.logo-container img, .header-flex img, #logo img {
    max-height: 80px !important; 
    width: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* ==========================================================================
   Screen Alignment Configuration for Desktop (Above 992px)
   ========================================================================== */
@media screen and (min-width: 1301px) {
    
    header, .header-container, .header-flex, nav, .logo-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
    }
    
    
    /* 2. הגבלת רוחב ומרכוז התוכן הפנימי של ה-Header ל-1200px (מונע מהלוגו והתפריט לברוח לקצוות) */
    header > * {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    /* 3. שמירה על הלוגו גדול וברור */
    .logo-container img, .header-flex img, #logo img {
        max-height: 80px !important; /* נותן לו מרחב להיות גדול וקריא */
        width: auto !important;
        display: block !important;
        margin: 0 !important;
    }
    
    /* 4. העלמת כפתור ההמבורגר במחשב */
    .menu-toggle {
        display: none !important;
    }
    
    /* 5. ניטרול כל הגדרות המיקום של המובייל מהתפריט הראשי */
    #mainNav {
        display: flex !important;
        align-items: center !important;
        position: static !important;      /* מבטל היצמדות לתחתית או צדדים */
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        margin-right: 30px !important;
        margin-left: auto !important;
    }
    
    /* 6. פריסת המילים בשורה אופקית מיושרת לאמצע */
    #mainNav ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;   /* ממרכז את המילים אנכית */
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 22px !important;             /* רווח נקי בין הקישורים */
    }
    
    #mainNav ul li {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 7. עיצוב הגופן של המילים */
    #mainNav ul li a {
        display: inline-block !important;
        text-decoration: none !important;
        color: #333333 !important;
        font-weight: bold !important;
        font-size: 15px !important;
        white-space: nowrap !important;
        transition: color 0.2s ease !important;
    }
    
    #mainNav ul li a:hover {
        color: var(--royal-blue, #0056b3) !important;
    }
    
    /* 8. מרכוז אנכי ה"צור קשר" */
    .nav-btn, [href="#contact"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .feature-card p {
        text-align: justify !important;
        text-justify: inter-word !important;
        text-align-last: center;
    }

    .modal-content p {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    .bio-founder p {
        text-align: justify !important;
        text-justify: inter-word !important;
    }

    .center-city p {
        text-align: justify !important;
        text-justify: inter-word !important;
    }
}

/* ==========================================================================
   📱 הגדרת פתיחה למובייל (למסכים קטנים מ-1300 פיקסלים)
   ========================================================================== */

@media screen and (max-width: 1300px) {
    
    #mainNav.nav-active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .whatsapp-desktop-btn {
        display: none !important;
    }
    .whatsapp-mobile-float {
        display: flex !important; /* מציג את הכפתור הצף בפינה */
        z-index: 999; /* מנמיכים אותו מעט כדי שלא יצוף מעל תפריט הצד של הניווט */
    }

}