/* Shared home-page mobile layout (home.html + home_dark.html) */

@media (max-width: 1199px) {
    body.it-consulting .partner-area .partner-wrap .marquee .marquee__group a img.partner-logo-aws,
    body.it-consulting .partner-area .partner-wrap .marquee .marquee__group span img.partner-logo-aws {
        width: 90px;
    }

    body.it-consulting .partner-area .partner-wrap .marquee .marquee__group span img {
        width: 135px;
    }

    .home5-about-section .about-wrapper .counter-and-btn-area .counter-area .number .counter {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .home5-about-section .about-wrapper .counter-and-btn-area .counter-area .number .counter {
        font-size: 45px;
    }
}

@media (max-width: 767px) {
    /* Stack home page multi-column sections */
    body.it-consulting .home5-feature-section .row > [class*="col-"],
    body.it-consulting .home5-service-section .row > [class*="col-"],
    body.it-consulting .home5-about-section .row > [class*="col-"],
    body.it-consulting .home5-process-section .row > [class*="col-"],
    body.it-consulting .home5-testimonial-section .row > [class*="col-"],
    body.it-consulting .home5-blog-section .row > [class*="col-"],
    body.it-consulting .home1-industries-section .row > [class*="col-"],
    body.it-consulting .partner-area .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.it-consulting .home5-feature-section .feature-card3 {
        min-height: 0;
    }

    /* Restore sticky card-stack scroll effect on mobile (matches desktop) */
    body.it-consulting .home5-service-section .service-wrapper .single-service {
        position: sticky;
        top: 72px;
        z-index: 1;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service:nth-child(2) {
        top: 88px;
        z-index: 2;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service:nth-child(3) {
        top: 104px;
        z-index: 3;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service:nth-child(4) {
        top: 120px;
        z-index: 4;
    }

    body.it-consulting .home5-service-section .service-wrapper {
        padding-bottom: 2rem;
    }

    body.it-consulting .home5-service-section.mb-130 {
        margin-bottom: 3rem !important;
    }

    body.it-consulting .partner-area.five.mb-130 {
        margin-top: -1rem;
        margin-bottom: 4rem !important;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service.mb-40 {
        margin-bottom: 1.25rem !important;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service:last-child {
        margin-bottom: 0 !important;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service .service-img {
        margin-top: 1.5rem;
    }

    body.it-consulting .home5-service-section .service-wrapper .single-service .service-img svg,
    body.it-consulting .home5-service-section .service-wrapper .single-service .service-img img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    body.it-consulting .home5-process-section .row.mb-70 {
        margin-bottom: 2.5rem !important;
        text-align: center;
    }

    body.it-consulting .home5-process-section .row.mb-70 > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.it-consulting .home5-process-section .result-area {
        display: none;
    }

    body.it-consulting .home5-process-section .process-wrapper {
        margin-bottom: 2rem !important;
    }

    body.it-consulting .home5-process-section .process-wrapper .row {
        --bs-gutter-y: 1rem;
    }

    body.it-consulting .home5-process-section .process-wrapper .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        display: block !important;
    }

    body.it-consulting .home5-process-section .process-card3 {
        max-width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        row-gap: 0.35rem;
        align-items: start;
        padding: 1.125rem 1.25rem;
        background: rgba(255, 255, 255, 0.82);
        border-radius: 18px;
    }

    body.dark.it-consulting .home5-process-section .process-card3 {
        background: rgba(28, 26, 30, 0.72);
    }

    body.it-consulting .home5-process-section .process-card3 .step-no {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    body.it-consulting .home5-process-section .process-card3 h5 {
        grid-column: 2;
        margin-bottom: 0.35rem;
        font-size: 1.125rem;
        line-height: 1.35;
    }

    body.it-consulting .home5-process-section .process-card3 p {
        grid-column: 2;
        font-size: 0.9375rem;
        line-height: 1.55;
    }

    body.it-consulting .home5-process-section .contact-area {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1.125rem 1.25rem;
        border-radius: 18px;
    }

    body.it-consulting .home5-process-section .contact-area p {
        font-size: 0.975rem;
        line-height: 1.45;
    }

    body.it-consulting .home5-process-section .contact-area a {
        justify-content: center;
        width: 100%;
        padding: 0.875rem 1rem;
        border-radius: 999px;
        background: #1d4ed8;
        color: #fff !important;
    }

    body.it-consulting .home5-process-section .contact-area a svg {
        stroke: #fff !important;
    }

    body.it-consulting .testimonial-card4.two .testimonial-img,
    body.it-consulting .testimonial-card4.two .testimonial-img img {
        max-height: 420px;
    }

    body.it-consulting .home5-testimonial-section .testimonial-bottom-row {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: hidden;
    }

    body.it-consulting .home5-testimonial-section .home2-testimonial-slider.mb-50 {
        margin-bottom: 0 !important;
    }

    body.it-consulting .home5-testimonial-section.mb-130 {
        margin-bottom: 2.5rem !important;
    }

    body.it-consulting .home5-testimonial-section .row.mb-70 {
        margin-bottom: 2rem !important;
    }

    body.it-consulting .home2-testimonial-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
        display: none;
    }

    body.it-consulting .home2-testimonial-slider .swiper-wrapper {
        min-height: 0;
    }

    .home5-about-section .about-wrapper .counter-and-btn-area .counter-area .number .counter {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    body.it-consulting .partner-area .partner-wrap .marquee .marquee__group a img.partner-logo-aws,
    body.it-consulting .partner-area .partner-wrap .marquee .marquee__group span img.partner-logo-aws {
        width: 84px;
    }

    body.it-consulting .partner-area .partner-wrap .marquee .marquee__group span img {
        width: 125px;
    }

    .home5-feature-section .about-area .counter-wrap .counter-content .number .counter {
        font-size: 32px;
    }
}
