/* --- Container for the Search Shortcodes --- */
.onet-training-search-wrapper,
.onet-certification-search-wrapper {
    font-family: sans-serif;
    padding: 2em;
    border-radius: 1em;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Search Form Styles --- */
#onet-training-search-form,
#onet-certification-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

#onet-training-search-form .form-group,
#onet-certification-search-form .form-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
}

#onet-training-search-form label,
#onet-certification-search-form label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

#onet-training-search-form input[type="text"],
#onet-certification-search-form input[type="text"] {
    height: 45px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#onet-certification-search-form h5 {
    margin-top: 10px;
    margin-bottom: 5px;
}

#onet-certification-search-form ul {
    margin-top: 0;
    padding-left: 20px;
}

/* --- Results Area & Loader --- */
.onet-search-results-area {
    position: relative;
    min-height: 100px;
    margin-top: 20px;
}

.onet-search-results-area .initial-message {
    text-align: center;
    color: #666;
    padding: 20px;
    background: #fff;
    border: 1px dashed #ccc;
}

.onet-search-results-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onet-search-results-area li {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.onet-search-results-area h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #005a87;
}

.onet-search-results-area p {
    margin: 0 0 3px 0;
    font-size: 0.9em;
    color: #333;
}

.onet-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85); 
    z-index: 10; 
    display: none; 
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.onet-loader-container {
    text-align: center;
    padding: 40px 0;
}

.onet-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f15a3a;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

.is-loading {
    opacity: 0.5;
    pointer-events: none; 
}

/* --- Pagination Styles --- */
.onet-pagination-container {
    margin-top: 20px;
    text-align: center;
}

.onet-pagination-container .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    background: #fff;
}

.onet-pagination-container .page-numbers.current,
.onet-pagination-container .page-numbers:hover {
    background-color: #f15a3a;
    color: #fff;
    border-color: #f15a3a;
}

/* --- Master Occupation Profile Styles --- */
.onet-occupation-profile {
    font-family: sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
.onet-occupation-profile h1 {
    font-size: 36px !important;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.onet-occupation-profile .header-buttons {
    margin-bottom: 25px;
}

.onet-occupation-profile .header-buttons button {
    padding: 8px 15px;
    margin-right: 10px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    cursor: pointer;
    border-radius: 4px;
}

/* Grids & Layout */
.onet-occupation-profile .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.onet-occupation-profile .main-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.onet-occupation-profile .secondary-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* General Section Styling */
.onet-occupation-profile .info-section,
.onet-occupation-profile .onet-profile-section {
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-top-width: 3px;
    border-radius: 4px;
}

.onet-occupation-profile .info-section h2,
.onet-occupation-profile .onet-profile-section h2 {
    font-size: 24px !important;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: none;
    padding-bottom: 0;
    font-weight: bold;
    text-transform: uppercase;
}

.onet-occupation-profile .info-section h3,
.onet-occupation-profile .onet-profile-section h3 {
    font-size: 16px !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.onet-occupation-profile .info-section h3:first-of-type {
    margin-top: 0;
}

.onet-occupation-profile .info-section ul,
.onet-occupation-profile .onet-profile-section ul {
    padding-left: 20px;
    margin-top: 0;
    list-style-type: disc;
}

.onet-occupation-profile .info-section li,
.onet-occupation-profile .onet-profile-section li {
    margin-bottom: 8px;
}

/* Intro Section Specifics */
.onet-occupation-profile .intro-section p { margin-top: 0; }
.onet-occupation-profile .intro-section strong { font-weight: bold; color: #f15a3a; }
.onet-occupation-profile .intro-section ul { margin-top: 5px; }

/* Color Coding */
.onet-occupation-profile .knowledge { border-top-color: #f15a3a; }
.onet-occupation-profile .knowledge h2, .onet-occupation-profile .knowledge h3 { color: #5a1746; }

.onet-occupation-profile .skills { border-top-color: #5a1746; }
.onet-occupation-profile .skills h2, .onet-occupation-profile .skills h3 { color: #f15a3a; }

.onet-occupation-profile .abilities { border-top-color: #f15a3a; }
.onet-occupation-profile .abilities h2, .onet-occupation-profile .abilities h3 { color: #5a1746; }

.onet-occupation-profile .personality { border-top-color: #5a1746; }
.onet-occupation-profile .personality h2 { color: #f15a3a; }
.onet-occupation-profile .personality ul { display: grid; grid-template-columns: 1fr 1fr; }
.onet-occupation-profile .personality strong { color: #c0392b; }

.onet-occupation-profile .technology { border-top-color: #f15a3a; }
.onet-occupation-profile .technology h2, .onet-occupation-profile .technology h3 { color: #5a1746; }

.onet-occupation-profile .explore-more { border-top-color: #5a1746; }
.onet-occupation-profile .explore-more h2, .onet-occupation-profile .explore-more h3 { color: #f15a3a; }

.onet-occupation-profile .education { border-top-color: #5a1746; }
.onet-occupation-profile .education h2, .onet-occupation-profile .education h3 { color: #f15a3a; }

.onet-occupation-profile .job-outlook { border-top-color: #f15a3a; }
.onet-occupation-profile .job-outlook h2 { color: #5a1746; }

/* --- Education Section --- */
.education .education-icons { margin-bottom: 10px; }
.education .education-icon { font-size: 28px; color: #ddd; display: inline-block; padding: 5px; background-color: #f0f0f0; margin-right: 5px; border-radius: 4px; }
.education .education-icon.filled { background: #4d4747a1; }
.education .education-degree { font-size: 1.2em; font-weight: bold; margin: 0; color: #f15a3a; }
.education .education-meta { font-size: 0.9em; color: #666; margin: 0 0 20px 0; }

/* --- Job Outlook Section --- */
.job-outlook .outlook-section { display: flex; align-items: center; margin-bottom: 25px; }
.job-outlook .outlook-icon { font-size: 48px; margin-right: 15px; }
.job-outlook .outlook-section p { margin: 0; }
.job-outlook .salary-section { margin-bottom: 25px; }
.job-outlook .salary-label { margin: 0; font-size: 0.9em; color: #777; }
.job-outlook .salary-median { font-size: 1.8em; font-weight: bold; color: #27ae60; margin: 0; }

/* FIXED SALARY CHART STYLES */
.onet-profile-section.job-outlook .salary-chart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #555;
    margin-top: 25px;
}

.onet-profile-section.job-outlook .salary-chart b {
    white-space: nowrap;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.onet-profile-section.job-outlook .chart-track {
    position: relative;
    flex-grow: 1;
    height: 10px;
    margin: 0 15px;
}

.onet-profile-section.job-outlook .chart-bar {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.onet-profile-section.job-outlook .median-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    height: 100%;
}

.onet-profile-section.job-outlook .marker-line {
    width: 4px;
    height: 20px;
    background-color: #27ae60;
    position: absolute;
    top: -5px;
    left: -2px;
    border-radius: 2px;
}

.onet-profile-section.job-outlook .marker-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #27ae60;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Explore More Section --- */
.explore-more .explore-list { margin-bottom: 20px; }
.explore-more a { text-decoration: underline; color: #2980b9; }

/* --- Career Links (shared) --- */
.career-links { margin-top: 30px; }
.career-links p { margin-bottom: 10px; }
.career-link { 
    display: block; 
    padding: 10px 15px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    text-align: center; 
    margin-bottom: 10px; 
    text-decoration: none; 
    color: #333; 
    transition: background-color 0.2s;
    width: 100%;
    font-size: 16px;
    background: transparent;
}
.career-link:hover { background-color: #f4f4f4; }

/* --- Modal Popup Styles --- */
.onet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.onet-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.onet-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
}
.onet-modal-close:hover {
    opacity: 1;
}

/* --- Salary Modal Form Styles --- */
#onet-salary-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
#onet-salary-search-form .form-group {
    flex-grow: 1;
}
#onet-salary-search-form select {
    width: 100%;
    padding: 8px;
    font-size: 16px;
}
#onet-salary-search-form button {
    padding: 8px 20px;
    border: 1px solid #ccc;
    background-color: #f4f4f4;
    cursor: pointer;
    font-size: 16px;
}
#onet-salary-results-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
#onet-salary-results-container h4 {
    margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .onet-occupation-profile .main-content,
    .onet-occupation-profile .secondary-content {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .onet-occupation-profile .intro-grid,
    .onet-occupation-profile .main-content,
    .onet-occupation-profile .secondary-content {
        grid-template-columns: 1fr;
    }
    
    #onet-salary-search-form {
        flex-direction: column;
        align-items: stretch;
    }
}