/*-- -------------------------- -->
<---        Job Listings        -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #job-listings-1835 {
        padding: var(--sectionPadding);
        position: relative;
        background-color: #fff;
        min-height: 100vh;
    }
    
    #job-listings-1835 .cs-container {
        max-width: 90rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
    }
    
    #job-listings-1835 .cs-content {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #job-listings-1835 .cs-topper {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2em;
        text-transform: uppercase;
        text-align: inherit;
        letter-spacing: 0.1em;
        color: var(--primary);
        margin-bottom: 0.25rem;
        display: block;
    }
    
    #job-listings-1835 .cs-title {
        font-size: clamp(1.9375rem, 3.9vw, 3.0625rem);
        font-weight: 700;
        line-height: 1.2em;
        text-align: inherit;
        max-width: 43.75rem;
        margin: 0 0 1.5rem 0;
        color: var(--headerColor);
        position: relative;
    }

    #job-listings-1835 .cs-search-bar {
        width: 100%;
        max-width: 31.25rem;
        margin-bottom: 2rem;
        position: relative;
    }

    #job-listings-1835 .cs-search-input {
        font-size: 1rem;
        width: 100%;
        height: 3.125rem;
        padding: 0 1rem 0 3rem;
        border: 2px solid #e8e8e8;
        border-radius: 0.5rem;
        background-color: #fff;
        color: var(--bodyTextColor);
        outline: none;
        transition: border-color 0.3s;
    }

    #job-listings-1835 .cs-search-input:focus {
        border-color: var(--primary);
    }

    #job-listings-1835 .cs-search-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 1.25rem;
        height: 1.25rem;
        color: #666;
    }

    #job-listings-1835 .cs-loading {
        text-align: center;
        padding: 2rem;
        color: var(--primary);
        font-size: 1.125rem;
        font-weight: 600;
    }

    #job-listings-1835 .cs-error {
        text-align: center;
        padding: 2rem;
        color: #e74c3c;
        font-size: 1.125rem;
        background-color: #fdf2f2;
        border-radius: 0.5rem;
        border: 1px solid #e74c3c;
    }

    #job-listings-1835 .cs-table-wrapper {
        width: 100%;
        overflow-x: auto;
        background-color: #fff;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 1280px;
    }
    
    #job-listings-1835 .cs-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 50rem;
    }
    
    #job-listings-1835 .cs-thead,
    #job-listings-1835 .cs-tbody {
        width: 100%;
    }
    
    #job-listings-1835 .cs-th,
    #job-listings-1835 .cs-td {
        font-size: 0.875rem;
        line-height: 1.4em;
        text-align: left;
        padding: 1rem 0.75rem;
        border: 1px solid #e8e8e8;
        vertical-align: top;
    }

    #job-listings-1835 .cs-th {
        background-color: #f5e6e7;
        border: 1px solid var(--headerColor);
        font-weight: 700;
        color: var(--headerColor);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    #job-listings-1835 .cs-td {
        background-color: #fff;
        color: var(--bodyTextColor);
    }

    #job-listings-1835 .cs-tbody tr:hover .cs-td {
        background-color: #f8f9fa;
    }

    #job-listings-1835 .cs-job-title {
        font-weight: 700;
        color: var(--headerColor);
        font-size: 1rem;
    }

    #job-listings-1835 .cs-business-name {
        font-weight: 600;
        color: var(--primary);
    }

    #job-listings-1835 .cs-qualification {
        max-width: 12.5rem;
        word-wrap: break-word;
        white-space: pre-wrap;
    }

    #job-listings-1835 .cs-instructions {
        max-width: 12.5rem;
        word-wrap: break-word;
    }

    #job-listings-1835 .cs-date {
        white-space: nowrap;
        font-size: 0.8125rem;
    }

    #job-listings-1835 .cs-expired {
        background-color: #fef2f2 !important;
        color: #991b1b;
    }

    #job-listings-1835 .cs-expiring-soon {
        background-color: #fef3cd;
        color: #856404;
    }

    #job-listings-1835 .cs-action-btn {
        font-size: 0.875rem;
        font-weight: 700;
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 0.25rem;
        cursor: pointer;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    #job-listings-1835 .cs-apply-btn {
        background-color: var(--primary);
        color: #fff;
    }

    #job-listings-1835 .cs-apply-btn:hover {
        background-color: var(--secondary);
        transform: translateY(-1px);
    }

    #job-listings-1835 .cs-email-btn {
        background-color: #3498db;
        color: #fff;
    }

    #job-listings-1835 .cs-email-btn:hover {
        background-color: #2980b9;
        transform: translateY(-1px);
    }

    #job-listings-1835 .cs-no-results {
        text-align: center;
        padding: 3rem 1rem;
        color: #666;
        font-size: 1.125rem;
    }

    #job-listings-1835 .cs-background {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
        opacity: 0.05;
    }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #job-listings-1835 .cs-th,
    #job-listings-1835 .cs-td {
        font-size: 1rem;
        padding: 1.25rem 1rem;
    }

    #job-listings-1835 .cs-qualification,
    #job-listings-1835 .cs-instructions {
        max-width: 18.75rem;
    }
}

/* Desktop - 1024px */
@media only screen and (min-width: 64rem) {
    #job-listings-1835 .cs-table {
        min-width: auto;
    }

    #job-listings-1835 .cs-qualification,
    #job-listings-1835 .cs-instructions {
        max-width: 25rem;
    }
}

/* Modal Styles */
.cs-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.cs-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 95%;
    max-width: 55rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.cs-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.7rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.cs-modal-close:hover {
    color: #333;
}

.cs-modal h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--headerColor);
}

.cs-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-modal-form .cs-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    width: 100%;
    color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.cs-modal-form .cs-input {
    font-size: 1rem;
    width: 100%;
    height: 3.5rem;
    padding: 0;
    padding-left: 1.5rem;
    color: var(--bodyTextColor);
    background-color: #f7f7f7;
    border-radius: 0.5rem;
    border: none;
    box-sizing: border-box;
    font-family: Noto Sans, sans-serif;
}

.cs-modal-form .cs-input:read-only {
    color: var(--bodyTextColor);
}

.cs-modal-form .cs-textarea {
    height: auto;
    min-height: 4rem;
    padding: 1rem 1.5rem;
    resize: vertical;
    font-family: Noto Sans, sans-serif;
    color: var(--bodyTextColor);
}

.cs-modal-form select.cs-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

.cs-modal-form select {
    background-color: #fff;
    cursor: pointer;
}

.cs-modal-form textarea {
    resize: vertical;
    min-height: 4rem;
}

.cs-modal h4 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
}

.cs-modal-form button {
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cs-modal-form button:hover {
    background-color: var(--secondary);
}

/* Custom Scrollbar Styles */
.cs-modal-content::-webkit-scrollbar,
.cs-table-wrapper::-webkit-scrollbar {
width: 10px;
height: 10px;
}

.cs-modal-content::-webkit-scrollbar-track,
.cs-table-wrapper::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 5px;
}

.cs-modal-content::-webkit-scrollbar-thumb,
.cs-table-wrapper::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 5px;
}

.cs-modal-content::-webkit-scrollbar-thumb:hover,
.cs-table-wrapper::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}

/* For Firefox */
.cs-modal-content,
.cs-table-wrapper {
scrollbar-width: thin;
scrollbar-color: var(--primary) #f1f1f1;
}