/* MSB HR Career */
.msb-hr-career-wrapper {
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.msb-hr-career__title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.4;
}

.msb-hr-career__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
}

.msb-hr-career__grid--col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.msb-hr-career__grid--col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.msb-hr-career__grid--col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Career Item */
.msb-hr-career__item {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    transition: .4s all;
}

.msb-hr-career__item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #e45f35;
}

.msb-hr-career__item.is-hidden {
    display: none;
}

.msb-hr-career__item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.msb-hr-career__item-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.msb-hr-career__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.msb-hr-career__item-body {
    padding: 24px;
    flex: 1;
}

.msb-hr-career__item-title {
    font-size: 18px;
    font-weight: 700;
    color: #091E42;
    margin: 0 0 16px;
    line-height: 1.4;
}

.msb-hr-career__item-list li {
    font-size: 14px;
    color: #505F79;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
}

.msb-hr-career__item-list ul {
    padding-left: 16px;
}

.msb-hr-career__item-list li:last-child {
    margin-bottom: 0;
}

/* Load More (msb-product-group style) */
.msb-hr-career__more {
    position: relative;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.msb-hr-career__more::before,
.msb-hr-career__more::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 1px;
    background: rgba(255, 106, 0, 0.35);
}

.msb-hr-career__more::before {
    left: 0;
    right: 50%;
    margin-right: 86px;
}

.msb-hr-career__more::after {
    left: 50%;
    right: 0;
    margin-left: 82px;
}

.msb-hr-career__more .msb-hr-career-more-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1.5px solid #ff6a00;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #ff6a00;
    transition: background-color 160ms ease, box-shadow 160ms ease;
    left: 6px;
    top: 6px;
    text-transform: none;
}

.msb-hr-career__more .msb-hr-career-more-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    display: inline-block;
    background-color: #091E42;
    -webkit-mask: var(--load-more-icon-url, url("/wp-content/themes/msb-website/assets/icons/chevron-down.svg")) center / contain no-repeat;
    mask: var(--load-more-icon-url, url("/wp-content/themes/msb-website/assets/icons/chevron-down.svg")) center / contain no-repeat;
    transition: transform 0.3s ease;
}

.msb-hr-career__more .msb-hr-career-more-btn.is-collapse::before {
    transform: rotate(180deg);
}

.msb-hr-career__more .msb-hr-career-more-btn:hover {
    background: #fff4ec;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.18);
}

.msb-hr-career__more .msb-hr-career-more-btn.is-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .msb-hr-career__grid--col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .msb-hr-career-wrapper {
        padding: 0 16px;
    }

    .msb-hr-career__title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .msb-hr-career__grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 32px;
    }

    .msb-hr-career__item-image {
        height: 200px;
    }

    .msb-hr-career__item-body {
        padding: 20px;
    }

    .msb-hr-career__item-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .msb-hr-career__item-list li {
        font-size: 13px;
    }

    .msb-hr-career__more::before,
    .msb-hr-career__more::after {
        width: calc(50% - 80px);
    }
}
