/* Prevent horizontal scroll on service page */
.ser-container,
.ab-part,
.ab-part-side {
    max-width: 100%;
    box-sizing: border-box;
}

/* Base styling for service illustrations centering */
.ab-part-side.right,
.ab-part-side.left {
    text-align: center;
}

/* Fix double scrollbar - ensure only body scrolls
   Note: Global scrollbar styling in style.css */

/* Ensure no element creates its own scroll context 
   Note: .ab-part keeps overflow: hidden for border-radius clipping */
.ser-container,
.ab-part-side,
.home-how-side {
    overflow: visible;
}

.headroom--top .header-right-lang {
    color: #222 !important;
}

.ser-container {
    position: relative;
    display: block;
    padding-top: 195px;
    margin: 0px auto 80px;
    width: calc(100% - 100px);
    max-width: 1377px;
    font-size: 0px;
    overflow: visible;  /* Fix: no scroll context */
}

.ser-container > * {
    font-size: 16px;
}

/* Hero image responsiveness */
.ser-container .home-how-side.right {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ser-container .home-how-side img {
    max-width: 100%;
    height: auto;
    display: block;
}

.home-how-side {
    top: 0px !important;
    aspect-ratio: 300/200 !important;
}

.se-item {
    position: relative;
    display: block;
}

.ab-part {
    border-radius: 70px !important;
    overflow: hidden !important;
    font-size: 0px !important;
    margin: 0px auto 80px !important;
    padding: 90px 40px !important;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-border-radius: 70px !important;
    -moz-border-radius: 70px !important;
    -ms-border-radius: 70px !important;
    -o-border-radius: 70px !important;
}

.ab-part.hear {
    margin-bottom: 120px !important;
}

.ab-part-side {
    text-align: left;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 50%;
    box-sizing: border-box;
}

/* Center align for sides containing images */
.ab-part-side.right {
    text-align: center;
}

.ab-desc-art .home-how-link {
    margin-top: 30px;
}

.ab-part .home-how-link {
    margin-top: 30px;
}

.one .home-how-link {
    color: #fff;
}

.one .home-how-link:hover {
    color: #f7951f;
}

.one .link-before:before {
    background: #fff;
}

.one .link-before:after {
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.ai-auto .home-how-link {
    color: #fff;
}

.ai-auto .home-how-link:hover {
    color: #f7951f;
}

.ai-auto .link-before:before {
    background: #fff;
}

.ai-auto .link-before:after {
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.empowering .home-how-link span {
    color: #fff;
}

.empowering .home-how-link:hover {
    color: #fff;
}

.empowering .link-after:before {
    background: #fff;
}

.empowering .link-after:after {
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.home-how-side {
    max-width: 715px;
}

.home-how-ctn {
    /* width: 100%; */
    /* max-width: unset; */
}

.home-how-side.right {
    margin-left: calc((50% - 715px) / 2);
    max-width: 100%;
}

@media screen and (max-width: 1430px) {
    .home-how-side.right {
        margin-left: 0;
    }
}


.home-work-title.detail {
    font-size: 60px;
    line-height: 50px;
}

/* Service Illustration Styles */
.service-illustration {
    position: relative;
    display: block;
    margin: auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
}

/* Ensure SVG images scale properly */
.ab-part-side img.service-illustration,
.ab-part-side .service-illustration {
    max-width: 100%;
    height: auto;
    display: block;
}

.ab-part-side.right {
    text-align: center;
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.ab-part-side.left {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive Improvements */
@media screen and (max-width: 1024px) {
    /* about.css makes .left display:block at 1024px, so .right must follow */
    .ab-part-side.right {
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .service-illustration {
        margin: 0 auto !important;
        display: block !important;
    }

    /* Swap image to top for Web Dev, Branding & AI Auto (image is on .right = DOM order 2nd) */
    .ab-part.one,
    .ab-part.compre,
    .ab-part.ai-auto {
        display: flex !important;
        flex-direction: column !important;
    }

    .ab-part.one .ab-part-side.right,
    .ab-part.compre .ab-part-side.right,
    .ab-part.ai-auto .ab-part-side.right {
        order: -1;
    }
}

@media screen and (max-width: 1200px) {
    .ser-container {
        width: calc(100% - 60px);
    }
    
    .ab-part {
        width: calc(100% - 60px);
        padding: 70px 30px !important;
    }
    
    .service-illustration {
        max-width: 280px;
        max-height: 230px;
    }
}

@media screen and (max-width: 992px) {
    .ser-container {
        width: calc(100% - 40px);
        padding-top: 160px;
    }
    
    .ab-part {
        width: calc(100% - 40px);
        padding: 50px 25px !important;
        margin: 0px auto 50px !important;
        border-radius: 50px !important;
    }
    
    .ab-part-side {
        width: 100% !important;
        display: block !important;
        padding: 20px !important;
        float: none !important;
        margin: 0 !important;
    }
    
    .ab-part-side.left,
    .ab-part-side.right {
        text-align: center !important;
        margin-left: 0 !important;
    }
    
    /* Center images in service sections */
    .ab-part-side.right:has(.service-illustration),
    .ab-part-side.left:has(.service-illustration) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .ab-part-title {
        max-width: 100%;
        text-align: center;
    }
    
    .ab-part-art {
        max-width: 100%;
        text-align: center !important;
    }
    
    .ab-part .home-how-link {
        margin: 20px auto 0px;
        text-align: center;
        display: table;
    }
    
    .service-illustration {
        max-width: 260px;
        max-height: 210px;
        margin: 20px auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Hero section responsive */
    .home-how-side {
        width: 100% !important;
        display: block !important;
        max-width: 100% !important;
        margin: 0 auto 30px !important;
    }
    
    .home-how-side.right {
        margin: 0 auto !important;
    }
}

@media screen and (max-width: 768px) {
    .ser-container {
        width: 100%;
        padding: 140px 20px 0;
        margin-bottom: 40px;
    }
    
    .ab-part {
        width: calc(100% - 30px);
        padding: 40px 20px !important;
        margin: 0px auto 40px !important;
        border-radius: 35px !important;
    }
    
    .ab-part-side {
        padding: 15px !important;
    }
    
    /* Center images in service sections */
    .ab-part-side.right:has(.service-illustration),
    .ab-part-side.left:has(.service-illustration) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .ab-part-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .ab-part-art {
        font-size: 16px;
        line-height: 26px;
    }
    
    .service-illustration {
        max-width: 220px;
        max-height: 180px;
        margin: 20px auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .home-how-side {
        width: 100% !important;
        display: block !important;
        max-width: 100% !important;
        aspect-ratio: unset !important;
        height: auto !important;
        margin: 0 auto 20px !important;
    }
    
    .home-how-side img {
        max-width: 100%;
        height: auto;
    }
    
    .home-work-title.how {
        font-size: 42px;
        line-height: 38px;
    }
}

@media screen and (max-width: 480px) {
    .ser-container {
        width: 100%;
        padding: 120px 15px 0;
    }
    
    .ab-part {
        width: calc(100% - 20px);
        padding: 30px 15px !important;
        margin: 0px auto 30px !important;
        border-radius: 25px !important;
    }
    
    .ab-part-side {
        padding: 10px !important;
    }
    
    /* Center images in service sections */
    .ab-part-side.right:has(.service-illustration),
    .ab-part-side.left:has(.service-illustration) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .ab-part-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .ab-part-art {
        font-size: 15px;
        line-height: 24px;
    }
    
    .service-illustration {
        max-width: 180px;
        max-height: 150px;
        margin: 20px auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .home-work-title.how {
        font-size: 36px;
        line-height: 34px;
    }
    
    .home-how-link {
        font-size: 14px;
    }
}
