body {
    font-family: 'Heebo', sans-serif;
    background-color: #f9f6f3;
    color: #2d1f18;
    margin: 0;
    padding-top: 50px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}


.back-btn {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    color: #fff;
    background-color: #a06c50;
    padding: 10px 20px;
    border-radius: 10px;
}

/* Lecturers */
.lecturers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
}

/* ------------------------------------------ */
/* --- GOLD & BLACK SNAKE BORDER EFFECT --- */
/* ------------------------------------------ */

/* יצירת מאפיין מותאם אישית לאנימציה */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.lecturer-card {
    max-width: 270px;
    max-height: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* מוחק את הבורדר הישן */
    border: none;
    border-radius: 18px;
    padding: 4px; /* משמש כעובי הבורדר הזוהר */
    transition: 0.3s ease-in-out;
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* הרקע המסתובב (הנחש) - זהב ושחור */
.lecturer-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    /* שימוש ב-conic-gradient ליצירת אפקט נחש/בורדר מסתובב */
    background: conic-gradient(transparent, transparent, transparent, #000000, #FFD700, #000000, transparent);
    animation: rotate 4s linear infinite;
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0.8; 
    transition: opacity 0.3s ease-in-out;
}

/* הרקע הפנימי - לבן, כדי ליצור את אפקט הבורדר הממוסך */
.lecturer-card::after {
    content: '';
    position: absolute;
    inset: 3px; /* עובי המסגרת הפנימית */
    background: #f9f6f3; /* הרקע הפנימי נשאר לבן */
    border-radius: 16px;
    z-index: -1;
}

/* אנימציה סיבובית */
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* ------------------------------------------ */


.lecturer-card img {
    width: 100%;
    /* height: 350px; */
    height: 100%;
    object-fit: cover;
    border-radius: 60% / 55%;
    margin-bottom: 12px;
    transition: 0.25s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lecturer-info {
    /* הופך לשקוף כדי שהרקע הלבן יגיע מה-::after שמתחתיו */
    background: transparent;
    border: none; /* הסרת בורדרים מנוגדים */
    padding: 15px 10px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2; /* כדי להיות מעל ה-::before וה-::after */
}

.lecturer-card:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.lecturer-card:hover .lecturer-info {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.lecturer-info h3 {
    min-height: 45px;
    margin: 5px 0 8px;
    font-size: 1.3rem;
}

.lecturer-info .phone,
.lecturer-info .Shiur,
.lecturer-info .bio {
    margin-bottom: 5px;
    font-size: clamp(12px, 1.4vw, 16px);
    line-height: 1.4;
    word-break: break-word;
}

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #aaa, transparent);
    margin: 40px 0;
    border: none;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.nav-btn {
    background: #111;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #333;
}

.map-preview {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 0;
    border-radius: 15px;
}
/* --- Navigation & Footer Styling --- */
.navigation-links {
    /* ריכוז מלא של הכותרות, הטקסט והמפה */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}

.navigation-links h2 {
    margin-bottom: 10px;
}

.navigation-links p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    /* color: #555; */
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px 24px;
    border-radius: 50px; /* כפתורים עגולים יותר */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* צבעים ספציפיים לאפליקציות */
.waze-btn {
    background: #33ccff; /* צבע תכלת של וויז */
    color: #fff;
}
.waze-btn:hover {
    background: #00aadd;
    transform: translateY(-2px);
}

.moovit-btn {
    background: #ff6600; /* צבע כתום של מוביט */
}
.moovit-btn:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.map-preview {
    width: 100%;
    max-width: 800px; /* הגדלה קלה של המפה לרוחב */
    height: 400px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
/* Mobile */
@media (max-width: 768px) {
    .lecturers {
        grid-template-columns: repeat(2, 1fr); /* נשאר 2 בשורה כפי שביקשת */
        gap: 20px;
    }

    .lecturer-card img {
        height: 200px;
        border-radius: 50% / 50%;
    }

    /* משמר את ה-box-shadow במובייל ומבטיח שהאפקט נראה תקין */
    .lecturer-card {
        box-shadow: 0 4px 14px rgba(0,0,0,0.08);
        background: transparent; /* הרקע הלבן מגיע מה-::after */
        max-height: none;
    }
}

/* Desktop & Large Screens */
@media (min-width: 769px) {

    .lecturer-card {
        flex-direction: row;
        max-width: none; /* מחיקת ההגבלה של 270px */
    }

    .lecturer-card img {
        width: 42%;
    }

    .lecturer-info {
        justify-content: space-around;
    }

}
