@import url(../../shared-styles.css);

.hero-section {
    background-image: image-set(
        url(/assets/img/careers_page/careers_hero.avif) type("image/avif"),
        url(/assets/img/careers_page/careers_hero.jpg) type("image/jpeg")
    );
}

/* Open position cards are buttons that open the shared details modal */
.op-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    column-gap: 1rem;
    padding: 1.25rem 1.35rem;
    text-align: start;
    border: 0;
    border-radius: var(--sf-radius);
    background-color: var(--sf-alt-bg);
    box-shadow: var(--sf-card-shadow);
    cursor: pointer;
}

.op-card .op-title {
    color: var(--sf-primary);
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
    transition: color 200ms ease;
}

.op-card .op-description {
    color: var(--sf-muted-text);
    font-size: 0.95rem;
    margin-bottom: 0;
    transition: color 200ms ease;
}

.op-card .op-arrow {
    color: var(--sf-primary);
    margin-left: auto;
    opacity: 0.6;
    transition: transform 200ms ease, opacity 200ms ease, color 200ms ease;
}

.op-card:hover,
.op-card:focus-visible {
    background-color: var(--sf-navy);

    .op-title,
    .op-description,
    .op-arrow {
        color: #ffffff;
    }

    .op-arrow {
        opacity: 1;
        transform: translateX(4px);
    }
}

/* Navy hover is invisible on the dark theme's navy cards, use brand blue instead */
[data-bs-theme="dark"] .op-card:hover,
[data-bs-theme="dark"] .op-card:focus-visible {
    background-color: #3e8bcb;
}

/* Open position modals */
.position-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(26, 42, 62, 0.25);
}

[data-bs-theme="dark"] .position-modal .modal-content {
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
}

.position-modal .modal-header {
    background: linear-gradient(135deg, var(--sf-navy) 0%, #3e8bcb 130%);
    border-bottom: 0;
    padding: 1.5rem;
}

.position-modal .modal-role-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.position-modal .modal-title {
    color: #ffffff;
    font-weight: 700;
}

.position-modal .modal-subtitle {
    color: #9fd7f5;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.position-modal .position-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--sf-alt-bg);
    color: var(--sf-body-text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45em 1em;
    border-radius: 50rem;

    i {
        color: var(--sf-primary);
    }
}

.position-modal .section-label {
    color: var(--sf-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.position-modal .role-text {
    color: var(--sf-body-text);
    line-height: 1.7;
}

.position-modal .skill-checklist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;

    li {
        display: flex;
        align-items: baseline;
        column-gap: 0.65rem;
        padding: 0.3rem 0;
        color: var(--sf-body-text);
    }

    i {
        color: var(--sf-accent);
    }
}

.position-modal .skill-chip {
    display: inline-block;
    /* Matches the modal background in both themes (light blue / navy-tinted dark) */
    background-color: var(--bs-body-bg);
    border: 1px solid rgba(62, 139, 203, 0.5);
    color: var(--sf-body-text);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4em 1em;
    border-radius: 50rem;
}

.position-modal .modal-footer {
    /* One step deeper than the light-blue modal body so the footer stays distinct */
    background-color: #e0f4ff;
    border-top: 1px solid rgba(26, 42, 62, 0.08);
    padding: 1rem 1.5rem;
}

[data-bs-theme="dark"] .position-modal .modal-footer {
    background-color: rgba(255, 255, 255, 0.04);
    border-top-color: rgba(255, 255, 255, 0.08);
}

.position-modal .modal-footer .sf-btn {
    padding: 0.55rem 1.25rem;
}

.position-modal .footer-hint {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;

    i {
        color: var(--sf-primary);
    }
}
