/* ================================
   Career Section
   ================================ */

.career {
    background-color: #FFFFFF;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #111111;
}

.career-header {
    text-align: center;
    margin-bottom: 50px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.career-header h2 {
    font-size: 40px;
    line-height: 45px;
    font-weight: 500;
    margin-bottom: 38px;
}

.career-header p {
    font-size: 18px;
    color: #000;
    line-height: 22px;
}

/* Desktop Layout */
.career .for-desktop {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(231.4deg, #C4C4C4 -171.84%, #ECECEC -32.96%, #FFFFFF 83.56%);
    border: 1px solid;
    border-image-source: linear-gradient(82.3deg, #C4C4C4 4.86%, #FFFFFF 45.44%, #EBEBEB 74.18%);
    border-radius: 24px;
    border: 1px solid #C4C4C4;
    padding: 70px;
    gap: 70px;
}

.career-sidebar {
    width: 385px;
    display: flex;
    flex-direction: column;
    border-right: 1.5px solid #D3D3D3;
    padding: 20px 0;
    position: relative;
}

.career-list-item {
    display: flex;
    align-items: center;
    padding: 18px;
    /* margin-bottom: 12px; */
    cursor: pointer;
    transition: all 0.5s ease;
    color: #979797;
    position: relative;
    border-radius: 16px;
    width: 317px;
    z-index: 10;
}

.career-list-item .icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    display: none;
}

.career-list-item .icon svg {
    width: 20px;
    height: 20px;
    fill: none;
}

.career-list-item .text {
    font-size: 16px;
    line-height: 24px;
    color: #979797;
    font-weight: 500;
    transition: color 0.3s ease;
}

.career-sidebar:not(:has(.career-list-item:hover)) .career-list-item.active,
.career-list-item:hover {
    /* transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); */
}

/* Orange Indicator Bar on Sidebar Line */
.career-sidebar:not(:has(.career-list-item:hover)) .career-list-item.active::after,
.career-list-item:hover::after {
    /* content: '';
    position: absolute;
    right: -71px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 61px;
    background-color: #FF4D00;
    border-radius: 10px;
    z-index: 2;
    transition: all 0.5s ease; */
}

.career-sidebar .slider {
    position: absolute;
    left: 0;
    width: 317px;
    height: 60px;
    box-sizing: border-box;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(231.4deg, #C4C4C4 -171.84%, #ECECEC -32.96%, #FFFFFF 83.56%);
    border: 1px solid #C4C4C4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.career-sidebar .slider::after {
    content: '';
    position: absolute;
    right: -71px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 61px;
    background-color: #FF4D00;
    border-radius: 10px;
}

/* Active State Defaults */
#corporate.active~.slider {
    top: 20px;
}

#finance.active~.slider {
    top: 80px;
}

#consulting.active~.slider {
    top: 140px;
}

#marketing.active~.slider {
    top: 200px;
}

#entrepreneurship.active~.slider {
    top: 260px;
}

#international.active~.slider {
    top: 320px;
}

#average.active~.slider {
    top: 380px;
}

/* Hover Overrides */
.career-sidebar:has(#corporate:hover) .slider {
    top: 20px !important;
}

.career-sidebar:has(#finance:hover) .slider {
    top: 80px !important;
}

.career-sidebar:has(#consulting:hover) .slider {
    top: 140px !important;
}

.career-sidebar:has(#marketing:hover) .slider {
    top: 200px !important;
}

.career-sidebar:has(#entrepreneurship:hover) .slider {
    top: 260px !important;
}

.career-sidebar:has(#international:hover) .slider {
    top: 320px !important;
}

.career-sidebar:has(#average:hover) .slider {
    top: 380px !important;
}

.career-sidebar:not(:has(.career-list-item:hover)) .career-list-item.active .text,
.career-list-item:hover .text {
    color: #000;
    font-weight: 600;
}

.career-sidebar:not(:has(.career-list-item:hover)) .career-list-item.active .icon,
.career-list-item:hover .icon {
    color: #FF5A00;
    opacity: 1;
    display: block;
}

/* .career-list-item:not(.active) .icon {
    display: none;
} */

.career-content-area {
    flex: 1;
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    min-height: 450px;
}

.career-detail {
    display: none;
}

.career-detail.active {
    display: block;
    animation: contentSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contentSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.career-banner {
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    margin-bottom: 40px;
    height: 67px;
    background-image: linear-gradient(90deg, #1A1241 0%, #301E75 100%);
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.career-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background-size: cover;
    opacity: 0.6;
}

.career-banner .banner-title {
    display: flex;
    align-items: center;
}

.career-banner h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    margin-left: 20px;
    position: relative;
    z-index: 1;
}

.info-group {
    margin-bottom: 14px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    background-color: #E3E8EE;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.info-badge span {
    margin-right: 8px;
    font-size: 16px;
}

.info-badge.range {
    margin-bottom: 0;
}

.career-info hr {
    /* border: 1px solid; */
    border: none;
    height: 1.5px;
    background: linear-gradient(to right, #D3D3D3, rgba(255, 255, 255, 0));
    /* background: linear-gradient(90deg, #D3D3D3 0%, rgba(255, 255, 255, 0) 100%); */
    margin-bottom: 14px;

}

.info-group p {
    font-size: 16px;
    color: #000;
    margin: 0;
    line-height: 20px;
}

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

.pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Mobile Layout */
.career .for-mobile {
    display: none;
    width: 100%;
}

@media (max-width: 900px) {
    .career .for-desktop {
        padding: 50px;
    }
}

@media (max-width: 900px) {
    .career .for-desktop {
        display: none;
    }

    .career .for-mobile {
        display: block;
    }

    /* Mobile Pill Navigation */
    .mobile-career-tab-list {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 5px 0 20px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
        list-style: none;
    }

    .mobile-career-tab-list::-webkit-scrollbar {
        display: none;
    }

    .mobile-career-tab {
        flex: 0 0 auto;
        padding: 10px 24px;
        /* background: #FFFFFF; */
        border: 1.5px solid #E0E0E0;
        border-radius: 99px;
        font-size: 14px;
        line-height: 24px;
        font-weight: 500;
        color: #333;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.3s ease;
        background: linear-gradient(231.4deg, #C4C4C4 -171.84%, #ECECEC -32.96%, #FFFFFF 83.56%);

    }

    .mobile-career-tab.active {
        background: #000000;
        border-color: #000000;
        color: #FFFFFF;
    }

    /* Mobile Card */
    .mobile-career-cards-container {
        width: 100%;
        margin-top: 10px;
    }

    .mobile-career-card {
        display: none;
        background: linear-gradient(231.4deg, rgba(196, 196, 196, 0.7) -171.84%, rgba(236, 236, 236, 0.7) -32.96%, rgba(255, 255, 255, 0.7) 83.56%);
        border: 1px solid #EAEAEA;
        border-radius: 40px;
        padding: 30px 24px;
        position: relative;
        overflow: hidden;
        min-height: 480px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    }

    .mobile-career-card.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

    /* Grid Background Effect */
    .mobile-career-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image:
            linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
        z-index: 0;
    }

    .mobile-career-card>* {
        position: relative;
        z-index: 1;
    }

    .mobile-career-card .card-header {
        display: flex;
        align-items: center;
        margin-bottom: 35px;
        gap: 15px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #FFFFFF;
        border: 1px solid #F0F0F0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-career-card h3 {
        font-size: 20px;
        line-height: 1.3;
        font-weight: 700;
        color: #111;
        margin: 0;
        display: inline-block;
        padding-bottom: 2px;
    }

    .mobile-career-card .info-badge {
        display: inline-flex;
        align-items: center;
        background-color: #E8EDF2;
        padding: 5px 12px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: 700;
        color: #333;
        margin-bottom: 5px;
        gap: 8px;
    }

    .mobile-career-card .info-badge span {
        display: flex;
        align-items: center;
        margin-right: 0;
    }

    .mobile-career-card .info-badge img {
        width: 16px;
        height: 16px;
        margin-right: 0;
    }

    .mobile-career-card .info-group {
        margin-bottom: 35px;
    }

    .mobile-career-card .info-group p {
        font-size: 15px;
        color: #444;
        margin: 0 0 0 0;
        line-height: 1.5;
    }

    .mobile-career-card .pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 5px;
    }

    .mobile-career-card .pill {
        padding: 8px 18px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .career {
        padding: 60px 15px;
    }

    .career-header h2 {
        font-size: 30px;
        line-height: 35px;
    }

    .career-header p {
        font-size: 16px;
        line-height: 22px;
    }

    .mobile-career-card {
        width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 426px) {
    .career-header {
        width: 80%;
    }

    .mobile-career-card .pills {
        gap: 5px;
    }

}

@media (max-width: 376px) {
    .mobile-career-card {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 340px) {
    .career-header {
        width: 90%;
    }

    .mobile-career-card h3 {
        font-size: 16px;
        line-height: 20px;
    }

    .info-badge {
        font-size: 12px;
        line-height: 18px;
        padding: 4px 10px;

    }

    .info-group p {
        font-size: 12px;
        line-height: 16px;
    }

    .pills {
        gap: 6px;
    }

    .pill {
        padding: 4px 14px;
        font-size: 11px;
        line-height: 15px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
    }

    .icon-circle svg {
        width: 20px;
    }

    .mobile-career-card .pill {
        font-size: 11px;
    }

    .mobile-career-card .info-badge {
        font-size: 12px;
    }

    .mobile-career-card .info-group p {
        font-size: 12px;
        line-height: 16px;
    }

    .mobile-career-tab {
        font-size: 12px;
        line-height: 22px;
        padding: 6px 16px;
    }
}