/* =======================================
   CSS Variables & Reset
   ======================================= */
.project-wrap {
    background-color: #030303;
    /* Match about_page background */
    color: var(--white);
    padding-bottom: 120px;
}

.container_match_header {
    max-width: calc(100% - 120px);
    margin: 0 auto;
    width: 100%;
}

.project-wrap h1,
.project-wrap h2,
.project-wrap h3,
.project-wrap h4,
.project-wrap p,
.project-wrap li,
.project-wrap span {
    color: var(--white);
}

.project-wrap .box_list li,
.project-wrap .box_desc {
    color: rgba(255, 255, 255, 0.7);
}

.project-wrap .department_text {
    color: rgba(255, 255, 255, 0.9);
}

/* Section label matching like about.php */
.project-wrap .sec_name {
    display: block;
    width: fit-content;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: var(--ft12);
    font-weight: var(--semi-bold);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto 24px;
    /* Center with margin */
}

/* Department Wrap */
.project-wrap .department_wrap {
    margin-top: 120px;
    padding: 140px 0;
    background: linear-gradient(180deg, #141414 0%, #0b0b0b 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-wrap .box {
    background-color: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.project-wrap .department li {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.project-wrap .department li.active {
    border-color: var(--primary) !important;
    background-color: rgba(235, 73, 11, 0.05) !important;
}

/* Mobile dropdown */
.project-wrap .select_btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.project-wrap .options {
    background: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Bullet list icons */
.project-wrap .box_list li::before {
    background-color: var(--primary) !important;
}



/* =======================================
   Section Content Style (From career.css)
   ======================================= */
.page {
    overflow: visible;
    padding-bottom: 120px;
}

.section {
    margin-top: var(--sec-gap);
}

.sec_name {
    margin-bottom: 32px;
    font-weight: 600;
    text-align: center;
    color: var(--primary);
}

.sec_title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-align: center;
}

.sec_text {
    font-size: var(--ft20);
    color: var(--gray-300);
    font-weight: var(--medium);
    line-height: 1.6;
    margin-bottom: 60px;
    text-align: center;

}

/* Section 1 Main Box (Hero) */
.main_box {
    margin-top: 0;
    padding: 160px 40px 0;
    background: linear-gradient(180deg, #E5EEFF 0%, #FFF 100%);
    text-align: center;
}

.page_name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.page_title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Swiper Wrapper */
.service_wrap {
    width: 100%;
    max-width: 1000px;
    margin: 80px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 300px;
}

/* Redesigned Backdrop Artboard */
.service_wrap .cir {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #0057FF 0%, #00CFFF 50%, #003499 100%);
    position: relative;
    z-index: 1;
    animation: morphingBlob 8s ease-in-out infinite alternate;
    box-shadow: 0 0 80px rgba(0, 87, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inner Core Glowing Orb */
.service_wrap .cir span {
    display: block;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 30%, #ffffff, rgba(255, 255, 255, 0.2) 60%, transparent 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: morphingBlob 10s ease-in-out infinite alternate-reverse;
    border-radius: inherit;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service_wrap::before {
    content: '';
    display: block;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(49.5% 49.5% at 50% 50%, rgba(0, 87, 255, 0.25) 0%, rgba(0, 87, 255, 0) 100%);
    position: absolute;
    z-index: 0;
    filter: blur(40px);
}

.service_wrap::after {
    content: '';
    display: block;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 87, 255, 0.2);
    position: absolute;
    z-index: 0;
    animation: rotateRing 20s linear infinite;
}

@keyframes morphingBlob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes rotateRing {
    100% {
        transform: rotate(360deg);
    }
}

/* --- SLIDER SETUP --- */
.service_swiper {
    width: 100%;
    position: absolute;
    overflow: hidden;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 5;
}

.slider_track {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: scrollTrack 25s linear infinite;
}

.slider_item {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.service_icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service_icon img {
    width: 40px;
    height: 40px;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* -- Department list -- */
.sec1 {
    padding: 100px 0 20px;
}

.department {
    max-width: 100%;
    margin: 60px auto 0;
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.service_cta {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/business-people-casual-meeting.webp') no-repeat center center;
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service_page .footer {
    padding-top: 0px !important;
}

.service_cta h3 {
    font-size: 12px;
    letter-spacing: -0.1px;
    color: var(--primary);
    font-weight: var(--semi-bold);
    margin-bottom: 12px;
}

.service_cta h2 {
    font-size: var(--ft32);
    letter-spacing: -0.1px;
    font-weight: var(--semi-bold);
    color: var(--white);
    margin-bottom: 40px;
}

@media all and (max-width: 1200px) {
    .department {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .department li {
        aspect-ratio: 1 / 1;
        padding: 30px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .department_name {
        white-space: nowrap;
        font-size: var(--ft16) !important;
    }
}

@media all and (max-width: 600px) {
    .department {
        grid-template-columns: 1fr;
    }
}

.department::before {
    content: '';
    width: 100%;
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 0;
    left: 0;
}

.department li {
    width: 100%;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    cursor: pointer;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.department li::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.department li:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 87, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 87, 255, 0.12), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.department li.active {
    border-color: var(--primary);
    background: rgba(0, 87, 255, 0.03);
    box-shadow: 0 15px 30px rgba(0, 87, 255, 0.15);
}

.department li.active::before {
    opacity: 1;
}

.department_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all .3s ease;
}

.department_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.department li:hover .department_icon {
    transform: scale(1.05);
    background: rgba(0, 87, 255, 0.08);
    border-color: rgba(0, 87, 255, 0.2);
}

.department_name {
    font-size: var(--ft20);
    font-weight: var(--semi-bold);
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* Department Wrap */
.department_wrap {
    margin-top: 120px;
    padding: 140px 0;
    background-color: #F4F8FF;
}

.item_menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: flex-start;
}

.department_wrap .inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: flex-start;
}

@media all and (min-width: 1921px) {
    .department_wrap .inner {
        display: block;
        position: relative;
    }

    .department_list {
        width: 100% !important;
        border-left: none !important;
        padding-left: 0 !important;
    }

    .item_menu {
        position: absolute;
        left: calc(60px - (100vw - 1680px) / 2);
        width: 260px !important;
        top: 0;
    }

    .department_wrap .inner::after {
        content: '';
        position: absolute;
        left: calc(160px - (100vw - 1680px) / 4) !important;
        top: 0;
        bottom: 0;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .department_list::after {
        display: none !important;
    }
}

@media all and (max-width: 1024px) {
    .department_wrap .inner {
        grid-template-columns: 1fr;
    }

    .department_list::after {
        display: none !important;
    }

    .project-wrap .box {
        align-items: flex-start;
    }
}

.item_menu li {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: var(--ft18);
    font-weight: var(--semi-bold);
    cursor: pointer;
    transition: all .3s ease;
}

.item_menu li.active {
    background-color: var(--primary);
    color: var(--white);
}

.department_list {
    width: 100%;
    padding-left: 80px;
    position: relative;
}

.department_list::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.department_box {
    margin-bottom: 120px;
}

.department_box:last-child {
    margin-bottom: 0;
}

.department_title {
    font-size: var(--ft32);
    font-weight: var(--semi-bold);
    margin-bottom: 20px;
}

.department_text {
    font-size: var(--ft18);
    color: var(--gray-300);
    line-height: 1;
    margin-bottom: 24px;
}


.department_flex {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.box {
    width: 100%;
    padding: 40px;
    border-radius: var(--radius-md);
    background-color: var(--white);
}

.box_desc {
    font-size: var(--ft18);
    line-height: 1.8;
    color: var(--gray-500);
}

.box_title {
    font-size: var(--ft20);
    font-weight: var(--semi-bold);
    color: var(--gray-500);
    margin-bottom: 20px;
}

.box_list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--ft18);
    color: var(--gray-500);
}

.box_list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gray-400);
}

/* space sliding */
.space_swiper {
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
}

.space_box {
    padding-right: 20px;
    flex: 0 0 300px;
    width: 300px;
    flex-shrink: 0;
    height: auto;
    display: block;
}

.space_box figure {
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #eee;
    position: relative;
}

.space_box figure img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Benefit Grid */
.benefit_list {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit_box {
    width: 100%;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-line);
    text-align: center;
}

.benefit_icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
}

.benefit_title {
    font-weight: var(--medium);
    margin-bottom: 14px;
}

/* Bottom CTA */
.btm_sec {
    background-color: var(--gray-700);
    color: var(--white);
    padding: 130px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin-top: 120px;
}

.btm_title {
    font-size: var(--ft32);
    font-weight: var(--semi-bold);
    max-width: 600px;
    line-height: 1.4;
}

.btn {
    background-color: var(--primary);
    border-radius: 50px;
    font-weight: var(--medium);
}

.btn a {
    padding: 16px 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile fallback hidden */
.item_m_menu {
    display: none;
}

/* =======================================
   Responsive Media Queries
   ======================================= */
@media all and (max-width: 1024px) {
    .department {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .inner {
        flex-direction: column;
        gap: 40px;
    }

    .item_menu {
        display: none;
    }

    .item_m_menu {
        display: block;
        position: relative;
        width: 100%;
    }

    .select_btn {
        background: #fff;
        padding: 16px;
        border-radius: var(--radius-md);
        border: 1px solid var(--dark-line);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .options {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border: 1px solid var(--dark-line);
        border-radius: var(--radius-md);
        margin-top: 4px;
        display: none;
        z-index: 10;
    }

    .options.active {
        display: block;
    }

    .option {
        padding: 12px 16px;
        cursor: pointer;
    }

    .option:hover {
        background-color: #f1f5f9;
    }

    .department_list {
        padding-left: 0;
        border: none;
    }

    .benefit_list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media all and (max-width: 768px) {
    .sec_title {
        font-size: var(--ft32);
    }

    .main_box {
        padding-top: 120px;
    }

    .page_title {
        font-size: var(--ft32);
    }

    .department_flex {
        grid-template-columns: 1fr;
    }

    .space_swiper {
        margin-top: 80px;
    }
    .service_cta {
        padding: 60px 0;
    }

    .service_cta h2 {
        font-size: 24px !important;
        margin-bottom: 24px;
        letter-spacing: -0.1px;
    }
}