/* =========================================
   CAREERS / RECRUITMENT PAGE STYLES
   Enhanced Version
   ========================================= */

.careers {
    background-color: #f8fafc;
    padding: 100px 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #004e92 0%, #00b4db 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 78, 146, 0.3);
}

.section-header h2 {
    font-size: 2.8rem;
    color: #000428;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #004e92 0%, #00b4db 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-top: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Job Listings Container */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 80px;
}

/* Job Card */
.job-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #004e92 0%, #00b4db 100%);
    transition: width 0.3s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.job-card:hover::before {
    width: 6px;
}

.job-card.coming-soon {
    background: #fafafa;
    opacity: 0.9;
    border-color: #e5e7eb;
}

.job-card.coming-soon::before {
    background: linear-gradient(180deg, #9ca3af 0%, #d1d5db 100%);
}

.job-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Job Card Header */
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 20px;
}

.job-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 280px;
}

.job-title-section h3 {
    color: #0f172a;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.job-type {
    background: linear-gradient(135deg, #004e92 0%, #0066cc 100%);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 78, 146, 0.25);
}

.job-card.coming-soon .job-type {
    background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.25);
}

.job-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.job-location,
.job-posted {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.job-location svg,
.job-posted svg {
    flex-shrink: 0;
    color: #004e92;
}

.job-card.coming-soon .job-location svg,
.job-card.coming-soon .job-posted svg {
    color: #9ca3af;
}

/* Job Card Body */
.job-card-body {
    padding: 32px 40px;
}

.job-card-body p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 1rem;
}

.job-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #eff6ff;
    color: #004e92;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #dbeafe;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #004e92;
    color: #ffffff;
    border-color: #004e92;
}

.job-card.coming-soon .tag {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

/* Job Card Footer */
.job-card-footer {
    padding: 24px 40px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
}

.btn-apply-job {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #004e92 0%, #0066cc 100%);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 78, 146, 0.3);
}

.btn-apply-job:hover {
    background: linear-gradient(135deg, #003d73 0%, #004e92 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 78, 146, 0.4);
}

.btn-apply-job svg {
    transition: transform 0.3s ease;
}

.btn-apply-job:hover svg {
    transform: translateX(3px);
}

.btn-view-job {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #004e92;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #004e92;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-job:hover {
    background: #004e92;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 78, 146, 0.25);
}

.btn-disabled {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    color: #9ca3af;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: not-allowed;
    border: 2px solid #e5e7eb;
}

.btn-disabled svg {
    opacity: 0.6;
}

/* Careers CTA */
.careers-cta {
    background: linear-gradient(135deg, #000428 0%, #004e92 50%, #00b4db 100%);
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 4, 40, 0.25);
    position: relative;
    overflow: hidden;
}

.careers-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 8s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.careers-cta h3 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.careers-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.careers-cta .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #004e92;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.careers-cta .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

.careers-cta .btn-hero svg {
    transition: transform 0.3s ease;
}

.careers-cta .btn-hero:hover svg {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .job-card-header {
        padding: 28px 32px;
    }

    .job-card-body {
        padding: 28px 32px;
    }

    .job-card-footer {
        padding: 20px 32px;
    }
}

@media (max-width: 768px) {
    .careers {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
    }

    .job-card-header {
        flex-direction: column;
        padding: 24px 24px;
        gap: 16px;
    }

    .job-title-section {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        min-width: auto;
    }

    .job-title-section h3 {
        font-size: 1.4rem;
    }

    .job-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .job-card-body {
        padding: 24px 24px;
    }

    .job-card-footer {
        padding: 20px 24px;
        flex-direction: column;
    }

    .btn-apply-job,
    .btn-view-job,
    .btn-disabled {
        width: 100%;
        justify-content: center;
    }

    .careers-cta {
        padding: 40px 24px;
        border-radius: 16px;
    }

    .careers-cta h3 {
        font-size: 1.7rem;
    }

    .careers-cta p {
        font-size: 1rem;
    }

    .careers-cta .btn-hero {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.9rem;
    }

    .job-title-section h3 {
        font-size: 1.25rem;
    }

    .job-type {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .job-location,
    .job-posted {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .tag {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* Print Styles */
@media print {
    .careers-cta {
        display: none;
    }

    .job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}
