    /* Filters */
.job-filter-card {
    padding: 1.5rem;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

}

.job-input {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
}

/* Job Card */
.job-list-card {
    background: linear-gradient(180deg,#0b1220,#020617);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;

    /* 🔑 CRITICAL FIX */
    transform: translateZ(0);
    will-change: transform, box-shadow;
    backface-visibility: hidden;

    transition: transform .25s ease, box-shadow .25s ease;
}


.job-list-card {
    position: relative;
    overflow: hidden;
}

.job-list-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(34,211,238,0.15),
        rgba(34,211,238,0.05),
        transparent
    );
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.job-list-card:hover::after {
    opacity: 1;
}


.job-list-card h5 {
    color: #f8fafc;
}
.company {
    color: #94a3b8;
    margin-bottom: .5rem;
}

.job-tags span {
    display: inline-block;
    background: rgba(34,211,238,.15);
    color: #22d3ee;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-right: 6px;
}

.job-desc {
    color: #94a3b8;
    margin-top: .5rem;
}

/* Course Card */
.course-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.course-card h6 {
    color: #f8fafc;
}

.course-card small {
    color: #94a3b8;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .job-list-card:hover {
        transform: none;
        box-shadow: none;
        outline: none;
    }
}

/* ================================
   PORTAL SWITCH (COURSE ↔ JOB)
================================ */

.portal-toggle {
    display: flex;
    align-items: center;
}

.portal-switch {
    position: relative;
    display: flex;
    width: 171px;
    height: 51px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(12px);
}

.portal-switch input {
    display: none;
}

.portal-switch label {
    flex: 1;
    z-index: 2;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 30px;
    cursor: pointer;
    color: var(--purple-dark);
    transition: color 0.3s ease;
    padding-top: 6px;
}

.portal-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: 39px;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    border-radius: 999px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Active text color */
#coursePortal:checked ~ label[for="coursePortal"],
#jobPortal:checked ~ label[for="jobPortal"] {
    color: #fff;
}

/* Slide right */
#jobPortal:checked ~ .portal-slider {
    transform: translateX(100%);
}

/* Hover polish */
.portal-switch label:hover {
    opacity: 0.9;
}

/* GLOBAL LOADER */
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(14px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader card */
.loader-card {
    background: linear-gradient(180deg, #0b1220, #020617);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 2.5rem 3rem;
    text-align: center;
    color: #f8fafc;
    box-shadow: 0 25px 60px rgba(34,211,238,.25);
}

/* Animated ring */
.ring {
    width: 72px;
    height: 72px;
    border: 5px solid rgba(34,211,238,.15);
    border-top-color: #22d3ee;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-card h5 {
    margin-bottom: .4rem;
    font-weight: 600;
}

.loader-card p {
    font-size: 14px;
    color: #94a3b8;
}


