/* Small devices (small phones, 600px and below) */
@media only screen and (max-width: 600px) {
        #errorPage {
        h1 {
            font-size: 76px;
            font-weight: bold;
            letter-spacing: 8px;
            color: #708dcc;
        }
    }
    
    #articleArea {
        table {

            td,
            th {
                display: block !important;
            }
        }
    }
    .section-header {
        .title {
            font: bold 26px/32px LexendBold, "Sans-serif" !important;
            color: var(--primary-color);
        }

        .sub-title {
            font: 500 20px/24px OutfitMedium, "Sans-serif" !important;
        }
    }

    header {
        .nav-img {
            img {
                max-height: 32px;
            }
        }
    }

    #bannerArea {
        .item {
            height: auto;
            margin: 40px 0 65px 0;

            .row {
                margin-top: 30px;

                .imghold {

                    .divbox {

                        .imgboxRotate {

                            .dotImg {
                                width: 40px;
                                height: 40px;

                                i {
                                    font-size: 24px;
                                    color: var(--white-color);
                                }

                                &.dotImg1 {
                                    top: 20%;
                                    left: 9%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg2 {
                                    top: 75%;
                                    left: 5%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg3 {
                                    top: 101%;
                                    left: 50%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg4 {
                                    top: 75%;
                                    right: -6.5%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg5 {
                                    right: -3%;
                                    top: 20%;
                                    transform: translate(-50%, -50%);
                                }
                            }
                        }
                    }
                }

            }
        }
    }

    .storyGrid {
        grid-template-columns: 1fr !important;

        article {
            &:nth-child(1) {
                grid-area: 1/1;
                aspect-ratio: 4/3;
            }
        }
    }

    #footerArea {
        .first-col {
            width: 100%;
            padding-right: 24px;
            order: 1;
        }

        .second-col {
            width: 50%;
            margin-top: 24px;
            order: 2;
        }

        .third-col {
            width: 100%;
            padding-right: 24px;
            margin-top: 24px;
            border-left: 0;
            order: 4;
        }

        .fourth-col {
            width: 50%;
            padding-left: 24px;
            margin-top: 24px;
            order: 3;
        }
    }

    .timeline {
        width: 100% !important;
        padding: 80px 0 0 0 !important;

        &::before {
            left: 20px !important;
            height: 100%;
        }

        li {
            padding: 20px 0 50px 50px !important;

            &:last-child {
                padding-bottom: 0 !important;
            }

            &:nth-child(2n+1) {
                &:before {
                    left: 16px !important;
                    top: -18px !important;
                }

                .time {
                    right: unset !important;
                    top: -30px !important;
                }
            }

            &:nth-child(2n) {
                &:before {
                    left: 16px !important;
                    top: -18px !important;
                }

                .time {
                    left: unset !important;
                    top: -30px !important;
                }
            }

            &:nth-child(odd),
            &:nth-child(even) {
                width: 100% !important;
                text-align: left !important;
                padding-left: 50px;
                padding-bottom: 50px;
            }
        }
    }

    #serviceDetailArea {
        form {
            .form-box {
                margin-top: 28px !important;

                &::before {
                    display: none !important;
                }
            }
        }
    }

    #portfolioArea {
        .portfolio {
            display: grid;
            grid-template-columns: 1fr !important;
        }
    }

    #caseStudyArea {
        .casestudy {
            grid-template-columns: 1fr !important;

            .casestudy-card {
                img {
                    max-width: 100% !important;
                }
            }
        }
    }

    #caseStudiesArea {
        &.app-features {
            .row {
                &:last-child {
                    padding-bottom: 0 !important;
                }
            }
        }
    }

    #blogsArea {
        .stories {
            grid-template-columns: 1fr 1fr !important;

            article {
                grid-column: span 2;
                transition: 300ms ease-in;

                &:nth-child(1) {
                    grid-area: 1 / 1 / span 1 / span 2 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }

                &:nth-child(2) {
                    grid-area: 1 / 1 / span 1 / span 2 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }

                &:nth-child(3) {
                    grid-area: 1 / 1 / span 1 / span 2 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }
            }

            nav.navigation {
                grid-column: 1/ span 2 !important;
            }
        }
    }
    
    #careerArea {
        .career-form-box {
            margin-top: 28px !important;
            &::before {
                display: none !important;
            }
        }
    }



}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
    .section-header {
        .title {
            font: bold 32px/40px LexendBold, "Sans-serif" !important;
            color: var(--primary-color);
        }

        .sub-title {
            font: 500 22px/28px OutfitMedium, "Sans-serif" !important;
        }
    }

    header {
        .nav-img {
            img {
                max-height: 32px;
            }
        }
    }

    #bannerArea {
        .item {
            height: auto;
            margin: 75px 0;

            .row {
                margin-top: 30px;

                .imghold {
                    max-width: 400px;
                    margin: auto;

                    .divbox {

                        .imgboxRotate {

                            .dotImg {
                                width: 40px;
                                height: 40px;

                                i {
                                    font-size: 24px;
                                    color: var(--white-color);
                                }

                                &.dotImg1 {
                                    top: 20%;
                                    left: 9%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg2 {
                                    top: 75%;
                                    left: 5%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg3 {
                                    top: 101%;
                                    left: 50%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg4 {
                                    top: 75%;
                                    right: -6.5%;
                                    transform: translate(-50%, -50%);
                                }

                                &.dotImg5 {
                                    right: -3%;
                                    top: 20%;
                                    transform: translate(-50%, -50%);
                                }
                            }
                        }
                    }
                }

            }
        }
    }

    #footerArea {
        .first-col {
            width: 65%;
            padding-right: 24px;
        }

        .second-col {
            width: 35%;
            padding-left: 24px;
            border-left: 1px solid red;
        }

        .third-col {
            width: 50%;
            padding-right: 24px;
            margin-top: 24px;
            border-left: 0;
        }

        .fourth-col {
            width: 50%;
            padding-left: 24px;
            margin-top: 24px;
            border-left: 1px solid red;
        }
    }

    .timeline {
        padding: 50px 0 0 0 !important;

        li {
            &:nth-child(odd) {
                padding-left: 0;
            }

            &:nth-child(even) {
                padding-right: 0;
            }
        }
    }

    #serviceDetailArea {
        form {
            .form-box {
                margin-top: 28px !important;

                &::before {
                    display: none !important;
                }
            }
        }
    }

    #portfolioArea {
        .portfolio {
            display: grid;
            grid-template-columns: 1fr 1fr !important;
        }
    }

    #caseStudyArea {
        .casestudy {
            grid-template-columns: 1fr 1fr !important;

            .casestudy-card {
                img {
                    max-width: 100% !important;
                }
            }
        }
    }

    #blogsArea {
        .stories {
            grid-template-columns: 1fr 1fr !important;

            article {
                grid-column: span 2;
                transition: 300ms ease-in;

                &:nth-child(1) {
                    grid-area: 1 / 1 / span 1 / span 2 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }

                &:nth-child(2) {
                    grid-area: 1 / 1 / span 1 / span 2 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }

                &:nth-child(3) {
                    grid-area: 1 / 1 / span 1 / span 2 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }
            }

            nav.navigation {
                grid-column: 1/ span 2 !important;
            }
        }
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    header {
        .nav-img {
            img {
                max-height: 32px;
            }
        }
    }

    #bannerArea {
        .item {
            height: auto;
            margin: 0 0 85px 0;

            .row {
                margin-top: 30px;

                .imghold {
                    max-width: 400px;
                    margin: auto;

                    .divbox {

                        .imgboxRotate {

                            .dotImg {
                                width: 40px;
                                height: 40px;
                            }
                        }
                    }
                }

            }
        }
    }

    #storyArea {
        .storyGrid {
            grid-template-columns: 1fr 1fr !important;
            grid-template-rows: 1fr auto;
            grid-auto-rows: auto;

            article {
                &:nth-child(1) {
                    grid-area: 1 / 1 / 1 / 3;

                    img {
                        aspect-ratio: 16 / 9;
                    }
                }

                img {
                    aspect-ratio: 7 / 5;
                }
            }
        }
    }

    #footerArea {
        .first-col {
            width: 100%;
        }

        .second-col {
            width: 30%;
            border-left: 0;
        }

        .third-col {
            width: 40%;
            border-left: 1px solid red;
        }

        .fourth-col {
            width: 30%;
            border-left: 1px solid red;
        }
    }
}

/* Medium devices (landscape tablets, 768px and up) and Large devices (laptops/desktops, 992px and bellow) */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .section-header {
        .title {
            font: bold 32px/40px LexendBold, "Sans-serif" !important;
            color: var(--primary-color);
        }

        .sub-title {
            font: 500 22px/28px OutfitMedium, "Sans-serif" !important;
        }
    }

    .timeline {
        padding: 50px 0 0 0 !important;

        li {
            &:nth-child(odd) {
                padding-left: 0;
            }

            &:nth-child(even) {
                padding-right: 0;
            }
        }
    }

    #serviceDetailArea {
        form {
            .form-box {
                margin-top: 28px !important;

                &::before {
                    display: none !important;
                }
            }
        }
    }

    #portfolioArea {
        .portfolio {
            display: grid;
            grid-template-columns: 1fr 1fr !important;
        }
    }

    #caseStudyArea {
        .casestudy {
            grid-template-columns: 1fr 1fr !important;

            .casestudy-card {
                img {
                    max-width: 100% !important;
                }
            }
        }
    }

    #blogsArea {
        .stories {
            grid-template-columns: 1fr 1fr !important;

            article {
                grid-column: span 1 !important;
                transition: 300ms ease-in;

                &:nth-child(1) {
                    grid-area: 1 / 1 / span 1 / span 1 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }

                &:nth-child(1) {
                    grid-area: 1 / 1 / span 1 / span 1 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }

                &:nth-child(3) {
                    grid-area: 1 / 1 / span 1 / span 1 !important;

                    img {
                        aspect-ratio: 4/3 !important;
                    }
                }
            }

            nav.navigation {
                grid-column: 1/ span 2 !important;
            }
        }
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    header {
        .nav-img {
            img {
                max-height: 32px;
            }
        }
    }

    #bannerArea {
        .item {
            margin-top: 0;
            min-height: 600px;

            .row {
                margin-top: 0;

                .imghold {
                    max-width: 100%;
                    margin: auto;
                }
            }
        }

        .text {
            max-width: 650px;
        }
    }

    #storyArea {
        .storyGrid {
            grid-template-columns: 1fr 1fr 1fr !important;
            grid-template-rows: 1fr 1fr;
            grid-auto-columns: 1fr;
            gap: 20px 20px;
            grid-auto-flow: row;

            article {
                &:nth-child(1) {
                    grid-area: 1 / 1 / 3 / 2;

                    img {
                        aspect-ratio: auto;
                    }
                }

                img {
                    aspect-ratio: 7 / 5;
                }
            }
        }
    }

    #footerArea {
        .first-col {
            width: 100%;
        }

        .second-col {
            width: 30%;
            border-left: 0;
        }

        .third-col {
            width: 40%;
            border-left: 1px solid red;
        }

        .fourth-col {
            width: 30%;
            border-left: 1px solid red;
        }
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    header {
        button.btn {
            display: inline;
        }

        .nav-img {
            img {
                max-height: 32px;
            }
        }
    }

    #bannerArea {
        .item {
            margin-bottom: 60px;
            margin-top: 0;
            min-height: auto;
        }
    }

    #footerArea {
        .first-col {
            width: 30%;
        }

        .second-col {
            width: 22.5%;
            border-left: 1px solid red;
        }

        .third-col {
            width: 27.5%;
            border-left: 1px solid red;
        }

        .fourth-col {
            width: 20%;
            border-left: 1px solid red;
        }
    }
}

/* Extra large devices (large desktops, 1400px and up) */
@media only screen and (min-width: 1400px) {
    header {
        .nav-img {
            img {
                max-height: 36px;
            }
        }
    }

    #bannerArea {
        .item {
            margin-bottom: 85px;
        }
    }
}