/* Careers Page Styles */

/* Header Fixes for Careers Page */
.main-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Desktop only - on mobile, main.css hides .header-actions behind the
   hamburger toggle and shows it as a dropdown via .mobile-active */
@media (min-width: 769px) {
    .header-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }
}

.careers-hero {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.careers-hero .container {
    max-width: 900px;
}

.careers-hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Stats bar - second, alternate-colored band beneath the hero (matches the
   two-band pattern used on courses.html: page-hero + custom-training-banner) */
.careers-stats-bar {
    background: var(--gradient-2);
    padding: 1.25rem 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    color: white !important;
    font-weight: 500;
}

/* Job Openings Section */
.job-openings-section {
    padding: 80px 20px;
    background: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.job-openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.job-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #7C3AED;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-badge {
    background: #EDE9FE;
    color: #7C3AED;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-icon {
    font-size: 2rem;
}

.job-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.job-location, .job-experience {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0.4rem 0;
}

.job-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 1rem 0;
}

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

.job-requirements li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.95rem;
}

.job-requirements li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.job-apply-btn {
    display: inline-block;
    margin-top: 1rem;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.job-apply-btn:hover {
    transform: scale(1.05);
}

/* Dynamic job list loading / empty states */
.loading-state,
.empty-state {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #6b7280;
    font-size: 1.1rem;
}

.spinner {
    border: 4px solid #F3F4F6;
    border-top: 4px solid #7C3AED;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Apply Job Modal */
#applyJobModal .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}

#applyJobModal .btn-secondary-modal {
    flex-shrink: 0;
    padding: 0 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#applyJobModal .btn-secondary-modal:hover {
    background: #e5e7eb;
}

#applyJobModal input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
}

/* Why Join Section */
.why-join-section {
    padding: 80px 20px;
    background: white;
}

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

.benefit-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

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

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.6;
}



/* CTA Section */
.career-cta-section {
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.career-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.career-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large, .btn-secondary-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-large {
    background: white;
    color: #7C3AED;
}

.btn-secondary-large {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary-large:hover {
    background: white;
    color: #7C3AED;
}
