/* Custom styling for Careers page */

/* Loading message styling */
.loading-message {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #696969;
}

.loading-message p {
    margin: 0;
    font-style: italic;
}

/* Job listings table styling */
.table-main-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    background-color: #f47c20;
    color: white;
    font-weight: bold;
    padding: 15px 20px;
    align-items: center;
}

.header-row div {
    padding: 10px;
}

.job-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-10px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.job-row:nth-child(2) {
    animation-delay: 0.1s;
}

.job-row:nth-child(3) {
    animation-delay: 0.2s;
}

.job-row:nth-child(4) {
    animation-delay: 0.3s;
}

.job-row:nth-child(5) {
    animation-delay: 0.4s;
}

.job-row:nth-child(6) {
    animation-delay: 0.5s;
}

.job-row:nth-child(7) {
    animation-delay: 0.6s;
}

.job-row:nth-child(8) {
    animation-delay: 0.7s;
}

.job-row:nth-child(9) {
    animation-delay: 0.8s;
}

.job-row:nth-child(10) {
    animation-delay: 0.9s;
}

.job-row:nth-child(n+11) {
    animation-delay: 1s;
}

.job-row:hover {
    background-color: #f47c20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-row div {
    padding: 10px;
}

.job-code {
    font-weight: 600;
}

.position {
    font-weight: 500;
}

.location {
    color: #555;
}

.job-type {
    font-weight: 500;
    text-align: center;
}

.job-row:hover .location,
.job-row:hover .job-type {
    color: white;
}

/* No jobs message */
.no-jobs-message {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {

    .header-row,
    .job-row {
        grid-template-columns: 1fr 2fr;
        grid-template-rows: auto auto;
        gap: 5px;
        padding: 10px;
    }

    .job-row div {
        padding: 5px;
    }

    .job-type {
        text-align: left;
    }
}

@media (max-width: 576px) {

    .header-row,
    .job-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 10px;
    }

    .job-type {
        margin-bottom: 10px;
    }

    .header-row {
        display: none;
    }

    .job-row div::before {
        content: attr(class);
        text-transform: capitalize;
        font-weight: bold;
        margin-right: 10px;
        color: #f47c20;
    }

    .job-code::before {
        content: "Job Code: ";
    }

    .position::before {
        content: "Position: ";
    }

    .location::before {
        content: "Location: ";
    }

    .job-type::before {
        content: "Job Type: ";
    }

    .job-row:hover .job-code::before,
    .job-row:hover .position::before,
    .job-row:hover .location::before,
    .job-row:hover .job-type::before {
        color: #fff;
    }
}