/* Careers Page Styles */

.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2874A6 100%);
    color: var(--bg-white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Benefits Section */
.benefits-section {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
}

.benefit-card p {
    font-size: 0.95rem;
}

/* Job Listings */
.positions-section {
    background: var(--bg-light);
}

.positions-section .container {
    max-width: 1000px;
}

.positions-section .section-header {
    margin-bottom: var(--spacing-2xl);
}

.division-header {
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.division-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-cyan);
}

.division-header:first-of-type {
    margin-top: var(--spacing-xl);
}

.division-header h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    color: var(--primary-dark);
    font-weight: 600;
}

.job-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
}

[data-theme='dark'] .job-card {
    background: var(--bg-light);
}

.job-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-cyan);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card:focus-within {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.job-header > div:first-child {
    flex: 1;
    min-width: 250px;
}

.job-header h3 {
    margin-bottom: var(--spacing-sm);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    line-height: 1.3;
    color: var(--primary-dark);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin-top: var(--spacing-sm);
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(93, 173, 226, 0.1);
    color: var(--primary-cyan);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(93, 173, 226, 0.2);
    transition: all var(--transition-base);
}

.tag:hover {
    background: rgba(93, 173, 226, 0.15);
    border-color: var(--primary-cyan);
}

.location {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: var(--spacing-sm);
}

.job-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    flex-shrink: 0;
}

.btn-expand {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.5rem 1.5rem;
    min-height: var(--touch-target-min);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-expand:hover {
    background: var(--primary-cyan);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.btn-expand:active {
    transform: translateY(0);
}

.btn-expand:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.job-actions .btn-primary {
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
}

.job-summary {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.job-summary p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    color: var(--text-gray);
}

.job-summary p:first-child {
    font-weight: 500;
    color: var(--primary-dark);
}

.job-summary p:first-child strong {
    color: var(--primary-cyan);
    font-weight: 600;
}

.job-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), opacity var(--transition-base), margin var(--transition-base);
    margin-top: 0;
    opacity: 0;
    padding-top: 0;
}

.job-details.active {
    max-height: 3000px;
    opacity: 1;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.job-section {
    margin-bottom: var(--spacing-xl);
}

.job-section:last-child {
    margin-bottom: var(--spacing-lg);
}

.job-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
    width: 100%;
}

.job-section ul {
    list-style: none;
    padding: 0;
}

.job-section ul li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-gray);
    line-height: 1.7;
    transition: color var(--transition-base);
}

.job-section ul li:hover {
    color: var(--primary-dark);
}

.job-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Featured Job Card (Open Application) */
.job-card-featured {
    border-left: 4px solid var(--primary-cyan) !important;
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.08) 0%, rgba(93, 173, 226, 0.03) 100%);
    box-shadow: var(--shadow-md);
    position: relative;
}

[data-theme='dark'] .job-card-featured {
    background: linear-gradient(135deg, rgba(93, 173, 226, 0.12) 0%, rgba(93, 173, 226, 0.06) 100%);
}

.job-card-featured::before {
    opacity: 1 !important;
    width: 4px;
}

.job-card-featured:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(6px);
}

/* Featured Tag */
.tag-featured {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-light) 100%) !important;
    color: var(--bg-white) !important;
    border: none !important;
    font-weight: 600;
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 8px rgba(93, 173, 226, 0.3);
    position: relative;
    animation: pulse-glow 2s ease-in-out infinite;
}

.tag-featured:hover {
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.4);
    transform: translateY(-1px);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(93, 173, 226, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(93, 173, 226, 0.5);
    }
}

/* Highlight Section Styles */
.job-section-highlight {
    background: rgba(255, 193, 7, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border-left: 4px solid #FFC107;
    margin-bottom: var(--spacing-lg);
}

[data-theme='dark'] .job-section-highlight {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: #FFC107;
}

.highlight-title {
    color: #FF9800 !important;
    font-size: 1.1rem !important;
    margin-bottom: var(--spacing-sm) !important;
}

[data-theme='dark'] .highlight-title {
    color: #FFC107 !important;
}

.highlight-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: var(--text-gray);
}

[data-theme='dark'] .highlight-text {
    color: var(--text-gray);
}

.highlight-emphasis {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 600;
    color: #FF6B00;
    margin-bottom: var(--spacing-sm);
}

[data-theme='dark'] .highlight-emphasis {
    color: #FFC107;
}

.highlight-note {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: var(--spacing-sm);
    font-style: italic;
    color: var(--text-light);
}

[data-theme='dark'] .highlight-note {
    color: var(--text-gray);
}

/* Application Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideIn var(--transition-base);
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme='dark'] .modal-content {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--text-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-base), transform var(--transition-fast);
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--primary-dark);
    background: var(--bg-light);
    transform: rotate(90deg);
}

.close:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

#positionTitle {
    color: var(--primary-cyan);
}

.form-instructions {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-instructions ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.form-instructions li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.direct-email {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.direct-email a {
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .job-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .job-header > div:first-child {
        width: 100%;
    }
    
    .job-actions {
        margin-top: var(--spacing-sm);
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn-expand,
    .job-actions .btn-primary {
        width: 100%;
    }
    
    .job-meta {
        margin-top: var(--spacing-xs);
    }
    
    .location {
        margin-left: 0;
        width: 100%;
        margin-top: var(--spacing-xs);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: var(--spacing-lg);
        width: 95%;
    }
    
    .job-card:hover {
        transform: translateX(0);
        box-shadow: var(--shadow-md);
    }
}
