/* ================================================
   AIOJP JOB PORTAL - STYLE
   ================================================ */

/* ---- Home Search Form ---- */
#aiojp-home-search-form {
    display: flex;
    gap: 12px;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    justify-content: space-between;
}

#aiojp-home-search-form div {
    display: flex;
    align-items: center;
}

#aiojp-home-search-form div img {
    padding: 0 8px;
}

#aiojp-home-search-form input[type="text"] {
    padding: 0;
    min-width: 200px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    width: fit-content;
    font-weight: 400;
    outline: none;
    box-shadow: none;
}

#aiojp-home-search-form input[type="text"]::-webkit-input-placeholder {
    color: #CACACA;
}

#aiojp-home-search-form input[type="text"]:-moz-placeholder {
    color: #CACACA;
}

#aiojp-home-search-form input[type="text"]::-moz-placeholder {
    color: #CACACA;
}

#aiojp-home-search-form input[type="text"]:-ms-input-placeholder {
    color: #CACACA;
}

#aiojp-home-search-form button[type="submit"] {
    cursor: pointer;
    color: #F7F7F7;
    background-image: linear-gradient(180deg, #91D6FF 0%, #2180EE 100%);
    border: none;
    border-radius: 8px;
    width: 160px;
    height: 48px;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s;
}

#aiojp-home-search-form button[type="submit"]:hover {
    opacity: 0.88;
}


/* ================================================
   JOB LISTING PAGE
   ================================================ */

.aiojp-listing-wrap {
    padding: 40px 0 60px;
    color: #101828;
    font-family: inherit;
}

.aiojp-listing-wrap h2.aiojp-listing-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #183858 !important;
    margin: 0 0 26px !important;
    white-space: nowrap;
    line-height: 1.2 !important;
}

.aiojp-listing-wrap h2.aiojp-listing-title span {
    color: #1a3a5c;
}

/* Filter Bar */
.aiojp-filter-bar {
    margin-bottom: 32px;
}

.aiojp-filter-search {
    margin-bottom: 16px;
}

.aiojp-filter-bar input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 11px 20px;
    border: 1px solid #DDE3EE;
    border-radius: 50px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    color: #1E1E1E;
    transition: border-color 0.2s;
}

.aiojp-filter-bar input[type="text"]:focus {
    border-color: #2180EE;
}

.aiojp-filter-bar input[type="text"]::-webkit-input-placeholder {
    color: #ABABAB;
}

.aiojp-filter-bar input[type="text"]:-moz-placeholder {
    color: #ABABAB;
}

.aiojp-filter-bar input[type="text"]::-moz-placeholder {
    color: #ABABAB;
}

.aiojp-filter-bar input[type="text"]:-ms-input-placeholder {
    color: #ABABAB;
}

.aiojp-filter-categories {
    display: flex;
    gap: 8px 12px;
    flex-wrap: wrap;
    align-items: center;
}

.aiojp-filter-categories .category-link {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    text-decoration: none;
    background: #F0F4FA;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.aiojp-filter-categories .category-link:hover,
.aiojp-filter-categories .category-link.active {
    background: #2180EE;
    color: #fff;
    border-color: #2180EE;
}

/* Scroll Wrapper */
.aiojp-grid-scroll-wrap {
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}
.aiojp-grid-scroll-wrap::-webkit-scrollbar {
    width: 5px;
}
.aiojp-grid-scroll-wrap::-webkit-scrollbar-track {
    background: #EEF2FF;
    border-radius: 10px;
}
.aiojp-grid-scroll-wrap::-webkit-scrollbar-thumb {
    background: #2180EE;
    border-radius: 10px;
}

/* Cards Grid */
#aiojp-job-results,
.aiojp-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.aiojp-no-jobs {
    color: #6B7280;
    text-align: center;
    grid-column: 1 / -1;
    padding: 48px 0;
    font-size: 16px;
}

/* Job Card */
.aiojp-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    min-width: 0;
    border-radius: 16px;
    outline: none;
}

.aiojp-card-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(33, 128, 238, 0.28);
}

.aiojp-job-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 26px 26px;
    border: 1px solid rgba(229, 231, 235, 0.55);
    box-shadow: 0 8px 26px rgba(16, 24, 40, 0.035);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    min-height: 294px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.aiojp-job-card:hover {
    border-color: rgba(33, 128, 238, 0.2);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.09);
    transform: translateY(-3px);
}

.aiojp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 11px;
}

.aiojp-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.aiojp-card-title-wrap h3 {
    font-size: 19px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 4px;
    max-width: 100%;
	 display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: normal !important;
    line-height: 1.4;
}

.aiojp-card-category {
    display: block;
    font-size: 13px;
    color: #ef1b1b;
    font-weight: 500;
    line-height: 1.35;
}

.aiojp-status-badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.aiojp-status-badge.badge-active {
    background: #d9f8e7;
    color: #118447;
}

.aiojp-status-badge.badge-inactive {
    background: #FEE2E2;
    color: #DC2626;
}

.aiojp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}

.aiojp-card-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #5f6b7c;
    line-height: 1.4;
}

.aiojp-card-meta svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.aiojp-card-excerpt {
    font-size: 13px;
    color: #5f6b7c;
    line-height: 1.55;
    margin: 0 0 22px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aiojp-view-btn {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    text-align: center;
    background: #23051d !important;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.aiojp-view-btn:hover {
    background: #3b0a32 !important;
}

@media screen and (max-width: 1199px) {
    #aiojp-job-results,
    .aiojp-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ================================================
   SINGLE JOB PAGE
   ================================================ */

.aiojp-single-page {
    background: url("https://jojoos.cn/wp-content/uploads/2026/08/Group-5.png") no-repeat #fff;
    min-height: 100vh;
    padding: 48px 20px 72px;
    color: #101828;
}

.aiojp-single-container {
    max-width: 1140px;
    margin: 0 auto;
}

.aiojp-single-banner {
    margin-bottom: 28px;
}

.aiojp-single-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.aiojp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 22px;
    transition: color 0.2s;
}

.aiojp-back-link:hover {
    color: #ef1b1b;
}

.aiojp-back-link svg {
    flex-shrink: 0;
}

.aiojp-single-layout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Left Main */
.aiojp-job-main {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 24px 26px 28px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.025);
    min-width: 0;
}

.aiojp-job-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.aiojp-job-title-row h1 {
    font-size: 23px;
    font-weight: 700;
    color: #101828;
    margin: 0;
    line-height: 1.25;
}

.aiojp-dept-label {
    font-size: 14px;
    color: #ef1b1b;
    font-weight: 600;
    margin: 5px 0 18px;
}

/* Info Boxes */
.aiojp-info-boxes {
    display: flex;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 22px;
}

.aiojp-info-box {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff0f1;
    border-radius: 8px;
    padding: 8px 11px;
    min-height: 46px;
    font-size: 12px;
    font-weight: 600;
    color: #101828;
    box-sizing: border-box;
}

.aiojp-info-box svg {
    color: #ff2638;
    flex-shrink: 0;
}

.aiojp-info-box > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.2;
}

.aiojp-info-box small {
    color: #7a7280;
    font-size: 9px;
    font-weight: 500;
    margin-bottom: 2px;
}

.aiojp-info-box strong {
    color: #101828;
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Sections */
.aiojp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    margin: 0 0 8px;
}

.aiojp-content-section {
    margin-top: 18px;
}

.aiojp-section-text {
    font-size: 12px;
    color: #5f6675;
    line-height: 1.55;
    margin: 0;
}

.aiojp-section-text p {
    margin: 0 0 10px;
}

/* Checklist */
.aiojp-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aiojp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: #5f6675;
    line-height: 1.4;
}

.aiojp-checklist li::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    min-width: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23ff2638' stroke-width='1.8'/%3E%3Cpolyline points='8 12 11 15 16 9' stroke='%23ff2638' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 2px;
}

/* Skills */
.aiojp-skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aiojp-skill-tag {
    background: #fff0f1;
    color: #25202a;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

/* Right Sidebar */
.aiojp-job-sidebar {
    width: 290px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}

.aiojp-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 22px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.025);
}

.aiojp-sidebar-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.aiojp-sidebar-detail {
    margin-bottom: 12px;
}

.aiojp-sidebar-detail .detail-label {
    display: block;
    font-size: 10px;
    color: #747b88;
    font-weight: 500;
    margin-bottom: 2px;
}

.aiojp-sidebar-detail .detail-value {
    display: block;
    font-size: 12px;
    color: #101828;
    font-weight: 600;
}

.aiojp-apply-wrap {
    margin-top: 6px;
}

.aiojp-apply-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #23051d;
    color: #fff !important;
    padding: 13px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.aiojp-apply-btn:hover {
    background: #3b0a32;
}

.aiojp-already-applied {
    color: #16A34A;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    background: #DCFCE7;
    border-radius: 8px;
    margin: 0;
    line-height: 1.5;
}


/* ================================================
   APPLY MODAL
   ================================================ */

.apply-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.apply-modal.is-open {
    display: flex;
}

.apply-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.apply-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #9CA3AF;
    line-height: 1;
    font-weight: 400;
}

.close-btn:hover {
    color: #1a1a1a;
}

/* Form inside modal */
#job-apply-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 16px 0 5px;
}

#job-apply-form input[type="text"],
#job-apply-form input[type="email"],
#job-apply-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #DDE3EE;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

#job-apply-form input[type="text"]:focus,
#job-apply-form input[type="email"]:focus,
#job-apply-form textarea:focus {
    border-color: #2180EE;
}

#job-apply-form textarea {
    min-height: 90px;
    resize: vertical;
}

#job-apply-form #resume {
    width: 100%;
    font-size: 13px;
}

#submit-application {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #5BB5F5 0%, #2180EE 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s;
}

#submit-application:hover {
    opacity: 0.88;
}