/* JOBS — COMMON LAYOUT FOR ALL PAGES - ORIGINAL DETAILED DESIGN */

.jobs-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.jobs-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.3rem;
    font-weight: 600;
}

/* Job listing wrapper */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* Job card - ORIGINAL DETAILED DESIGN */
.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    margin: 0 auto;
    position: relative;
    margin-bottom: 20px;  /* Add this for absolute positioning of badge */
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Badge - POSITIONED LIKE HOME PAGE */
.job-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.job-badge.product {
    background-color: #e1f7e3;
    color: #27ae60;
}

.job-badge.service {
    background-color: #e8eaf6;
    color: #3f51b5;
}

/* Job Header */
.job-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-left {
    flex-shrink: 0;
}

.job-right {
    flex-grow: 1;
    /* Remove the badge from here since it's now positioned absolutely */
}

/* Logo */
.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 5px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Company Name */
.job-company {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
}

/* Job Title */
.job-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0.8rem 0;
    color: #2c3e50;
}

.job-title a {
    text-decoration: none;
    color: inherit;
}

.job-title a:hover {
    color: #2575fc;
}

/* Job Details */
.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.job-details span {
    background: #f1f5f9;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 6px;
    color: #5a6b7c;
}

/* Description */
.job-description {
    color: #566573;
    margin-bottom: 1rem;
    line-height: 1.55;
}

/* Footer */
.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.job-posted {
    color: #7f8c8d;
}

/* Buttons */
.apply-btn {
    background: #2575fc;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.apply-btn:hover {
    background: #1c65e0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Login button style */
.login-to-apply {
    background: #e74c3c !important;
}

.login-to-apply:hover {
    background: #c0392b !important;
}

/* No jobs message */
.no-jobs {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.pagination .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .job-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-card {
        padding: 1.2rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .jobs-container h1 {
        font-size: 1.8rem;
    }
    
    /* Adjust badge position for mobile */
    .job-badge {
        position: absolute;
        top: -8px;
        right: 10px;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}
