@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Hebrew:wght@100;200;300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
body {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f5f5f5 !important;
    color: #222;
}
h1 {
    text-align: center;
    font-size: 2.7em;
    font-weight: 900;
    margin: 40px 20px 20px;
    color: #000;
    line-height: 1;
}
.intro {
    text-align: center;
    margin-bottom: 30px;
    color: #444;
    font-size: 1.1em;
    line-height: 1.3;
}
p {
    font-size: 1.1em;
    line-height: 1.3;
    color: #000;
    margin: 10px 0 0;
}
h2 {
    font-size: 2.3em;
    font-weight: 900;
    color: #000;
    line-height: 1.3;
    margin: 15px 0 0;
}
h3 {
    font-size: 2.1em;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin: 15px 0 0;
}
h4 {
    font-size: 2em;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    margin: 15px 0 0;
}
h5 {
    font-size: 1.4em;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin: 15px 0 0;
}
.cat_content li {
    font-size: 1.1em;
    line-height: 1.3;
    color: #000;
    margin: 0;
    list-style-type: circle;

}
ul {
    margin-block-start: 7px;
    padding-inline-start: 25px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.footer-text {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    margin: 0px;
}
.footer-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.85em;
}
.footer-link:hover {
    color: #eee;
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.main-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-menu li {
    margin: 0;
    padding: 0;
}
.main-menu li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
    padding: 27px 10px;
    display: block;
    font-size: 1.1em;
}
.main-menu li a:hover {
    color: #007bff;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-toggle i {
    font-size: 0.6em;
    transition: transform 0.3s ease;
    color: #fff;
    margin-top: 3px;
}

.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
    color: #fff;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
    list-style: none;
    backdrop-filter: blur(10px);
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 6px 15px;
    color: #222;
    text-decoration: none;
    font-size: 1em;
    font-weight: 300;
    transition: all 0.2s ease;
    border-radius: 0px;
    margin: 0px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dropdown-menu li a:hover {
    background: #c12a1a;
    color: #fff;
    transform: translateX(0px);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    margin-right: 16px;
}
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0px;
    margin-top: 48px;
    font-size: 1.1em;
    font-weight: 100;
}

@media (max-width: 768px) {
    .nav-flex { 
        flex-direction: row; 
        height: 35px; 
        position: relative;
    }
    
    .main-menu {
        flex-direction: column;
        display: none;
        width: 100%;
        background: #555;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;
        border: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        padding: 0;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
        gap: 0;
    }
    .main-menu .dropdown-menu {
        background: #555;
    }

    .main-menu.open { 
        display: flex; 
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { 
            opacity: 0; 
            transform: translateY(-10px); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0); 
        }
    }
    
    .logo img {
        padding-top: 5px!important;
        padding-right: 10px;
        max-height: 35px!important;
    }
    
    .menu-toggle { 
        display: block; 
        color: #fff; 
        margin-top: 0px;
        background: none;
        border: none;
        font-size: 1.3em;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 10px;
        transition: background 0.2s;
        margin-left: 5px;
    }
    
    .menu-toggle:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Mobile menu items */
    .main-menu > li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-menu > li:last-child {
        border-bottom: none;
    }
    
    .main-menu > li > a {
        color: #fff !important;
        padding: 10px 20px;
        font-size: 1em;
        font-weight: 500;
        transition: all 0.2s;
        border-radius: 0;
    }
    
    .main-menu > li > a:hover {
        background: none;
        color: #fff !important;
    }
    
    /* Mobile dropdown styles */
    .dropdown-toggle {
        justify-content: space-between;
        align-items: center;
        color: #fff !important;
        padding: 8px 20px;
        font-size: 1.1em;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        border-radius: 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        pointer-events: auto;
        position: relative;
        z-index: 10;
    }
    
    .dropdown-toggle:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown-toggle i {
        color: #fff !important;
        font-size: 0.8em;
        transition: transform 0.3s ease;
        pointer-events: none;
    }
    
    .dropdown.open .dropdown-toggle i {
        transform: rotate(180deg);
        color: #fff !important;
        transition: transform 0.3s ease;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
        margin: 0;
        padding: 0;
        min-width: auto;
        border-radius: 0;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
        animation: fadeInSubmenu 0.2s ease;
    }
    
    @keyframes fadeInSubmenu {
        from { 
            opacity: 0; 
            transform: translateY(-5px); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0); 
        }
    }
    
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu li a {
        padding: 7px 27px;
        font-size: 0.95em;
        color: rgba(255,255,255,0.9) !important;
        background: transparent;
        border-radius: 0;
        margin: 0;
        transition: all 0.2s;
        font-weight: 300;
    }
    
    .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.1);
        color: #fff !important;
        transform: none;
        box-shadow: none;
    }
    
    /* Disable hover effects on mobile */
    .dropdown:hover > .dropdown-menu {
        display: none;
    }
    
    .dropdown:hover > .dropdown-toggle i {
        transform: none;
    }
}
.hero {
    background: linear-gradient(90deg, #f8f9fa 60%, #e0e7ff 100%);
    padding: 64px 0 32px;
    text-align: center;
}
.hero h1 { font-size: 2.5em; margin-bottom: 0.5em; }
.hero p { font-size: 1.2em; color: #555; }
.category-list { list-style: none; padding: 0; }
.category-list li { margin-bottom: 1em; }
.category-list a { color: #007bff; font-size: 1.2em; text-decoration: none; }
.category-list a:hover { text-decoration: underline; }
.success { color: green; margin: 1em 0; }

/* Image handling */
.question-image { 
    max-width: 100%; 
    max-height: 200px; 
    display: block; 
    margin: 15px auto; 
    border-radius: 6px;
    object-fit: contain;
    background: #f8f9fa;
} 

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown:hover > .dropdown-toggle i {
    transform: rotate(180deg);
}

/* כדי למנוע קפיצה של התפריט במובייל, אפשר להסתיר ב-hover רק במסכים גדולים */
@media (max-width: 768px) {
    .dropdown:hover > .dropdown-menu {
        display: none;
    }
} 

.main-menu > .dropdown {
    position: relative;
    overflow: visible;
    padding-bottom: 0;
}

.main-menu > .dropdown > .dropdown-toggle {
    /* ביטול min-width ו-display:block כדי לא להרחיב את כל הכפתור */
    min-width: unset;
    display: flex;
}

.main-menu > .dropdown > .dropdown-menu {
    top: 100%;
    right: 0;
    left: auto;
    min-width: 220px;
    margin-top: 0;
    border-radius: 0px;
    pointer-events: auto;
    z-index: 1000;
    padding: 0;
    box-sizing: border-box;
    display: none;
    border: none;
    /*background: rgba(255,255,255,0.1);*/
}

.main-menu > .dropdown:hover > .dropdown-menu,
.main-menu > .dropdown:focus-within > .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

/* יצירת גשר בלתי נראה בין הכפתור לתפריט */
.main-menu > .dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 8px;
    background: transparent;
    z-index: 999;
}

@keyframes fadeInDropdown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* מבטל רווח בין הכפתור ל-dropdown */
.main-menu > .dropdown {
    padding-bottom: 0;
}

/* מגדיל שטח hover של li.dropdown כך שיכלול גם את התפריט */
.main-menu > .dropdown:hover, .main-menu > .dropdown:focus-within {
    border-radius: 0px;
}

/* --- חיפוש חכם תמרורים - עיצוב מודרני --- */
.signs-search-section {
    margin-top: 40px;
    margin-bottom: 0;
}
.signs-search-box {
    max-width: 820px;
    margin: 0 auto 12px auto;
    position: relative;
    box-shadow: 0 2px 16px #0001;
    border-radius: 30px;
    padding: 0;
}
#signs-search-input {
    width: 100%;
    padding: 12px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1.3em;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    font-family: 'Open Sans', 'IBM Plex Sans Hebrew', 'Segoe UI', Arial, sans-serif;
    transition: background 0.2s;
}
#signs-search-input:focus {
    background: #fff;
    box-shadow: 0 2px 8px #007bff22;
}
#signs-search-results {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px #007bff22, 0 1.5px 0 #e0e0e0;
    z-index: 10;
    max-height: 340px;
    overflow-y: auto;
    display: none;
    border: none;
    animation: fadeIn 0.18s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}
.sign-search-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
    text-align: right;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.sign-search-item:last-child { border-bottom: none; }
.sign-search-item:hover {
    background: #f0f6ff;
    text-decoration: none;
}
.sign-search-thumb {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 0;
    border: 0;
}
.sign-search-info {
    flex: 1;
    min-width: 0;
}
.sign-search-title {
    font-weight: 700;
    color: #007bff;
    font-size: 1.13em;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}
.sign-search-desc {
    color: #444;
    font-size: 1em;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
}
.sign-search-cat {
    color: #888;
    font-size: 0.95em;
    margin-top: 4px;
    font-weight: 500;
}

/* הסרת קו תחתון מכל הקישורים בתוצאות החיפוש */
#signs-search-results a {
    text-decoration: none;
    color: inherit;
}

#signs-search-results a:hover {
    text-decoration: none;
}

.cat_content_text {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}
/* --- גריד קטגוריות - עיצוב מודרני --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 44px 32px;
    margin: 56px 0 0 0;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 22px;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 2px 16px #007bff11;
    padding: 38px 14px 26px;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.18s;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    box-shadow: 0 12px 36px #007bff22;
    transform: translateY(-8px) scale(1.045);
    border-color: #007bff;
    z-index: 2;
}
.cat-sign-img {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 2px 8px #007bff11);
    background: #f7f8fa;
    border-radius: 16px;
}
.cat-sign-placeholder {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8em;
    color: #bbb;
    margin-bottom: 20px;
    border: 1.5px solid #e0e0e0;
}
.cat-title {
    font-size: 1.22em;
    font-weight: 800;
    color: #222;
    margin-bottom: 0.25em;
    letter-spacing: 0.01em;
}
.cat-series-number {
    font-size: 1.05em;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 0.1em;
    letter-spacing: 0.01em;
}
@media (max-width: 1100px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { min-height: 180px; padding: 22px 6px 16px; }
    .cat-sign-img, .cat-sign-placeholder { max-width: 80px; max-height: 80px;}
} 



/* לוח תמרורים עם הסברים */
.signs-category-section {
    margin-bottom: 40px;
}
.signs-category-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 18px;
    margin-top: 32px;
    background: #c12a1a;
    padding: 5px 8px 7px;
    border-radius: 0px;
    text-align: center;
}
.signs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}
.sign-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 100px;
}
.sign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #1f1ed9;
}
.sign-card-content {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    height: 100%;
}
.sign-grid-image-container {
    width: 80px;
    height: 80px;
    margin-left: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: #f8f9fa;*/
    border-radius: 0px;
    /*border: 1px solid #e9ecef;*/
}
.sign-grid-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0px;
}
.sign-grid-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 1.5em;
}
.sign-info {
    flex: 1;
    min-width: 0;
}
.sign-title-description {
    font-weight: 600;
    font-size: 0.8em;
    color: #000;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sign-number {
    font-weight: 700;
    color: #1f1ed9;
    font-size: 1em;
    margin-bottom: 3px;
}
.back-to-all {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}
.back-to-all a {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.back-to-all a:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* עמוד תמרור בודד */
.single-sign-container { 
    max-width: 780px; 
    margin: 40px auto; 
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 2px 10px #0001; 
    padding: 20px; 
}
.sign-title { 
    font-size: 2.4em; 
    font-weight: 900; 
    margin: 0 0 15px 0;
    line-height: 1.3; 
    color: #000;
    text-align: center;
}
.sign-image-container { 
    text-align: center; 
    margin: 20px 0; 
    padding: 20px;
    /*background: #f8f9fa;*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.sign-image { 
    max-width: 100%; 
    max-height: 300px; 
    object-fit: contain;
    border-radius: 0;
}
.sign-details { 
    margin: 20px 0; 
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.sign-detail-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 10px; 
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}
.sign-detail-row:last-child { 
    border-bottom: none; 
    margin-bottom: 0; 
}
.detail-label { 
    font-weight: 600; 
    color: #000; 
}
.detail-value { 
    color: #444; 
}
.sign-description { 
    margin: 20px 0; 
    padding: 20px;
    background: #e8f4fd;
    border-radius: 8px;
    border-right: 4px solid #1f1ed9;
    color: #000;
    font-weight: 500;
}
.sign-description h4 { 
    margin: 0 0 10px 0; 
    color: #1f1ed9; 
    font-size: 1.1em;
}
.sign-description p {
    font-size: 1.1em;
    line-height: 1.3;
    color: #000;
}

/* סגנונות לתוכן HTML מהמסד הנתונים */
.sign-content-html {
    padding: 0px;
}

.sign-content-html h1,
.sign-content-html h2,
.sign-content-html h3,
.sign-content-html h4,
.sign-content-html h5,
.sign-content-html h6 {
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: #000;
    line-height: 1.3;
    margin: 15px 0 10px 0;
}

.sign-content-html h1 {
    font-size: 2.7em;
    font-weight: 900;
    text-align: center;
}

.sign-content-html h2 {
    font-size: 1.9em;
    font-weight: 900;
    line-height: 1;
}

.sign-content-html h3 {
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1;
}

.sign-content-html h4 {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
}

.sign-content-html h5 {
    font-size: 1.3em;
    font-weight: 600;   
    line-height: 1;
}

.sign-content-html h6 {
    font-size: 1.2em;
    font-weight: 600;
}

.sign-content-html p {
    font-size: 1.1em;
    line-height: 1.3;
    color: #000;
    margin: 10px 0 0;
}

.sign-content-html ul {
    margin-block-start: 7px;
    padding-inline-start: 25px;
}

.sign-content-html li {
    font-size: 1.1em;
    line-height: 1.3;
    color: #000;
    margin: 0;
    list-style-type: circle;
}

.sign-content-html a {
    color: #1f1ed9;
    text-decoration: none;
    transition: color 0.2s;
}

.sign-content-html a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.sign-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.sign-content-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.sign-content-html th,
.sign-content-html td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: right;
}

.sign-content-html th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.sign-content-html blockquote {
    border-right: 4px solid #1f1ed9;
    background: #e8f4fd;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.sign-content-html code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.sign-content-html pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.sign-content-html pre code {
    background: none;
    padding: 0;
}
.navigation-buttons { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 30px; 
    gap: 15px;
}
.btn { 
    padding: 10px 24px; 
    border: none; 
    border-radius: 30px; 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 1em;
}
.btn-primary { 
    background: #1f1ed9; 
    color: white; 
}
.btn-primary:hover { 
    background: #5a6fd8; 
    transform: translateY(-2px);
}
.btn-secondary { 
    background: #000; 
    color: white; 
}
.btn-secondary:hover { 
    background: #5a6268; 
    transform: translateY(-2px);
}
.sign-not-found { 
    text-align: center; 
    color: #dc3545; 
    padding: 40px; 
    font-size: 1.1em; 
}
.related-signs {
    margin: 0;
}
.related-signs h3 { 
    margin: 0 0 20px 0;
    letter-spacing: 0.01em;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    background: #c12a1a;
    padding: 5px 8px 7px;
    border-radius: 0;
    text-align: center;
}
.related-signs-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
}
.related-sign-card {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 10px;
}
.related-sign-card:hover { 
    transform: translateY(-3px); 
}
.related-sign-image-container {
    height: 100px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 5px;
    border-radius: 0;
}
.related-sign-image { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain;
    border-radius: 0;
}
.related-sign-content { 
    padding: 12px; 
    font-size: 1.08em;
    font-weight: 600;
    color: #000;
    text-align: center;
}
.related-sign-title { 
    font-size: 0.9em; 
    font-weight: 600; 
    margin-bottom: 5px; 
    color: #333;
    line-height: 1.3;
}
.related-sign-number { 
    color: #667eea; 
    font-size: 0.8em; 
    font-weight: 500;
}
@media (max-width: 768px) {
    .navigation-buttons { 
        flex-direction: column; 
    }
    .sign-detail-row { 
        flex-direction: column; 
        gap: 5px; 
    }
    .related-signs-grid { 
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    }
    
    /* סגנונות responsive לתוכן HTML */
    .sign-content-html h1 {
        font-size: 2.3em;
        line-height: 1;
    }
    
    .sign-content-html h2 {
        font-size: 1.9em;
        line-height: 1;
    }
    
    .sign-content-html h3 {
        font-size: 1.7em;   
        line-height: 1;
    }
    
    .sign-content-html h4 {
        font-size: 1.5em;      
        line-height: 1;
    }
    
    .sign-content-html h5 {
        font-size: 1.3em;
        line-height: 1;
    }
    
    .sign-content-html h6 {
        font-size: 1.1em;   
        line-height: 1;
    }
    
    .sign-content-html p {
        font-size: 1em;
    }
    
    .sign-content-html li {
        font-size: 1em;
    }
}
@media (max-width: 768px) {
    .related-signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* עמוד תמרור בודד - סוף */

@media (max-width: 1200px) {
    .signs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .signs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }   
    .sign-card-content {
        padding: 10px;
    }    
    .sign-grid-image-container {
        width: 60px;
        height: 60px;
        margin-left: 10px;
    } 
    .single-sign-container {
        margin: 0px auto;
        border-radius: 0;
        box-shadow: none;
    }
    .sign-title {
        font-size: 2.4em;
        margin: 15px 0 0;
    }    
    .sign-number {
        font-size: 1em;
    }
    .intro {
        font-size: 1em;
        line-height: 1.2;
    }
    .cat_content_text {
        padding: 14px;
    }
    h2 {
        line-height: 1;
        font-size: 1.95em;
    }
    h3 {
        font-size: 1.75em;
        line-height: 1.1;
    }
    h4 {
        font-size: 1.65em;
        line-height: 1;
    }
    h5 {
        line-height: 1;
    }
    #signs-search-input {
        font-size: 1.2em;
    }
}

/* לוח תמרורים עם הסברים -סוף */

