/* סגנונות כלליים */ 
body {
    font-family: Arial, Helvetica, sans-serif;
    direction: rtl; /* כיוון הטקסט לימין */
    text-align: right; /* יישור הטקסט לימין */
    background-color: cornsilk; /* צבע רקע בהיר */
    position: relative;
}

* {
    box-sizing: border-box;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}


h1 {
    text-align: center;
    color: #333;
    margin: 10px 0; /* או margin-top: 15px; */
}

h1 a {
    text-decoration: none; /* ללא קו תחתון */
    font-weight: bold; /* משקל גופן מודגש */
}

h1 a:hover {
    background-color: #f0f0f0; /* צבע רקע אפור בהיר בעת ריחוף */
    font-weight: bold; /* משקל גופן מודגש */
}

.container {
    width: 80%;
    margin: 40px auto 0 auto;
    padding: 20px;
    border: 1px solid royalblue;
    border-radius: 12px; /* הוספת פינות מעוגלות */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    position: relative;
    background-color: honeydew;
}

.footer-links {
    margin-top: 20px; /* מרווח עליון */
    text-align: center; /* יישור מרכזי */
}

.footer-links a, .joinLink {
    margin: 0 10px; /* מרווח ימני ושמאלי */
    color: red; /* צבע טקסט אדום */
    text-decoration: none; /* ללא קו תחתון */
}

.footer-links a:hover {
    background-color: #f0f0f0; /* צבע רקע אפור בהיר בעת ריחוף */
    font-weight: bold; /* משקל גופן מודגש */
}

.footer {
    margin-top: 10px; /* מרווח עליון */
    text-align: center; /* יישור מרכזי */
    font-size: 14px; /* גודל גופן */
    color: #666; /* צבע טקסט אפור */
}

.footer-dclr {
    margin-top: 10px; /* מרווח עליון */
    margin-left: auto; /* מרווח שמאלי אוטומטי */
    margin-right: auto; /* מרווח ימני אוטומטי */
    text-align: center; /* יישור מרכזי של הטקסט */
    font-size: 14px; /* גודל גופן */
    max-width: 90%; /* רוחב מקסימלי */
    color: #666; /* צבע טקסט אפור */
}

.footer-web-design {
    margin: 30px; /* מרווח */
    text-align: left; /* יישור מרכזי */
    font-size: 14px; /* גודל גופן */
    color: #666; /* צבע טקסט אפור */
}

.footer-web-design a {
    text-decoration: none; /* ללא קו תחתון */
}

.footer-web-design a:hover {
    background-color: #f0f0f0; /* צבע רקע אפור בהיר בעת ריחוף */
    color: red; /* צבע טקסט אדום */
}

.pros-search {
    width: 800px;
    max-width: 360px;
    display: flex;
  /*  flex-direction: column; */
    gap: 6px;
    margin: 12px auto 24px;
}

.pros-search__label {
    font-size: 0.95rem;
    color: #333333;
    text-align: center;
}

.pros-search__input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #007bff;
    border-radius: 999px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #222222;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pros-search__input:focus {
    border-color: #ff0000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.sidebar .pros-search {
    max-width: 85%;
    margin: 0;
}

.sidebar .pros-search__label {
    text-align: right;
}

.pros-cover__categories .pros-search {
    margin-top: 0;
}

.container .pros-search {
  /*  margin: 16px 0 24px; */
}

@media screen and (max-width: 767px) {
    .footer-dclr {
        font-size: 14px; /* גודל גופן קטן יותר עבור מובייל */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.45em; /* הקטנת גודל הגופן של H1 */
        margin-bottom: 5px; /* או margin-top: 15px; */
        margin-top: 0;
    }
    h2 {
        font-size: 22px; /* הקטנת גודל הגופן של H2 */
    }
    .container {
	width: 95%;
    margin: 30px auto;
    padding: 20px 10px;
    }

    /* Sidebar search: maintain reduced height on mobile */
    /* Sidebar search: slightly reduced height, font-size unchanged */
    .sidebar .pros-search__input {
        max-height: 2.2em;
        height: 2.2em;
        /* Only affects sidebar search field */
    }
    }

    .pros-search {
        max-width: 85%;
    /*    margin: 12px 0 20px; */
    }

/* Pros search results layout */
.pros-search-results {
    width: 80%;
    display: none;
    padding: 16px;
    margin: 10px auto 24px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background-color: #fffef7;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.pros-search-results__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pros-search-results__header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.pros-search-results__clear {
    margin-inline-start: auto;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #ff9800;
    background: #fff8e1;
    color: #ad4f00;
    cursor: pointer;
    font-weight: 600;
}

.pros-search-results__summary {
    margin: 0 0 12px;
    color: #5a5a5a;
    font-weight: 600;
}

.pros-search-results__list {
    display: grid;
    gap: 16px;
}

.pros-search-result__category {
    width: 90%;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a4100;
    font-weight: 600;
    font-size: 0.95rem;
}

.pros-search-result__category:hover {
    scale: 1.02;
    cursor: pointer;
}

.pros-search-result .professional-container,
.pros-search-result {
    width: 100%;
}

body.pros-search-active #TablesContainer {
    display: none;
}

body.pros-search-active .pros-search-results {
    display: block;
}

@media (max-width: 480px) 
{
    .pros-search-results {
        width: 95%;
        padding: 12px;
    }
}