/* Jobs Page Specific Styles */

.page-hero {
    background: linear-gradient(135deg, #2E4A7B 0%, #1a2d4a 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.page-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; }

.job-filters-section {
    background: white;
    padding: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.filters-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filters-container .filter-group {
    flex: 1;
    min-width: 150px;
}

.filters-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #343a40;
}

.filters-container input,
.filters-container select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}
.filters-container input:focus,
.filters-container select:focus {
    border-color: #6BBF36;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107,191,54,0.15);
}
.filters-container select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.filters-container .btn-search {
    align-self: flex-end;
    height: 48px;
    min-width: 120px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-options label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}
.sort-options select {
    padding: 8px 32px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sort-options select:focus {
    border-color: #6BBF36;
    outline: none;
    box-shadow: 0 0 0 3px rgba(107,191,54,0.15);
}

.job-listings { padding: 60px 0; background: #f8f9fa; }

.job-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.job-count { font-size: 1.1rem; color: #6c757d; }

/* Job Cards */
.jobs-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.job-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #6BBF36;
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-header h3 {
    color: #2E4A7B;
    margin: 0;
    font-size: 1.3rem;
}

.job-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.job-type.fulltime { background: #e3f9e5; color: #2e7d32; }
.job-type.parttime { background: #fff3e0; color: #f57c00; }
.job-type.freelance { background: #e3f2fd; color: #1976d2; }
.job-type.temporary { background: #fce4ec; color: #c2185b; }

.job-company { font-weight: 600; color: #343a40; margin-bottom: 8px; }
.job-location, .job-sector { color: #6c757d; font-size: 0.9rem; margin-bottom: 5px; }
.job-description { color: #6c757d; line-height: 1.6; margin: 15px 0; }
.job-salary { color: #2e7d32; font-weight: 600; margin: 10px 0; }

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

.job-email { color: #6c757d; font-size: 0.9rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

.loading-state { text-align: center; padding: 60px 20px; }
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6BBF36;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error { color: #dc3545; text-align: center; padding: 40px; }

.job-alert {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #2E4A7B 0%, #1a2d4a 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.job-alert h3 { font-size: 1.8rem; margin-bottom: 10px; }
.job-alert p { margin-bottom: 25px; opacity: 0.9; }

.alert-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.alert-form input, .alert-form select {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 250px;
}

.alert-form input { flex: 1; }

@media (max-width: 768px) {
    .filters-container { flex-direction: column; }
    .filters-container .filter-group { width: 100%; }
    .job-listings-header { flex-direction: column; gap: 15px; text-align: center; }
    .alert-form { flex-direction: column; }
    .alert-form input, .alert-form select { width: 100%; }
}
