/* ==========================================================================
   Tag Jobs Listing - Main Styles
   ========================================================================== */

:root {
    --tj-primary: #265EE6;
    --tj-primary-hover: #001B5E;
    --tj-primary-light: #e8f0f0;
    --tj-text-dark: #1a1a1a;
    --tj-text-medium: #4a4a4a;
    --tj-text-light: #6b7280;
    --tj-text-muted: #9ca3af;
    --tj-border: #e5e7eb;
    --tj-border-light: #f3f4f6;
    --tj-bg-white: #ffffff;
    --tj-bg-light: #f9fafb;
    --tj-bg-dark: #1e3a3c;
    --tj-badge-bg: #265EE6;
    --tj-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tj-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --tj-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --tj-radius: 8px;
    --tj-radius-lg: 12px;
    --tj-transition: all 0.2s ease;
}

.tj-listing-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--tj-text-dark);
    line-height: 1.5;
    max-width: 100%;
	width:100%;
    margin: 0 auto;
	
}

.tj-listing-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.tj-page-header {
    padding: 30px 0 40px;
}

.tj-breadcrumb {
    font-size: 14px;
    color: var(--tj-text-light);
    margin-bottom: 20px;
}

.tj-breadcrumb a {
    color: var(--tj-text-light);
    text-decoration: none;
    transition: var(--tj-transition);
}

.tj-breadcrumb a:hover {
    color: var(--tj-primary);
}

.tj-breadcrumb-sep {
    margin: 0 8px;
    color: var(--tj-text-muted);
}

.tj-page-title {
    font-size: 42px;
    font-weight: 400;
    color: var(--tj-text-dark);
    margin: 0 0 12px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    letter-spacing: -0.5px;
}

.tj-page-subtitle {
    font-size: 16px;
    color: var(--tj-text-light);
    margin: 0;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.tj-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 7px;
    background: var(--tj-bg-white);
    border: 1px solid var(--tj-border);
    border-radius: 35px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tj-search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.tj-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--tj-text-muted);
}

#tj-search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: none;
    font-size: 15px;
    color: var(--tj-text-dark);
    background: transparent;
    outline: none;
}

#tj-search-input::placeholder {
    color: var(--tj-text-muted);
}

.tj-dropdown-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tj-select-wrapper {
    position: relative;
}

.tj-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    font-size: 14px;
    color: var(--tj-text-medium);
    background: var(--tj-bg-white);
    cursor: pointer;
    min-width: 140px;
    transition: var(--tj-transition);
}

.tj-select-wrapper select:hover {
    border-color: var(--tj-primary);
}

.tj-select-wrapper select:focus {
    outline: none;
    border-color: var(--tj-primary);
    box-shadow: 0 0 0 3px var(--tj-primary-light);
}

.tj-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--tj-text-muted);
    pointer-events: none;
}

.tj-search-btn {
    padding: 10px 28px !important;
    background: var(--tj-primary);
    color: white !important;
    border: none;
    /* border-radius: var(--tj-radius) !important; */
    font-size: 14px !important;
    font-weight: 500;
    cursor: pointer !important;
    transition: var(--tj-transition);
}

.tj-search-btn:hover {
    background: var(--tj-primary-hover);
}

/* ==========================================================================
   Results Count
   ========================================================================== */

.tj-results-count {
    font-size: 14px;
    color: var(--tj-text-light);
    margin-bottom: 24px;
}

/* ==========================================================================
   Content Area Layout
   ========================================================================== */

.tj-content-area {
    flex-direction: column;
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* ==========================================================================
   Jobs Grid
   ========================================================================== */

.tj-jobs-container {
    min-width: 0;
}

.tj-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* ==========================================================================
   Job Card
   ========================================================================== */

.tj-job-card {
    position: relative;
    background: var(--tj-bg-white);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius-lg);
    padding: 24px;
    transition: var(--tj-transition);
}

.tj-job-card:hover {
    border-color: var(--tj-primary);
    box-shadow: var(--tj-shadow-md);
}

.tj-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    position: absolute;
    top: 16px;
    right: 16px;
}

.tj-badge-pe {
    background: #dbdbdb;
    color: #000000;
}
.tj-job-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tj-text-dark);
    margin: 0 0 16px;
    padding-right: 80px;
    line-height: 1.3;
}

.tj-job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tj-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tj-text-light);
}

.tj-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tj-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--tj-border-light);
}

.tj-imported-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tj-text-muted);
}

.tj-imported-info .tj-icon {
    width: 14px;
    height: 14px;
}

.tj-view-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--tj-primary);
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--tj-radius);
    transition: var(--tj-transition);
}

.tj-view-btn:hover {
    background: var(--tj-primary-hover);
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   Load More
   ========================================================================== */

.tj-load-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.tj-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: transparent;
    color: var(--tj-primary);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--tj-primary);
    border-radius: var(--tj-radius);
    cursor: pointer;
    transition: var(--tj-transition);
    min-width: 180px;
}

.tj-load-more-btn:hover {
    background: var(--tj-primary);
    color: white;
}

.tj-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tj-load-more-btn.loading {
    pointer-events: none;
}

.tj-load-more-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tj-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Sidebar
   ========================================================================== */

.tj-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.tj-sidebar-section {
    background: var(--tj-bg-white);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.tj-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tj-text-dark);
    margin: 0 0 20px;
}

.tj-filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tj-border-light);
}

.tj-filter-group:last-of-type {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.tj-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--tj-text-dark);
    margin: 0 0 12px;
}

.tj-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--tj-text-medium);
}

.tj-checkbox-label:last-child {
    margin-bottom: 0;
}

.tj-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tj-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--tj-border);
    border-radius: 4px;
    flex-shrink: 0;
    transition: var(--tj-transition);
    position: relative;
}

.tj-checkbox:checked + .tj-checkbox-custom {
    background: var(--tj-primary);
    border-color: var(--tj-primary);
}

.tj-checkbox:checked + .tj-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tj-checkbox:focus + .tj-checkbox-custom {
    box-shadow: 0 0 0 3px var(--tj-primary-light);
}

.tj-checkbox-text {
    line-height: 1.3;
}

.tj-clear-filters-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--tj-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--tj-radius);
    cursor: pointer;
    transition: var(--tj-transition);
}

.tj-clear-filters-btn:hover {
    background: var(--tj-primary-hover);
}

.tj-cta-box {
    background: linear-gradient(135deg, #1e3a3c 0%, #2d5254 100%);
    border-radius: var(--tj-radius-lg);
    padding: 28px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.tj-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.tj-cta-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    position: relative;
}

.tj-cta-text {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 20px;
    line-height: 1.5;
    position: relative;
}

.tj-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: var(--tj-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--tj-radius);
    transition: var(--tj-transition);
    position: relative;
}

.tj-cta-btn:hover {
    background: var(--tj-bg-light);
    color: var(--tj-primary);
    text-decoration: none;
}

.tj-trusted-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--tj-text-dark);
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */

.tj-bottom-cta {
    background: var(--tj-bg-light);
    border-radius: var(--tj-radius-lg);
    padding: 48px;
    text-align: center;
    margin-bottom: 40px;
}

.tj-bottom-cta-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--tj-text-dark);
    margin: 0 0 12px;
}

.tj-bottom-cta-text {
    font-size: 16px;
    color: var(--tj-text-light);
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tj-bottom-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--tj-primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--tj-radius);
    transition: var(--tj-transition);
}

.tj-bottom-cta-btn:hover {
    background: var(--tj-primary-hover);
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.tj-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--tj-text-light);
    font-size: 16px;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.tj-loading {
    position: relative;
    pointer-events: none;
}

.tj-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 1024px) {
    .tj-content-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tj-sidebar {
        position: static;
        order: -1;
    }
    
    .tj-sidebar-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .tj-sidebar-title {
        grid-column: 1 / -1;
    }
    
    .tj-filter-group {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .tj-clear-filters-btn {
        grid-column: 1 / -1;
    }
    
    .tj-cta-box {
        display: none;
    }
    
    .tj-trusted-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .tj-page-title {
        font-size: 32px;
    }
    
    .tj-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tj-search-box {
        width: 100%;
    }
    
    .tj-dropdown-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .tj-select-wrapper {
        width: 100%;
    }
    
    .tj-select-wrapper select {
        width: 100%;
    }
    
    .tj-search-btn {
        width: 100%;
    }
    
    .tj-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .tj-sidebar-section {
        grid-template-columns: 1fr;
    }
    
    .tj-bottom-cta {
        padding: 32px 24px;
    }
    
    .tj-bottom-cta-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .tj-listing-wrapper {
        padding: 0 16px;
    }
    
    .tj-page-header {
        padding: 20px 0 30px;
    }
    
    .tj-page-title {
        font-size: 26px;
    }
    
    .tj-job-card {
        padding: 20px;
    }
    
    .tj-badge {
        position: static;
        margin-bottom: 12px;
    }
    
    .tj-job-title {
        padding-right: 0;
        font-size: 16px;
    }
    
    .tj-job-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .tj-view-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.tj-fade-in {
    animation: tjFadeIn 0.3s ease;
}

@keyframes tjFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tj-jobs-grid.loading .tj-job-card {
    opacity: 0.5;
    pointer-events: none;
}
/* Job Description Styling - Add this to your tag-jobs.css file */

.tj-job-description {
    margin: 16px 0;
    padding: 0;
}

.tj-job-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure proper spacing in the job card */
.tj-job-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tj-job-meta {
    margin: 8px 0;
}

.tj-job-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tj-job-description p {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* ==========================================================================
   Job Application Form Styles
   ========================================================================== */

.tj-application-form-wrapper {
    background: var(--tj-bg-white);
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius-lg);
    padding: 40px;
    margin-top: 40px;
    scroll-margin-top: 100px;
}

.tj-application-form-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tj-border-light);
}

.tj-application-form-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--tj-text-dark);
    margin: 0 0 8px;
}

.tj-application-form-subtitle {
    font-size: 15px;
    color: var(--tj-text-light);
    margin: 0;
}

.tj-application-form {
    max-width: 800px;
    margin: 0 auto;
}

.tj-form-row {
    margin-bottom: 20px;
}

.tj-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tj-form-group {
    display: flex;
    flex-direction: column;
}

.tj-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--tj-text-dark);
    margin-bottom: 8px;
}

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

.tj-form-group input[type="text"],
.tj-form-group input[type="email"],
.tj-form-group input[type="tel"],
.tj-form-group input[type="url"],
.tj-form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius);
    font-size: 15px;
    color: var(--tj-text-dark);
    background: var(--tj-bg-white);
    transition: var(--tj-transition);
    font-family: inherit;
}

.tj-form-group input:focus,
.tj-form-group textarea:focus {
    outline: none;
    border-color: var(--tj-primary);
    box-shadow: 0 0 0 3px rgba(38, 94, 230, 0.1);
}

.tj-form-group input::placeholder,
.tj-form-group textarea::placeholder {
    color: var(--tj-text-muted);
}

.tj-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload Styling */
.tj-file-upload {
    position: relative;
}

.tj-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.tj-file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed var(--tj-border);
    border-radius: var(--tj-radius);
    background: var(--tj-bg-light);
    text-align: center;
    transition: var(--tj-transition);
}

.tj-file-upload:hover .tj-file-upload-label {
    border-color: var(--tj-primary);
    background: rgba(38, 94, 230, 0.05);
}

.tj-file-upload-label svg {
    width: 40px;
    height: 40px;
    color: var(--tj-primary);
    margin-bottom: 12px;
}

.tj-file-upload-label span {
    font-size: 15px;
    color: var(--tj-text-dark);
    font-weight: 500;
    margin-bottom: 4px;
}

.tj-file-upload-label small {
    font-size: 13px;
    color: var(--tj-text-muted);
}

.tj-file-name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--tj-primary);
    font-weight: 500;
}

.tj-file-name:empty {
    display: none;
}

/* Checkbox/Consent Styling */
.tj-form-consent {
    margin-top: 10px;
}

.tj-form-consent label {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
}

.tj-form-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--tj-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.tj-form-consent span {
    font-size: 14px;
    color: var(--tj-text-medium);
    line-height: 1.5;
}

/* Submit Button */
.tj-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    background: var(--tj-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--tj-radius);
    cursor: pointer;
    transition: var(--tj-transition);
}

.tj-submit-btn:hover {
    background: var(--tj-primary-hover);
}

.tj-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.tj-btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tj-spinner {
    width: 20px;
    height: 20px;
    animation: tj-spin 1s linear infinite;
}

/* Form Message */
.tj-form-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--tj-radius);
    font-size: 15px;
    text-align: center;
}

.tj-form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.tj-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Application Form Responsive */
@media (max-width: 768px) {
    .tj-application-form-wrapper {
        padding: 24px;
        margin-top: 24px;
    }

    .tj-application-form-title {
        font-size: 22px;
    }

    .tj-form-row-2 {
        grid-template-columns: 1fr;
    }

    .tj-file-upload-label {
        padding: 20px 16px;
    }

    .tj-file-upload-label svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .tj-application-form-wrapper {
        padding: 20px 16px;
    }

    .tj-application-form-title {
        font-size: 20px;
    }

    .tj-submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}