/* Careers Page Styles */

.careers-section {
    padding: 4rem 0;
    background: var(--white);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.career-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.career-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.career-header {
    margin-bottom: 1rem;
}

.career-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.career-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.career-department,
.career-location {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.career-department i,
.career-location i {
    color: var(--blue-vibrant);
    font-size: 0.85rem;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.career-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.career-tag.job-type {
    background: rgba(0, 102, 204, 0.1);
    color: var(--blue-vibrant);
}

.career-tag.experience {
    background: rgba(20, 41, 82, 0.1);
    color: var(--navy-dark);
}

.career-description {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.career-description p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.career-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.read-more {
    color: var(--blue-vibrant);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    font-size: 1rem;
}

.read-more:hover {
    transform: translateX(4px);
}

.no-careers {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.no-careers i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-careers h3 {
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.no-careers p {
    color: var(--text-light);
}

.careers-cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--blue-vibrant) 0%, var(--navy-dark) 100%);
    text-align: center;
}

.careers-cta-content {
    color: var(--white);
}

.careers-cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.careers-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Modal Styles */
.career-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.career-modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.career-modal {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

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

.career-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 1rem;
}

.career-modal-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--navy-dark);
    flex: 1;
}

.career-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.career-modal-close:hover {
    color: var(--navy-dark);
}

.career-modal-body {
    padding: 2rem;
}

.career-detail-section {
    margin-bottom: 2rem;
}

.career-detail-section h3 {
    font-size: 1.1rem;
    color: var(--navy-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.career-detail-section p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

.career-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
}

.detail-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    display: block;
}

.detail-value {
    color: var(--navy-dark);
    font-size: 1rem;
    font-weight: 600;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    color: var(--text-dark);
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.requirements-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue-vibrant);
    font-weight: bold;
    font-size: 1.1rem;
}

.career-apply-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.career-apply-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-vibrant);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.apply-submit {
    background: var(--blue-vibrant);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.apply-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--text-success);
    color: var(--text-success);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--text-danger);
    color: var(--text-danger);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .careers-grid {
        grid-template-columns: 1fr;
    }

    .career-title {
        font-size: 1.1rem;
    }

    .careers-cta-content h2 {
        font-size: 1.5rem;
    }

    .career-modal {
        width: 95%;
        max-height: 90vh;
    }

    .career-modal-header {
        padding: 1.5rem;
    }

    .career-modal-body {
        padding: 1.5rem;
    }

    .career-detail-grid {
        grid-template-columns: 1fr;
    }

    .career-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
