html, body {
    overflow-x: hidden; /* מונע מהמסך לזוז ימינה-שמאלה */
    max-width: 100%;
    width: 100%;
}

:root {
    --primary-blue: #87CEEB;
    --light-blue: #E1F5FE;
    --dark-text: #333333;
    --orange-btn: #FFA500;
    --orange-hover: #FF8C00;
    --bg-color: #F8F9FA;
    --chat-user-bg: #E8F5E9;
    --chat-bot-bg: #FFFFFF;
    --item-bg: #B3E5FC;
}

* {
    box-sizing: border-box;
    font-family: Rubik, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

/* החליפי את הבלוק של body בקוד הזה */
body {
    background-color: var(--bg-color);
    color: #4a4949;
    line-height: 1.6;
    direction: rtl;
    padding-top: 110px; /* ריווח עליון בגובה ההדר כדי שהתוכן לא יוסתר תחתיו */
}

/* החליפי את הבלוק של header.sticky-header בקוד הזה */
header.sticky-header {
    position: fixed; /* שונה מ-sticky ל-fixed */
    top: 0;
    left: 0;
    width: 100%; /* הגדרת חובה במצב fixed כדי שההדר יתפרס על כל רוחב המסך */
    background-color: #ffffff;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--bs-black-rgb);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}


.site-logo {
    height: 80px;
    width: auto;
    display: block;
}

#pro-logo {
    margin-right: auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    margin-bottom: 80px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10; /* מוודא שהסקשן יסתיר את הפסים שעוברים מאחוריו */
}

.chat-section {
    position: relative;
    max-width: 1200px;
    margin: -40px auto 60px auto; /* המינוס 40 מושך את הצ'אט למעלה אל מעל הסרטון */
    padding: 40px;
    z-index: 10;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}


.chat-header-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    background: #042953;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    color: #ffffff;
}

.chat-wrapper {
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
}

.chat-window {
    height: 480px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.message {
    max-width: 75%;
    padding: 15px;
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    font-size: 1.05em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
    background-color: var(--chat-bot-bg);
    border: 1px solid #e0e0e0;
    border-top-right-radius: 0;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bot-avatar {
    width: 45px;
    height: 45px;
    background-color: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--primary-blue);
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-message {
    align-self: flex-end;
    background-color: var(--chat-user-bg);
    border-top-left-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.chat-option-btn {
    background: var(--light-blue);
    border: 1px solid var(--primary-blue);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1em;
    font-weight: 500;
    text-align: right;
}

.chat-option-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.chat-option-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
}


.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.course-btn {
    background-color: var(--item-bg);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    line-height: 1.4;
}

.course-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: var(--light-blue);
    padding: 40px;
    border-radius: 15px;
    flex-direction: column;
}

.form-area {
    flex: 2;
    min-width: 0;
    width: 100%;
}

.form-area h2 {
    margin-bottom: 25px;
    color: black;
    font-size: 1.8em;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contact-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1.1em;
    outline: none;
    transition: border-color 0.2s;
}

#contact-form input:focus {
    border-color: var(--primary-blue);
}

.submit-btn {
    background-color: var(--orange-btn);
    color: black;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--orange-hover);
}

.info-area {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: white;
    padding: 29px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-area h2 {
    margin-bottom: 25px;
    font-size: 1.4em;
    color: var(--dark-text);
    text-align: center;
    width: 100%;
}

.contact-details-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-detail {
    font-size: 1.3em;
    font-weight: bold;
    color: black;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    direction: rtl;
}

@media (max-width: 768px) {
    .message {
        max-width: 90%;
    }

    .contact-container {
        flex-direction: column;
    }

    .info-area {
        align-items: center;
        text-align: center;
    }

    .contact-detail {
        justify-content: center;
    }

    #final-submit-btn {
        width: 100%;
    }

    .footer-container,
    #contact-section .contact-container,
    .contact-details-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px;
    }

    .chat-section {
        margin-top: -20px !important;
        padding: 20px !important;
    }

    .site-logo {
        height: 55px !important;
    }

    .left-header-items {
        gap: 10px !important;
    }

    #lang-toggle-btn {
        flex-shrink: 0 !important;
    }

    #contact-section {
        padding: 30px 15px !important;
    }

    .site-footer {
        padding: 30px 15px 15px !important;
        margin-top: 0 !important;
    }

    img, video, input, button, .final-action-btn {
        max-width: 100% !important;
    }

    .footer-logos {
        justify-content: center;
        margin-bottom: 10px;
    }

    html[dir="ltr"] .footer-container {
        text-align: center;
    }

    #contact-form input {
        width: 100% !important;
    }

    .input-wrapper {
        width: 100%;
    }

    .info-area {
        padding: 20px !important;
    }

    .contact-detail {
        font-size: 1rem;
        word-break: break-word;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #e1f5fe;
    border-radius: 20px;
    width: min(95vw, 1300px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.small-modal {
    max-width: 550px;
    background-color: white;
    text-align: center;
    padding: 45px 15px 45PX 15PX
}

.close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 9999;

    width: 44px;
    height: 44px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    color: var(--dark-text);

    font-size: 3.5em;
    line-height: 1;

    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--orange-hover);
}

.modal-header-custom {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-header-custom p {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--dark-text);
    margin: 0;
}

.reopen-btn {
    background-color: #ffffff;
    color: #003B70;
    border: 1.5px solid #003B70;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.reopen-btn:hover {
    background-color:  #003B70;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-details-text {
    font-size: 1.2em;
    line-height: 1.6;
    text-align: center;
    color: var(--dark-text);
}

#submit-success-msg {
    color: #28a745;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
    animation: fadeIn 0.4s ease-in-out;
}

/* --- עיצוב טבלת תוצאות לפי קטגוריות (עמודות) --- */
.results-grid {
    display: block; /* אנחנו משנים את הקונטיינר הראשי כדי שהגריד הפנימי יעבוד */
}

.categories-grid-container {
    display: grid;

    /* עד 4 עמודות, כל עמודה מינימום 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 280px));

    gap: 25px;
    width: 100%;

    /* ממקם את כל העמודות באמצע כשיש פחות מ-3/4 */
    justify-content: center;

    /* מוודא שהעמודות מתחילות מלמעלה */
    align-items: start;
}

@media (min-width: 1240px) {
    .categories-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: calc((280px * 4) + (25px * 3));
        margin-inline: auto;
    }
}

.category-column {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid var(--light-blue);
}

.category-header {
    font-size: 1.3em;
    font-weight: bold;
    color: #003B70;
    border-bottom: 2px solid #003B70;
    text-align: center;
    padding-bottom: 10px;
    margin: 0;
    pointer-events: none; /* מוודא שהכותרת לא תיראה או תתנהג כמו משהו לחיץ */
}

.course-btn {
    width: 100%;
    background-color: #ffffff;
    color: #003B70;
    border: 1.5px solid #003B70;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.course-btn:hover,
.course-btn:active {
    background-color: #003B70;
    color: #ffffff;
    border-color: #003B70;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- עיצוב מיוחד לכפתור התוצאות הסופי --- */
.final-action-btn {
    background: var(--orange-btn); /* שימוש בצבע הכתום הבולט */
    color: #242424;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.final-action-btn:hover, .final-action-btn:active {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ביטול מצב ה-disabled כדי שיישאר פעיל תמיד */
.final-action-btn:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    background: var(--orange-btn) !important;
    color: black !important;
}

.left-header-items {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    direction: rtl !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="ltr"] .left-header-items,
html[dir="rtl"] .left-header-items {
    margin-right: auto !important;
    margin-left: 0 !important;
    direction: rtl !important;
}

/* --- עיצוב כפתור השפה --- */
#lang-toggle-btn {
    background: transparent; /* מסיר את רקע הכפתור */
    border: none; /* מסיר את המסגרת המכוערת הדיפולטיבית */
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease; /* אנימציה חלקה בריחוף */
}

#lang-toggle-btn:hover {
    transform: scale(1.1); /* מגדיל קצת את האייקון כשמרחפים עליו */
}

/* מאפסים את ה- margin הקודם של הלוגו, כי עכשיו הקופסה העוטפת מטפלת בזה */
#pro-logo {
    margin-right: 0;
}

#course-modal .close-btn {
    top: 18px;
    left: 18px;
    right: auto;
    font-size: 2.5em;
    color: var(--dark-text);
}
.modal-content {
    padding-top: 55px;
}

.small-modal {
    padding-top: 55px !important;
}


#course-modal .close-btn:hover {
    color: var(--orange-hover);

}

#course-modal .small-modal h3 {
    padding-top: 25px;
}

/* =========================================
   התאמות לממשק האנגלית (שמאל לימין - LTR)
   ========================================= */

/* קביעת כיוון כללי משמאל לימין עבור כל הדף באנגלית */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

/* --- התאמות הצ'אט (הודעות איזי משמאל והמשתמש מימין) --- */
html[dir="ltr"] .bot-message {
    border-top-left-radius: 0;
    border-top-right-radius: 15px;
}

html[dir="ltr"] .user-message {
    border-top-right-radius: 0;
    border-top-left-radius: 15px;
}

/* יישור טקסט שמאלה בתוך כפתורי התשובות */
html[dir="ltr"] .chat-option-btn {
    text-align: left;
}

/* תיבת הקלדה - יישור טקסט שמאלה */
html[dir="ltr"] .chat-input-area input {
    text-align: left;
}

/* --- התאמות מיקומים נוספות באתר --- */


/* יישור טקסט שמאלה באזורי הטפסים ויצירת הקשר */
html[dir="ltr"] .info-area,
html[dir="ltr"] .form-area {
    text-align: left;
}

/* יישור אייקונים וטקסט בפרטי הקשר למטה */
html[dir="ltr"] .contact-detail {
    direction: ltr;
}

/* העברת כפתור ה-X בפופ-אפ לצד ימין */
html[dir="ltr"] .close-btn {
    left: auto;
    right: 20px;
}

html[dir="ltr"] #course-modal .close-btn {
    left: auto !important;
    right: 15px !important;
}

/* =========================================
   התאמות לממשק העברית (ימין לשמאל - RTL)
   ========================================= */

/* קביעת כיווניות כללית מבלי לשבור יישורי פלקס */
html[dir="rtl"] body {
    direction: rtl !important;
}

html[dir="ltr"] header.sticky-header {
    flex-direction: row-reverse;
}

/* ==================
   חריגים: אלמנטים שחייבים להישאר ממורכזים בעברית
   ================== */

/* 1. כותרות העמודות (הקטגוריות) */
html[dir="rtl"] .category-header {
    text-align: center !important;
}

/* 3. כותרת החלק של יצירת קשר ("תוכלו לפנות אלינו") */
html[dir="rtl"] .info-area h2 {
    text-align: center !important;
}

/* 4. הודעת השגיאה במידה ואין תוצאות בצ'אט */
html[dir="rtl"] .results-grid > p {
    text-align: center !important;
}

/* ==================
   טפסים וכפתורים
   ================== */

/* טיפול ספציפי בתיבות קלט (Inputs) */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="email"] {
    text-align: right !important;
    direction: rtl !important;
}

/* טיפול באזור הטפסים עצמו (יישור לימין) */
html[dir="rtl"] .form-area h2 {
    text-align: right !important;
}

/* שמירה על כיוון הפוך רק למספר הטלפון והמייל כדי שלא יתהפכו המספרים והאותיות */
html[dir="rtl"] .contact-detail {
    direction: ltr !important;
    justify-content: flex-end !important; /* דוחף אותם ימינה בתוך הקונטיינר שלהם */
}

/* ==================
   התאמות הצ'אט
   ================== */

/* כפתורי הצ'אט - יישור טקסט פנימי ימינה */
html[dir="rtl"] .chat-option-btn {
    text-align: right !important;
    direction: rtl !important;
}

/* בועות הצ'אט - סידור הפינות המעוגלות */
html[dir="rtl"] .bot-message {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 15px !important;
}

html[dir="rtl"] .user-message {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 15px !important;
}

/*עיצוב פסים*/

.side-lines {
    position: fixed;
    top: 0;
    right: max(20px, calc((100vw - 1200px) / 2 + 60px));    height: 100vh;
    display: flex;
    gap: 5px;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.05));
}

.side-lines span {
    width: 10px;
    height: 0;
    border-radius:50px;
    opacity: 0;
    transition: height 3s ease-in-out,
    opacity 1.5s ease-in-out;
    box-shadow: 0 0 8px rgba(122,195,221,0.25);

}

.side-lines.is-visible span {
    height: 100vh;
    opacity: 0.85;
}

.side-lines span:nth-child(1) {
    background: #7AC3DD;
    transition-delay: 0.05s;
}

.side-lines span:nth-child(2) {
    background: #CBE0F0;
    transition-delay: 0.18s;
}

.side-lines span:nth-child(3) {
    background: #F07D00;
    transition-delay: 0.31s;
}

.side-lines span:nth-child(4) {
    background: #FFA503;
    transition-delay: 0.44s;
}

main {
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .side-lines {
        right: 10px;
        gap: 3px;
    }

    .side-lines span {
        width: 4px;
    }
}

/* --- עיצוב אזור צור קשר (מתיחת התכלת לכל הרוחב) --- */
#contact-section {
    background-color: var(--light-blue) !important; /* רקע תכלת */
    border-radius: 0 !important; /* ביטול הפינות המעוגלות הכלליות */
    box-shadow: none !important; /* ביטול ההצללה הכללית */
    padding: 60px 20px !important; /* מרווחים נשימה מלמעלה ולמטה */

    /* מתיחה לרוחב 100% מהמסך */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* איפוס הקונטיינר הפנימי שיהיה רק "עוטף" ממורכז */
#contact-section .contact-container {
    background-color: transparent !important;
    padding: 0 !important;
    max-width: 900px; /* הצרת אזור הטופס למראה אלגנטי וממורכז */
    margin: 0 auto;
    gap: 30px;
}

/* יישור כותרת הטופס לאמצע (כמו בתמונה) */
#contact-section .form-area h2 {
    text-align: center !important;
    margin-bottom: 30px;
}

/* עיצוב שדות ההקלדה (רקע לבן, פינות מעוגלות בעדינות) */
#contact-form input {
    background-color: #ffffff;
    border: 1px solid #cbe0f0;
    border-radius: 8px;
    padding: 15px;
}

#final-submit-btn {
    width: min(100%, 354px);
    margin: 11px auto 0 auto !important;
    display: block !important;
    border-radius: 20px !important;
}

/* הפיכת אזור המייל והטלפון לקופסה לבנה נפרדת למטה */
.info-area {
    background-color: #ffffff !important;
    width: 100%;
    margin-top: 10px;
    border-radius: 12px !important;
    padding: 29px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

#contact-form input {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    padding: 15px 53px 15px 15px;
    font-size: 1.05em;
    color: #333333;
}

.input-icon {
    position: absolute;
    top: 50%; /* ממקם אותה אנכית בדיוק באמצע */
    transform: translateY(-50%); /* תיקון קטן כדי שהאמצע יהיה מושלם */
    right: 15px; /* מזיז אותה 15 פיקסלים מצד ימין */
    width: 24px; /* מגדיר את גודל האייקון - שחקי עם זה אם הוא קטן/גדול מדי */
    height: auto; /* שומר על הפרופורציות של התמונה */
    pointer-events: none; /* חשוב מאוד! מאפשר ללחוץ "דרך" התמונה כדי שהשדה יסומן */
}

#role {
    height: 35px;
    width: 35px;
}


/* =========================================
  עיצוב הפוטר
  ========================================= */
.site-footer {
    background-color: var(--light-blue); /* שימוש בצבע התכלת הרך של המותג */
    color: var(--dark-text);
    padding: 50px 20px 20px;
    border-top: 4px solid var(--primary-blue);
    direction: rtl;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logos {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    height: 60px; /* שומר על גובה אחיד לכל הלוגואים כדי שייראו מסודרים */
}

.footer-logo {
    max-height: 100%;
    max-width: 180px;
    object-fit: contain;
}

.footer-section h3 {
    color: black;
    font-size: 1.15em;
    margin-bottom: 5px;
    margin-top: 15px;
    font-weight: bold;
}

.footer-section p {
    line-height: 1.5;
    font-size: 1.05em;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.footer-section a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--orange-hover);
    border-bottom: 1px solid var(--orange-hover);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #cbe0f0; /* פס הפרדה עדין */
    font-size: 0.95em;
    font-weight: 500;
}


/* התאמה לאנגלית (אם יש מעבר שפות LTR) */
html[dir="ltr"] .site-footer {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .footer-container {
    text-align: left;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* שומר על פרופורציה של סרטון רחב */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*נגישות*/

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.close-btn:focus {
    outline: none;
}

.close-btn:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
    border-radius: 50%;
    box-shadow: none;
    background-color: transparent;
}

.a11y-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10050;
}

.a11y-toggle-btn {
    background-color: var(--primary-blue, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.a11y-toggle-btn:hover {
    transform: scale(1.1);
}

.a11y-toggle-btn:focus {
    outline: 3px solid #ffcc00;
}

.a11y-menu {
    position: absolute;
    bottom: 70px; /* התפריט נפתח כלפי מעלה כדי לא לחרוג מגבולות המסך */
    top: auto;
    left: 0;
    background-color: white;
    border: 2px solid #0056b3;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10051;

}

.a11y-menu h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.a11y-menu button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-weight: bold;
}

.a11y-menu button:hover, .a11y-menu button:focus {
    background-color: #e2e6ea;
    outline: 2px solid #0056b3;
}

/* הגדרות ניגודיות גבוהה מרוככות וקריאות יותר */
body.high-contrast {
    background-color: #121212 !important;
}

body.high-contrast * {
    background-color: #121212 !important;
    color: #ffffff !important;
    border-color: #555555 !important;
}

body.high-contrast button,
body.high-contrast a,
body.high-contrast input {
    background-color: #000000 !important;
    color: #ffcc00 !important; /* אלמנטים לחיצים בצבע צהוב בולט */
    border-color: #ffcc00 !important;
}

body.high-contrast img,
body.high-contrast iframe,
body.high-contrast svg {
    background-color: transparent !important;
    filter: contrast(120%);
}

/* מובייל צר - תיקון לוגואים, צ'אט וטבלת הכשרות */
@media (max-width: 480px) {

    body {
        padding-top: 95px;
    }

    header.sticky-header {
        padding: 8px 6px !important;
        gap: 6px;
        justify-content: space-between;
        overflow: hidden;
    }

    .site-logo {
        height: 42px !important;
        max-width: 32vw;
        object-fit: contain;
    }

    .left-header-items {
        gap: 6px !important;
        flex-shrink: 1;
    }

    #lang-toggle-btn img,
    #lang-toggle-btn svg {
        width: 32px !important;
        height: 32px !important;
    }

    main {
        padding: 10px;
    }

    .chat-section {
        margin-top: 0 !important;
        padding: 12px !important;
    }

    .chat-wrapper {
        border-radius: 14px;
    }

    .chat-window {
        height: 360px;
        padding: 12px;
        gap: 10px;
    }

    .message {
        max-width: 86%;
        padding: 10px;
        font-size: 0.95em;
        line-height: 1.45;
    }

    .bot-avatar {
        width: 36px;
        height: 36px;
    }

    .chat-option-btn {
        font-size: 0.95em;
        padding: 10px;
    }

    .modal-content {
        width: 92%;
        padding: 16px;
        border-radius: 18px;
    }

    .small-modal {
        padding: 28px 12px !important;
    }

    .course-details-text {
        font-size: 1em;
        line-height: 1.5;
    }

    .categories-grid-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-column {
        padding: 14px;
    }

    .category-header {
        font-size: 1.1em;
    }

    .course-btn {
        min-height: auto;
        padding: 12px;
        font-size: 0.95em;
    }
}

.custom-unmute-btn {
    position: absolute;
    z-index: 50;

    /* נשאר בתוך הסרטון בצורה רספונסיבית */
    bottom: clamp(10px, 4vw, 45px);
    right: clamp(10px, 3vw, 25px);

    background-color: var(--orange-btn);
    color: #242424;
    border: none;

    padding: clamp(8px, 2vw, 12px) clamp(14px, 4vw, 24px);
    border-radius: 30px;

    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
    font-weight: bold;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 2vw, 10px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    direction: rtl;

    max-width: calc(100% - 20px);
    white-space: nowrap;
}

.custom-unmute-btn:hover {
    background-color: var(--orange-hover);
    transform: scale(1.05);
}

.custom-unmute-btn .btn-icon {
    font-size: 1.2em;
}

@media (max-width: 480px) {
    .custom-unmute-btn {
        padding: 5px 9px;
        font-size: 0.72rem;
        min-height: 28px;
        gap: 4px;
    }

    .custom-unmute-btn .btn-icon {
        font-size: 0.9em;
    }
}

html[dir="ltr"] .custom-unmute-btn {
    direction: ltr;
}

