/* ================================================================
   PAST JOBS VIEWER — style.css  v2.0
   Brand: #163496 (primary) | #eff3fa (chip bg) | #d5e0f2 (border)
   ================================================================ */

/* ── RESET ───────────────────────────────────────────────────── */
.pjv-wrapper *,
.pjv-wrapper *::before,
.pjv-wrapper *::after {
    box-sizing: border-box;
}

/* ── GRID ────────────────────────────────────────────────────── */
.pjv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .pjv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pjv-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── CARD ────────────────────────────────────────────────────── */
.pjv-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.3s ease;
    will-change: transform;
}

.pjv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(22, 52, 150, 0.10),
                0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: rgba(22, 52, 150, 0.25);
}

/* ── CARD HEADER STRIP (icon + title) ───────────────────────── */
.pjv-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

/* coloured icon square — no image */
.pjv-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff3fa;
    border: 1px solid #d5e0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #163496;
}

.pjv-card-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.pjv-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    word-break: break-word;
}

/* ── CHIPS ROW ───────────────────────────────────────────────── */
.pjv-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

/* ── CHIP — HTN Landing style ───────────────────────────────── */
.pjv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #163496;
    background: #eff3fa;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #d5e0f2;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.15s ease;
    cursor: default;
}

.pjv-chip:hover {
    background: #163496;
    color: #fff;
    border-color: #163496;
    transform: translateY(-1px);
}

.pjv-chip svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
    flex-shrink: 0;
}

/* expired variant */
.pjv-chip--expired {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.pjv-chip--expired:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

/* ── SPACER pushes button to bottom ─────────────────────────── */
.pjv-card-body {
    flex: 1;
}

/* ── CARD FOOTER / BUTTON ────────────────────────────────────── */
.pjv-card-footer {
    margin-top: 16px;
}

.pjv-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #eff3fa;
    color: #163496;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #d5e0f2;
    text-decoration: none;
    transition: background 0.25s cubic-bezier(0.165, 0.84, 0.44, 1),
                color 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease;
    cursor: pointer;
}

.pjv-card-btn svg {
    width: 9px;
    height: 9px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.pjv-card-btn:hover {
    background: #163496;
    color: #ffffff;
    border-color: #163496;
    box-shadow: 0 4px 14px rgba(22, 52, 150, 0.28);
}

.pjv-card-btn:hover svg {
    transform: translateX(3px);
}

/* ── LIST VIEW ───────────────────────────────────────────────── */
.pjv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pjv-list-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pjv-list-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(22, 52, 150, 0.08);
    border-color: rgba(22, 52, 150, 0.25);
}

.pjv-list-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff3fa;
    border: 1px solid #d5e0f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #163496;
}

.pjv-list-item-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pjv-list-item-body {
    flex: 1;
    min-width: 0;
}

.pjv-list-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pjv-list-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pjv-list-item-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff3fa;
    color: #163496;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #d5e0f2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pjv-list-item-btn svg {
    width: 8px;
    height: 8px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.pjv-list-item-btn:hover {
    background: #163496;
    color: #fff;
    border-color: #163496;
}

.pjv-list-item-btn:hover svg {
    transform: translateX(2px);
}

@media (max-width: 600px) {
    .pjv-list-item { flex-wrap: wrap; }
    .pjv-list-item-btn { width: 100%; justify-content: center; }
    .pjv-list-item-title { white-space: normal; }
}

/* ── CAROUSEL / SWIPER ───────────────────────────────────────── */
.pjv-carousel-wrapper {
    position: relative;
    padding: 10px 0 48px;
    overflow: hidden;
}

.past-jobs-carousel.swiper {
    overflow: visible;
    padding-bottom: 4px;
}

.past-jobs-carousel .swiper-slide {
    height: auto;
}

/* swiper nav arrows — brand themed */
.past-jobs-carousel .swiper-button-prev,
.past-jobs-carousel .swiper-button-next {
    color: #163496;
    background: #eff3fa;
    border: 1px solid #d5e0f2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease;
}

.past-jobs-carousel .swiper-button-prev::after,
.past-jobs-carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: 900;
}

.past-jobs-carousel .swiper-button-prev:hover,
.past-jobs-carousel .swiper-button-next:hover {
    background: #163496;
    color: #fff;
    border-color: #163496;
}

/* ── MOBILE CARD TWEAKS ──────────────────────────────────────── */
@media (max-width: 600px) {
    .pjv-card {
        padding: 18px;
    }

    .pjv-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .pjv-card-icon svg {
        width: 18px;
        height: 18px;
    }

    .pjv-card-title {
        font-size: 0.95rem;
    }

    .pjv-chip {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .pjv-card-btn {
        font-size: 0.78rem;
        padding: 9px 14px;
    }
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.pjv-empty {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
    font-size: 0.95rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}