/* עיצוב הקטגוריות */ 
.category-container {
    margin-left: auto;
    margin-right: auto;
}

.category-title {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    direction: rtl;
}

.empty-container {
    color: #888;
    text-align: center;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

/* עיצוב המקצוענים */
.professional-container {
    border: 1px solid #ccc;
    margin: 10px auto;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* אנימציה */
    background-color: white; /* צבע רקע בהיר */
    max-width: 800px;
    position: relative; /* כדי למקם כפתורים בפינות */
}

.professional-container h4 {
    margin: 10px 0;
    font-size: 1.15em; 
  /*  color: #333; */
}

.professional-container:hover {
    transform: scale(1.02); /* הגדלה קלה */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* הצללה בולטת יותר */
}

.professional-name {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.professional-work-area,
.professional-comments {
    margin: 0;
}

.professional-container.special:hover {
    cursor: pointer; /* שינוי תצוגת העכבר */
}

.professional-container.expanded {
    margin-bottom: 30px; /* מרווח תחתון גדול יותר כאשר הקונטיינר מתרחב */
    margin-top: 30px; /* מרווח עליון גדול יותר כאשר הקונטיינר מתרחב */
    transition: margin-bottom 0.3s ease, margin-top 0.3s ease; /* אנימציה עדינה */
}

/* עיצוב ה-grid של התמונות */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* התאמה אוטומטית לגודל */
    gap: 10px; /* רווח בין התמונות */
    margin-top: 10px; /* מרחק מהתוכן הקיים */
}

.image-grid img {
    width: 100%;
    height: auto; /* התאמה פרופורציונלית */
    border-radius: 5px; /* פינות מעוגלות */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* הצללה */
    transition: transform 0.2s ease-in-out; /* אנימציה */
}

.image-grid img:hover {
    transform: scale(1.05); /* הגדלה קלה */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* הצללה חזקה יותר */
}

/* עיצוב אלמנטי המדיה (תמונות ווידאו) */
.media-item {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

video.media-item {
    max-height: 300px; /* גובה מרבי עבור ווידאו */
}

/* עיצוב כפתורי סגירה (X) והרחבה (+) */
.close-button,
.expand-button {
    position: absolute;
    width: 30px; /* רוחב הכפתור */
    height: 30px; /* גובה הכפתור */
    background-color: #f5f5f5; /* צבע רקע בהיר */
    border: 1px solid #ccc; /* גבול אפור */
    border-radius: 50%; /* עיגול מלא */
    font-size: 16px; /* גודל הטקסט */
    font-weight: bold; /* טקסט מודגש */
    display: flex; /* מרכז תוכן */
    align-items: center; /* יישור אנכי */
    justify-content: center; /* יישור אופקי */
    cursor: pointer; /* שינוי תצוגת העכבר */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* הצללה */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* אנימציות */
}

.close-button {
    top: 10px; /* מרחק מהחלק העליון */
    left: 10px; /* מרחק מהשמאל */
    display: none; /* מוסתר כברירת מחדל */
}

.expand-button {
    bottom: 10px; /* מרחק מהתחתית, מיושר עם contact-row */
    left: 10px; /* מרחק מהשמאל */
    display: flex; /* מוצג כברירת מחדל בקונטיינרים מיוחדים */
}

.close-button:hover,
.expand-button:hover {
    background-color: #e0e0e0; /* שינוי צבע רקע */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* הצללה חזקה יותר */
}

.professional-container.expanded .close-button {
    display: flex; /* הצג כפתור X כשהקונטיינר מורחב */
}

.professional-container.expanded .expand-button {
    display: none; /* הסתר כפתור + כשהקונטיינר מורחב */
}

/* עיצוב יצירת קשר */
.contact-container {
    display: flex;
    flex-direction: column; /* שומר על מבנה אנכי */
    gap: 5px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px; /* רווח בין האלמנטים */
    min-height: 30px; /* גובה מינימלי ליישור עם expand-button */
}

.contact-text {
    font-size: 0.9em;
}

.contact-text.extra-contact {
    margin-right: 10px; /* רווח לפני הטקסט "נוסף:" */
    font-size: 0.9em; /* פונט מעט קטן יותר */
}

.whatsapp-link img,
.instagram-link img,
.fb-link img {
    width: 30px;
    height: 30px;
}

.whatsapp-logo,
.instagram-logo,
.fb-logo {
    width: 30px;
    height: 30px;
    display: inline-block;
}

.website-link {
    font-size: 1em;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    margin-left: 10px;
    padding: 5px;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.website-link:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

/* הסתרת כפתור ההרחבה במצב נגישות suppressMedia */
.a11y-suppress-media .expand-button {
    display: none !important;
}