/* === Trang Tuyển Dụng === */
.tuyen-dung-page {
    padding: 40px 0;
}

.tuyen-dung-header {
    text-align: center;
    margin-bottom: 50px;
}

.tuyen-dung-header .page-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.tuyen-dung-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter Section */
.tuyen-dung-filter {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.filter-wrapper {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

#filter-reset {
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#filter-reset:hover {
    background: #5a6268;
}

/* Jobs Grid */
.tuyen-dung-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tuyen-dung-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.tuyen-dung-item:hover {
    transform: translateY(-5px);
}

.tuyen-dung-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tuyen-dung-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tuyen-dung-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.job-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tuyen-dung-card:hover .job-thumbnail {
    transform: scale(1.05);
}

.job-status {
    position: absolute;
    top: 15px;
    right: 15px;
}

.status-active {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-closed {
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tuyen-dung-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-title {
    margin-bottom: 15px;
    font-size: 1.3em;
    line-height: 1.3;
}

.job-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.job-title a:hover {
    color: var(--primary-color);
}

.job-meta {
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.meta-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-color);
}

.job-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.job-deadline {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #dc3545;
}

.job-deadline i {
    margin-right: 5px;
}

.job-footer .button {
    padding: 8px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

/* No Jobs Found */
.no-jobs-found {
    text-align: center;
    padding: 60px 20px;
}

.no-jobs-content i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}

.no-jobs-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #666;
}

.no-jobs-content p {
    color: #999;
    margin-bottom: 25px;
}

/* Pagination */
.tuyen-dung-pagination {
    text-align: center;
    margin-top: 40px;
}

.tuyen-dung-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.tuyen-dung-pagination .page-numbers li {
    margin: 0;
}

.tuyen-dung-pagination .page-numbers a,
.tuyen-dung-pagination .page-numbers span {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.tuyen-dung-pagination .page-numbers a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tuyen-dung-pagination .page-numbers .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tuyen-dung-page {
        padding: 20px 0;
    }
    
    .tuyen-dung-header .page-title {
        font-size: 2em;
    }
    
    .filter-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-item {
        min-width: auto;
    }
    
    .tuyen-dung-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tuyen-dung-content {
        padding: 20px;
    }
    
    .job-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .job-footer .button {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tuyen-dung-filter {
        padding: 20px;
    }
    
    .tuyen-dung-content {
        padding: 15px;
    }
    
    .job-title {
        font-size: 1.2em;
    }
    
    .meta-item {
        font-size: 13px;
    }
}
