/* Careers Page Custom Styles */

/* Loading State */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #193775;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Jobs Container */
#jobs-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.job-row {
    display: grid;
    grid-template-columns: auto 2fr 1.5fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.job-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, #fff, #f8f9fa);
}

/* Job Row Elements */
.job-code {
    font-weight: 600;
    color: #193775;
    padding: 0.25rem 0.75rem;
    background: rgba(25, 55, 117, 0.1);
    border-radius: 4px;
    text-align: center;
}

.position {
    font-weight: 500;
    color: #333;
}

.location {
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location::before {
    content: "📍";
    font-size: 1rem;
}

.job-type {
    color: #00abc9;
    font-weight: 500;
    text-align: right;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Staggered Animation Delay */
.job-row:nth-child(1) {
    animation-delay: 0.1s;
}

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

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

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

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

/* Error State */
.error-container {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
}

/* No Jobs State */
.no-jobs {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .job-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .job-code {
        width: fit-content;
    }

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

    /* Add labels for mobile */
    .location::before {
        content: "Location: ";
        font-weight: 500;
    }

    .job-type::before {
        content: "Type: ";
        font-weight: 500;
        color: #666;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .job-row {
        grid-template-columns: auto 2fr 1fr;
    }

    .location {
        grid-column: 2 / -1;
    }
}

/* Print Styles */
@media print {
    .job-row {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}