/* Jobs Page Specific Styles */

/* Jobs Hero Section */
.jobs-hero {
    background: linear-gradient(to right, #a6dcef, #f5e7c1);
}

/* Job Card Styles */
.job-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.job-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.job-company {
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.job-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.job-description {
    margin-bottom: 15px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.job-tag {
    /* background-color: var(--sand-color);  */
    color: var(--text-color);
    padding: 6px 10px;
    border: solid 1px #ff1818;
    border-radius: 4px;
    font-size: 13px;
    /* color: #ff1818; */
    font-weight: 300;
}

.job-meta {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.meta-label {
    color: #777;
    font-size: 0.8rem;
}

.meta-value {
    font-weight: 500;
    color: var(--text-color);
}

.salary-value {
    color: var(--coral-color);
    font-weight: 600;
}

/* List View Styles for Jobs */
.job-list-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: solid 1px #d5d5d5;
        flex-direction: column;
}

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

.job-list-left {
    padding: 20px;
    border-right: 1px solid #f0f0f0;
    width: 120px;
    border-left: solid 4px #e1e1e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.job-list-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.job-list-company {
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
}

.job-list-right {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    /* border-left: solid 4px #e1e1e1; */

    flex-direction: column;
}

.job-list-header {
    margin-bottom: 15px;
}

.job-list-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.job-list-description {
    margin-bottom: 15px;
    color: var(--text-color);
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.job-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.job-list-meta {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    /* gap: 6rem; */
    margin-top: auto;
}

.job-list-meta .meta-item {
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.job-list-meta .meta-label {
    color: #777;
}

.job-list-meta .meta-value {
    font-weight: 500;
}

.job-list-meta .salary-value {
    color: var(--coral-color);
    font-weight: 600;
}

.job-list-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.job-apply-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-apply-btn:hover {
    background-color: #e86e5a;
    transform: translateY(-2px);
}

.job-save-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-save-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.job-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: auto;
}

.job-popup.hidden {
    display: none;
}

.job-popup-content {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.job-popup-tags span {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 4px;
}
/* Responsive Adjustments */
@media (max-width: 768px) {

    .job-list-card {
        flex-direction: column;
    }
   .job-list-title {
        font-size: 1.1rem;
    }
   
    .job-list-left {
        width: 100%;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        flex-direction: row;
        gap: 15px;
    }
    
    .job-list-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }
    
    .job-list-meta {
        flex-direction: column;
        gap: 10px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .job-list-actions {
        flex-direction: column;
    }
    
    .job-list-left {
        flex-direction: column;
        padding: 15px;
    }
    
    .job-list-logo {
        margin-bottom: 10px;
    }
}