
:root {
    --main-bg-color: #ECF6F8;
    --shadow-dark: #D1D9E6;
    --shadow-light: #FFFFFF;
    --text-color: #333333;
    --accent-color: #00707F;
}

body {
    margin: 0;
    padding: 0;
    font-family: Assistant, sans-serif;
    color: var(--text-color);
    flex-direction: column; /* מסדר את הפריטים בעמודה */
    align-items: center; /* ממקם אותם אופקית במרכז */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    text-align: center;
    text-shadow: none;
}

h1#mainTitle {
    font-size: 44px;
    font-family: "AlefMulti", sans-serif;
    padding: 5px;
    margin: -30px 0 0 0;
}

h2 {
    font-size: 30px;
    margin: 5px;
    font-weight:600;
}

h3 {
    font-size: 26px;
    margin: 0px 0px 44px 0px;
}

p {
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
    line-height: 1.8;
}



/* ================================================= */
/*              תפריט ניווט עליון           */
/* ================================================= */

#nav {
    display: flex;
    justify-content: space-between; /* דוחף את הלוגו והקישור לקצוות */
    align-items: center; /* ממקם אותם אנכית במרכז */
    height: 70px;
    width: 100%;
    box-sizing: border-box; /* מבטיח שהריווח לא משפיע על הגודל הכולל */

    width: 90%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 10px;
}
/* מיכל הלוגו והכותרת בגובה העיניים */
#logo {
    display: flex;
    flex-direction: column; /* מסדר את הפריטים בעמודה */
    align-items: center; /* ממקם אותם אופקית במרכז */

}

/* התאמת גודל הלוגו */
.OURlogo {
    width: 45px;
    height: auto;
    padding: 0;
}

/* עיצוב הטקסט שמתחת ללוגו */
.titleLOGO {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0;
}

/* ================================================= */
/*              יחידות הלימוד           */
/* ================================================= */

/* מכולה ראשית של יחידות הלימוד */
.container_BG {
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    border-radius: 32px;
    margin: 20px auto 40px auto;
    max-width:940px;
}

/* רקע המכולה של יחידות הלימוד */
.background-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
    .background-svg-layer svg {
        width: 100%;
        height: 100%;
        display: block;
    }
.container_BG > *:not(.background-svg-layer) {
    position: relative;
    z-index: 1;
}

/* מכולה כללית שמחזיקה את שלושת הכפתורים */
.container_button_page {
    display: grid; /* גורם לכפתורים להיות מסודרים בשורה אחת*/
    /* כל תא יהיה לפחות 210‎px (רוחב הכרטיס), ואם נשאר מקום – ימלא את השורה */
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    justify-items: center; /* ממרכז את הכרטיס בתא */
gap: 40px;
margin:0 40px;
}




/* כפתורים של יחידות הלימוד */
.btn-square {
    position: relative;
    width: 100%; /* הכרטיס ימלא את תא-הגריד */
    max-width: 210px; /* אך לא יעבור את הגודל המקורי שלך */
    height: 150px; /* הגדרת גובה קבוע */
    box-shadow: 3px 3px 5px var(--shadow-dark);
    background: linear-gradient(180deg, #E7F8FB 0%, #E7F8FB 70%, #F4FEFF 70%, #F4FEFF 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    animation: fadeInUp 0.6s ease forwards;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
    .btn-square:hover {
        transform: translateY(-3px); /* הרמה קלה כלפי מעלה */
        box-shadow: 5px 5px 10px var(--shadow-dark); /* הגברת הצל */
        background: linear-gradient(180deg, #D6F4F9 0%, #D6F4F9 70%, #E7F8FB 70%, #E7F8FB 100%); /* הכהייה קלה של הרקע */
        transition: all 0.3s ease;
        margin-top:-3px;
    }
    .btn-square:nth-child(1) {
        animation-delay: 0.1s;
    }

    .btn-square:nth-child(2) {
        animation-delay: 0.2s;
    }

    .btn-square:nth-child(3) {
        animation-delay: 0.3s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.circle-number {
    position: absolute;
    top: -15px;
    background-color: #EF4780;
    color: white;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 8px rgba(239, 71, 128, 0.3);
}
.btn-square:hover .circle-number {
    background-color: #E53E6B; /* הכהייה קלה של הרקע הוורוד */
    transform: scale(1.1); /* הגדלה קלה */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3); /* הגברת הצל */
    transition: all 0.3s ease;
}




/* הקישור תופס את כל הכפתור ומרכז את התוכן */
.btn-square .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    height: 100%;
    padding: 0;

}

/* כותרת בחלק העליון של הכפתור */
.btn-title {
    font-size: 18px;
    font-weight: 600;
  color: var(--accent-color);
  margin-top:24px;
    text-align: center;
}
.btn-square:hover .btn-title {
    color: #005a66; /* הכהייה קלה של הצבע */
    font-weight: 700; /* הדגשה */
    transition: all 0.3s ease;
}

/* מכולה לאייקון */
.icon-container {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}













.final-exam-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-bottom:0;
}

.final-exam-btn {
    width: 210px;
    height: 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    color: white;
    position: relative;
    cursor: pointer;
    border: none;
    margin: 8px;
    font-family: Assistant, sans-serif;

    background: linear-gradient(135deg, #EF4780 0%, #E53E6B 100%);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(239, 71, 128, 0.3);
}

    .final-exam-btn:hover {
        transform: translateY(-2px) scale(1.02); /* הרמה קלה כלפי מעלה */
        background: linear-gradient(135deg, #E53E6B 0%, #D12B5C 100%);
        box-shadow: 0 6px 20px rgba(239, 71, 128, 0.4);
        font-weight: 700; /* הדגשה */
        font-size: 18px; /* שמירה על גודל הטקסט */
        width: 210px; /* שמירה על הרוחב */
        height: 50px; /* שמירה על הגובה */
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }




/* קבוצה אופקית של הלוגו */
.partner-logos {
    display: flex; /* הופך לשורה אחת */
    align-items: center; /* מיישר אנכית */
    gap: 100px; /* רווח ביניהם */
    margin-inline-start: auto; /* דוחף אותם לקצה השמאלי (RTL) */
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    padding-bottom: 45px;
}

/* התאמת גדלים  */
.logo-img {
    width: auto !important;
    height: 50px;
}
.logo-img-hit {
    width: auto !important;
    height: 50px;
}





@font-face{
    font-family: "AlefMulti";          /* שם חופשי שתבחרי */
    src: url("fonts/AlefMultiGndr-Regular.woff") format("woff");
    font-weight: 400;                  /* רגיל; אם יהיה Bold תגדירי 700 */
    font-style: normal;
    font-display: swap;                /* שהטקסט יוצג מיד עם fallback */
}

.icon-img {
    width: 80px;
    margin-top: 30px;
}
.btn-square:hover .icon-img {
    transform: scale(1.05); /* הגדלה קלה */
    transition: all 0.3s ease;
}



.containerPage {
    width: 90%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 5px;
}








/* ================================================= */
/*              פופאפ אודות           */
/* ================================================= */

/* סגנון כדי שהטקסט "אודות" ייראה כמו כפתור */
#aboutPopup {
    color: #01717F;
    font-size: 18px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    background-color: transparent; /* הסרת הרקע שהיה קודם */
    padding: 0;
}

    #aboutPopup:hover {
        color: #005a66; /* שינוי צבע עדין במעבר עכבר */
    }

/* שכבת הרקע של הפופאפ */
.modal-overlay {
    visibility: hidden; /* מוסתר כברירת מחדל */
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* רקע שחור חצי-שקוף */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
    display: flex;
}

    /* הצגת הפופאפ כשפעיל */
    .modal-overlay.active {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

/* חלון התוכן של הפופאפ */
.modal-content {
    background-color: #ffffff;
    padding: 20px 45px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 550px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    
    max-height: 90vh;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* כפתור הסגירה (X) */
.close-button {
    position: absolute;
    top: 4px;
    right: 20px;
    font-size: 34px;
    font-weight: 600;
    color: var(--accent-color);
    cursor: pointer;
    transition: color 0.3s;
}

    .close-button:hover {
        color: #333;
    }

/* עיצוב התוכן בתוך הפופאפ */
.modal-content h1 {
    font-size: 20px;
     font-weight: 600;
    margin-bottom: 15px;
    margin-top: -18px;
}

.modal-content h2 {
    font-size: 24px;
    margin: 10px;
    font-weight: bold;
   
}

.modal-subtitle {
    font-size: 18px;
    margin-top:-4px;
    color: var(--text-color);
}

    .modal-section p {
        margin: 5px 0;
        font-size: 16px;
        line-height: 1.4;
    }

    .modal-section h4 {
        color: var(--text-color);
        font-size: 18px; 
        font-weight: 600;
        margin-bottom: 5px;
    }

    .modal-section a {
        color: var(--accent-color);
        text-decoration: none;
        text-decoration: underline;
    }

        .modal-section a:hover {
            font-weight: 600;
            transition: all ease 0.3s;
        }

.modal-logos {
    display: flex; /* הופך לשורה אחת */
    align-items: center; /* מיישר אנכית */
    gap: 80px; /* רווח ביניהם */
    margin-inline-start: auto; /* דוחף אותם לקצה השמאלי (RTL) */
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}


#LogoAtEyeLevel{
    height: 70px;
}


/* התאמת גדלים  */
.logo-img-about {
    width: auto !important;
    height: 40px;
}

.logo-img-hit-about {
    width: auto !important;
    height: 34px;
}
.modal-sections-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

    .modal-sections-row .modal-section {
        flex: 1 1 45%;
        box-sizing: border-box;
    }

    /* ===================== סוף סגנון הפופאפ ===================== */

.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw; /* או 100% אם אין מגבלת max-width בהורה */
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    direction: rtl;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}