/* Job Card Styles - Compact design */
.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgb(230, 74, 74);
}

.job-card.expanded {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgb(230, 74, 74);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.job-location {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.job-compact {
    margin-bottom: 0.5rem;
}

.job-company {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.job-salary {
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 0.75rem 0;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.job-type, .job-experience {
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.job-details {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.job-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.job-requirements, .job-benefits {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
    font-size: 0.9rem;
}

.job-requirements strong, .job-benefits strong {
    color: #1f2937;
}

/* Job Card Action Buttons */
.job-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.btn-apply {
    flex: 2;
    background: #1f2937;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-apply:hover {
    background: #111827;
}

.btn-save {
    flex: 1;
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-save:hover {
    background: #f8fafc;
    border-color: #1f2937;
    color: #1f2937;
}

.btn-save.saved {
    background: #1f2937;
    border-color: #1f2937;
    color: white;
}

.btn-save.saved:hover {
    background: #111827;
    border-color: #111827;
}

.apply-btn {
    background: rgb(230, 74, 74);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1rem;
    margin-top: 1rem;
}

.apply-btn:hover {
    background: rgb(200, 50, 50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 74, 74, 0.3);
}

@media (max-width: 768px) {
    .job-card {
        padding: 1.25rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .job-location {
        align-self: flex-start;
    }
    
    .job-title {
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-apply, .btn-save {
        flex: none;
        width: 100%;
    }
}

/* Jobs Page Styles */

/* Jobs Hero Section */
.jobs-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.jobs-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.china-text {
    color: rgb(230, 74, 74);
    font-family: 'Noto Sans SC', 'Source Han Sans CN', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'SimHei', '黑体', sans-serif;
    background: linear-gradient(135deg, rgb(230, 74, 74) 0%, rgb(200, 50, 50) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jobs-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search and Filter Section */
.jobs-search {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgb(230, 74, 74);
    box-shadow: 0 0 0 3px rgba(230, 74, 74, 0.1);
}

.search-btn {
    background: #1f2937;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 120px;
}

.search-btn:hover {
    background: #111827;
}

.filter-container {
    display: flex;
    gap: 1rem;
}

.filter-select {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: rgb(230, 74, 74);
}

/* Jobs Listing Section */
.jobs-listing {
    padding: 2rem 0 4rem;
    background: #f8fafc;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}


/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.no-results h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6b7280;
    font-size: 1rem;
}

.no-results a {
    color: rgb(230, 74, 74);
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Interest Form Section */
.interest-form {
    padding: 6rem 0;
    background: white;
}

.form-content {
    max-width: 800px;
    margin: 0 auto;
}

.job-interest-form {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(230, 74, 74);
    box-shadow: 0 0 0 3px rgba(230, 74, 74, 0.1);
}

.form-group select {
    background-color: white;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Active Navigation Link - Removed red highlight for jobs page */

/* Mobile Responsive */
@media (max-width: 768px) {
    .jobs-hero {
        padding: 6rem 0 3rem;
    }
    
    .jobs-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .jobs-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .jobs-search {
        margin: 0 1rem 2rem;
        padding: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    .filter-container {
        flex-direction: column;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .job-card {
        margin: 0;
        padding: 1.5rem;
    }
    
    .job-interest-form {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .jobs-hero-content h1 {
        font-size: 2rem;
    }
    
    .jobs-subtitle {
        font-size: 1rem;
    }
    
    .jobs-search {
        padding: 1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
    
    .job-title {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    .job-interest-form {
        padding: 1.5rem;
    }
}

/* Loading state */
.jobs-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: rgb(230, 74, 74);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus improvements for accessibility */
.job-card:focus-within {
    outline: 2px solid rgb(230, 74, 74);
    outline-offset: 2px;
}

/* Primary button styling for Express Interest form */
.btn-primary {
    width: 100%;
    background: rgb(230, 74, 74);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: rgb(200, 50, 50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 74, 74, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 74, 74, 0.3);
}

/* Form validation styles */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.btn-show-more {
    background: #1f2937;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-show-more:hover {
    background: #111827;
}

.btn-show-more .remaining-count {
    opacity: 0.8;
    font-weight: 400;
}