
body {
    direction: rtl;
    text-align: right;
}

/* ─── Insight Header ─── */
.insight-header {
    background: #fff;
    padding: 0;
}
.header-insight-layout {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 4px 0 14px;
}
.header-primary {
    flex: 0 0 50%;
    min-width: 0;
}
.header-insights {
    display: flex;
    flex-direction: row;
    gap: 0;
    flex: 0 0 calc(50% - 24px);
    align-items: stretch;
}
.insight-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 20px;
    min-width: 0;
    box-shadow: none;
}
/* vertical separator — on the physical-right edge of chips 2, 3, 4 (RTL: between each pair) */
.insight-chip + .insight-chip {
    border-inline-start: 1px solid #e5e7eb;
}
.insight-chip > div:not(.insight-icon-wrap) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}
.insight-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    flex-shrink: 0;
    margin-bottom: 2px;
}
.insight-icon-match {
    background: rgba(230, 13, 100, 0.1);
    color: #E60D64;
}
.insight-icon-time {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}
.insight-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: #111827;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}
.insight-label {
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.3;
    text-align: center;
}
.insight-career-name {
    font-size: 0.88rem;
    color: #374151;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.insight-locked {
    color: #9ca3af;
    font-size: 0.85rem;
}
.insight-chip-link {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}
.insight-chip-link:hover {
    background: rgba(230, 13, 100, 0.04);
}
.insight-chip-link:hover .insight-locked {
    color: #E60D64;
}
.insight-green  { color: #16a34a; }
.insight-yellow { color: #ca8a04; }
.insight-red    { color: #dc2626; }

@media (max-width: 768px) {
    .header-insight-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 20px 0 8px;
    }
    .header-primary,
    .header-insights {
        flex: 0 0 100%;
        width: 100%;
    }
    .header-insights {
        flex-wrap: wrap;
    }
    .insight-chip {
        flex: 0 0 50%;
    }
    /* reset separators on wrap — redraw only horizontal pairs */
    .insight-chip + .insight-chip {
        border-inline-end: none;
        border-top: 1px solid #e5e7eb;
    }
    .insight-chip:nth-child(odd) {
        border-inline-end: 1px solid #e5e7eb;
    }
    .header-insights {
        display: none;
    }
    .last-updated-text {
        display: block !important;
    }
}

.header-title {
    color: #E60D64;
}
.career-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.career-card-link {
    cursor: pointer;
}
.career-card-link:hover .career-card {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.career-badge {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.position-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.text-blue-cob {
    color: #2196f3;
    font-size: 1.4rem;
    font-weight: 700;
}
.text-blue-cob-small{
    font-size: 1rem;
}
.offer-count-badge {
    background: #2196f3;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}
.border-blue-cob {
    border-color: #2196f3;
}
.cta-button {
    background: #E60D64;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}
.details-toggle-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}
.details-toggle-btn:hover,
.details-toggle-btn:focus,
.details-toggle-btn:active {
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #3b82f6 !important;
}

/* ─── Best-Match clickable row ─── */
.best-match-trigger {
    border: 2px solid rgba(230, 13, 100, 0.35);
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
}
.best-match-trigger:hover {
    background: rgba(230, 13, 100, 0.05);
    box-shadow: 0 4px 14px rgba(230, 13, 100, 0.18);
    border-color: #E60D64;
}
.best-match-trigger:active {
    transform: scale(0.98);
}
.best-match-trigger:focus-visible {
    outline: 2px solid #E60D64;
    outline-offset: 2px;
}
.best-match-arrow {
    color: #E60D64;
    transition: transform 0.2s ease;
}
.best-match-trigger:hover .best-match-arrow {
    transform: translateX(-4px);
}
/* Circular progress SVG */
.bm-track {
    stroke: #e5e7eb;
}
.bm-fill {
    transform-origin: 18px 18px;
    transform: rotate(-90deg);
    stroke-linecap: round;
}
.bm-green  { stroke: #16a34a; }
.bm-yellow { stroke: #ca8a04; }
.bm-red    { stroke: #dc2626; }
.bm-text {
    font-size: 9px;
    font-weight: 800;
    font-family: inherit;
    fill: #374151;
}

/* ─── Accordion trigger ─── */
.dc-accordion-trigger {
    color: #2196f3;
    transition: background 0.2s ease;
    text-align: center;
    justify-content: center;
    background: rgba(33, 150, 243, 0.07);
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 1rem;
}
.dc-accordion-trigger:hover {
    background: rgba(33, 150, 243, 0.13) !important;
}
.dc-accordion-trigger:focus-visible {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}
.dc-chevron {
    color: #2196f3;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* ─── Accordion body smooth animation ─── */
.dc-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.dc-accordion-body.dc-accordion-open {
    max-height: 3000px;
}

/* ─── Position card ─── */
.pos-card {
    display: block;
}
/* Desktop: single row */
.pos-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pos-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.pos-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
/* Mobile: stacked */
@media (max-width: 640px) {
    .pos-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pos-card-stats {
        justify-content: flex-end;
        width: 100%;
        margin-top: 8px;
    }
    /* Guest (logged-out): only 1 stat item — keep everything in one row */
    .pos-card-inner.pos-card-guest {
        flex-direction: row;
        align-items: center;
    }
    .pos-card-inner.pos-card-guest .pos-card-stats {
        width: auto;
        margin-top: 0;
        flex-shrink: 0;
    }
}

/* ─── Position row: inline stats ─── */
.pos-offers-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(33, 150, 243, 0.1);
    color: #1565C0;
    border: 1px solid rgba(33, 150, 243, 0.25);
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}
.pos-missing-btn {
    background: #2196f3;
    color: white;
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.pos-missing-btn:hover {
    background: #1976d2;
}
.floating-banner {
    position: fixed;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    width: 40%;
    min-width: 320px;
    max-width: 600px;
    background: white;
    border: 3px solid #E60D64;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
    from {
        /* transform: translateX(50%) translateY(100px); */
        opacity: 0;
    }
    to {
        /* transform: translateX(50%) translateY(0); */
        opacity: 1;
    }
}
.floating-banner.hidden {
    display: none;
}
.banner-close-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}
.banner-close-btn:hover {
    color: #dc2626;
}
.banner-cta-btn {
    background: #E60D64;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
}
.banner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.header-icon {
    width: 48px;
    height: 48px;
}

.missing-skills-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.missing-skills-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.missing-skills-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.missing-skills-modal-overlay.active .missing-skills-modal {
    transform: translateY(0);
}
.missing-skill-chip {
    background-color: rgba(33, 150, 243, 0.1); 
    color: #1565C0; 
    border: 1px solid rgba(33, 150, 243, 0.3);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.course-skills-btn {
    border-radius: 6px;
}

@media (max-width: 768px) {
    .floating-banner {
        width: 90%;
        min-width: unset;
        bottom: 10px;
        padding: 16px 20px;
    }

    .header-icon {
        width: 32px;
        height: 32px;
    }

    .header-title {
        font-size: 1.5rem;
        padding-top: 20px;
    }
    .header-primary .flex .header-title {
        padding-top: 0;
    }

    .header-description {
        font-size: 1rem;
    }
}


