.maarehot-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* חובה כדי שרוחבים יעבדו */
    direction: rtl;
    font-size: 14px;
}

.maarehot-table th,
.maarehot-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: right;
    vertical-align: top;
    word-wrap: break-word;
}

/* כותרת עליונה */
.maarehot-table thead {
    background: #f5f5f5;
}

/* עמודות */
.maarehot-table .serial-col {
    width: 60px;        /* עמודת # */
    text-align: center;
}

.maarehot-table th:nth-child(2),
.maarehot-table td:nth-child(2) {
    width: 300px;       /* עמודת מערכת */
}

.maarehot-table th:nth-child(3),
.maarehot-table td:nth-child(3) {
    width: 120px;       /* עמודת שנים */
    text-align: center;
}

.maarehot-table th:nth-child(4),
.maarehot-table td:nth-child(4) {
    width: 120px;       /* עמודת גדודים */
    text-align: center;
}

/* תמונה + תוכן */
.maarehot-thumb img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 6px auto;
}

/* תיאור מוסתר */
.maarehot-desc {
    display: none;
    margin-top: 8px;
}

.maarehot-desc.is-open {
    display: block;
}
.maarehot-desc {
    display: none;
}

.maarehot-desc.is-open {
    display: block;
}

.maarehot-readmore {
    text-align: center;
    margin-top: 6px;
    font-size: 13px;
    text-decoration: underline;
}
.maarehot-readmore {
	text-align: right;
	font-weight: 700;
	color:#333;
}
.maarehot-thumb {
	width: 100%;
	float: right;
}
.maarehot-thumb img {
	float: right;
	max-width: 300px;
	max-height: 300px;
	height: auto;
	width: auto ;
}
/* רספונסיב */
@media (max-width: 768px) {
    .maarehot-table,
    .maarehot-table thead,
    .maarehot-table tbody,
    .maarehot-table tr,
    .maarehot-table td,
    .maarehot-table th {
        display: block;
        width: 100% !important;
    }

    .maarehot-table th {
        display: none;
    }

    .maarehot-table td {
        border: none;
        border-bottom: 1px solid #eee;
        padding: 10px;
        position: relative;
    }

    .maarehot-table td::before {
        content: attr(data-label);
        font-weight: bold;
        position: absolute;
        right: 10px;
        top: 10px;
    }
}

.yehidot-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
    box-sizing: border-box;
}

/* 4 פריטים בשורה בדסקטופ */
.yehidot-grid-item {
    width: calc(25% - 20px);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* לינק שעוטף את הכל */
.yehidot-grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* עיגול לתמונה עם שאדו */
.yehidot-thumb-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.yehidot-thumb-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* כותרת */
.yehidot-title {
    font-size: 18px;
    margin: 0;
    text-align: center;
    transition: color 0.25s ease;
}

/* אפקט hover */
.yehidot-grid-link:hover .yehidot-thumb-circle {
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transform: scale(1.05);
}

.yehidot-grid-link:hover {
    transform: translateY(-4px);
}

.yehidot-grid-link:hover .yehidot-title {
    color: #0073aa;
}

/* טאבלט – 2 בשורה */
@media (max-width: 1024px) {
    .yehidot-grid-item {
        width: calc(50% - 20px);
    }
}

/* מובייל – גם 2 בשורה */
@media (max-width: 600px) {
    .yehidot-grid-item {
        width: calc(50% - 20px);
    }

    .yehidot-thumb-circle {
        width: 120px;
        height: 120px;
    }

    .yehidot-title {
        font-size: 16px;
    }
}
