/* ========================================
   SCROLLING JOB BOARD STYLES
   ======================================== */
.job-board-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--Body_Background_Colour);
    padding: 15px 0;
    position: relative;
    border-bottom: 4px solid #faad18;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10;
}

.job-board-header {
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-board-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--Body_Text_Colour);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-board-title i {
    color: #faad18;
}

/* Live job count badge */
.live-job-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--Header_Button_BG_Colour);
    color: var(--Header_Button_Text_Colour);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 28px;
    height: 22px;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.job-scroll-viewport {
    width: 100%;
    overflow: hidden;
}

.job-scroll-inner {
    display: flex;
    gap: 20px;
    padding: 5px 20px;
    width: max-content;
}

.job-card {
    position: relative;
    width: 350px;
    min-height: 190px;
    padding: 18px 20px;
    border: 2px solid #f5a400;
    border-radius: 14px;
    background: #fbfaf4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
    color: #2b2b2b;
    flex: 0 0 350px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.recruiter-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
}

.recruiter-logo-placeholder {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #f5a400;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #ffb000;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.urgent-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    animation: urgentPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.6);
    z-index: 5;
}

@keyframes urgentPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(230, 57, 70, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 20px rgba(230, 57, 70, 0.9); }
}

.job-content {
    padding-left: 48px;
    padding-right: 0;
    margin-top: 2px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-title {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    color: #2b2b2b;
}

.job-trade-line {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.job-description {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-shrink: 0;
}

/* Price/salary line - standalone, below description */
.job-price-line {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 800;
    color: #f5a400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-price-line i {
    font-size: 14px;
    color: #f5a400;
}

/* Extra info tags - only used on mobile cards now */
.job-extra-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 0;
}

.job-extra-item {
    font-size: 11px;
    font-weight: 700;
    color: #f5a400;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 164, 0, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.job-extra-item i {
    font-size: 10px;
}

/* Mobile job card extra info */
.job-card-extra-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
}

.job-card-extra-info .job-extra-item {
    font-size: 10px;
    font-weight: 700;
    color: #f5a400;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 164, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.job-card-extra-info .job-extra-item i {
    font-size: 9px;
}

.recruiter-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #FAAD18;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Footer: postcode left, source badge right */
.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(245, 164, 0, 0.2);
}

.postcode {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apply-link {
    font-size: 12px;
    font-weight: 800;
    color: #f5a400;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.apply-link:hover {
    text-decoration: underline;
}

.job-card-source-badge {
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-card-source-badge.recruiter {
    background: #2d7d46;
    color: #fff;
}

.job-card-source-badge.business {
    background: #7d5a2d;
    color: #fff;
}

/* Search result source badge */
.job-result-source-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
}

.job-result-source-badge.recruiter {
    background: #2d7d46;
    color: #fff;
}

.job-result-source-badge.business {
    background: #7d5a2d;
    color: #fff;
}

.job-result-company {
    font-size: 0.75rem;
    color: #888;
    margin: 2px 0 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-result-company i {
    font-size: 0.7rem;
    color: var(--Header_Button_BG_Colour, #faad18);
}

@keyframes jobScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.job-scroll-animation {
    animation: jobScroll 60s linear infinite;
}

.job-board-wrapper:hover .job-scroll-animation {
    animation-play-state: paused;
}

.jobs-empty-message {
    color: #666;
    font-style: italic;
    padding: 10px 20px;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 480px) {
    .job-card {
        width: 280px;
        flex: 0 0 280px;
        min-height: 170px;
        padding: 14px;
    }
    
    .job-board-header {
        padding: 0 15px;
    }
    
    .job-board-title {
        font-size: 0.9rem;
    }

    .job-content {
        padding-left: 44px;
        padding-right: 0;
    }

    .job-title {
        font-size: 17px;
    }

    .job-description {
        font-size: 13px;
    }

    .job-price-line {
        font-size: 14px;
    }

    .job-footer {
        margin-top: 10px;
        padding-top: 8px;
    }
    
    .postcode {
        font-size: 12px;
    }
    
    .apply-link {
        font-size: 11px;
    }
}
