/* ===================================================
   תוצאות משרות - mishrot-results.css
   Author: לינה למדן | https://www.theglyph.digital/lina/
   Version: 1.3
   צבעים: #fcb53f (כתום), #294c71 (כחול כהה)
   =================================================== */

.mishrot-results-wrap {
    direction: rtl;
    font-family: 'Arimo', sans-serif;
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.mishrot-count {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    font-family: 'Arimo', sans-serif;
}

.mishrot-count strong {
    color: #294c71;
}

/* ── רשימה ── */
.mishrot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── קארד ── */
.mishrot-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    font-family: 'Arimo', sans-serif;
}

.mishrot-card:hover {
    box-shadow: 0 4px 16px rgba(41, 76, 113, 0.10);
}

.mishrot-card.active {
    border-color: #fcb53f;
    box-shadow: 0 4px 20px rgba(252, 181, 63, 0.15);
}

/* ── כותרת קארד ── */
.mishrot-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
}

/* ── לוגו — תמיד קיים ── */
.mishrot-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    align-self: flex-start;
}

.mishrot-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mishrot-card-main {
    flex: 1;
    min-width: 0;
}

/* ── כותרת ── */
.mishrot-title {
    font-size: 16px;
    font-weight: 700;
    color: #294c71;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: 'Arimo', sans-serif;
}

/* ── מטא ── */
.mishrot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 10px;
    align-items: center;
}

.mishrot-meta-item {
    font-size: 16px;
    color: #294c71;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Arimo', sans-serif;
}

.mishrot-meta-item i {
    color: #294c71;
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* ── תקציר ── */
.mishrot-excerpt {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Arimo', sans-serif;
}

/* ── כפתור פרטים ── */
.mishrot-card-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
}

.mishrot-toggle-btn {
    background-color: #294c71 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px !important;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: 'Arimo', sans-serif !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.mishrot-toggle-btn:hover {
    background-color: #fcb53f !important;
    color: #fff !important;
}

.mishrot-toggle-btn.is-open {
    background-color: #294c71 !important;
    color: #fff !important;
}

.mishrot-toggle-btn i {
    font-size: 13px;
    transition: transform 0.3s;
}

/* ── פרטים מלאים — אנימציה ── */
.mishrot-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-top: 0px solid #f0f0f0;
    background: #fafafa;
    font-family: 'Arimo', sans-serif;
    font-size: 16px;
}

.mishrot-card-details.open {
    border-top: 1px solid #f0f0f0;
    padding: 20px;
}

@keyframes mishrotFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mishrot-card-details.open {
    animation: mishrotFadeIn 0.3s ease;
}

.mishrot-section {
    margin-bottom: 20px;
}

.mishrot-section:last-child {
    margin-bottom: 0;
}

.mishrot-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #294c71;
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid #fcb53f;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arimo', sans-serif;
}

.mishrot-section h4 i {
    color: #294c71;
    font-size: 16px;
}

.mishrot-content {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    font-family: 'Arimo', sans-serif;
}

.mishrot-content ul,
.mishrot-content ol {
    padding-right: 20px;
    margin: 8px 0;
}

.mishrot-content li {
    margin-bottom: 4px;
}

/* ── כפתור הגשה ── */
.mishrot-apply {
    text-align: center;
    padding-top: 10px;
}

.mishrot-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fcb53f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, transform 0.1s;
    font-family: 'Arimo', sans-serif;
}

.mishrot-apply-btn:hover {
    background: #e9a02e;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── אין תוצאות ── */
.mishrot-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 16px;
    font-family: 'Arimo', sans-serif;
}

.mishrot-no-results i {
    color: #294c71;
    margin-bottom: 12px;
    display: block;
}

/* ── רספונסיב ── */
@media (max-width: 600px) {
    .mishrot-card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mishrot-card-actions {
        width: 100%;
    }

    .mishrot-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}
