@media only screen and (max-width: 1279px) {
    header ul
    {
        display: none;
    }

    .business-section header ul {
        display: block;
    }

    header .search {
        margin-left: 0px;
    }
    
    header .phone {
        margin-right: 35px;
    }

    .social-bar {
        right: 10px;
    }
    .serach-mobile {
        display: flex;
        align-items: center;
    }
    .serach-mobile div#searchbtnmob svg {
        margin: 11px 10px 0 0;
    }
    header .phone svg, .serach-mobile svg {
        width: 25px;
        height: 25px;
    }
    .serach-mobile div#searchbtnmob {
        display: block;
    }
}

@media only screen and (max-width: 1150px) {
    #main-nav,
    #hero,
    #hero .image,
    #hero .banner-images,
    {
        height: 640px;   
    }

    #hero .banner-images,
    #hero .image
    {
        width: 54vw;
    }

    #main-nav,
    #hero .text {
        width: 46vw;
    }
}

@media only screen and (max-width: 960px) {
    #main-nav {
        width: 100%;
        height: calc(100vh - 80px);
    }

    #hero {
        display: block;
        height: auto;
    }

        #hero .text {
            width: 100%;
        }

        #hero .image,
        #hero .banner-images
        {
            width: 100%;
            height: 50vh;   
        }

    .social-bar {
        top: 660px;
    }

    #hero .text {
        padding-bottom: 45px;
    }

    #hero .cogs {
        position: absolute;
        left: 360px;
    }

    #hero .text h2.english {
        left: 0px;
        bottom: -20px;
        top: auto;
    }

    #hero .text h2.maths {
        left: 80px;
        top: -20px;
    }

    #hero .text h2.free-assessment {
        top: 103px;
        right: auto;
        left: 148px;
    }
}

@media only screen and (max-width: 900px) {
    .business-section header ul {
        display: none;
    }

    img.right.large {
        width: 40%;
    }
}

@media only screen and (max-width: 840px) {
    
    section.content {
        padding: 50px 0;
    }

    section.alert {
        padding: 10px 0;
    }

    header .search {
        display: none;
    }

    #main-nav .site-search {
        position: relative;
        top: -35px;
    }
    
    #main-nav .site-search .search {
        display: block;
    }

        .site-search .search .text::placeholder {
            font-size: 12.5px;
        }

        #main-nav .site-search .search .text {
            width: 90%;
            padding-right: 0px;
            font-size: 16px;
        }

}

/*
    Mobile view
 */
@media only screen and (max-width: 680px) {

    #main-nav {
        height: 100vh;
        top: 0px;
        padding: 110px 40px 0 40px;
    }

    #main-nav ul.mb-shallow {
        margin-bottom: 20px;
    }

    #main-nav li.slp {
        font-size: 14px;
        width: 100%;
        float: none;
    }

    #main-nav li {
        font-size: 12px;
    }

    .heading .icon,
    .icon {
        width: 40px;
        height: auto;
        margin-right: 15px;
    }

    .flex {
        display: block;
    }

    .flex-mobile {
        display: flex;
    }

    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    .mr {
        margin-right: 20px;
    }

    .mb, section.content .container.mb {
        margin-bottom: 20px;
    }

    .videos .video {
        margin-right: 0px;
        float: left;
        margin: 0 1%;
        width: 30%;
    }

    header {}

        header .container
        {
            width: 90%;
            margin: 0 auto;
        }

        header .logo img {
            height: auto;
            max-width: 60vw;
        }

        header .phone {
            margin-right: 35px !important;
            top: -3px;
            position: relative;
        }

            header .phone svg {
                width: 40px;
                height: 40px;
                margin-right: 15px;
            }

        header .toggle {
            top: 15px;
        }

    #hero {
        position: relative;
    }

        #hero .text p.heading span {
            display: inline;
        }

        #hero .text {
            padding: 8% 5% 110px 5%;
            position: relative;
        }

            #hero .text .heading {}

                #hero .text h1.heading {
                    margin: 0 0 15px 0;
                }

                #hero .text p.heading {
                    margin: 15px 0 0 0;
                    line-height: 1.2;
                    font-size: 1.8rem;
                }

            #hero .text .cogs {
                bottom: 35px;
                left: 5%;
                width: 100%;
                height: auto;
            }

            #hero .text h2 {
                left: auto !important;
                right: auto !important;
                bottom: auto !important;
                top: auto !important;
                position: static;
                display: inline-block;
                text-align: left;
            }

                #hero .text h2 a {
                    font-size: 16px;
                    color: #e31e36 !important;
                    width: auto !important;
                    height: auto !important;
                    padding: 0px !important;
                }

                #hero .text h2 a, #hero .text h2 strong {
                    font-weight: 400;
                }

                #hero .text h2 a:before {
                    background: none !important;
                }

            #hero .text h2.maths {
                border-right: 1px solid #e31e36;
                padding-right: 15px;
                margin-right: 10px;
            }

            #hero .text h2.free-assessment {
                display: block;
                margin-top: 10px;
            }

                #hero .text h2.free-assessment a {
                    text-decoration: underline;
                }

                #hero .text h2.free-assessment a, #hero .text h2.free-assessment a strong {
                    font-weight: 600;
                }

    section.content.header .container {
        background-image: none !important;
    }

        section.content h2 {
            margin-bottom: 15px;
        }

        section.content p.btn {
            margin: 18px 0 0 0;
        }

    section.content.header.centre-page h1 {
        justify-content: center;
    }

    section.content.header.centre-page .buttons {
        margin-left: 0px;
        text-align: center;
    }

    section.content.header.centre-page .buttons a  {
        display: block;
        margin: 20px auto;
        width: 50%;
    }

    .business-section section.content.header {
        background-size: 100% 40%;
        background-position: bottom center;
    }
    
    .business-section .header h1,
    .business-section section.content h2,
    .business-section section.content.default h1
    {
        font-size: 1.4rem;
    }

    section.page-section.header .text {
        margin-right: 0px;
    }

    section.page-section.header .button {
        position: static;
        width: 150px;
        margin-top: 40px;
    }
    header .phone svg, .serach-mobile svg {
        width: 25px;
        height: 25px;
    }

}

@media only screen and (max-width: 560px) {

    header .infopack {
        margin-left: 10px;
    }

        header .infopack a {
            width: 100px;
        }

    section.page-section.header p span {
        display: inline;
    }
}

@media only screen and (max-width: 500px) {

    #hero .banner-images,
    #hero .image{
        height: 230px;
    }

    img.right.large {
        display: none;
    }
    
    .videos.videos-1 .video {
            width: 280px;
            margin: 0 auto;
        }

            .videos.videos-1 .video .video-holder {
                width: 280px;
                height: 153px;
                overflow: hidden;
            }

            .videos.videos-1 .video .video-holder video {
                top: -30px;
            }


    .videos .video {
        width: 100%;
        margin: 0px;
    }

   .videos-dots {
        width: 100% !important;
    }

    .videos-dots ul {
        margin-top: 10px;
    }

    /*
        Business section header tweaks
    */
    .business-section header .container {
        width: 92%;
    }
    .business-section header .logo img {
        width: 150px;
    }

    .business-section header .toggle {
        width: 25px;
        right: 10px;
    }
}

@media only screen and (max-height: 800px) {
    #main-nav .menus {
        padding-bottom: 100px;
    }
}