/* ============================================
   JOB MATCHING FEATURE - COMPLETE CSS
   ============================================ */

/* 1. HOMEPAGE SECTION */
body .job-matching-section {
    max-width: 1680px;
    margin: 60px auto;
    width: 85%;
    padding: 40px 0;
}

body .job-matching-section .container {
    width: 100%;
    margin: 0 auto;
}

body .job-matching-content {
    background: linear-gradient(135deg, #03429f 0%, #0258c7 100%);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(3, 66, 159, 0.2);
}

body .job-matching-header {
    margin-bottom: 30px;
}

body .job-matching-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

body .job-matching-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

body .job-matching-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

body .job-matching-features {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

body .job-matching-feature {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

body .job-matching-feature i {
    font-size: 20px;
}

body .job-matching-cta {
    margin-top: 30px;
}

body .job-matching-button {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #03429f;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body .job-matching-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* 2. JOB MATCHING PAGE */
body .job-matching-page {
    max-width: 1680px;
    margin: 0 auto;
    width: 85%;
    padding: 40px 0 80px;
}

body .job-matching-page .container {
    width: 100%;
    margin: 0 auto;
}

body .job-matching-header-section {
    text-align: center;
    margin-bottom: 50px;
}

body .job-matching-page-title {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.3;
}

body .job-matching-page-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

body .job-matching-header-actions {
    margin-top: 20px;
}

body .job-matching-unsolicited-btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: #03429f;
    border: 2px solid #03429f;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

body .job-matching-unsolicited-btn:hover {
    background: #03429f;
    color: #fff;
    text-decoration: none;
}

/* 3. CATEGORY PILLS */
body .job-matching-categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

body .job-matching-category-pill {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

body .job-matching-category-pill i {
    font-size: 16px;
}

body .job-matching-category-pill:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

body .job-matching-category-pill.active {
    background: #03429f;
    color: #fff;
    border-color: #03429f;
}

body .job-matching-category-pill.active:hover {
    background: #0258c7;
    border-color: #0258c7;
}

/* 4. POSITION CARDS */
body .job-matching-positions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

body .job-matching-position-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body .job-matching-position-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body .position-card-header {
    margin-bottom: 16px;
}

body .position-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

body .position-card-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

body .position-meta-chip {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
}

body .position-meta-chip i {
    font-size: 14px;
}

body .position-card-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
}

body .position-card-btn {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

body .position-card-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

body .position-card-btn.secondary:hover {
    background: #e5e7eb;
}

body .position-card-btn.primary {
    background: #03429f;
    color: #fff;
}

body .position-card-btn.primary:hover {
    background: #0258c7;
    color: #fff;
    text-decoration: none;
}

body .job-matching-no-positions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* 5. MODAL */
body .job-matching-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

body .job-matching-modal.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

body .job-matching-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
}

body .modal-close:hover {
    color: #111827;
}

body .position-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

body .position-details-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

body .meta-chip {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
}

body .position-details-section {
    margin-bottom: 24px;
}

body .position-details-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

body .position-details-section p {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}

body .position-details-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body .position-details-section ul li {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

body .position-details-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #03429f;
    font-weight: bold;
}

body .position-details-footer {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

body .position-details-closing {
    font-size: 16px;
    color: #374151;
    margin-bottom: 20px;
}

body .loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

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

/* 6. APPLICATION FORM */
body .job-matching-apply-form-container {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body .form-group {
    margin-bottom: 20px;
}

body .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

body .form-group .required {
    color: #ef4444;
}

body .form-group input[type="text"],
body .form-group input[type="email"],
body .form-group input[type="tel"],
body .form-group input[type="file"],
body .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

body .form-group input:focus,
body .form-group textarea:focus {
    outline: none;
    border-color: #03429f;
    box-shadow: 0 0 0 3px rgba(3, 66, 159, 0.1);
}

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

body .form-help {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

body .form-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

body .success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

body .error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body .form-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: 24px;
}

body .btn-primary,
body .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

body a.btn-primary,
body a.btn-secondary {
    text-align: center;
}

body .btn-primary {
    background: #03429f;
    color: #fff;
}

body .btn-primary:hover:not(:disabled) {
    background: #0258c7;
}

body .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

body .btn-secondary:hover {
    background: #e5e7eb;
    text-decoration: none;
}

/* 7. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body .job-matching-section {
        width: 95%;
        margin: 40px auto;
        padding: 20px 0;
    }

    body .job-matching-content {
        padding: 30px 20px;
    }

    body .job-matching-title {
        font-size: 28px;
    }

    body .job-matching-subtitle {
        font-size: 16px;
    }

    body .job-matching-features {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 20px;
    }

    body .job-matching-page {
        width: 95%;
        padding: 20px 0 40px;
    }

    body .job-matching-page-title {
        font-size: 32px;
    }

    body .job-matching-positions {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body .position-card-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    body .job-matching-modal .modal-content {
        padding: 20px;
        max-height: 95vh;
    }

    body .job-matching-apply-form-container {
        padding: 20px;
        margin: 20px auto;
    }

    body .form-actions {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    body .btn-primary,
    body .btn-secondary {
        width: 100%;
    }
}
