*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    
}
.main{
    
    padding-bottom: 50px;
}

.menu h1 {
    flex: 1;
    font-size: 30px;
    margin-right: 20px;
}

.header{
    height: 15vh;
    width: 100%;
    background-image: linear-gradient(rgba(218,218,218,0.7),rgba(218,218,218,0.1));
    background-position: center;
    background-size: cover;
    position: relative;  }

nav{
    display: flex;
    justify-content: space-between;
    padding: 20px;
}
.header img{
    width: 350px;
}
.menu{
    flex: 1;
    text-align: right;
    margin-top: 50px;
    display: flex;
}
.menu a{
    text-decoration: none;
    font-size: 20px;
    margin: 10px;
    color:black;
}
.menu a:hover {
    color: rgb(19,164,60);
    transition: 0.3s;
}

.row{
    width: 100%;
    
}

@media (max-width: 700px){
    nav{
        padding-left: 10px;
    }
    .header img{
        width: 150px;}
    .menu a{
        font-size: 10px;
        margin: 5px;
    }
    .menu{
        margin-top: 15.5px;
    }
    .header{
        height:8vh;
    }
}

@media (700px < width < 1000px){
    nav{
        padding-left: 10px;
    }
    .header img{
        width: 180px;}
    .menu a{
        font-size: 8px;
        margin: 5px;
    }
    .menu{
        margin-top: 15.5px;
    }
    .header{
        height:8vh;
    }
}



/* wechat hover */


.icon li img{
    visibility: hidden;
    width: 120px;
    position: absolute;
    transition: 0.3s ease-in-out;
    transform: scale(0);
}
.icon li:hover img{
    visibility: visible;
    width: 120px;
    transform: scale(1);
}

.icon li{
    display: inline-block;
}


/* page */

.page {
    text-align: center;
    margin: 40px;
    font-size: 25px;
}

.page-previous{
    padding-bottom: 20px;
    
}

.page-previous a{
    text-decoration: none;
    color:black;
    font-size: 20px;
}

.page-previous a:hover {
    color: rgb(19,164,60);
    transition: 0.3s;
}

@media (max-width: 700px){
    .page{
        font-size: 20px;
        margin-bottom: 5px;
        
    }

}


/* campus (office/residential) */

.campus{
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
    align-items: center;
    padding-bottom: 50px;
}

.campus h1{
    font-size: 40px;
    
}

.campus p{
    font-size: 20px;
    color:rgb(82, 82, 82);
    
    
    
}

.campus a{
    text-decoration: none;
    
    
}

.campus p:hover {
    color: rgb(19,164,60);
    transition: 0.3s;
}

@media(max-width: 700px){
    .row{
        margin-top: 10px;
    }
    .campus{
        margin-top: 50px;
    }
}
.campus-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.campus-col img{
    width: 500px;
    height: 281px;
    display: block;
    border-radius: 10px;
}

@media (max-width: 700px){
    .campus h1{
        font-size: 24px;
    }
}







.layer{
    background: transparent;
    width: 500px;
    height: 281px;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    
}
.layer:hover {
    background: rgba(19,164,60,0.2); 
    border-radius: 10px;
    
}

.layer h3{
    width: 100%;
    font-weight: 500;
    color: #ffffff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity:0;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity:1;
}






.hero-btn1{
    width: 70%;
    margin-top: 5px;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    color:#1f1e1e;
    border:1px solid #1b1b1b;
    padding: 12px 34px;
    font-size: 15px;
    background: transparent;
    position: relative;
    cursor: pointer;    
}

.hero-btn1:hover{
    border: 1px solid rgba(19,164,60,0.2);
    background: rgba(19,164,60,0.2);
    transition: 0.3s;
}



/* Who We Are */

.who{
    width: 98%;
    display: flex;
    align-items: top;
    text-align: center;
    margin: auto;
    overflow: hidden;
    
    
}
.who h1{
    font-size: 36px;
    font-weight: 600;
    margin-left: 2%;
    padding-left: 3%;
    margin-bottom: 50px;
    text-align: left;
    background-image: linear-gradient(rgba(148, 148, 148, 0.7),rgba(148,148,148,0.1));
}
.who h4{
    color: #777;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    padding: 5px 0px;
    margin: 5px 5%;
    text-align: left;
    
}
.who img{
    width: 100%;
}

@media (max-width: 700px){
    .who{
        flex-direction: column;
    }
    .who h1{
        font-size: 25px;
        margin-top: 20px;
        margin-bottom: 25px;
    }
    
        
    
}

.who-col{
    flex-basis: 50%;
}






/* Values */

p.green::first-letter {
    font-size: 200%;
    color: Green;
  }

.values{
    width: 98%;
    display: flex;
    align-items: top;
    text-align: center;
    margin: auto;
    overflow: hidden;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 50px;
}


.values h1{
    width: 208%;
    font-size: 36px;
    font-weight: 600;
    margin-left: 2%;
    padding-left: 3%;
    margin-bottom: 50px;
    text-align: left;
    background-image: linear-gradient(rgba(148, 148, 148, 0.7),rgba(148,148,148,0.1));
    
}
.values p{
    width: 150%;
    color: #777;
    font-size: 15px;
    font-weight: 300;
    line-height: 22px;
    padding: 5px 0px;
    margin: 5px 30px;
    text-align: left;
    
}
.values img{
    width: 100%;
    margin-left: 20px;
}

.values-col{
    flex-basis: 50%;
}


@media (max-width: 700px){
    .values{
        flex-direction: column;
    }
    .values img{
        margin-left: 0;
    }
    .values h1{
        font-size: 25px;
        margin-bottom: 25px;
    }
}




/* course (Main Services) */ 

.course{
    width: 100%;
    
    text-align: center;
    margin: 20px 0;
    
}
.course h1{
    font-size: 36px;
    padding-bottom: 20px;
    
    
}

@media (max-width: 700px){
    .course h1{
        font-size: 24px;
    }

    .course {
        margin-top: 20px;
    }
    .course-col h3{
        font-size: 10px;
        
    }
    .course-col{
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
}

p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
    
}

.row{
    padding-top: 20px;
    margin: 0 10px;
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.course-col img{
    width: 100%;
    
}
.course-col{
    flex-basis: 49%;
    
    border-radius: 10px;
    
    
    box-sizing: border-box;
    transition: 0.5s;
    background-color: rgb(197, 197, 197);
    padding-bottom: 10px;
}
.course-col h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    font-size: 25px;
}

.course-col:hover{
    box-shadow: 0 0 30px 0px rgba(19,164,60,0.2);
    
    transform: translateY(-10px);
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
        margin-top: 10px;
    }
}

.hero-btn1{
    display: inline-block;
    text-decoration: none;
    color:#000000;
    border:0px solid #000000;
    padding: 12px 34px;
    font-size: 15px;
    background: transparent;
    position: relative;
    cursor: pointer;    
    border-radius: 10px;
}

.hero-btn1:hover{
    border: 1px solid rgba(19,164,60,0.2);
    background: rgba(19,164,60,0.2);
    transition: 0.3s;
}


/* Click me (inside Main Services)*/

.course a {
    text-decoration: none;
    color: inherit;

  }

.cta {
    position: relative;
    margin: auto;
    padding: 19px 22px;
    transition: all 0.2s ease;
  }
  .cta:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 28px;
    background: rgba(19, 164, 60, 0.5);
    width: 56px;
    height: 56px;
    transition: all 0.3s ease;
  }
  .cta span {
    position: relative;
    font-size: 12px;
    line-height: 18px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    vertical-align: middle;
    
    text-decoration: none;
  }
  .cta svg {
    position: relative;
    top: 0;
    margin-left: 10px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #111;
    stroke-width: 2;
    transform: translateX(-5px);
    transition: all 0.3s ease;
  }
  .cta:hover:before {
    width: 100%;
    background: rgba(19,164,60,0.8);
  }
  .cta:hover svg {
    transform: translateX(0);
  }
  .cta:active {
    transform: scale(0.96);
  }




/* footer */

.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
    background-image: linear-gradient(rgba(218,218,218,0.7),rgba(218,218,218,0.1));
    
}

.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
}

.footer h2{
    margin-bottom: 25px;
    margin-top: 20px;
}
.icon .fa{
    color: rgb(19,164,60);
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    font-size: 28px;
}
.fa-heart-o{
    color: #f44336;
}

.icon{
    margin-top:50px;
}
.footer p{
    line-height: 5px;
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

@media(max-width: 700px){
    .footer p{
        font-size: 10px;
    }
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color:#000000;
    border:1px solid #000000;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;    
    border-radius: 10px;
}

.hero-btn:hover{
    border: 1px solid rgba(19,164,60,0.2);
    background: rgba(19,164,60,0.2);
    transition: 0.3s;
}




/* Page Transition */


h1 {
    padding: 2rem 0rem;
}

.ES5 {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 50px;
}

.card {
    cursor: pointer;
    flex-basis: 36rem;
    flex: 1;
}

.product {
    text-align: center;
    padding: 1rem;
}
.product p {
    padding: 1rem 0rem;
    text-align: left;
    font-size: 1.2rem;
    line-height: 200%;
    color: rgb(40,40,40);
    text-align: center;
}

.card img {
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.container {
    margin: 0% 20%;
}

.card-transition-small {
    view-transition-name: card;
}
.card-transition-large {
    view-transition-name: card;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slide-to-left {
    from {
        transform: translateX(-4rem);
    }
    to {
        transform: translateX(0rem);
    }
    }

::view-transition-old(card),
::view-transition-new(card){
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    animation: fade-in 350ms cubic-bezier(0,0,0.2,1),
    slide-to-right 350ms cubi-bezier(0,0,0.2,1);;
    }

::view-transition-new(root) {
    animation: fade-in 350ms cubic-bezier(0,0,0.2,1),
    slide-to-left 350ms cubi-bezier(0,0,0.2,1);;
    mix-blend-mode: normal;
}

h3 {
    text-align: center;
    font-size: medium;
}