/* ====================== */
/* MAIN CONTAINER STYLES */
/* ====================== */
.final-job-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    color: #333;
    box-sizing: border-box;
}

/* ====================== */
/* SEARCH BOX STYLES */
/* ====================== */
.job-search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto 40px;
    border: 2px solid #3498db;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.job-search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

#job-search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    background: #fff;
}

#job-search-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#job-search-button:hover {
    background: #2980b9;
}

/* ====================== */
/* JOB GRID LAYOUT */
/* ====================== */
.job-grid-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
}

/* ====================== */
/* JOB CARD STYLES */
/* ====================== */
.job-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.job-card-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #f0f4f8;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
    flex-shrink: 0;
}

.job-title-company {
    flex: 1;
    min-width: 0;
}

.job-card-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-name {
    margin: 0;
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-card-body {
    padding: 20px;
    flex: 1;
}

.job-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.job-meta > span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
}

.job-meta i {
    color: #3498db;
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.job-date {
    font-size: 13px;
    color: #718096;
}

.job-card-footer {
    padding: 20px;
    border-top: 1px solid #f0f4f8;
    text-align: right;
    background: #f8fafc;
}

.view-detail-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ====================== */
/* UTILITY CLASSES */
/* ====================== */
.no-jobs {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
    grid-column: 1 / -1;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #3498db;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ====================== */
/* RESPONSIVE ADJUSTMENTS */
/* ====================== */
@media (max-width: 1080px) {
    .job-grid {
        gap: 20px;
    }
    
    .job-card {
        border-radius: 8px;
    }
}

@media (max-width: 783px) {
    .job-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .final-job-container {
        padding: 20px 15px;
    }
    
    .job-search-box {
        max-width: calc(100% - 30px);
        margin-bottom: 30px;
    }
    
    .job-card-header {
        padding: 15px;
    }
    
    .job-card-body {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .job-search-box {
        max-width: calc(100% - 20px);
    }
    
    #job-search-input {
        padding: 12px 15px;
    }
    
    #job-search-button {
        padding: 0 20px;
    }
    
    .view-detail-btn {
        padding: 8px 20px;
    }
}