.main-menu-close {
    display: none;
}

.header-right{
    width: 300px;
}

.logo-zh-hk{
    margin-bottom: -5px;
    display: block;
}

.main-menu-mask, .main-menu-top, .main-menu-button {
    display: none;
}

.main-menu-button {
    background-color: rgba(162,173,102,0.67); /* #a2ad66ac; #a799418c */
    display: block;
    position: relative;
    right: 0;
    width: 100%;
    height: 50px;
    z-index: 10002;
    height: 112px;
}

.main-menu-button-inner {
    display: block;
    position: absolute;
    left: 14%;
    top: 33%;
    width: 45%;
    height: 34%;
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    background: url(images/newstudent/main-menu-button@2x.png) no-repeat center center;
    background-size: contain;
}


/*
body.menu-open {
    position: fixed;
}
*/

.menu-open .main-menu-button{
    z-index: 1;
}

.main-menu ul ul li.current-menu-item a{
    background-color: #85316e;
}

.menu-open .main-menu {
    -ms-transform: translateX(0);
    transform: translateX(0);
    transition: transform 0.25s ease-in-out;
}

.menu-close .main-menu {
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    transition: transform 0.25s ease-in-out;
}

.header-top {
    width: 40%;
}

.main-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 400px;
    /* min-width: 240px; */
    height: 100%;
    background-color: #a2ad66; /* #a79941 */
    padding-bottom: 20px;
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    transition: right 0.25s ease-in-out;
    box-shadow: 0 0 10px rgb(0 0 0 / 30%);
    will-change: transform;
    z-index: 9998;
    overflow-x: auto;
}

.main-menu > ul {
    text-align: left;
    display: block;
       padding-top: 20px;
}

.main-menu ul li {
    display: block;
    padding: 15px 50px 15px 30px;
}

.header-submenu li {
    border: 0;
}

.main-menu > ul > li > a{
    width: 100%;
    font-size: 2em; /* 1.6 */
    font-weight: 600;
    /* padding: 15px 50px 15px 30px; */
    line-height: 1.2;
    letter-spacing: -0.03em;
    z-index: 232332;
    transition: background-color 0.2s ease-in-out;
    color: white;
    padding: 0;
}

 .main-menu li a span {
    display: block;
    font-size: 0.9em;
    padding-top: 0.5em;
    font-weight: 400;
}


.menu-open .main-menu-close {
    display: block;
    position: absolute;
    right: 30px;
    top: 20px;
    width: 20px;
    height: 20px;
    background-image: url(images/newstudent/main-menu-close@2x.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
    cursor: pointer;
}


body.menu-open .main-menu-container {
    -ms-transform: translateX(0);
    transform: translateX(0);
    transition: transform 0.25s ease-in-out;
}

body.menu-open .main-menu-mask {
    display: block;
}

.main-menu-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 60%);
    z-index: 100;
}


@media (max-width: 1500px) {
    .home-testimonials-container {
    width: 80%;
    margin: 0 auto;
    }

    .home-testimonials-row h3 {
    margin-right: 10%;
    }
}



@media (max-width: 1200px) {
    .blocks-image-text, .blocks-hover-text {
        font-size: 2.5vw;
    }

    .bx-viewport .bx-controls{
    display: none;
    }

    
}

@media (max-width: 1100px) {
    .header-logo img {
        height: 45px;
        padding-right: 20px;
    }


    .header-logo {
        font-size: 1.4em;
    }

    .header-title {
        font-size: 2em;
    }

    .section-large-title {
        padding: 3% 0;
        font-size: 3em;
    }

    .banner-title {
        font-size: 2.7em;
    }

    .section-title {
        font-size: 2.1em;
    }

    .details-button {
        padding: 0.8em 1.7em;
        font-size: 1.8em;
    }

    .main-menu-button {
        height: 85px;
    }
}

@media (max-width: 800px) {
    p, .content td, .content th {
        font-size: 1.4em;
    }

    .main-menu-button {
        height: 90px;
    }

    .header-right {
        width: 15%;
    }

    .header-left {
        width: 90%;
    }


    .menu-text {
        display: none;
        left: 30%;
    }

    .main-menu-button-inner {
        left: 50%;
    }

    .header-logo img {
        height: 50px;
    }

    .header-logo {
        font-size: 1.4em;
    }

    .header-title .zh-hk {
        font-size: 1em;
    }

    .header-title .us-en {
        font-size: 1em;
    }

    .social-media-icon i {
        font-size: 3em;
    }

    .social-media-block {
        width: 30%;
    }

    .home-testimonials-row h3 {
        font-size: 2em;
    }

    .home-testimonial {
        font-size: 1.3em;
    }

    .home-testimonials h4 {
        font-size: 1em;
    }

    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-next {
        left: auto;
        right: -9%;
    }

    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-prev {
        left: -9%;
    }

    .home-testimonials-container {
        padding: 2% 5%;
        width: 80%;
        margin: 0 auto;
    }

    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-prev, .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-next {
        width: 27px;
        height: 28px;
    }

    .footer {
        font-size: 1.3em;
    }

    .section-large-title {
        padding: 3% 0;
        font-size: 3em;
    }

    .banner-title {
        font-size: 2.7em;
    }

    .section-title {
        font-size: 2.1em;
    }

    .details-button {
        padding: 0.8em 1.7em;
        font-size: 1.8em;
    }

    .details-button-container{
        padding: 10px 0;
    }

    .main-menu ul li a,
    .main-menu .language-switcher ul li a {
        font-size: 1.8em;
    }
    .main-menu ul.dot-menu li a {
        font-size: 1.6em;
    }
    #fp-nav ul li .fp-tooltip {
        display: none;
    }
}


@media screen and (max-width: 675px) {
  .details-photos{
    padding-bottom: 20px;
  }
}


@media (max-width: 550px){
    .main-menu-button {
        height: 75px;
    }

    .social-media-feed {
        height: 60px;
    }

    .header-logo img {
        height: 50px;
        padding-right: 10px;
    }

    .header-left {
        padding: 10px 0 10px 0;
    }

    .header-logo {
        font-size: 1.3em;
    }

    .blocks-image-text, .blocks-hover-text {
        font-size: 1.3em;
    }

    .header-banner {
        padding: 8% 0;
    }

    .details-photos-2 .details-photo:first-child, .details-photos-2 .details-photo:nth-child(2),
    .details-photos-3 .details-photo:first-child, .details-photos-3 .details-photo:nth-child(2), .details-photos-3 .details-photo:nth-child(3), 
    .details-photos-5 .details-photo:first-child, .details-photos-5 .details-photo:nth-child(2), .details-photos-5 .details-photo:nth-child(3),
    .details-photos-6 .details-photo:first-child, .details-photos-6 .details-photo:nth-child(2), .details-photos-6 .details-photo:nth-child(3),
    .details-photos-6 .details-photo:nth-child(4), .details-photos-6 .details-photo:nth-child(5), .details-photos-6 .details-photo:nth-child(6),
    .details-photos-7 .details-photo:first-child, .details-photos-7 .details-photo:nth-child(2), .details-photos-7 .details-photo:nth-child(3), .details-photos-more .details-photo:first-child, .details-photos-more .details-photo:nth-child(2), .details-photos-more .details-photo:nth-child(3),
    .details-photos-7 .details-photo:nth-child(4), .details-photos-7 .details-photo:nth-child(5), .details-photos-7 .details-photo:nth-child(6), .details-photos-7 .details-photo:nth-child(7), .details-photos-more .details-photo:nth-child(4), .details-photos-more .details-photo:nth-child(5), .details-photos-more .details-photo:nth-child(6), .details-photos-more .details-photo:nth-child(7),.details-photos-4 .details-photo:nth-child(3), .details-photos-4 .details-photo:nth-child(4), .details-photos-5 .details-photo:nth-child(4), .details-photos-5 .details-photo:nth-child(5){
        width: 48%;
        margin:0 1% 2% 1%;
    }
    .details-photo-more,
    .details-photos-odd .details-photo-last {
        width: 98% !important;
        margin: 0 1% 2% 1%;
    }
}

@media (max-width: 500px){
    .blocks-image {
        width: 50%;
    }

    .blocks-image:nth-child(3) {
       background: linear-gradient(90deg, rgb(215 237 188) 0%,  100%);
        background: rgb(215 237 188);
        background: -moz-linear-gradient(90deg, rgb(215 237 188) 0%, rgb(162 173 103) 100%);
        background: -webkit-linear-gradient(90deg, rgb(215 237 188) 0%, rgb(162 173 103) 100%);
        background: linear-gradient(90deg, rgb(215 237 188) 0%, rgb(162 173 103) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#D7EDBC",endColorstr="#A2AD67",GradientType=1);
    }
    .blocks-image:nth-child(4) {
        background: rgb(244 176 21);
        background: -moz-linear-gradient(90deg, rgb(255 222 147) 0%, rgb(244 176 21) 100%);
        background: -webkit-linear-gradient(90deg, rgb(255 222 147) 0%, rgb(244 176 21) 100%);
        background: linear-gradient(90deg, rgb(255 222 147) 0%, rgb(244 176 21) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFCD5D",endColorstr="#F4B015",GradientType=1);
    }

    .footer-wrapper {
        padding: 20px 0 25px 0;
    }

    .header-title {
        padding: 10px 0;
    }

    .section-large-title {
        padding: 3% 0;
        font-size: 2.2em;
    }

    .banner-title {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .details-button {
        padding: 0.7em 1.5em;
        font-size: 1.5em;
    }

    .details-button-container{
        padding: 20px 0;
    }

    .footer {
        font-size: 1em;
    }

    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-prev, .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-next {
        width: 20px;
        height: 21px;
    }

    .main-menu-button {
        height: 64px;
    }

    .header-logo img {
        height: 40px;
        padding-right: 5px;
    }

    .header-left {
        padding: 10px 0 10px 0;
    }

    .header-logo {
        font-size: 1em;
    }

    .header-title .zh-hk {
        font-size: 0.8em;
    }

    .header-title .us-en {
        font-size: 0.8em;
    }

    .social-media-icon i {
        font-size: 2.5em;
    }

    .social-media-block {
        width: 47%;
    }

    .home-testimonials-row {
        width: 70%;
    }

    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-next {
        right: -16%;
    }

    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-prev {
        left: -16%;
    }

    .home-testimonials-row h3 {
        font-size: 1.7em;
    }
    .main-menu ul li a,
    .main-menu .language-switcher ul li a {
        font-size: 1.6em;
    }
    .main-menu ul.dot-menu li a {
        font-size: 1.4em;
    }
}


@media (max-width: 400px){
    .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-prev, .ht-slider-container .bx-wrapper .bx-controls-direction a.bx-next {
        width: 15px;
        height: 16px;
    }

    .main-menu-button {
        height: 58px;
    }

    .header-title .zh-hk {
        font-size: 0.8em;
    }

    .header-title .us-en {
        font-size: 0.8em;
    }

    .header-logo img {
        height: 35px;
        padding-right: 5px;
    }

    .header-left {
        padding: 10px 0 10px 0;
    }

    .header-logo {
        font-size: 0.8em;
    }

    .header-wrapper{
        width: 95%;
    }

    .blocks-image-text, .blocks-hover-text {
        font-size: 1.3em;
    }

    .blocks-image-text{
        padding:0;
    }

    .social-media-feed {
        height: 45px;
    }
}


@media (max-width: 350px){
    .header-logo img {
        height: 30px;
    }

    .main-menu-button {
        height: 53px;
    }
}
/*
@media (max-width: 1200px) {
    .blocks-image-text, .blocks-hover-text {
        font-size: 2.5vw;
    }
}
*/
