/* ==========================================================================
   Careers Page
   ========================================================================== */

.careers-banner {
    background:
        linear-gradient(135deg, rgba(26, 54, 93, 0.92) 0%, rgba(0, 61, 122, 0.88) 55%, rgba(0, 86, 166, 0.85) 100%),
        radial-gradient(circle at 20% 20%, rgba(0, 147, 213, 0.25), transparent 45%);
}

.careers-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.careers-main {
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section-header h2 {
    color: #1a365d;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 14px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    margin: 14px auto 0;
    background: #e31837;
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.why-join-section {
    padding: 88px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.benefit-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e8edf3;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 147, 213, 0.25);
    box-shadow: 0 18px 40px rgba(0, 86, 166, 0.12);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef6ff 0%, #e3f2fd 100%);
}

.benefit-icon i {
    font-size: 1.8rem;
    color: #0093d5;
}

.benefit-card h3 {
    color: #1a365d;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.benefit-card p {
    color: #64748b;
    line-height: 1.65;
    margin: 0;
    font-size: 0.95rem;
}

.openings-section {
    padding: 88px 0;
}

.location-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 18px 22px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 14px;
}

.filter-label {
    font-weight: 600;
    color: #1a365d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-label i {
    color: #0093d5;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    transition: all 0.25s ease;
    font-family: inherit;
    font-size: 0.92rem;
}

.filter-btn:hover {
    border-color: #0093d5;
    color: #0093d5;
}

.filter-btn.active {
    background: #0093d5;
    color: #fff;
    border-color: #0093d5;
    box-shadow: 0 8px 20px rgba(0, 147, 213, 0.25);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.jobs-empty-state {
    text-align: center;
    padding: 64px 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
}

.jobs-empty-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    color: #0093d5;
    font-size: 2rem;
}

.jobs-empty-state h3 {
    color: #1a365d;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.jobs-empty-state p {
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.job-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 147, 213, 0.35);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.job-card.is-hidden {
    display: none;
}

.job-card-header {
    padding: 24px 26px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #edf2f7;
}

.job-title-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.job-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0056a6;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.job-title-section h3 {
    margin: 0;
    color: #1a365d;
    font-size: 1.35rem;
    line-height: 1.3;
}

.job-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.job-badge.full-time {
    background: #e8f4f8;
    color: #0093d5;
}

.job-badge.leadership {
    background: #fff7e6;
    color: #b45309;
}

.job-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.job-location i {
    color: #0093d5;
}

.job-card-body {
    padding: 22px 26px;
    flex: 1;
}

.job-summary p {
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 18px;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.detail-item i {
    color: #0093d5;
    width: 16px;
    text-align: center;
}

.job-description-full {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.job-description-full h4 {
    color: #1a365d;
    margin: 18px 0 10px;
    font-size: 1rem;
}

.job-description-full h4:first-child {
    margin-top: 0;
}

.job-rich-text {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.job-rich-text ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.job-rich-text li {
    margin-bottom: 8px;
}

/* Job Details Modal */
body.job-modal-open {
    overflow: hidden;
}

.job-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.job-modal[hidden] {
    display: none !important;
}

.job-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
}

.job-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    animation: jobModalIn 0.25s ease;
}

@keyframes jobModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.job-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.job-modal-header-content {
    flex: 1;
    min-width: 0;
}

.job-modal-header h3 {
    color: #1a365d;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin: 8px 0 12px;
    line-height: 1.3;
}

.job-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.job-modal-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.job-modal-location i {
    color: #0093d5;
}

.job-modal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.job-modal-details .detail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.job-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.job-modal-close:hover {
    background: #e2e8f0;
    color: #1a365d;
}

.job-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.job-modal-body h4 {
    color: #1a365d;
    margin: 20px 0 10px;
    font-size: 1rem;
}

.job-modal-body h4:first-child {
    margin-top: 0;
}

.job-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fcfdfe;
}

@media (max-width: 640px) {
    .job-modal {
        padding: 0;
        align-items: flex-end;
    }

    .job-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .job-modal-footer {
        flex-direction: column-reverse;
    }

    .job-modal-footer .btn {
        width: 100%;
    }
}

.job-card-footer {
    padding: 18px 26px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    background: #fcfdfe;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.openings-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #eef6ff;
    border-left: 4px solid #0093d5;
    color: #1a365d;
}

.openings-note i {
    font-size: 1.4rem;
    color: #0093d5;
    margin-top: 2px;
}

.openings-note p {
    margin: 0;
    line-height: 1.6;
}

.application-form-section {
    padding: 88px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.required-star {
    color: #e31837;
}

.form-container {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid #e8edf3;
}

.position-selector {
    padding: 24px 28px;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
    border-bottom: 1px solid #dbeafe;
}

.position-selector h4 {
    color: #1a365d;
    margin: 0 0 14px;
    font-size: 1rem;
}

.position-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.position-chip {
    padding: 9px 16px;
    background: #fff;
    color: #1a365d;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.position-chip:hover,
.position-chip.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a365d;
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 28px 0;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.5;
}

.form-alert[hidden] {
    display: none !important;
}

.form-alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-alert-message {
    flex: 1;
    min-width: 0;
}

.form-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.form-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.career-form {
    padding: 32px 28px 36px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    color: #1a365d;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.file-input-simple {
    padding: 12px 14px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.file-input-simple:focus {
    outline: none;
    border-color: #0093d5;
    box-shadow: 0 0 0 3px rgba(0, 147, 213, 0.12);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.file-upload.is-invalid {
    border-color: #e31837;
}

.file-upload {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafcff;
}

.file-upload:hover {
    border-color: #0093d5;
    background: #f0f8ff;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    pointer-events: none;
}

.file-upload-info i {
    font-size: 2rem;
    color: #0093d5;
}

.field-hint,
.field-error {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 6px;
}

.field-error {
    color: #e31837;
}

.checkbox-group {
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #475569;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-actions {
    text-align: center;
    margin-top: 10px;
}

.btn-lg {
    padding: 14px 42px;
    font-size: 1.05rem;
}

.form-footer-note {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: 24px;
}

.form-footer-note i {
    color: #0093d5;
}

.process-section {
    padding: 88px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}

.step-number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd700;
    color: #1a365d;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1a365d;
    margin: 0 0 8px;
    font-size: 1rem;
}

.step-content p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-size: 0.92rem;
}

.faq-section {
    padding: 88px 0;
    background: #f8fafc;
}

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f8fbff;
}

.faq-question h4 {
    margin: 0;
    color: #1a365d;
    font-size: 1rem;
    font-weight: 600;
}

.faq-question i {
    color: #0093d5;
    transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 240px;
    padding: 0 22px 20px;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.contact-section {
    padding: 88px 0;
}

.contact-box {
    background: linear-gradient(135deg, #1a365d 0%, #0056a6 100%);
    border-radius: 18px;
    padding: 56px 40px;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.25);
}

.contact-content h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.contact-content p {
    font-size: 1.05rem;
    margin-bottom: 28px;
    opacity: 0.92;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .benefits-grid,
    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .why-join-section,
    .openings-section,
    .application-form-section,
    .process-section,
    .faq-section,
    .contact-section {
        padding: 64px 0;
    }

    .benefits-grid,
    .jobs-grid,
    .process-steps,
    .form-row {
        grid-template-columns: 1fr;
    }

    .job-card-footer {
        flex-direction: column;
    }

    .job-card-footer .btn {
        width: 100%;
        text-align: center;
    }

    .location-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-buttons {
        justify-content: flex-start;
    }

    .career-form,
    .position-selector {
        padding-left: 20px;
        padding-right: 20px;
    }

    .contact-box {
        padding: 40px 24px;
    }

    .contact-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        width: calc(50% - 5px);
    }
}
