/* --- MSB Landing Careers General Styles --- */
.msb-landing-careers {
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 60px 40px;
    box-sizing: border-box;
}

.msb-landing-careers__main-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.msb-landing-careers__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.msb-landing-careers__bg picture,
.msb-landing-careers__bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.msb-landing-careers__content-wrap {
    position: relative;
    z-index: 3;
    max-width: 100%;
    box-sizing: border-box;
}


.msb-landing-careers__title {
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    margin-top: 0;
}

/* --- Navigation / Tabs --- */
.msb-landing-careers__nav-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
}

.msb-landing-careers__nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 0;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
    min-width: 0;
}

.msb-landing-careers__nav::-webkit-scrollbar {
    display: none;
}

.msb-landing-careers__nav-wrapper button.msb-landing-careers__nav-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: #0c2240;
    opacity: 0;
    pointer-events: none;
}

.msb-landing-careers__nav-wrapper button.msb-landing-careers__nav-arrow.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.msb-landing-careers__nav-wrapper button.msb-landing-careers__nav-arrow--left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0) 100%);
    justify-content: flex-start;
    padding-left: 4px;
}

.msb-landing-careers__nav-wrapper button.msb-landing-careers__nav-arrow--right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0) 100%);
    justify-content: flex-end;
    padding-right: 4px;
}

.msb-landing-careers__nav-wrapper button.msb-landing-careers__nav-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.2s ease;
}

.msb-landing-careers__nav-wrapper button.msb-landing-careers__nav-arrow.is-visible:hover svg {
    transform: scale(1.2);
}

.msb-landing-careers__tab-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(222, 229, 239, 1);
    color: rgba(9, 30, 66, 1);
    padding: 8px 12px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0;
    outline: none;
    box-shadow: none;
    line-height: 24px;
}

.msb-landing-careers__tab-btn:hover {
    background: rgba(254, 239, 231, 1);
    border: 1px solid rgba(248, 160, 109, 1);
    color: rgba(244, 96, 12, 1);
}

.msb-landing-careers__tab-btn.is-active {
    background: rgba(254, 239, 231, 1);
    border: 1px solid rgba(248, 160, 109, 1);
    color: rgba(244, 96, 12, 1);

}

/* Special styling for short tags (like "RB" in a circle) */
.msb-landing-careers__tab-btn span {
    display: inline-block;
}

/* --- Panes / Groups --- */
.msb-landing-careers__panes {
    max-height: 310px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 96, 12, 0.3) transparent;
}

.msb-landing-careers__panes::-webkit-scrollbar {
    width: 6px;
}

.msb-landing-careers__panes::-webkit-scrollbar-track {
    background: transparent;
}

.msb-landing-careers__panes::-webkit-scrollbar-thumb {
    background-color: rgba(244, 96, 12, 0.3);
    border-radius: 4px;
}

.msb-landing-careers__panes::-webkit-scrollbar-thumb:hover {
    background-color: rgba(244, 96, 12, 0.6);
}

.msb-landing-careers__pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.msb-landing-careers__pane.is-active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 1;
}

/* --- Job / Career Items --- */
.msb-landing-career-item-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(222, 229, 239, 0.5);
    cursor: pointer;
    overflow: hidden;
}

.msb-landing-career-item-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(244, 96, 12, 1);
}

.msb-landing-career-item-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background: #FEF3EB;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.msb-landing-career-item-card__icon-wrap svg,
.msb-landing-career-item-card__custom-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.msb-landing-career-item-card__icon-wrap svg {
    stroke: #ff5f00;
}

.msb-landing-career-item-card__content {
    flex-grow: 1;
    min-width: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.msb-landing-career-item-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #002D62;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.msb-landing-career-item-card__subtitle {
    font-size: 15px;
    color: #5A6B82;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Layout 2: Dropdown Selector Styles */
.msb-landing-careers__select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    z-index: 99;
}

.msb-landing-careers__select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(222, 229, 239, 1);
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    color: #002d62;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.msb-landing-careers__select-trigger:hover {
    border-color: rgba(248, 160, 109, 1);
    background: #fafafa;
}

.msb-landing-careers__select-chevron {
    color: #5a6b82;
    transition: transform 0.2s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.msb-landing-careers__select-wrapper.is-open .msb-landing-careers__select-chevron {
    transform: rotate(180deg);
}

.msb-landing-careers__select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 100;
}

.msb-landing-careers__select-wrapper.is-open .msb-landing-careers__select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.msb-landing-careers__select-option {
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    font-size: 15px;
    transition: all 0.15s ease;
}

.msb-landing-careers__select-option:hover {
    background: #f8fafc;
    color: #f26f21;
}

.msb-landing-careers__select-option.is-selected {
    background: #f26f21;
    color: #fff;
    font-weight: 600;
}

/* Responsive Styles */

@media (min-width: 768px) and (max-width: 1024px) {
    .msb-landing-careers {
        padding: 40px 24px 0 24px;
    }
    .msb-landing-careers__content-wrap {
        width: 100% !important;
    }
    .msb-landing-careers__bg picture,
    .msb-landing-careers__bg img {
        object-position: center;
    }
    .msb-landing-careers__main-card {
        padding: 16px;
    }
    .msb-landing-careers__panes {
        max-height: 280px;
    }
    .msb-landing-careers__title {
        font-size: 28px;
        margin-bottom: 22px;
    }
    .msb-landing-careers__tab-btn {
        font-size: 15px;
        padding: 8px 14px;
    }
    .msb-landing-career-item-card__content {
        padding: 16px 20px;
    }
    .msb-landing-career-item-card__title {
        font-size: 18px;
    }
    .msb-landing-career-item-card__subtitle {
        font-size: 14px;
    }
    .msb-landing-careers__select-trigger {
        padding: 10px 16px;
        font-size: 15px;
    }
    .msb-landing-careers__select-option {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .msb-landing-careers__nav-wrapper {
        margin-bottom: 20px;
    }
    .msb-landing-careers {
        padding: 30px 16px 0 16px;
    }
    .msb-landing-careers__content-wrap {
        width: 100% !important;
    }
    .msb-landing-careers__bg picture,
    .msb-landing-careers__bg img {
        object-position: center;
    }
    .msb-landing-careers__main-card {
        padding: 12px;
        border-radius: 16px;
    }
    .msb-landing-careers__panes {
        max-height: 240px;
    }
    .msb-landing-careers__title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    .msb-landing-careers__tab-btn {
        font-size: 14px;
    }
    .msb-landing-career-item-card__icon-wrap {
        width: 64px;
    }
    .msb-landing-career-item-card__icon-wrap svg {
        width: 22px;
        height: 22px;
    }
    .msb-landing-career-item-card__content {
        padding: 12px 16px;
    }
    .msb-landing-career-item-card__title {
        font-size: 14px;
    }
    .msb-landing-career-item-card__subtitle {
        font-size: 12px;
    }
    .msb-landing-career-item-card__icon-wrap svg,
    .msb-landing-career-item-card__custom-icon {
        width: 20px !important;
        height: 20px !important;
        object-fit: contain;
    }
    .msb-landing-careers__select-trigger {
        padding: 10px 14px;
        font-size: 14px;
    }
    .msb-landing-careers__select-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}
