/**
 * Jobs (Careers) - Single Page
 *
 * @author    THECON
 * @copyright THECON
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/* ==============================
   Breadcrumb
   ============================== */

.breadcrumb {
    --bs-breadcrumb-divider: "/";
    --bs-breadcrumb-font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #999;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #3EB449;
}

.breadcrumb-item.active,
.breadcrumb-item.active span,
.breadcrumb-item:last-child,
.breadcrumb-item:last-child span {
    color: #3EB449 !important;
    font-weight: 600 !important;
}

.breadcrumb-item + .breadcrumb-item:before {
    content: "/" !important;
    color: #999;
}

/* ==============================
   Page Layout
   ============================== */

.th-job-page {
    max-width: 2000px;
    margin: 40px auto;
    padding: 0 15px;
}

/* ==============================
   Header - Title
   ============================== */

.th-job-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: #2A1A46;
    margin-bottom: 24px;
}

/* ==============================
   Tabs / Pills - Job Selection
   ============================== */

.th-job-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.th-job-tabs::-webkit-scrollbar {
    display: none;
}

.th-job-tabs.th-grabbing {
    cursor: grabbing;
    user-select: none;
}

.th-job-tab {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    padding: 20px 25px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 550;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #3EB449;
    color: #3EB449;
    background: #fff;
    cursor: pointer;
}

.th-job-tab:hover {
    background: #3EB449;
    color: #fff;
    text-decoration: none;
}

.th-job-tab.active {
    background: #3EB449;
    color: #fff;
    border-color: #3EB449;
}

/* ==============================
   Content Sections
   ============================== */

.th-job-content {
    display: none;
    margin-bottom: 40px;
}

.th-job-content.active {
    display: block;
}

.th-job-empty {
    color: #7C6D96;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
}

.th-job-description-intro {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #7C6D96;
    margin-bottom: 32px;
}

.th-job-section {
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #7C6D96;
}

.th-job-description-intro h1,
.th-job-section h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #7C6D96;
}

.th-job-description-intro h2,
.th-job-section h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #7C6D96;
}

.th-job-description-intro h3,
.th-job-section h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #7C6D96;
}

.th-job-description-intro h4,
.th-job-section h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #7C6D96;
}

.th-job-description-intro p,
.th-job-section p {
    margin-bottom: 12px;
}

.th-job-description-intro strong,
.th-job-description-intro b,
.th-job-section strong,
.th-job-section b {
    font-weight: 700;
}

.th-job-description-intro ul,
.th-job-section ul {
    list-style: disc !important;
    padding-left: 24px !important;
    margin-bottom: 16px;
}

.th-job-description-intro ul li,
.th-job-section ul li {
    margin-bottom: 4px;
}

.th-job-description-intro ol,
.th-job-section ol {
    padding-left: 24px !important;
    margin-bottom: 16px;
}

/* ==============================
   Form Section
   ============================== */

.th-job-form-section {
    margin-top: 48px;
    position: relative;
}

.th-job-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.th-job-form-grid .form-group {
    margin-bottom: 0;
}

.th-job-form-grid .form-control {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    border: 1px solid #3D2B6B;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease;
}

.th-job-form-grid .form-control:focus {
    border-color: #3D2B6B;
    outline: none;
    box-shadow: 0 0 0 2px rgba(61, 43, 107, 0.15);
}

.th-job-form-grid .form-control::placeholder {
    color: #7C6D96;
    font-size: 15px;
    font-weight: 400;
}

.th-job-form-grid select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #7C6D96;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D2B6B' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-color: #fff;
}

.th-job-form-grid select.form-control option {
    color: #7C6D96;
}

/* ==============================
   File Upload
   ============================== */

.th-job-upload-section {
    margin-bottom: 24px;
}

.th-job-upload-label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    display: block;
}

.th-job-upload-label .required {
    color: #e74c3c;
}

.th-job-upload-container {
    margin-bottom: 4px;
    position: relative;
    border: 1px solid #3D2B6B;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: #fff;
}

.th-job-upload-container input[type="file"] {
    width: 100%;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #7C6D96;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.th-job-upload-container input[type="file"]::file-selector-button {
    padding: 14px 20px;
    border: none;
    border-right: 1px solid #3D2B6B;
    background: #F5F5F5;
    color: #7C6D96;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 12px 0 0;
    height: 100%;
    transition: background 0.3s ease;
}

.th-job-upload-container input[type="file"]::file-selector-button:hover {
    background: #e8e4f0;
}

.th-job-upload-hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #999;
}

/* ==============================
   Consent Checkbox
   ============================== */

.th-job-consent-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.th-job-consent-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3D9B5E;
    cursor: pointer;
    flex-shrink: 0;
}

.th-job-consent-section label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin-bottom: 0;
    cursor: pointer;
}

.th-job-consent-section label a {
    color: #3D9B5E;
    font-weight: 600;
    text-decoration: none;
}

.th-job-consent-section label a:hover {
    text-decoration: underline;
}

/* ==============================
   Submit Button
   ============================== */

.th-job-submit-section {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 40px;
}

.th-job-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    background: #3EB449;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.th-job-submit-btn:hover {
    background: #357F4F;
    box-shadow: 0 4px 16px rgba(61, 155, 94, 0.35);
}

.th-job-submit-btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.th-job-submit-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: th-spin 0.6s linear infinite;
}

.th-job-submit-btn.loading .th-job-submit-spinner {
    display: inline-block;
}

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

/* ==============================
   Responsive
   ============================== */

@media (max-width: 768px) {
    .th-job-page-title {
        font-size: 32px;
    }

    .th-job-tabs {
        gap: 8px;
    }

    .th-job-tab {
        padding: 10px 24px;
        font-size: 14px;
    }

    .th-job-form-grid {
        grid-template-columns: 1fr;
    }

    .th-job-submit-btn {
        width: 100%;
        padding: 14px 32px;
    }

    .th-job-description-intro,
    .th-job-section {
        font-size: 14px;
    }
}
