/* ─── OFFICE VIDEO / HERO OVERLAP ────────────────────────────────────────── */

.careers-office {
    position: relative;
    z-index: 1;
    padding: 0 1.25rem 3rem;
    margin-top: -3.75rem;
}

.careers-office-bg {
    background: linear-gradient(180deg, #ddf0fb 0%, #ffffff 100%);
    border-top: 1px solid rgba(255,255,255,0.8);
    padding: 2rem 0 0;
    margin-bottom: 0;
}

.careers-office-inner {
    max-width: 53.75rem;
    margin: 0 auto;
    background: #fff;
    border: 7px solid #fff;
    border-radius: 1.25rem;
    box-shadow: 0 8px 40px rgba(0,80,160,0.13), 0 2px 12px rgba(0,0,0,0.07);
    overflow: hidden;
    position: relative;
}

.careers-office-inner img,
.careers-office-inner video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.0625rem;
}

.careers-video-thumb {
    position: relative;
    cursor: pointer;
}

.careers-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.careers-video-thumb:hover .careers-video-play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 28px rgba(0,0,0,0.22);
}

.careers-video-play svg {
    width: 3.375rem;
    height: 3.1875rem;
    margin-left: 0.1875rem;
}


/* ─── OPEN POSITIONS ─────────────────────────────────────────────────────── */

.careers-positions {
    padding: 2rem 1.25rem 3rem;
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.careers-positions h2 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.careers-positions h2 strong {
    font-weight: 600;
    color: #0076B6;
}

.positions-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.position-group {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0 12.7px rgba(0,0,0,0.06);
    overflow: hidden;
}

.position-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.position-group-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.position-group-icon {
    width: 1rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.position-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #33363D;
    letter-spacing: -0.02em;
}

.position-group-count {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 2px 0.5rem;
    border-radius: 0.3125rem;
}

.position-group-chevron {
    width: 0.75rem;
    height: 0.4375rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.position-group.open .position-group-chevron {
    transform: rotate(180deg);
}

.position-group-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    border-top: 0px solid #f1f5f9;
}

.position-group.open .position-group-body {
    grid-template-rows: 1fr;
    border-top-width: 1px;
}

.position-group-body-inner {
    overflow: hidden;
    padding: 0 1.5rem;
}

.position-group.open .position-group-body-inner {
    padding: 0.5rem 1.5rem 1rem;
}

.position-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.position-row:last-child {
    border-bottom: none;
}

.position-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0076B6;
    line-height: 1.4;
    margin-bottom: 2px;
}

.position-type {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #9f9f9f;
    line-height: 1.4;
}

.position-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #f1f5f9;
    color: #33363D;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.375rem 1rem;
    border-radius: 6.25rem;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.position-link:hover {
    background: #e2e8f0;
}

.position-link svg {
    width: 0.75rem;
    height: 0.75rem;
}


/* ─── IDEAL CANDIDATE SIDEBAR ────────────────────────────────────────────── */

.careers-sidebar {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0 12.5px rgba(0,0,0,0.05);
    padding: 2rem 1.5rem;
}

.careers-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0076B6;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

.careers-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.careers-sidebar ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 1.125rem;
    line-height: 1.3;
    color: #33363D;
}

.careers-sidebar ul li::before {
    content: '';
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1875rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='9' stroke='%238DBD3F' stroke-width='2'/%3E%3Cpath d='M6 10l3 3 5-5' stroke='%238DBD3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.careers-sidebar .btn-outline {
    width: 100%;
    justify-content: center;
}


/* ─── WHY WORK WITH US ───────────────────────────────────────────────────── */

.careers-why {
    padding: 3rem 1.25rem 4rem;
    text-align: center;
}

.careers-why h2 {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.careers-why h2 strong {
    font-weight: 600;
    color: #8EB84A;
}

.careers-why-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 76.25rem;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.why-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-card {
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 17.3px rgba(0,0,0,0.04);
}

.why-card.white {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.why-card.white .why-card-icon-bg {
    order: -1;
}

.why-card.green {
    background: #8DBD3F;
}

.why-card.blue {
    background: #0076B6;
}

.why-card-content {
    flex: 1;
    min-width: 0;
}

.why-card-icon {
    width: 3.5rem;
    height: auto;
    max-height: 3.5rem;
    margin-bottom: 0.85rem;
    display: block;
    flex-shrink: 0;
}

.why-card-icon-bg {
    flex-shrink: 0;
    width: 3.5rem;
    height: auto;
    max-height: 3.5rem;
    opacity: 0.15;
    filter: brightness(0.8);
    pointer-events: none;
    display: block;
    margin-bottom: 0.85rem;
}

.why-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}

.why-card.white h3 {
    color: #0076B6;
}

.why-card.green h3,
.why-card.blue h3 {
    color: #fff;
}

.why-card p {
    font-size: 1.125rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.why-card.white p {
    color: #33363D;
}

.why-card.green p,
.why-card.blue p {
    color: rgba(255,255,255,0.92);
}

.why-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.why-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #33363D;
    padding: 0.3125rem 0.875rem;
    border-radius: 6.25rem;
    box-shadow: 0 0 5.1px rgba(0,0,0,0.06);
}

.why-card-tag::before {
    content: '';
    display: inline-block;
    width: 0.875rem;
    height: 0.625rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M1 6l5 5L15 1' stroke='%238DBD3F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.careers-why .btn-outline {
    display: inline-flex;
}


/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (min-width: 48em) {
    .why-row {
        flex-direction: row;
    }

    .why-card.white {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .why-card.white .why-card-icon-bg {
        order: 0;
        width: 8.75rem;
        max-height: 8.125rem;
        margin-bottom: 0;
    }
}

@media (min-width: 64em) {
    .careers-office {
        padding: 0 1.5rem 4rem;
        margin-top: -5rem;
    }

    .careers-office-bg {
        padding: 2.5rem 0 0;
    }

    .careers-positions {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        padding: 3rem 1.5rem 4rem;
    }

    .careers-positions h2 {
        font-size: 2.5625rem;
    }

    .positions-col {
        flex: 1;
    }

    .careers-sidebar {
        flex: 0 0 20.625rem;
    }

    .careers-sidebar h3 {
        font-size: 1.375rem;
    }

    .careers-sidebar ul li {
        font-size: 1.25rem;
    }

    .careers-why {
        padding: 4rem 1.5rem 5rem;
    }

    .careers-why h2 {
        font-size: 2.5625rem;
    }

    .why-row:first-child .why-card:first-child {
        flex: 59;
    }

    .why-row:first-child .why-card:last-child {
        flex: 39;
    }

    .why-row:last-child .why-card:first-child {
        flex: 37;
    }

    .why-row:last-child .why-card:last-child {
        flex: 61;
    }

    .why-card h3 {
        font-size: 1.625rem;
    }

    .why-card p {
        font-size: 1.25rem;
    }

    .why-card-icon-bg {
        width: 10rem;
        max-height: 8.125rem;
    }

    .position-title {
        font-size: 1.125rem;
    }

    .position-group-title {
        font-size: 1.375rem;
    }
}
.careers-indeed-btn {
    align-self: flex-start;
}
